models

package
v0.0.0-...-f9963a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CourseFaculties

type CourseFaculties struct {
	Faculties []string `json:"faculties" bson:"faculties" enums:"иэф,фаиту,фвт,фрт,фэ"`
	Course    int      `json:"course"    bson:"course"    enums:"1,2,3,4,5"                            example:"1"`
}

type CourseFacultyGroups

type CourseFacultyGroups struct {
	Faculty string   `json:"faculty" bson:"faculty" enums:"иэф,фаиту,фвт,фрт,фэ"                 example:"фвт"`
	Groups  []string `json:"groups"  bson:"groups"`
	Course  int      `json:"course"  bson:"course"  enums:"1,2,3,4,5"                            example:"1"`
}

type Day

type Day struct {
	WeekType string `` //nolint:lll // there is no way to fix it
	/* 138-byte string literal not displayed */
	WeekTypeEng string `json:"week_type_eng" enums:"numerator,denominator"                                    example:"numerator"` //nolint:lll // there is no way to fix it
	Day         string `json:"day"           enums:"Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday" example:"Monday"`    //nolint:lll // there is no way to fix it
	DayRu       string `json:"day_ru"        enums:"Пн,Вт,Ср,Чт,Пт,Сб,Вс"                                     example:"Пн"`        //nolint:lll // there is no way to fix it
	Time        string `json:"time"                                                                           example:"08.10"`     //nolint:lll // there is no way to fix it
}

type DayLessonSchedule

type DayLessonSchedule struct {
	Time   string `json:"time"           bson:"time"           example:"08.10-09.45"`
	Lesson string `` //nolint:lll // there is no way to fix it
	/* 129-byte string literal not displayed */
	TeachersFull  []string `json:"teachers_full"  bson:"teachers_full"  example:"Конюхов Алексей Николаевич"`
	TeachersShort []string `json:"teachers_short" bson:"teachers_short" example:"Конюхов А.Н."`
	Dates         []string `json:"dates"          bson:"dates"          example:"11.09,09.10,06.11,04.12"`
	Auditoriums   []string `json:"auditoriums"    bson:"auditoriums"    example:"445 C,445 C,Стадион РГРТУ C"`
}

type Faculties

type Faculties struct {
	Faculties []string `json:"faculties" bson:"faculties"`
}

type FacultyCourses

type FacultyCourses struct {
	Faculty string `json:"faculty" bson:"faculty" enums:"иэф,фаиту,фвт,фрт,фэ"                 example:"фвт"`
	Courses []int  `json:"courses" bson:"courses"`
}

type NumeratorDenominatorSchedule

type NumeratorDenominatorSchedule struct {
	Numerator       WeekSchedule `json:"numerator"   bson:"numerator"`
	Denominator     WeekSchedule `json:"denominator" bson:"denominator"`
	DayLessonsTimes struct {
		Monday    []string `json:"monday"    bson:"monday"`
		Tuesday   []string `json:"tuesday"   bson:"tuesday"`
		Wednesday []string `json:"wednesday" bson:"wednesday"`
		Thursday  []string `json:"thursday"  bson:"thursday"`
		Friday    []string `json:"friday"    bson:"friday"`
		Saturday  []string `json:"saturday"  bson:"saturday"`
	} `json:"-" bson:"day_lessons_times"`
}

type Schedule

type Schedule struct {
	UpdatedAt time.Time                    `json:"updated_at" bson:"updated_at"`
	File      string                       `json:"file"       bson:"file"`
	FileHash  string                       `json:"file_hash"  bson:"file_hash"  example:"5427593514859b0701e8e12ecbce1b0b"`
	Faculty   string                       `json:"faculty"    bson:"faculty"    example:"фвт"`
	Group     string                       `json:"group"      bson:"group"      example:"344"`
	Schedule  NumeratorDenominatorSchedule `json:"schedule"   bson:"schedule"`
	Course    int                          `json:"course"     bson:"course"     example:"1"`
	ID        primitive.ObjectID           `json:"id"         bson:"_id"`
}

type TeacherDepartment

type TeacherDepartment struct {
	Department string `` //nolint:lll // there is no way to fix it
	/* 146-byte string literal not displayed */
	DepartmentShort string `json:"department_short" bson:"department_short" example:"ВМ"`
}

type TeacherFaculty

type TeacherFaculty struct {
	Faculty string `` //nolint:lll // there is no way to fix it
	/* 168-byte string literal not displayed */
	FacultyShort string `json:"faculty_short" bson:"faculty_short" example:"фаиту"`
}

type TeacherLesson

type TeacherLesson struct {
	Time        string   `json:"time"        bson:"time"        example:"08.10-09.45"`
	Lesson      string   `json:"lesson"      bson:"lesson"      example:"л.Высшая математика\nдоц.Конюхов А.Н.   333 С"`
	Faculties   []string `json:"faculties"   bson:"faculties"   example:"фаиту,фвт"`
	Groups      []string `json:"groups"      bson:"groups"      example:"344,345"`
	Courses     []int    `json:"courses"     bson:"courses"     example:"1"`
	Dates       []string `json:"dates"       bson:"dates"       example:"11.09,09.10,06.11,04.12"`
	Auditoriums []string `json:"auditoriums" bson:"auditoriums" example:"445 C,445 C,Стадион РГРТУ C"`
}

type TeacherSchedule

type TeacherSchedule struct {
	TeacherFull  string `json:"teacher"          bson:"teacher_full"     example:"Конюхов Алексей Николаевич"`
	TeacherShort string `json:"teacher_short"    bson:"teacher_short"    example:"Конюхов А.Н."`
	Link         string `` //nolint:lll // there is no way to fix it
	/* 130-byte string literal not displayed */
	Department      string `json:"department"       bson:"department"       example:"Кафедра высшей математики"`
	DepartmentShort string `json:"department_short" bson:"department_short" example:"ВМ"`
	Faculty         string `` //nolint:lll // there is no way to fix it
	/* 174-byte string literal not displayed */
	FacultyShort string `json:"faculty_short"    bson:"faculty_short"    example:"фаиту"`
	Schedule     struct {
		Numerator struct {
			Monday    []TeacherLesson `json:"monday"    bson:"monday"`
			Tuesday   []TeacherLesson `json:"tuesday"   bson:"tuesday"`
			Wednesday []TeacherLesson `json:"wednesday" bson:"wednesday"`
			Thursday  []TeacherLesson `json:"thursday"  bson:"thursday"`
			Friday    []TeacherLesson `json:"friday"    bson:"friday"`
			Saturday  []TeacherLesson `json:"saturday"  bson:"saturday"`
		} `json:"numerator" bson:"numerator"`
		Denominator struct {
			Monday    []TeacherLesson `json:"monday"    bson:"monday"`
			Tuesday   []TeacherLesson `json:"tuesday"   bson:"tuesday"`
			Wednesday []TeacherLesson `json:"wednesday" bson:"wednesday"`
			Thursday  []TeacherLesson `json:"thursday"  bson:"thursday"`
			Friday    []TeacherLesson `json:"friday"    bson:"friday"`
			Saturday  []TeacherLesson `json:"saturday"  bson:"saturday"`
		} `json:"denominator" bson:"denominator"`
	} `json:"schedule" bson:"schedule"`
}

type TeachersList

type TeachersList struct {
	Teachers []string `` /* 143-byte string literal not displayed */
}

type WeekSchedule

type WeekSchedule struct {
	Monday    []DayLessonSchedule `json:"monday"    bson:"monday"`
	Tuesday   []DayLessonSchedule `json:"tuesday"   bson:"tuesday"`
	Wednesday []DayLessonSchedule `json:"wednesday" bson:"wednesday"`
	Thursday  []DayLessonSchedule `json:"thursday"  bson:"thursday"`
	Friday    []DayLessonSchedule `json:"friday"    bson:"friday"`
	Saturday  []DayLessonSchedule `json:"saturday"  bson:"saturday"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL