Documentation ¶
Index ¶
- func PeriodTypeByWeek(week int64) int64
- type Attendance
- type Audithories
- type Audithory
- type Billing
- type ByRate
- type Corps
- type Corpuses
- type Departament
- type Departaments
- type Diary
- type DiaryMarks
- type Faculties
- type Faculty
- type Group
- type GroupMembers
- type GroupSiblings
- type Groups
- type Guru
- type GuruFeatures
- type GuruFeaturesType
- type ItemWithTitle
- type PeriodType
- type PeriodTypes
- type Qualification
- type Schedule
- type ScheduleItem
- type ScheduleItemView
- type ScheduleItems
- type Subject
- type Subjects
- type TrainingDirection
- type TrainingDirections
- type TrainingType
- type TrainingTypes
- type University
- func (u *University) AddTables() error
- func (u *University) AudithoryCreate(a Audithory) (Audithory, error)
- func (u *University) AudithoryGet(id int64) (Audithory, error)
- func (u *University) AudithoryGetAll() Audithories
- func (u *University) AudithoryUpdate(p Audithory) error
- func (u *University) BotGurus(offset, limit int64) (ids []int64)
- func (u *University) CorpsCreate(title string) (Corps, error)
- func (u *University) CorpsGet(id int64) (Corps, error)
- func (u *University) CorpsGetAll() Corpuses
- func (u *University) CorpsUpdate(f Corps) error
- func (u *University) CreateGuru(userid int64) (Guru, error)
- func (u *University) CreateScheduleItem(s *ScheduleItem) error
- func (u *University) FacultyCreate(title, shortname string) (Faculty, error)
- func (u *University) FacultyGet(id int64) (Faculty, error)
- func (u *University) FacultyGetAll() Faculties
- func (u *University) FacultyUpdate(f Faculty) error
- func (u *University) GetAllGurus() (g []int64)
- func (u *University) GetAttendances() []Attendance
- func (u *University) GetBillings() []Billing
- func (u *University) GetFaculty(id int64) ([]int64, error)
- func (u *University) GetGroups() Groups
- func (u *University) GetGuru(id int64) (g Guru)
- func (u *University) GetGuruFeatures(gid int64) (GuruFeaturesType, error)
- func (u *University) GetScheduleForGroup(groupId int64) (ScheduleItems, error)
- func (u *University) GroupCreate(g Group) (Group, error)
- func (u *University) GroupGet(id int64) (Group, error)
- func (u *University) GroupGetAll() Groups
- func (u *University) GroupGetBySlug(slug string) (Group, error)
- func (u *University) GroupGetChilds(gid int64) []Group
- func (u *University) GroupUpdate(g Group) error
- func (u *University) IsGuru(uid int64) (int64, bool)
- func (u *University) LoadGurus() []Guru
- func (u *University) MustUpdateGuru(id int64)
- func (u *University) PeriodTypeGet(id int64) (PeriodType, error)
- func (u *University) PeriodTypeGetAll() PeriodTypes
- func (u *University) SearchGuru(q string) (ids []int64)
- func (u *University) SubjectCreate(title, shortname string) (Subject, error)
- func (u *University) SubjectGet(id int64) (Subject, error)
- func (u *University) SubjectGetAll() Subjects
- func (u *University) SubjectUpdate(f Subject) error
- func (u *University) TopGurus(offset, limit int64) (ids []int64)
- func (u *University) TrainingDirectionCreate(title, code, desc string) (TrainingDirection, error)
- func (u *University) TrainingDirectionGet(id int64) (TrainingDirection, error)
- func (u *University) TrainingDirectionGetAll() TrainingDirections
- func (u *University) TrainingDirectionUpdate(t TrainingDirection) error
- func (u *University) TrainingTypeCreate(title string) (TrainingType, error)
- func (u *University) TrainingTypeGet(id int64) (TrainingType, error)
- func (u *University) TrainingTypeGetAll() TrainingTypes
- func (u *University) TrainingTypeUpdate(f TrainingType) error
- func (u *University) UpdateGuru(g Guru) error
- func (u *University) WeekDayGet(id int64) (WeekDay, error)
- func (u *University) WeekDayGetAll() WeekDays
- type WeekDay
- type WeekDays
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PeriodTypeByWeek ¶
Types ¶
type Attendance ¶
type Attendance struct {
ItemWithTitle
}
type Audithories ¶
type Audithories []Audithory
type Billing ¶
type Billing struct {
ItemWithTitle
}
type Corps ¶
type Corps struct { ItemWithTitle Own bool GeoObject int64 }
type Departament ¶
type Departament struct { ItemWithTitle Parent int64 }
type Departaments ¶
type Departaments []Departament
type Faculty ¶
type Faculty struct { ItemWithTitle ShortName string Slug string }
type Group ¶
type GroupMembers ¶
type GroupSiblings ¶
type Groups ¶
type Groups []Group
func (Groups) GetByClass ¶
func (Groups) GetByFaculty ¶
func (Groups) GetClasses ¶
func (Groups) LenClasses ¶
type Guru ¶
type Guru struct { Id int64 UserId int64 Faculty int64 Departament int64 Degree int64 //i.e. степень кандидат наук или доктор Rank int64 //i.e. профессор, научный сотрудник Post int64 //i.e Академик-секретарь Rate int64 Features GuruFeaturesType `db:"-"` User user.User `db:"-"` Comments []comments.Comment `db:"-"` Created int64 Updated int64 Deleted int64 Version int64 }
type GuruFeatures ¶
type GuruFeaturesType ¶
type GuruFeaturesType []GuruFeatures
func (GuruFeaturesType) VoteCount ¶
func (c GuruFeaturesType) VoteCount() (r int64)
type ItemWithTitle ¶
type PeriodType ¶
type PeriodType struct {
ItemWithTitle
}
type PeriodTypes ¶
type PeriodTypes []PeriodType
func (PeriodTypes) Get ¶
func (p PeriodTypes) Get(id int64) (PeriodType, error)
type Qualification ¶
type Schedule ¶
type Schedule []ScheduleItemView
type ScheduleItem ¶
type ScheduleItem struct { Id int64 PeriodType int64 Guru int64 Subject int64 Audithory int64 Corps int64 Start int64 Duration int64 WeekDay int64 Group int64 TrainingType int64 Attendance int64 Billing int64 Created int64 Updated int64 Deleted int64 Version int64 }
func (ScheduleItem) GetStartMin ¶
func (s ScheduleItem) GetStartMin() int64
func (ScheduleItem) GetStartStr ¶
func (s ScheduleItem) GetStartStr() string
type ScheduleItemView ¶
type ScheduleItemView struct { Gurus []Guru Audithories Audithories Corpuses Corpuses PeriodTypes PeriodTypes Subjects Subjects Groups Groups TrainingTypes TrainingTypes Faculties Faculties Departaments Departaments TrainingDirections TrainingDirections WeekDays WeekDays Items ScheduleItems }
func (ScheduleItemView) Clean ¶
func (s ScheduleItemView) Clean(t time.Time)
func (ScheduleItemView) GetItems ¶
func (s ScheduleItemView) GetItems(tin int64, weekday, start int64) ScheduleItems
func (ScheduleItemView) Subject ¶
func (s ScheduleItemView) Subject(id int64) Subject
type ScheduleItems ¶
type ScheduleItems []ScheduleItem
func (ScheduleItems) GetLenPairs ¶
func (s ScheduleItems) GetLenPairs() int64
func (ScheduleItems) GetPairNum ¶
func (s ScheduleItems) GetPairNum(id int64) int64
func (ScheduleItems) GetStartes ¶
func (s ScheduleItems) GetStartes() []int64
type Subject ¶
type Subject struct { ItemWithTitle ShortName string }
type TrainingDirection ¶
type TrainingDirection struct { ItemWithTitle Code string Description string Qualification int64 }
type TrainingDirections ¶
type TrainingDirections []TrainingDirection
type TrainingType ¶
type TrainingType struct {
ItemWithTitle
}
type TrainingTypes ¶
type TrainingTypes []TrainingType
type University ¶
type University struct {
// contains filtered or unexported fields
}
func NewUniversity ¶
func NewUniversity(db *gorp.DbMap) *University
func (*University) AddTables ¶
func (u *University) AddTables() error
func (*University) AudithoryCreate ¶
func (u *University) AudithoryCreate(a Audithory) (Audithory, error)
func (*University) AudithoryGet ¶
func (u *University) AudithoryGet(id int64) (Audithory, error)
func (*University) AudithoryGetAll ¶
func (u *University) AudithoryGetAll() Audithories
func (*University) AudithoryUpdate ¶
func (u *University) AudithoryUpdate(p Audithory) error
func (*University) BotGurus ¶
func (u *University) BotGurus(offset, limit int64) (ids []int64)
func (*University) CorpsCreate ¶
func (u *University) CorpsCreate(title string) (Corps, error)
func (*University) CorpsGetAll ¶
func (u *University) CorpsGetAll() Corpuses
func (*University) CorpsUpdate ¶
func (u *University) CorpsUpdate(f Corps) error
func (*University) CreateGuru ¶
func (u *University) CreateGuru(userid int64) (Guru, error)
func (*University) CreateScheduleItem ¶
func (u *University) CreateScheduleItem(s *ScheduleItem) error
func (*University) FacultyCreate ¶
func (u *University) FacultyCreate(title, shortname string) (Faculty, error)
func (*University) FacultyGet ¶
func (u *University) FacultyGet(id int64) (Faculty, error)
func (*University) FacultyGetAll ¶
func (u *University) FacultyGetAll() Faculties
func (*University) FacultyUpdate ¶
func (u *University) FacultyUpdate(f Faculty) error
func (*University) GetAllGurus ¶
func (u *University) GetAllGurus() (g []int64)
func (*University) GetAttendances ¶
func (u *University) GetAttendances() []Attendance
func (*University) GetBillings ¶
func (u *University) GetBillings() []Billing
func (*University) GetFaculty ¶
func (u *University) GetFaculty(id int64) ([]int64, error)
func (*University) GetGroups ¶
func (u *University) GetGroups() Groups
func (*University) GetGuru ¶
func (u *University) GetGuru(id int64) (g Guru)
func (*University) GetGuruFeatures ¶
func (u *University) GetGuruFeatures(gid int64) (GuruFeaturesType, error)
func (*University) GetScheduleForGroup ¶
func (u *University) GetScheduleForGroup(groupId int64) (ScheduleItems, error)
func (*University) GroupCreate ¶
func (u *University) GroupCreate(g Group) (Group, error)
func (*University) GroupGetBySlug ¶
func (u *University) GroupGetBySlug(slug string) (Group, error)
func (*University) GroupGetChilds ¶
func (u *University) GroupGetChilds(gid int64) []Group
func (*University) GroupUpdate ¶
func (u *University) GroupUpdate(g Group) error
func (*University) LoadGurus ¶
func (u *University) LoadGurus() []Guru
func (*University) MustUpdateGuru ¶
func (u *University) MustUpdateGuru(id int64)
func (*University) PeriodTypeGet ¶
func (u *University) PeriodTypeGet(id int64) (PeriodType, error)
func (*University) PeriodTypeGetAll ¶
func (u *University) PeriodTypeGetAll() PeriodTypes
func (*University) SearchGuru ¶
func (u *University) SearchGuru(q string) (ids []int64)
func (*University) SubjectCreate ¶
func (u *University) SubjectCreate(title, shortname string) (Subject, error)
func (*University) SubjectGet ¶
func (u *University) SubjectGet(id int64) (Subject, error)
func (*University) SubjectGetAll ¶
func (u *University) SubjectGetAll() Subjects
func (*University) SubjectUpdate ¶
func (u *University) SubjectUpdate(f Subject) error
func (*University) TopGurus ¶
func (u *University) TopGurus(offset, limit int64) (ids []int64)
func (*University) TrainingDirectionCreate ¶
func (u *University) TrainingDirectionCreate(title, code, desc string) (TrainingDirection, error)
func (*University) TrainingDirectionGet ¶
func (u *University) TrainingDirectionGet(id int64) (TrainingDirection, error)
func (*University) TrainingDirectionGetAll ¶
func (u *University) TrainingDirectionGetAll() TrainingDirections
func (*University) TrainingDirectionUpdate ¶
func (u *University) TrainingDirectionUpdate(t TrainingDirection) error
func (*University) TrainingTypeCreate ¶
func (u *University) TrainingTypeCreate(title string) (TrainingType, error)
func (*University) TrainingTypeGet ¶
func (u *University) TrainingTypeGet(id int64) (TrainingType, error)
func (*University) TrainingTypeGetAll ¶
func (u *University) TrainingTypeGetAll() TrainingTypes
func (*University) TrainingTypeUpdate ¶
func (u *University) TrainingTypeUpdate(f TrainingType) error
func (*University) UpdateGuru ¶
func (u *University) UpdateGuru(g Guru) error
func (*University) WeekDayGet ¶
func (u *University) WeekDayGet(id int64) (WeekDay, error)
func (*University) WeekDayGetAll ¶
func (u *University) WeekDayGetAll() WeekDays
type WeekDay ¶
type WeekDay struct {
ItemWithTitle
}
Click to show internal directories.
Click to hide internal directories.