| 
					
				 | 
			
			
				@@ -8,30 +8,12 @@ import ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	_ "github.com/jinzhu/gorm/dialects/mysql" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	ADMINISTRATIVE_ROLE_PERSONAL = iota 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	ADMINISTRATIVE_ROLE_TEACHING 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	ADMINISTRATIVE_ROLE_DSGA 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	ADMINISTRATIVE_ROLE_SCHOOL_CARETAKER 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	ADMINISTRATIVE_ROLE_TECHNICAL_ASSISTANT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	ADMINISTRATIVE_ROLE_LIBRARIAN 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	ADMINISTRATIVE_ROLE_UNDEFINED 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	IssueTeacherHours = iota 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 type Timetable [][]Activity 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 type Person interface { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	GetCredential() *Credential 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-type TheBoss struct { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	gorm.Model 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	Credential 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	Teachers []Teacher 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 type Address struct { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	City    string 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	Street  string 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -65,23 +47,6 @@ type Student struct { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	Class *Class 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-type Director struct { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	gorm.Model 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	Credential 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-type Administrative struct { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	gorm.Model 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	Credential 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	Role int 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-type Office struct { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	gorm.Model 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	Credential 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	Persons []Person 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 type Department struct { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	gorm.Model 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	Name     string 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -204,18 +169,14 @@ func AutoMigrate() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		&Class{}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		&Activity{}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		&Department{}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		&TheBoss{}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		&Administrative{}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		&Student{}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		&Director{}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		&Issue{}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	).Error; err != nil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		panic(err) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-func GetResultFunc(path string) (GetFn, error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+func GetFunc(path string) (GetFn, error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	fn, ok := Get[path] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	if !ok { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return nil, fmt.Errorf("Can't map %s!", path) 
			 |