Documentation ¶
Overview ¶
Package teachingv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func DefaultSort(s1, s2 *ScheduleItem) bool
- func FirstOfArray(array []int32) int32
- func InArray(array []int32, item int32) (int32, bool)
- func LastOfArray(array []int32) int32
- func RegisterTeachingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTeachingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TeachingServiceClient) error
- func RegisterTeachingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTeachingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TeachingServiceServer) error
- func RegisterTeachingServiceServer(s grpc.ServiceRegistrar, srv TeachingServiceServer)
- func SetCourseItemLess(less func(c CourseItems, i, j int) bool)
- func SetScheduleItemLess(less func(c ScheduleItems, i, j int) bool)
- type ClassDetail
- func (*ClassDetail) Descriptor() ([]byte, []int)deprecated
- func (x *ClassDetail) GetClassID() string
- func (x *ClassDetail) GetClassName() string
- func (x *ClassDetail) GetCourseID() string
- func (x *ClassDetail) GetCourseName() string
- func (x *ClassDetail) GetStudentID() []string
- func (x *ClassDetail) GetTeacherID() []string
- func (*ClassDetail) ProtoMessage()
- func (x *ClassDetail) ProtoReflect() protoreflect.Message
- func (x *ClassDetail) Reset()
- func (x *ClassDetail) String() string
- type ClassQueryFavGetResponse
- func (*ClassQueryFavGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ClassQueryFavGetResponse) GetData() []string
- func (x *ClassQueryFavGetResponse) GetError() int32
- func (x *ClassQueryFavGetResponse) GetMsg() string
- func (*ClassQueryFavGetResponse) ProtoMessage()
- func (x *ClassQueryFavGetResponse) ProtoReflect() protoreflect.Message
- func (x *ClassQueryFavGetResponse) Reset()
- func (x *ClassQueryFavGetResponse) String() string
- type ClassQueryFavRankResponse
- func (*ClassQueryFavRankResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ClassQueryFavRankResponse) GetData() []string
- func (x *ClassQueryFavRankResponse) GetError() int32
- func (x *ClassQueryFavRankResponse) GetMsg() string
- func (*ClassQueryFavRankResponse) ProtoMessage()
- func (x *ClassQueryFavRankResponse) ProtoReflect() protoreflect.Message
- func (x *ClassQueryFavRankResponse) Reset()
- func (x *ClassQueryFavRankResponse) String() string
- type ClassQueryFavSetRequest
- func (*ClassQueryFavSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClassQueryFavSetRequest) GetClasses() []string
- func (*ClassQueryFavSetRequest) ProtoMessage()
- func (x *ClassQueryFavSetRequest) ProtoReflect() protoreflect.Message
- func (x *ClassQueryFavSetRequest) Reset()
- func (x *ClassQueryFavSetRequest) String() string
- type ClassQueryFavSetResponse
- func (*ClassQueryFavSetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ClassQueryFavSetResponse) GetError() int32
- func (x *ClassQueryFavSetResponse) GetMsg() string
- func (*ClassQueryFavSetResponse) ProtoMessage()
- func (x *ClassQueryFavSetResponse) ProtoReflect() protoreflect.Message
- func (x *ClassQueryFavSetResponse) Reset()
- func (x *ClassQueryFavSetResponse) String() string
- type ClassQueryGetRequest
- func (*ClassQueryGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClassQueryGetRequest) GetClasses() []string
- func (*ClassQueryGetRequest) ProtoMessage()
- func (x *ClassQueryGetRequest) ProtoReflect() protoreflect.Message
- func (x *ClassQueryGetRequest) Reset()
- func (x *ClassQueryGetRequest) String() string
- type ClassQueryGetResponse
- func (*ClassQueryGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ClassQueryGetResponse) GetData() *ClassQueryInfo
- func (x *ClassQueryGetResponse) GetError() int32
- func (x *ClassQueryGetResponse) GetMsg() string
- func (*ClassQueryGetResponse) ProtoMessage()
- func (x *ClassQueryGetResponse) ProtoReflect() protoreflect.Message
- func (x *ClassQueryGetResponse) Reset()
- func (x *ClassQueryGetResponse) String() string
- type ClassQueryInfo
- func (*ClassQueryInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ClassQueryInfo) GetClassLast() int64
- func (x *ClassQueryInfo) GetClassLatest() bool
- func (x *ClassQueryInfo) GetClasses() []*ClassQuerySearchClass
- func (x *ClassQueryInfo) GetNumLast() int64
- func (x *ClassQueryInfo) GetNumLatest() bool
- func (*ClassQueryInfo) ProtoMessage()
- func (x *ClassQueryInfo) ProtoReflect() protoreflect.Message
- func (x *ClassQueryInfo) Reset()
- func (x *ClassQueryInfo) String() string
- type ClassQueryMapResponse
- func (*ClassQueryMapResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ClassQueryMapResponse) GetData() string
- func (x *ClassQueryMapResponse) GetError() int32
- func (x *ClassQueryMapResponse) GetMsg() string
- func (*ClassQueryMapResponse) ProtoMessage()
- func (x *ClassQueryMapResponse) ProtoReflect() protoreflect.Message
- func (x *ClassQueryMapResponse) Reset()
- func (x *ClassQueryMapResponse) String() string
- type ClassQuerySearchClass
- func (*ClassQuerySearchClass) Descriptor() ([]byte, []int)deprecated
- func (x *ClassQuerySearchClass) GetCampusID() string
- func (x *ClassQuerySearchClass) GetClassID() string
- func (x *ClassQuerySearchClass) GetClassList() string
- func (x *ClassQuerySearchClass) GetClassName() string
- func (x *ClassQuerySearchClass) GetClassTime() string
- func (x *ClassQuerySearchClass) GetCourseID() string
- func (x *ClassQuerySearchClass) GetCourseName() string
- func (x *ClassQuerySearchClass) GetCourseNature() string
- func (x *ClassQuerySearchClass) GetCredit() string
- func (x *ClassQuerySearchClass) GetExaminationMethod() string
- func (x *ClassQuerySearchClass) GetLocation() string
- func (x *ClassQuerySearchClass) GetRemark() string
- func (x *ClassQuerySearchClass) GetSelectedStatus() string
- func (x *ClassQuerySearchClass) GetTeacherName() string
- func (x *ClassQuerySearchClass) GetTeachingMethodID() string
- func (x *ClassQuerySearchClass) GetTeachingModel() string
- func (x *ClassQuerySearchClass) GetUnitName() string
- func (*ClassQuerySearchClass) ProtoMessage()
- func (x *ClassQuerySearchClass) ProtoReflect() protoreflect.Message
- func (x *ClassQuerySearchClass) Reset()
- func (x *ClassQuerySearchClass) String() string
- type ClassQuerySearchRequest
- func (*ClassQuerySearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClassQuerySearchRequest) GetFrom() int32
- func (x *ClassQuerySearchRequest) GetQuery() string
- func (x *ClassQuerySearchRequest) GetSize() int32
- func (*ClassQuerySearchRequest) ProtoMessage()
- func (x *ClassQuerySearchRequest) ProtoReflect() protoreflect.Message
- func (x *ClassQuerySearchRequest) Reset()
- func (x *ClassQuerySearchRequest) String() string
- type ClassQuerySearchResponse
- func (*ClassQuerySearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ClassQuerySearchResponse) GetData() *ClassQueryInfo
- func (x *ClassQuerySearchResponse) GetError() int32
- func (x *ClassQuerySearchResponse) GetMsg() string
- func (*ClassQuerySearchResponse) ProtoMessage()
- func (x *ClassQuerySearchResponse) ProtoReflect() protoreflect.Message
- func (x *ClassQuerySearchResponse) Reset()
- func (x *ClassQuerySearchResponse) String() string
- type Classroom
- func (*Classroom) Descriptor() ([]byte, []int)deprecated
- func (x *Classroom) GetAvailable() bool
- func (x *Classroom) GetBuildingID() string
- func (x *Classroom) GetBuildingName() string
- func (x *Classroom) GetLocationID() string
- func (x *Classroom) GetLocationName() string
- func (x *Classroom) GetSchoolYear() string
- func (x *Classroom) GetSelfStudy() bool
- func (x *Classroom) GetSemester() int32
- func (*Classroom) ProtoMessage()
- func (x *Classroom) ProtoReflect() protoreflect.Message
- func (x *Classroom) Reset()
- func (x *Classroom) String() string
- type ClassroomUsage
- func (*ClassroomUsage) Descriptor() ([]byte, []int)deprecated
- func (x *ClassroomUsage) GetClassID() string
- func (x *ClassroomUsage) GetClassroom() *Classroom
- func (x *ClassroomUsage) GetCourseCode() string
- func (x *ClassroomUsage) GetCourseName() string
- func (x *ClassroomUsage) GetSection() []int32
- func (x *ClassroomUsage) GetWeek() []int32
- func (x *ClassroomUsage) GetWeekday() int32
- func (*ClassroomUsage) ProtoMessage()
- func (x *ClassroomUsage) ProtoReflect() protoreflect.Message
- func (x *ClassroomUsage) Reset()
- func (x *ClassroomUsage) String() string
- type CourseItem
- func (x *CourseItem) AddSchedule(timeable schoolTime.Timeable, optionable ShowMemberOptionable, ...)
- func (*CourseItem) Descriptor() ([]byte, []int)deprecated
- func (x *CourseItem) GetClassID() string
- func (x *CourseItem) GetClassName() string
- func (x *CourseItem) GetClassTime() string
- func (x *CourseItem) GetCourseID() string
- func (x *CourseItem) GetCourseName() string
- func (x *CourseItem) GetCredit() string
- func (x *CourseItem) GetSchedule() *Schedule
- func (x *CourseItem) GetScheduleResponseCourse_Schedule() (list []*ScheduleResponseCourse_ScheduleInfo)
- func (x *CourseItem) GetSchoolYear() *schoolTime.SchoolYear
- func (x *CourseItem) GetSemester() *schoolTime.Semester
- func (*CourseItem) ProtoMessage()
- func (x *CourseItem) ProtoReflect() protoreflect.Message
- func (x *CourseItem) Reset()
- func (x *CourseItem) String() string
- func (x *CourseItem) ToScheduleResponseCourse() *ScheduleResponseCourse
- type CourseItems
- type CourseQuery
- type CourseReader
- type CourseReaders
- type Courses
- func (*Courses) Descriptor() ([]byte, []int)deprecated
- func (courses *Courses) FilterBySchedule(remains ...RemainFunc) *Courses
- func (x *Courses) GetItems() map[string]*CourseItem
- func (x *Courses) GetScheduleResponseCourse() (list []*ScheduleResponseCourse)
- func (courses *Courses) Iterator(less ScheduleLess) func() (courseName string, schedule *ScheduleItem, ok bool)
- func (x *Courses) MarshalJSON() ([]byte, error)
- func (*Courses) ProtoMessage()
- func (x *Courses) ProtoReflect() protoreflect.Message
- func (x *Courses) Reset()
- func (x *Courses) String() string
- func (x *Courses) ToGetScheduleResponse() *GetScheduleResponse
- func (x *Courses) UnmarshalJSON(bytes []byte) error
- type CoursesCustomLess
- type GetClassDetailRequest
- func (*GetClassDetailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetClassDetailRequest) GetClassID() string
- func (*GetClassDetailRequest) ProtoMessage()
- func (x *GetClassDetailRequest) ProtoReflect() protoreflect.Message
- func (x *GetClassDetailRequest) Reset()
- func (x *GetClassDetailRequest) String() string
- type GetClassDetailResponse
- func (*GetClassDetailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetClassDetailResponse) GetData() *ClassDetail
- func (x *GetClassDetailResponse) GetError() int32
- func (x *GetClassDetailResponse) GetMsg() string
- func (*GetClassDetailResponse) ProtoMessage()
- func (x *GetClassDetailResponse) ProtoReflect() protoreflect.Message
- func (x *GetClassDetailResponse) Reset()
- func (x *GetClassDetailResponse) String() string
- type GetClassroomUsagesRequest
- func (*GetClassroomUsagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetClassroomUsagesRequest) GetLocationID() string
- func (x *GetClassroomUsagesRequest) GetSchoolYear() string
- func (x *GetClassroomUsagesRequest) GetSemester() string
- func (*GetClassroomUsagesRequest) ProtoMessage()
- func (x *GetClassroomUsagesRequest) ProtoReflect() protoreflect.Message
- func (x *GetClassroomUsagesRequest) Reset()
- func (x *GetClassroomUsagesRequest) String() string
- type GetClassroomUsagesResponse
- func (*GetClassroomUsagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetClassroomUsagesResponse) GetData() []*ClassroomUsage
- func (x *GetClassroomUsagesResponse) GetError() int32
- func (x *GetClassroomUsagesResponse) GetMsg() string
- func (*GetClassroomUsagesResponse) ProtoMessage()
- func (x *GetClassroomUsagesResponse) ProtoReflect() protoreflect.Message
- func (x *GetClassroomUsagesResponse) Reset()
- func (x *GetClassroomUsagesResponse) String() string
- type GetClassroomsRequest
- func (*GetClassroomsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetClassroomsRequest) GetSchoolYear() string
- func (x *GetClassroomsRequest) GetSemester() string
- func (*GetClassroomsRequest) ProtoMessage()
- func (x *GetClassroomsRequest) ProtoReflect() protoreflect.Message
- func (x *GetClassroomsRequest) Reset()
- func (x *GetClassroomsRequest) String() string
- type GetClassroomsResponse
- func (*GetClassroomsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetClassroomsResponse) GetData() []*Classroom
- func (x *GetClassroomsResponse) GetError() int32
- func (x *GetClassroomsResponse) GetMsg() string
- func (*GetClassroomsResponse) ProtoMessage()
- func (x *GetClassroomsResponse) ProtoReflect() protoreflect.Message
- func (x *GetClassroomsResponse) Reset()
- func (x *GetClassroomsResponse) String() string
- type GetGlobalScheduleRequest
- func (*GetGlobalScheduleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetGlobalScheduleRequest) GetWeek() int32
- func (x *GetGlobalScheduleRequest) GetWeekday() int32
- func (*GetGlobalScheduleRequest) ProtoMessage()
- func (x *GetGlobalScheduleRequest) ProtoReflect() protoreflect.Message
- func (x *GetGlobalScheduleRequest) Reset()
- func (x *GetGlobalScheduleRequest) String() string
- type GetGlobalScheduleResponse
- func (*GetGlobalScheduleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetGlobalScheduleResponse) GetData() []*GlobalSchedule
- func (x *GetGlobalScheduleResponse) GetError() int32
- func (x *GetGlobalScheduleResponse) GetMsg() string
- func (*GetGlobalScheduleResponse) ProtoMessage()
- func (x *GetGlobalScheduleResponse) ProtoReflect() protoreflect.Message
- func (x *GetGlobalScheduleResponse) Reset()
- func (x *GetGlobalScheduleResponse) String() string
- type GetScheduleNowResponse
- func (*GetScheduleNowResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetScheduleNowResponse) GetData() *GetScheduleNowResponse_Data
- func (x *GetScheduleNowResponse) GetError() int32
- func (x *GetScheduleNowResponse) GetMsg() string
- func (*GetScheduleNowResponse) ProtoMessage()
- func (x *GetScheduleNowResponse) ProtoReflect() protoreflect.Message
- func (x *GetScheduleNowResponse) Reset()
- func (x *GetScheduleNowResponse) String() string
- type GetScheduleNowResponse_Course
- func (*GetScheduleNowResponse_Course) Descriptor() ([]byte, []int)deprecated
- func (x *GetScheduleNowResponse_Course) GetClassroom() string
- func (x *GetScheduleNowResponse_Course) GetCourseName() string
- func (x *GetScheduleNowResponse_Course) GetDuration() string
- func (x *GetScheduleNowResponse_Course) GetEndSection() int32
- func (x *GetScheduleNowResponse_Course) GetEndTime() string
- func (x *GetScheduleNowResponse_Course) GetStartSection() int32
- func (x *GetScheduleNowResponse_Course) GetStartTime() string
- func (x *GetScheduleNowResponse_Course) GetTeacher() string
- func (*GetScheduleNowResponse_Course) ProtoMessage()
- func (x *GetScheduleNowResponse_Course) ProtoReflect() protoreflect.Message
- func (x *GetScheduleNowResponse_Course) Reset()
- func (x *GetScheduleNowResponse_Course) String() string
- type GetScheduleNowResponse_Data
- func (*GetScheduleNowResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *GetScheduleNowResponse_Data) GetToday() []*GetScheduleNowResponse_Course
- func (x *GetScheduleNowResponse_Data) GetTomorrow() []*GetScheduleNowResponse_Course
- func (*GetScheduleNowResponse_Data) ProtoMessage()
- func (x *GetScheduleNowResponse_Data) ProtoReflect() protoreflect.Message
- func (x *GetScheduleNowResponse_Data) Reset()
- func (x *GetScheduleNowResponse_Data) String() string
- type GetScheduleNowV2Response
- func (*GetScheduleNowV2Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetScheduleNowV2Response) GetData() *GetScheduleNowV2Response_Data
- func (x *GetScheduleNowV2Response) GetError() int32
- func (x *GetScheduleNowV2Response) GetMsg() string
- func (*GetScheduleNowV2Response) ProtoMessage()
- func (x *GetScheduleNowV2Response) ProtoReflect() protoreflect.Message
- func (x *GetScheduleNowV2Response) Reset()
- func (x *GetScheduleNowV2Response) String() string
- type GetScheduleNowV2Response_Data
- func (*GetScheduleNowV2Response_Data) Descriptor() ([]byte, []int)deprecated
- func (x *GetScheduleNowV2Response_Data) GetHasCourseRecently() bool
- func (x *GetScheduleNowV2Response_Data) GetToday() []*ScheduleResponseCourse
- func (x *GetScheduleNowV2Response_Data) GetTomorrow() []*ScheduleResponseCourse
- func (*GetScheduleNowV2Response_Data) ProtoMessage()
- func (x *GetScheduleNowV2Response_Data) ProtoReflect() protoreflect.Message
- func (x *GetScheduleNowV2Response_Data) Reset()
- func (x *GetScheduleNowV2Response_Data) String() string
- type GetScheduleNowV3Response
- func (*GetScheduleNowV3Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetScheduleNowV3Response) GetData() []*GetScheduleNowV3Response_Data
- func (x *GetScheduleNowV3Response) GetError() int32
- func (x *GetScheduleNowV3Response) GetMsg() string
- func (*GetScheduleNowV3Response) ProtoMessage()
- func (x *GetScheduleNowV3Response) ProtoReflect() protoreflect.Message
- func (x *GetScheduleNowV3Response) Reset()
- func (x *GetScheduleNowV3Response) String() string
- type GetScheduleNowV3Response_Data
- func (*GetScheduleNowV3Response_Data) Descriptor() ([]byte, []int)deprecated
- func (x *GetScheduleNowV3Response_Data) GetClasses() []*GetScheduleNowResponse_Course
- func (x *GetScheduleNowV3Response_Data) GetDate() string
- func (x *GetScheduleNowV3Response_Data) GetWeekday() string
- func (*GetScheduleNowV3Response_Data) ProtoMessage()
- func (x *GetScheduleNowV3Response_Data) ProtoReflect() protoreflect.Message
- func (x *GetScheduleNowV3Response_Data) Reset()
- func (x *GetScheduleNowV3Response_Data) String() string
- type GetScheduleRequest
- func (*GetScheduleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetScheduleRequest) GetSchoolYear() string
- func (x *GetScheduleRequest) GetSemester() string
- func (x *GetScheduleRequest) GetTimestamp() int32
- func (x *GetScheduleRequest) GetWeek() int32
- func (x *GetScheduleRequest) GetWeekday() int32
- func (*GetScheduleRequest) ProtoMessage()
- func (x *GetScheduleRequest) ProtoReflect() protoreflect.Message
- func (x *GetScheduleRequest) Reset()
- func (x *GetScheduleRequest) String() string
- type GetScheduleResponse
- func (*GetScheduleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetScheduleResponse) GetData() []*ScheduleResponseCourse
- func (x *GetScheduleResponse) GetError() int32
- func (x *GetScheduleResponse) GetMsg() string
- func (*GetScheduleResponse) ProtoMessage()
- func (x *GetScheduleResponse) ProtoReflect() protoreflect.Message
- func (x *GetScheduleResponse) Reset()
- func (x *GetScheduleResponse) String() string
- type GetUnusedClassroomsRequest
- func (*GetUnusedClassroomsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUnusedClassroomsRequest) GetBuildingID() string
- func (x *GetUnusedClassroomsRequest) GetSchoolYear() string
- func (x *GetUnusedClassroomsRequest) GetSection() int32
- func (x *GetUnusedClassroomsRequest) GetSemester() string
- func (x *GetUnusedClassroomsRequest) GetWeek() int32
- func (x *GetUnusedClassroomsRequest) GetWeekday() int32
- func (*GetUnusedClassroomsRequest) ProtoMessage()
- func (x *GetUnusedClassroomsRequest) ProtoReflect() protoreflect.Message
- func (x *GetUnusedClassroomsRequest) Reset()
- func (x *GetUnusedClassroomsRequest) String() string
- type GetUnusedClassroomsResponse
- func (*GetUnusedClassroomsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUnusedClassroomsResponse) GetData() []*Classroom
- func (x *GetUnusedClassroomsResponse) GetError() int32
- func (x *GetUnusedClassroomsResponse) GetMsg() string
- func (*GetUnusedClassroomsResponse) ProtoMessage()
- func (x *GetUnusedClassroomsResponse) ProtoReflect() protoreflect.Message
- func (x *GetUnusedClassroomsResponse) Reset()
- func (x *GetUnusedClassroomsResponse) String() string
- type GlobalSchedule
- func (*GlobalSchedule) Descriptor() ([]byte, []int)deprecated
- func (x *GlobalSchedule) GetClassroom() string
- func (x *GlobalSchedule) GetCourseName() string
- func (x *GlobalSchedule) GetSections() []int32
- func (x *GlobalSchedule) GetStaffId() string
- func (x *GlobalSchedule) GetStaffName() string
- func (x *GlobalSchedule) GetTeacherId() string
- func (x *GlobalSchedule) GetTeacherName() string
- func (x *GlobalSchedule) GetWeekday() int32
- func (x *GlobalSchedule) GetWeeks() []int32
- func (*GlobalSchedule) ProtoMessage()
- func (x *GlobalSchedule) ProtoReflect() protoreflect.Message
- func (x *GlobalSchedule) Reset()
- func (x *GlobalSchedule) String() string
- type OptionShowMember
- type Queryable
- type RemainFunc
- type Schedule
- func (*Schedule) Descriptor() ([]byte, []int)deprecated
- func (x *Schedule) GetItems() map[string]*ScheduleItem
- func (x *Schedule) MarshalJSON() ([]byte, error)
- func (*Schedule) ProtoMessage()
- func (x *Schedule) ProtoReflect() protoreflect.Message
- func (x *Schedule) Reset()
- func (x *Schedule) String() string
- func (x *Schedule) UnmarshalJSON(bytes []byte) error
- type ScheduleItem
- func (x *ScheduleItem) AddMember(optionable ShowMemberOptionable, r ScheduleReader)
- func (x *ScheduleItem) AddStudent(r ScheduleReader)
- func (x *ScheduleItem) AddTeacher(r ScheduleReader)
- func (*ScheduleItem) Descriptor() ([]byte, []int)deprecated
- func (schedule *ScheduleItem) EndSection() int
- func (x *ScheduleItem) GetCommit() string
- func (x *ScheduleItem) GetEndTime() int64
- func (x *ScheduleItem) GetIsThisWeek() bool
- func (x *ScheduleItem) GetLocation() string
- func (x *ScheduleItem) GetSeatsNum() int32
- func (x *ScheduleItem) GetSection() []int32
- func (x *ScheduleItem) GetStartTime() int64
- func (x *ScheduleItem) GetStudents() *staff.InfoMapList
- func (x *ScheduleItem) GetTeachers() *staff.InfoMapList
- func (x *ScheduleItem) GetWeek() []int32
- func (x *ScheduleItem) GetWeekDay() int32
- func (x *ScheduleItem) InitMember()
- func (*ScheduleItem) ProtoMessage()
- func (x *ScheduleItem) ProtoReflect() protoreflect.Message
- func (x *ScheduleItem) Reset()
- func (schedule *ScheduleItem) StartSection() int
- func (x *ScheduleItem) String() string
- func (x *ScheduleItem) ToScheduleResponseCourse_Schedule() *ScheduleResponseCourse_ScheduleInfo
- type ScheduleItems
- type ScheduleLess
- type ScheduleReader
- type ScheduleResponseCourse
- func (*ScheduleResponseCourse) Descriptor() ([]byte, []int)deprecated
- func (x *ScheduleResponseCourse) GetClassID() string
- func (x *ScheduleResponseCourse) GetClassName() string
- func (x *ScheduleResponseCourse) GetClassTime() string
- func (x *ScheduleResponseCourse) GetCourseID() string
- func (x *ScheduleResponseCourse) GetCourseName() string
- func (x *ScheduleResponseCourse) GetCredit() string
- func (x *ScheduleResponseCourse) GetSchedule() []*ScheduleResponseCourse_ScheduleInfo
- func (x *ScheduleResponseCourse) GetSchoolYear() string
- func (x *ScheduleResponseCourse) GetSemester() int32
- func (*ScheduleResponseCourse) ProtoMessage()
- func (x *ScheduleResponseCourse) ProtoReflect() protoreflect.Message
- func (x *ScheduleResponseCourse) Reset()
- func (x *ScheduleResponseCourse) String() string
- type ScheduleResponseCourse_ScheduleInfo
- func (*ScheduleResponseCourse_ScheduleInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ScheduleResponseCourse_ScheduleInfo) GetEndTime() int64
- func (x *ScheduleResponseCourse_ScheduleInfo) GetIsThisWeek() bool
- func (x *ScheduleResponseCourse_ScheduleInfo) GetLocation() string
- func (x *ScheduleResponseCourse_ScheduleInfo) GetSeatsNum() int32
- func (x *ScheduleResponseCourse_ScheduleInfo) GetSection() []int32
- func (x *ScheduleResponseCourse_ScheduleInfo) GetStartTime() int64
- func (x *ScheduleResponseCourse_ScheduleInfo) GetStudents() []*ScheduleResponseCourse_StaffInfo
- func (x *ScheduleResponseCourse_ScheduleInfo) GetTeachers() []*ScheduleResponseCourse_StaffInfo
- func (x *ScheduleResponseCourse_ScheduleInfo) GetWeek() []int32
- func (x *ScheduleResponseCourse_ScheduleInfo) GetWeekDay() int32
- func (*ScheduleResponseCourse_ScheduleInfo) ProtoMessage()
- func (x *ScheduleResponseCourse_ScheduleInfo) ProtoReflect() protoreflect.Message
- func (x *ScheduleResponseCourse_ScheduleInfo) Reset()
- func (x *ScheduleResponseCourse_ScheduleInfo) String() string
- type ScheduleResponseCourse_StaffInfo
- func (*ScheduleResponseCourse_StaffInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ScheduleResponseCourse_StaffInfo) GetStaffID() string
- func (x *ScheduleResponseCourse_StaffInfo) GetStaffName() string
- func (x *ScheduleResponseCourse_StaffInfo) GetStaffType() int32
- func (*ScheduleResponseCourse_StaffInfo) ProtoMessage()
- func (x *ScheduleResponseCourse_StaffInfo) ProtoReflect() protoreflect.Message
- func (x *ScheduleResponseCourse_StaffInfo) Reset()
- func (x *ScheduleResponseCourse_StaffInfo) String() string
- type ShowMemberOptionable
- type StaffInfo
- func (*StaffInfo) Descriptor() ([]byte, []int)deprecated
- func (x *StaffInfo) GetCommit() string
- func (x *StaffInfo) GetStaffID() string
- func (x *StaffInfo) GetStaffName() string
- func (*StaffInfo) ProtoMessage()
- func (x *StaffInfo) ProtoReflect() protoreflect.Message
- func (x *StaffInfo) Reset()
- func (x *StaffInfo) String() string
- type Students
- type Teachers
- type TeachingServiceClient
- type TeachingServiceServer
- type UnimplementedTeachingServiceServer
- func (UnimplementedTeachingServiceServer) ClassQueryFavGet(context.Context, *emptypb.Empty) (*ClassQueryFavGetResponse, error)
- func (UnimplementedTeachingServiceServer) ClassQueryFavRank(context.Context, *emptypb.Empty) (*ClassQueryFavRankResponse, error)
- func (UnimplementedTeachingServiceServer) ClassQueryFavSet(context.Context, *ClassQueryFavSetRequest) (*ClassQueryFavSetResponse, error)
- func (UnimplementedTeachingServiceServer) ClassQueryGet(context.Context, *ClassQueryGetRequest) (*ClassQueryGetResponse, error)
- func (UnimplementedTeachingServiceServer) ClassQueryMap(context.Context, *emptypb.Empty) (*ClassQueryMapResponse, error)
- func (UnimplementedTeachingServiceServer) ClassQuerySearch(context.Context, *ClassQuerySearchRequest) (*ClassQuerySearchResponse, error)
- func (UnimplementedTeachingServiceServer) GetClassDetail(context.Context, *GetClassDetailRequest) (*GetClassDetailResponse, error)
- func (UnimplementedTeachingServiceServer) GetClassroomUsages(context.Context, *GetClassroomUsagesRequest) (*GetClassroomUsagesResponse, error)
- func (UnimplementedTeachingServiceServer) GetClassrooms(context.Context, *GetClassroomsRequest) (*GetClassroomsResponse, error)
- func (UnimplementedTeachingServiceServer) GetGlobalSchedule(context.Context, *GetGlobalScheduleRequest) (*GetGlobalScheduleResponse, error)
- func (UnimplementedTeachingServiceServer) GetSchedule(context.Context, *GetScheduleRequest) (*GetScheduleResponse, error)
- func (UnimplementedTeachingServiceServer) GetScheduleNow(context.Context, *emptypb.Empty) (*GetScheduleNowResponse, error)
- func (UnimplementedTeachingServiceServer) GetScheduleNowV2(context.Context, *emptypb.Empty) (*GetScheduleNowV2Response, error)
- func (UnimplementedTeachingServiceServer) GetScheduleNowV3(context.Context, *emptypb.Empty) (*GetScheduleNowV3Response, error)
- func (UnimplementedTeachingServiceServer) GetUnusedClassrooms(context.Context, *GetUnusedClassroomsRequest) (*GetUnusedClassroomsResponse, error)
- type UnsafeTeachingServiceServer
Constants ¶
const ( TeachingService_GetSchedule_FullMethodName = "/campusapis.teaching.v1.TeachingService/GetSchedule" TeachingService_GetScheduleNow_FullMethodName = "/campusapis.teaching.v1.TeachingService/GetScheduleNow" TeachingService_GetScheduleNowV2_FullMethodName = "/campusapis.teaching.v1.TeachingService/GetScheduleNowV2" TeachingService_GetScheduleNowV3_FullMethodName = "/campusapis.teaching.v1.TeachingService/GetScheduleNowV3" TeachingService_GetGlobalSchedule_FullMethodName = "/campusapis.teaching.v1.TeachingService/GetGlobalSchedule" TeachingService_GetClassDetail_FullMethodName = "/campusapis.teaching.v1.TeachingService/GetClassDetail" TeachingService_GetClassrooms_FullMethodName = "/campusapis.teaching.v1.TeachingService/GetClassrooms" TeachingService_GetClassroomUsages_FullMethodName = "/campusapis.teaching.v1.TeachingService/GetClassroomUsages" TeachingService_GetUnusedClassrooms_FullMethodName = "/campusapis.teaching.v1.TeachingService/GetUnusedClassrooms" TeachingService_ClassQuerySearch_FullMethodName = "/campusapis.teaching.v1.TeachingService/ClassQuerySearch" TeachingService_ClassQueryMap_FullMethodName = "/campusapis.teaching.v1.TeachingService/ClassQueryMap" TeachingService_ClassQueryFavSet_FullMethodName = "/campusapis.teaching.v1.TeachingService/ClassQueryFavSet" TeachingService_ClassQueryFavGet_FullMethodName = "/campusapis.teaching.v1.TeachingService/ClassQueryFavGet" TeachingService_ClassQueryGet_FullMethodName = "/campusapis.teaching.v1.TeachingService/ClassQueryGet" TeachingService_ClassQueryFavRank_FullMethodName = "/campusapis.teaching.v1.TeachingService/ClassQueryFavRank" )
Variables ¶
var CourseItemsLessByStartTime = func(c CourseItems, i, j int) bool {
return c[i].minStartTime() < c[j].minStartTime()
}
var DefaultCourseItemsLess = func(c CourseItems, i, j int) bool {
return c[i].CourseID < c[j].CourseID
}
var DefaultScheduleItemsLess = func(c ScheduleItems, i, j int) bool {
return c[i].WeekDay < c[j].WeekDay
}
var File_campusapis_teaching_v1_teaching_proto protoreflect.FileDescriptor
var ScheduleItemsLessByStartTime = func(c ScheduleItems, i, j int) bool {
return c[i].StartTime < c[j].StartTime
}
var TeachingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "campusapis.teaching.v1.TeachingService", HandlerType: (*TeachingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSchedule", Handler: _TeachingService_GetSchedule_Handler, }, { MethodName: "GetScheduleNow", Handler: _TeachingService_GetScheduleNow_Handler, }, { MethodName: "GetScheduleNowV2", Handler: _TeachingService_GetScheduleNowV2_Handler, }, { MethodName: "GetScheduleNowV3", Handler: _TeachingService_GetScheduleNowV3_Handler, }, { MethodName: "GetGlobalSchedule", Handler: _TeachingService_GetGlobalSchedule_Handler, }, { MethodName: "GetClassDetail", Handler: _TeachingService_GetClassDetail_Handler, }, { MethodName: "GetClassrooms", Handler: _TeachingService_GetClassrooms_Handler, }, { MethodName: "GetClassroomUsages", Handler: _TeachingService_GetClassroomUsages_Handler, }, { MethodName: "GetUnusedClassrooms", Handler: _TeachingService_GetUnusedClassrooms_Handler, }, { MethodName: "ClassQuerySearch", Handler: _TeachingService_ClassQuerySearch_Handler, }, { MethodName: "ClassQueryMap", Handler: _TeachingService_ClassQueryMap_Handler, }, { MethodName: "ClassQueryFavSet", Handler: _TeachingService_ClassQueryFavSet_Handler, }, { MethodName: "ClassQueryFavGet", Handler: _TeachingService_ClassQueryFavGet_Handler, }, { MethodName: "ClassQueryGet", Handler: _TeachingService_ClassQueryGet_Handler, }, { MethodName: "ClassQueryFavRank", Handler: _TeachingService_ClassQueryFavRank_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "campusapis/teaching/v1/teaching.proto", }
TeachingService_ServiceDesc is the grpc.ServiceDesc for TeachingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func DefaultSort ¶
func DefaultSort(s1, s2 *ScheduleItem) bool
func FirstOfArray ¶
func LastOfArray ¶
func RegisterTeachingServiceHandler ¶
func RegisterTeachingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTeachingServiceHandler registers the http handlers for service TeachingService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTeachingServiceHandlerClient ¶
func RegisterTeachingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TeachingServiceClient) error
RegisterTeachingServiceHandlerClient registers the http handlers for service TeachingService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TeachingServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TeachingServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TeachingServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterTeachingServiceHandlerFromEndpoint ¶
func RegisterTeachingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTeachingServiceHandlerFromEndpoint is same as RegisterTeachingServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTeachingServiceHandlerServer ¶
func RegisterTeachingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TeachingServiceServer) error
RegisterTeachingServiceHandlerServer registers the http handlers for service TeachingService to "mux". UnaryRPC :call TeachingServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTeachingServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterTeachingServiceServer ¶
func RegisterTeachingServiceServer(s grpc.ServiceRegistrar, srv TeachingServiceServer)
func SetCourseItemLess ¶
func SetCourseItemLess(less func(c CourseItems, i, j int) bool)
func SetScheduleItemLess ¶
func SetScheduleItemLess(less func(c ScheduleItems, i, j int) bool)
Types ¶
type ClassDetail ¶
type ClassDetail struct { // 班级号 ClassID string `protobuf:"bytes,1,opt,name=classID,proto3" json:"classID,omitempty"` // 班级名 ClassName string `protobuf:"bytes,2,opt,name=className,proto3" json:"className,omitempty"` // 课程号 CourseID string `protobuf:"bytes,3,opt,name=courseID,proto3" json:"courseID,omitempty"` // 课程名 CourseName string `protobuf:"bytes,4,opt,name=courseName,proto3" json:"courseName,omitempty"` // 学生列表 StudentID []string `protobuf:"bytes,5,rep,name=studentID,proto3" json:"studentID,omitempty"` // 教师列表 TeacherID []string `protobuf:"bytes,6,rep,name=teacherID,proto3" json:"teacherID,omitempty"` // contains filtered or unexported fields }
GetClassDetailResponse 班级信息查询返回体
func (*ClassDetail) Descriptor
deprecated
func (*ClassDetail) Descriptor() ([]byte, []int)
Deprecated: Use ClassDetail.ProtoReflect.Descriptor instead.
func (*ClassDetail) GetClassID ¶
func (x *ClassDetail) GetClassID() string
func (*ClassDetail) GetClassName ¶
func (x *ClassDetail) GetClassName() string
func (*ClassDetail) GetCourseID ¶
func (x *ClassDetail) GetCourseID() string
func (*ClassDetail) GetCourseName ¶
func (x *ClassDetail) GetCourseName() string
func (*ClassDetail) GetStudentID ¶
func (x *ClassDetail) GetStudentID() []string
func (*ClassDetail) GetTeacherID ¶
func (x *ClassDetail) GetTeacherID() []string
func (*ClassDetail) ProtoMessage ¶
func (*ClassDetail) ProtoMessage()
func (*ClassDetail) ProtoReflect ¶
func (x *ClassDetail) ProtoReflect() protoreflect.Message
func (*ClassDetail) Reset ¶
func (x *ClassDetail) Reset()
func (*ClassDetail) String ¶
func (x *ClassDetail) String() string
type ClassQueryFavGetResponse ¶
type ClassQueryFavGetResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data []string `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // 班级ID列表 // contains filtered or unexported fields }
func (*ClassQueryFavGetResponse) Descriptor
deprecated
func (*ClassQueryFavGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClassQueryFavGetResponse.ProtoReflect.Descriptor instead.
func (*ClassQueryFavGetResponse) GetData ¶
func (x *ClassQueryFavGetResponse) GetData() []string
func (*ClassQueryFavGetResponse) GetError ¶
func (x *ClassQueryFavGetResponse) GetError() int32
func (*ClassQueryFavGetResponse) GetMsg ¶
func (x *ClassQueryFavGetResponse) GetMsg() string
func (*ClassQueryFavGetResponse) ProtoMessage ¶
func (*ClassQueryFavGetResponse) ProtoMessage()
func (*ClassQueryFavGetResponse) ProtoReflect ¶
func (x *ClassQueryFavGetResponse) ProtoReflect() protoreflect.Message
func (*ClassQueryFavGetResponse) Reset ¶
func (x *ClassQueryFavGetResponse) Reset()
func (*ClassQueryFavGetResponse) String ¶
func (x *ClassQueryFavGetResponse) String() string
type ClassQueryFavRankResponse ¶
type ClassQueryFavRankResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data []string `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // 班级ID列表 // contains filtered or unexported fields }
func (*ClassQueryFavRankResponse) Descriptor
deprecated
func (*ClassQueryFavRankResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClassQueryFavRankResponse.ProtoReflect.Descriptor instead.
func (*ClassQueryFavRankResponse) GetData ¶
func (x *ClassQueryFavRankResponse) GetData() []string
func (*ClassQueryFavRankResponse) GetError ¶
func (x *ClassQueryFavRankResponse) GetError() int32
func (*ClassQueryFavRankResponse) GetMsg ¶
func (x *ClassQueryFavRankResponse) GetMsg() string
func (*ClassQueryFavRankResponse) ProtoMessage ¶
func (*ClassQueryFavRankResponse) ProtoMessage()
func (*ClassQueryFavRankResponse) ProtoReflect ¶
func (x *ClassQueryFavRankResponse) ProtoReflect() protoreflect.Message
func (*ClassQueryFavRankResponse) Reset ¶
func (x *ClassQueryFavRankResponse) Reset()
func (*ClassQueryFavRankResponse) String ¶
func (x *ClassQueryFavRankResponse) String() string
type ClassQueryFavSetRequest ¶
type ClassQueryFavSetRequest struct { Classes []string `protobuf:"bytes,1,rep,name=classes,proto3" json:"classes,omitempty"` // 班级ID列表 // contains filtered or unexported fields }
func (*ClassQueryFavSetRequest) Descriptor
deprecated
func (*ClassQueryFavSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClassQueryFavSetRequest.ProtoReflect.Descriptor instead.
func (*ClassQueryFavSetRequest) GetClasses ¶
func (x *ClassQueryFavSetRequest) GetClasses() []string
func (*ClassQueryFavSetRequest) ProtoMessage ¶
func (*ClassQueryFavSetRequest) ProtoMessage()
func (*ClassQueryFavSetRequest) ProtoReflect ¶
func (x *ClassQueryFavSetRequest) ProtoReflect() protoreflect.Message
func (*ClassQueryFavSetRequest) Reset ¶
func (x *ClassQueryFavSetRequest) Reset()
func (*ClassQueryFavSetRequest) String ¶
func (x *ClassQueryFavSetRequest) String() string
type ClassQueryFavSetResponse ¶
type ClassQueryFavSetResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*ClassQueryFavSetResponse) Descriptor
deprecated
func (*ClassQueryFavSetResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClassQueryFavSetResponse.ProtoReflect.Descriptor instead.
func (*ClassQueryFavSetResponse) GetError ¶
func (x *ClassQueryFavSetResponse) GetError() int32
func (*ClassQueryFavSetResponse) GetMsg ¶
func (x *ClassQueryFavSetResponse) GetMsg() string
func (*ClassQueryFavSetResponse) ProtoMessage ¶
func (*ClassQueryFavSetResponse) ProtoMessage()
func (*ClassQueryFavSetResponse) ProtoReflect ¶
func (x *ClassQueryFavSetResponse) ProtoReflect() protoreflect.Message
func (*ClassQueryFavSetResponse) Reset ¶
func (x *ClassQueryFavSetResponse) Reset()
func (*ClassQueryFavSetResponse) String ¶
func (x *ClassQueryFavSetResponse) String() string
type ClassQueryGetRequest ¶
type ClassQueryGetRequest struct { Classes []string `protobuf:"bytes,1,rep,name=classes,proto3" json:"classes,omitempty"` // 班级ID // contains filtered or unexported fields }
func (*ClassQueryGetRequest) Descriptor
deprecated
func (*ClassQueryGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClassQueryGetRequest.ProtoReflect.Descriptor instead.
func (*ClassQueryGetRequest) GetClasses ¶
func (x *ClassQueryGetRequest) GetClasses() []string
func (*ClassQueryGetRequest) ProtoMessage ¶
func (*ClassQueryGetRequest) ProtoMessage()
func (*ClassQueryGetRequest) ProtoReflect ¶
func (x *ClassQueryGetRequest) ProtoReflect() protoreflect.Message
func (*ClassQueryGetRequest) Reset ¶
func (x *ClassQueryGetRequest) Reset()
func (*ClassQueryGetRequest) String ¶
func (x *ClassQueryGetRequest) String() string
type ClassQueryGetResponse ¶
type ClassQueryGetResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *ClassQueryInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // 课程信息 // contains filtered or unexported fields }
func (*ClassQueryGetResponse) Descriptor
deprecated
func (*ClassQueryGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClassQueryGetResponse.ProtoReflect.Descriptor instead.
func (*ClassQueryGetResponse) GetData ¶
func (x *ClassQueryGetResponse) GetData() *ClassQueryInfo
func (*ClassQueryGetResponse) GetError ¶
func (x *ClassQueryGetResponse) GetError() int32
func (*ClassQueryGetResponse) GetMsg ¶
func (x *ClassQueryGetResponse) GetMsg() string
func (*ClassQueryGetResponse) ProtoMessage ¶
func (*ClassQueryGetResponse) ProtoMessage()
func (*ClassQueryGetResponse) ProtoReflect ¶
func (x *ClassQueryGetResponse) ProtoReflect() protoreflect.Message
func (*ClassQueryGetResponse) Reset ¶
func (x *ClassQueryGetResponse) Reset()
func (*ClassQueryGetResponse) String ¶
func (x *ClassQueryGetResponse) String() string
type ClassQueryInfo ¶
type ClassQueryInfo struct { ClassLast int64 `protobuf:"varint,1,opt,name=classLast,proto3" json:"classLast,omitempty"` // 上次课程同步成功时间戳 ClassLatest bool `protobuf:"varint,2,opt,name=classLatest,proto3" json:"classLatest,omitempty"` // 课程是否为最新同步数据 NumLast int64 `protobuf:"varint,3,opt,name=numLast,proto3" json:"numLast,omitempty"` // 上次课程人数同步成功时间戳 NumLatest bool `protobuf:"varint,4,opt,name=numLatest,proto3" json:"numLatest,omitempty"` // 课程人数是否为最新同步数据 Classes []*ClassQuerySearchClass `protobuf:"bytes,5,rep,name=classes,proto3" json:"classes,omitempty"` // contains filtered or unexported fields }
func (*ClassQueryInfo) Descriptor
deprecated
func (*ClassQueryInfo) Descriptor() ([]byte, []int)
Deprecated: Use ClassQueryInfo.ProtoReflect.Descriptor instead.
func (*ClassQueryInfo) GetClassLast ¶
func (x *ClassQueryInfo) GetClassLast() int64
func (*ClassQueryInfo) GetClassLatest ¶
func (x *ClassQueryInfo) GetClassLatest() bool
func (*ClassQueryInfo) GetClasses ¶
func (x *ClassQueryInfo) GetClasses() []*ClassQuerySearchClass
func (*ClassQueryInfo) GetNumLast ¶
func (x *ClassQueryInfo) GetNumLast() int64
func (*ClassQueryInfo) GetNumLatest ¶
func (x *ClassQueryInfo) GetNumLatest() bool
func (*ClassQueryInfo) ProtoMessage ¶
func (*ClassQueryInfo) ProtoMessage()
func (*ClassQueryInfo) ProtoReflect ¶
func (x *ClassQueryInfo) ProtoReflect() protoreflect.Message
func (*ClassQueryInfo) Reset ¶
func (x *ClassQueryInfo) Reset()
func (*ClassQueryInfo) String ¶
func (x *ClassQueryInfo) String() string
type ClassQueryMapResponse ¶
type ClassQueryMapResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // 映射表JSON字符串 // contains filtered or unexported fields }
func (*ClassQueryMapResponse) Descriptor
deprecated
func (*ClassQueryMapResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClassQueryMapResponse.ProtoReflect.Descriptor instead.
func (*ClassQueryMapResponse) GetData ¶
func (x *ClassQueryMapResponse) GetData() string
func (*ClassQueryMapResponse) GetError ¶
func (x *ClassQueryMapResponse) GetError() int32
func (*ClassQueryMapResponse) GetMsg ¶
func (x *ClassQueryMapResponse) GetMsg() string
func (*ClassQueryMapResponse) ProtoMessage ¶
func (*ClassQueryMapResponse) ProtoMessage()
func (*ClassQueryMapResponse) ProtoReflect ¶
func (x *ClassQueryMapResponse) ProtoReflect() protoreflect.Message
func (*ClassQueryMapResponse) Reset ¶
func (x *ClassQueryMapResponse) Reset()
func (*ClassQueryMapResponse) String ¶
func (x *ClassQueryMapResponse) String() string
type ClassQuerySearchClass ¶
type ClassQuerySearchClass struct { CourseID string `protobuf:"bytes,1,opt,name=courseID,proto3" json:"courseID,omitempty"` // 课程ID CourseName string `protobuf:"bytes,2,opt,name=courseName,proto3" json:"courseName,omitempty"` // 课程名称 CourseNature string `protobuf:"bytes,3,opt,name=courseNature,proto3" json:"courseNature,omitempty"` // 课程性质 ClassID string `protobuf:"bytes,4,opt,name=classID,proto3" json:"classID,omitempty"` // 班级ID ClassName string `protobuf:"bytes,5,opt,name=className,proto3" json:"className,omitempty"` // 班级名称 CampusID string `protobuf:"bytes,6,opt,name=campusID,proto3" json:"campusID,omitempty"` // 校区ID,需要映射 ClassTime string `protobuf:"bytes,7,opt,name=classTime,proto3" json:"classTime,omitempty"` // 上课时间 Location string `protobuf:"bytes,8,opt,name=location,proto3" json:"location,omitempty"` // 上课地点 TeachingMethodID string `protobuf:"bytes,9,opt,name=teachingMethodID,proto3" json:"teachingMethodID,omitempty"` // 考试方式,需要映射 TeachingModel string `protobuf:"bytes,10,opt,name=teachingModel,proto3" json:"teachingModel,omitempty"` // 教学模式,需要映射 TeacherName string `protobuf:"bytes,11,opt,name=teacherName,proto3" json:"teacherName,omitempty"` // 教师姓名 Credit string `protobuf:"bytes,12,opt,name=credit,proto3" json:"credit,omitempty"` // 学分 UnitName string `protobuf:"bytes,13,opt,name=unitName,proto3" json:"unitName,omitempty"` // 开设学院名称 ExaminationMethod string `protobuf:"bytes,14,opt,name=examinationMethod,proto3" json:"examinationMethod,omitempty"` // 考核方式,需要映射 ClassList string `protobuf:"bytes,15,opt,name=classList,proto3" json:"classList,omitempty"` // 班级列表 SelectedStatus string `protobuf:"bytes,16,opt,name=selectedStatus,proto3" json:"selectedStatus,omitempty"` // 选课情况(人数信息) Remark string `protobuf:"bytes,17,opt,name=remark,proto3" json:"remark,omitempty"` // 备注 // contains filtered or unexported fields }
func (*ClassQuerySearchClass) Descriptor
deprecated
func (*ClassQuerySearchClass) Descriptor() ([]byte, []int)
Deprecated: Use ClassQuerySearchClass.ProtoReflect.Descriptor instead.
func (*ClassQuerySearchClass) GetCampusID ¶
func (x *ClassQuerySearchClass) GetCampusID() string
func (*ClassQuerySearchClass) GetClassID ¶
func (x *ClassQuerySearchClass) GetClassID() string
func (*ClassQuerySearchClass) GetClassList ¶
func (x *ClassQuerySearchClass) GetClassList() string
func (*ClassQuerySearchClass) GetClassName ¶
func (x *ClassQuerySearchClass) GetClassName() string
func (*ClassQuerySearchClass) GetClassTime ¶
func (x *ClassQuerySearchClass) GetClassTime() string
func (*ClassQuerySearchClass) GetCourseID ¶
func (x *ClassQuerySearchClass) GetCourseID() string
func (*ClassQuerySearchClass) GetCourseName ¶
func (x *ClassQuerySearchClass) GetCourseName() string
func (*ClassQuerySearchClass) GetCourseNature ¶
func (x *ClassQuerySearchClass) GetCourseNature() string
func (*ClassQuerySearchClass) GetCredit ¶
func (x *ClassQuerySearchClass) GetCredit() string
func (*ClassQuerySearchClass) GetExaminationMethod ¶
func (x *ClassQuerySearchClass) GetExaminationMethod() string
func (*ClassQuerySearchClass) GetLocation ¶
func (x *ClassQuerySearchClass) GetLocation() string
func (*ClassQuerySearchClass) GetRemark ¶
func (x *ClassQuerySearchClass) GetRemark() string
func (*ClassQuerySearchClass) GetSelectedStatus ¶
func (x *ClassQuerySearchClass) GetSelectedStatus() string
func (*ClassQuerySearchClass) GetTeacherName ¶
func (x *ClassQuerySearchClass) GetTeacherName() string
func (*ClassQuerySearchClass) GetTeachingMethodID ¶
func (x *ClassQuerySearchClass) GetTeachingMethodID() string
func (*ClassQuerySearchClass) GetTeachingModel ¶
func (x *ClassQuerySearchClass) GetTeachingModel() string
func (*ClassQuerySearchClass) GetUnitName ¶
func (x *ClassQuerySearchClass) GetUnitName() string
func (*ClassQuerySearchClass) ProtoMessage ¶
func (*ClassQuerySearchClass) ProtoMessage()
func (*ClassQuerySearchClass) ProtoReflect ¶
func (x *ClassQuerySearchClass) ProtoReflect() protoreflect.Message
func (*ClassQuerySearchClass) Reset ¶
func (x *ClassQuerySearchClass) Reset()
func (*ClassQuerySearchClass) String ¶
func (x *ClassQuerySearchClass) String() string
type ClassQuerySearchRequest ¶
type ClassQuerySearchRequest struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` // 查询字符串 From int32 `protobuf:"varint,2,opt,name=from,proto3" json:"from,omitempty"` // 从0开始 Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` // 不大于20 // contains filtered or unexported fields }
func (*ClassQuerySearchRequest) Descriptor
deprecated
func (*ClassQuerySearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClassQuerySearchRequest.ProtoReflect.Descriptor instead.
func (*ClassQuerySearchRequest) GetFrom ¶
func (x *ClassQuerySearchRequest) GetFrom() int32
func (*ClassQuerySearchRequest) GetQuery ¶
func (x *ClassQuerySearchRequest) GetQuery() string
func (*ClassQuerySearchRequest) GetSize ¶
func (x *ClassQuerySearchRequest) GetSize() int32
func (*ClassQuerySearchRequest) ProtoMessage ¶
func (*ClassQuerySearchRequest) ProtoMessage()
func (*ClassQuerySearchRequest) ProtoReflect ¶
func (x *ClassQuerySearchRequest) ProtoReflect() protoreflect.Message
func (*ClassQuerySearchRequest) Reset ¶
func (x *ClassQuerySearchRequest) Reset()
func (*ClassQuerySearchRequest) String ¶
func (x *ClassQuerySearchRequest) String() string
type ClassQuerySearchResponse ¶
type ClassQuerySearchResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *ClassQueryInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ClassQuerySearchResponse) Descriptor
deprecated
func (*ClassQuerySearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClassQuerySearchResponse.ProtoReflect.Descriptor instead.
func (*ClassQuerySearchResponse) GetData ¶
func (x *ClassQuerySearchResponse) GetData() *ClassQueryInfo
func (*ClassQuerySearchResponse) GetError ¶
func (x *ClassQuerySearchResponse) GetError() int32
func (*ClassQuerySearchResponse) GetMsg ¶
func (x *ClassQuerySearchResponse) GetMsg() string
func (*ClassQuerySearchResponse) ProtoMessage ¶
func (*ClassQuerySearchResponse) ProtoMessage()
func (*ClassQuerySearchResponse) ProtoReflect ¶
func (x *ClassQuerySearchResponse) ProtoReflect() protoreflect.Message
func (*ClassQuerySearchResponse) Reset ¶
func (x *ClassQuerySearchResponse) Reset()
func (*ClassQuerySearchResponse) String ¶
func (x *ClassQuerySearchResponse) String() string
type Classroom ¶
type Classroom struct { // 学期 Semester int32 `protobuf:"varint,1,opt,name=semester,proto3" json:"semester,omitempty"` // 学年 SchoolYear string `protobuf:"bytes,2,opt,name=schoolYear,proto3" json:"schoolYear,omitempty"` // 教室ID LocationID string `protobuf:"bytes,3,opt,name=locationID,proto3" json:"locationID,omitempty"` // 教室名字 LocationName string `protobuf:"bytes,4,opt,name=locationName,proto3" json:"locationName,omitempty"` // 教学楼ID BuildingID string `protobuf:"bytes,5,opt,name=buildingID,proto3" json:"buildingID,omitempty"` // 教学楼名字 BuildingName string `protobuf:"bytes,6,opt,name=buildingName,proto3" json:"buildingName,omitempty"` // 是否被使用 Available bool `protobuf:"varint,7,opt,name=available,proto3" json:"available,omitempty"` // 是否自习室 SelfStudy bool `protobuf:"varint,8,opt,name=selfStudy,proto3" json:"selfStudy,omitempty"` // contains filtered or unexported fields }
教室信息
func (*Classroom) Descriptor
deprecated
func (*Classroom) GetAvailable ¶
func (*Classroom) GetBuildingID ¶
func (*Classroom) GetBuildingName ¶
func (*Classroom) GetLocationID ¶
func (*Classroom) GetLocationName ¶
func (*Classroom) GetSchoolYear ¶
func (*Classroom) GetSelfStudy ¶
func (*Classroom) GetSemester ¶
func (*Classroom) ProtoMessage ¶
func (*Classroom) ProtoMessage()
func (*Classroom) ProtoReflect ¶
func (x *Classroom) ProtoReflect() protoreflect.Message
type ClassroomUsage ¶
type ClassroomUsage struct { // 教室信息 Classroom *Classroom `protobuf:"bytes,1,opt,name=classroom,proto3" json:"classroom,omitempty"` // 星期 Weekday int32 `protobuf:"varint,2,opt,name=weekday,proto3" json:"weekday,omitempty"` // 周次列表 Week []int32 `protobuf:"varint,3,rep,packed,name=week,proto3" json:"week,omitempty"` // 节次列表 Section []int32 `protobuf:"varint,4,rep,packed,name=Section,proto3" json:"Section,omitempty"` // 课程内部ID ClassID string `protobuf:"bytes,5,opt,name=ClassID,proto3" json:"ClassID,omitempty"` // 课程号 CourseCode string `protobuf:"bytes,6,opt,name=CourseCode,proto3" json:"CourseCode,omitempty"` // 课程名 CourseName string `protobuf:"bytes,7,opt,name=CourseName,proto3" json:"CourseName,omitempty"` // contains filtered or unexported fields }
教室使用情况
func (*ClassroomUsage) Descriptor
deprecated
func (*ClassroomUsage) Descriptor() ([]byte, []int)
Deprecated: Use ClassroomUsage.ProtoReflect.Descriptor instead.
func (*ClassroomUsage) GetClassID ¶
func (x *ClassroomUsage) GetClassID() string
func (*ClassroomUsage) GetClassroom ¶
func (x *ClassroomUsage) GetClassroom() *Classroom
func (*ClassroomUsage) GetCourseCode ¶
func (x *ClassroomUsage) GetCourseCode() string
func (*ClassroomUsage) GetCourseName ¶
func (x *ClassroomUsage) GetCourseName() string
func (*ClassroomUsage) GetSection ¶
func (x *ClassroomUsage) GetSection() []int32
func (*ClassroomUsage) GetWeek ¶
func (x *ClassroomUsage) GetWeek() []int32
func (*ClassroomUsage) GetWeekday ¶
func (x *ClassroomUsage) GetWeekday() int32
func (*ClassroomUsage) ProtoMessage ¶
func (*ClassroomUsage) ProtoMessage()
func (*ClassroomUsage) ProtoReflect ¶
func (x *ClassroomUsage) ProtoReflect() protoreflect.Message
func (*ClassroomUsage) Reset ¶
func (x *ClassroomUsage) Reset()
func (*ClassroomUsage) String ¶
func (x *ClassroomUsage) String() string
type CourseItem ¶
type CourseItem struct { // 课程内部ID ClassID string `protobuf:"bytes,1,opt,name=ClassID,proto3" json:"ClassID,omitempty"` // 选课号 ClassName string `protobuf:"bytes,2,opt,name=ClassName,proto3" json:"ClassName,omitempty"` // 课程代码 CourseID string `protobuf:"bytes,3,opt,name=CourseID,proto3" json:"CourseID,omitempty"` // 课程中文名 CourseName string `protobuf:"bytes,4,opt,name=CourseName,proto3" json:"CourseName,omitempty"` // 上课时间中文,如: 星期一第6-7节{1-2周};星期一第6-7节{3-17周} ClassTime string `protobuf:"bytes,5,opt,name=ClassTime,proto3" json:"ClassTime,omitempty"` // 学分 Credit string `protobuf:"bytes,6,opt,name=Credit,proto3" json:"Credit,omitempty"` // 学年 SchoolYear *schoolTime.SchoolYear `protobuf:"bytes,7,opt,name=SchoolYear,proto3" json:"SchoolYear,omitempty"` // 学期 Semester *schoolTime.Semester `protobuf:"bytes,8,opt,name=Semester,proto3" json:"Semester,omitempty"` // 排课详情 Schedule *Schedule `protobuf:"bytes,9,opt,name=Schedule,proto3" json:"Schedule,omitempty"` // contains filtered or unexported fields }
课程信息
func (*CourseItem) AddSchedule ¶
func (x *CourseItem) AddSchedule(timeable schoolTime.Timeable, optionable ShowMemberOptionable, r ScheduleReader)
AddSchedule 添加课表
func (*CourseItem) Descriptor
deprecated
func (*CourseItem) Descriptor() ([]byte, []int)
Deprecated: Use CourseItem.ProtoReflect.Descriptor instead.
func (*CourseItem) GetClassID ¶
func (x *CourseItem) GetClassID() string
func (*CourseItem) GetClassName ¶
func (x *CourseItem) GetClassName() string
func (*CourseItem) GetClassTime ¶
func (x *CourseItem) GetClassTime() string
func (*CourseItem) GetCourseID ¶
func (x *CourseItem) GetCourseID() string
func (*CourseItem) GetCourseName ¶
func (x *CourseItem) GetCourseName() string
func (*CourseItem) GetCredit ¶
func (x *CourseItem) GetCredit() string
func (*CourseItem) GetSchedule ¶
func (x *CourseItem) GetSchedule() *Schedule
func (*CourseItem) GetScheduleResponseCourse_Schedule ¶
func (x *CourseItem) GetScheduleResponseCourse_Schedule() (list []*ScheduleResponseCourse_ScheduleInfo)
func (*CourseItem) GetSchoolYear ¶
func (x *CourseItem) GetSchoolYear() *schoolTime.SchoolYear
func (*CourseItem) GetSemester ¶
func (x *CourseItem) GetSemester() *schoolTime.Semester
func (*CourseItem) ProtoMessage ¶
func (*CourseItem) ProtoMessage()
func (*CourseItem) ProtoReflect ¶
func (x *CourseItem) ProtoReflect() protoreflect.Message
func (*CourseItem) Reset ¶
func (x *CourseItem) Reset()
func (*CourseItem) String ¶
func (x *CourseItem) String() string
func (*CourseItem) ToScheduleResponseCourse ¶
func (x *CourseItem) ToScheduleResponseCourse() *ScheduleResponseCourse
type CourseItems ¶
type CourseItems []*CourseItem
func (CourseItems) ToGetScheduleResponse ¶
func (i CourseItems) ToGetScheduleResponse() (list []*ScheduleResponseCourse)
type CourseQuery ¶
type CourseQuery struct { QueryStaff *staff.Staff Queries []Queryable *schoolTime.SchoolDate Courses CourseReaders // contains filtered or unexported fields }
func NewCourseQuery ¶
func NewCourseQuery(staff *staff.Staff, st *schoolTime.SchoolDate, q ...Queryable) *CourseQuery
func (*CourseQuery) GetCourses ¶
func (q *CourseQuery) GetCourses() (*CourseQuery, error)
func (CourseQuery) GetOptionShowMemberOption ¶
func (q CourseQuery) GetOptionShowMemberOption() OptionShowMember
type CourseReader ¶
type CourseReader interface { // CourseID 课程ID CourseID() string CourseInfo() *CourseItem ScheduleReader() ScheduleReader GlobalSchedule() *GlobalSchedule }
type CourseReaders ¶
type CourseReaders []CourseReader
func (CourseReaders) ToTeachingV1Courses ¶
func (readers CourseReaders) ToTeachingV1Courses(timeable schoolTime.Timeable, optionable ShowMemberOptionable) (courses *Courses)
func (CourseReaders) ToTeachingV1GlobalSchedule ¶
func (readers CourseReaders) ToTeachingV1GlobalSchedule() (courses []*GlobalSchedule)
type Courses ¶
type Courses struct { // 课程 map, ClassID -> 课程信息 Items map[string]*CourseItem `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
课程列表
func (*Courses) Descriptor
deprecated
func (*Courses) FilterBySchedule ¶
func (courses *Courses) FilterBySchedule(remains ...RemainFunc) *Courses
FilterBySchedule 根据 Schedule 的属性判断函数过滤符合要求的课表
func (*Courses) GetItems ¶
func (x *Courses) GetItems() map[string]*CourseItem
func (*Courses) GetScheduleResponseCourse ¶
func (x *Courses) GetScheduleResponseCourse() (list []*ScheduleResponseCourse)
func (*Courses) Iterator ¶
func (courses *Courses) Iterator(less ScheduleLess) func() (courseName string, schedule *ScheduleItem, ok bool)
Iterator 遍历课表,返回课程名,ScheduleItem,可自定义排序方法 用法详见 test
func (*Courses) MarshalJSON ¶
func (*Courses) ProtoMessage ¶
func (*Courses) ProtoMessage()
func (*Courses) ProtoReflect ¶
func (x *Courses) ProtoReflect() protoreflect.Message
func (*Courses) ToGetScheduleResponse ¶
func (x *Courses) ToGetScheduleResponse() *GetScheduleResponse
func (*Courses) UnmarshalJSON ¶
type CoursesCustomLess ¶
type CoursesCustomLess struct { *Courses Less func(c CourseItems, i, j int) bool }
func (*CoursesCustomLess) MarshalJSON ¶
func (x *CoursesCustomLess) MarshalJSON() ([]byte, error)
type GetClassDetailRequest ¶
type GetClassDetailRequest struct { // 班级号 ClassID string `protobuf:"bytes,1,opt,name=classID,proto3" json:"classID,omitempty"` // contains filtered or unexported fields }
GetClassDetailRequest 班级信息查询关键字
func (*GetClassDetailRequest) Descriptor
deprecated
func (*GetClassDetailRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetClassDetailRequest.ProtoReflect.Descriptor instead.
func (*GetClassDetailRequest) GetClassID ¶
func (x *GetClassDetailRequest) GetClassID() string
func (*GetClassDetailRequest) ProtoMessage ¶
func (*GetClassDetailRequest) ProtoMessage()
func (*GetClassDetailRequest) ProtoReflect ¶
func (x *GetClassDetailRequest) ProtoReflect() protoreflect.Message
func (*GetClassDetailRequest) Reset ¶
func (x *GetClassDetailRequest) Reset()
func (*GetClassDetailRequest) String ¶
func (x *GetClassDetailRequest) String() string
type GetClassDetailResponse ¶
type GetClassDetailResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // 教室列表 Data *ClassDetail `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetClassDetailResponse) Descriptor
deprecated
func (*GetClassDetailResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetClassDetailResponse.ProtoReflect.Descriptor instead.
func (*GetClassDetailResponse) GetData ¶
func (x *GetClassDetailResponse) GetData() *ClassDetail
func (*GetClassDetailResponse) GetError ¶
func (x *GetClassDetailResponse) GetError() int32
func (*GetClassDetailResponse) GetMsg ¶
func (x *GetClassDetailResponse) GetMsg() string
func (*GetClassDetailResponse) ProtoMessage ¶
func (*GetClassDetailResponse) ProtoMessage()
func (*GetClassDetailResponse) ProtoReflect ¶
func (x *GetClassDetailResponse) ProtoReflect() protoreflect.Message
func (*GetClassDetailResponse) Reset ¶
func (x *GetClassDetailResponse) Reset()
func (*GetClassDetailResponse) String ¶
func (x *GetClassDetailResponse) String() string
type GetClassroomUsagesRequest ¶
type GetClassroomUsagesRequest struct { // 学期 Semester string `protobuf:"bytes,1,opt,name=semester,proto3" json:"semester,omitempty"` // 学年 SchoolYear string `protobuf:"bytes,2,opt,name=schoolYear,proto3" json:"schoolYear,omitempty"` // 教室ID LocationID string `protobuf:"bytes,3,opt,name=locationID,proto3" json:"locationID,omitempty"` // contains filtered or unexported fields }
func (*GetClassroomUsagesRequest) Descriptor
deprecated
func (*GetClassroomUsagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetClassroomUsagesRequest.ProtoReflect.Descriptor instead.
func (*GetClassroomUsagesRequest) GetLocationID ¶
func (x *GetClassroomUsagesRequest) GetLocationID() string
func (*GetClassroomUsagesRequest) GetSchoolYear ¶
func (x *GetClassroomUsagesRequest) GetSchoolYear() string
func (*GetClassroomUsagesRequest) GetSemester ¶
func (x *GetClassroomUsagesRequest) GetSemester() string
func (*GetClassroomUsagesRequest) ProtoMessage ¶
func (*GetClassroomUsagesRequest) ProtoMessage()
func (*GetClassroomUsagesRequest) ProtoReflect ¶
func (x *GetClassroomUsagesRequest) ProtoReflect() protoreflect.Message
func (*GetClassroomUsagesRequest) Reset ¶
func (x *GetClassroomUsagesRequest) Reset()
func (*GetClassroomUsagesRequest) String ¶
func (x *GetClassroomUsagesRequest) String() string
type GetClassroomUsagesResponse ¶
type GetClassroomUsagesResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // 教室使用情况列表 Data []*ClassroomUsage `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
GetClassroomUsagesResponse 教室使用情况返回体
func (*GetClassroomUsagesResponse) Descriptor
deprecated
func (*GetClassroomUsagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetClassroomUsagesResponse.ProtoReflect.Descriptor instead.
func (*GetClassroomUsagesResponse) GetData ¶
func (x *GetClassroomUsagesResponse) GetData() []*ClassroomUsage
func (*GetClassroomUsagesResponse) GetError ¶
func (x *GetClassroomUsagesResponse) GetError() int32
func (*GetClassroomUsagesResponse) GetMsg ¶
func (x *GetClassroomUsagesResponse) GetMsg() string
func (*GetClassroomUsagesResponse) ProtoMessage ¶
func (*GetClassroomUsagesResponse) ProtoMessage()
func (*GetClassroomUsagesResponse) ProtoReflect ¶
func (x *GetClassroomUsagesResponse) ProtoReflect() protoreflect.Message
func (*GetClassroomUsagesResponse) Reset ¶
func (x *GetClassroomUsagesResponse) Reset()
func (*GetClassroomUsagesResponse) String ¶
func (x *GetClassroomUsagesResponse) String() string
type GetClassroomsRequest ¶
type GetClassroomsRequest struct { // 学年 SchoolYear string `protobuf:"bytes,1,opt,name=schoolYear,proto3" json:"schoolYear,omitempty"` // 学期 Semester string `protobuf:"bytes,2,opt,name=semester,proto3" json:"semester,omitempty"` // contains filtered or unexported fields }
GetClassroomsRequest 教室列表查询关键字
func (*GetClassroomsRequest) Descriptor
deprecated
func (*GetClassroomsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetClassroomsRequest.ProtoReflect.Descriptor instead.
func (*GetClassroomsRequest) GetSchoolYear ¶
func (x *GetClassroomsRequest) GetSchoolYear() string
func (*GetClassroomsRequest) GetSemester ¶
func (x *GetClassroomsRequest) GetSemester() string
func (*GetClassroomsRequest) ProtoMessage ¶
func (*GetClassroomsRequest) ProtoMessage()
func (*GetClassroomsRequest) ProtoReflect ¶
func (x *GetClassroomsRequest) ProtoReflect() protoreflect.Message
func (*GetClassroomsRequest) Reset ¶
func (x *GetClassroomsRequest) Reset()
func (*GetClassroomsRequest) String ¶
func (x *GetClassroomsRequest) String() string
type GetClassroomsResponse ¶
type GetClassroomsResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // 教室列表 Data []*Classroom `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetClassroomsResponse) Descriptor
deprecated
func (*GetClassroomsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetClassroomsResponse.ProtoReflect.Descriptor instead.
func (*GetClassroomsResponse) GetData ¶
func (x *GetClassroomsResponse) GetData() []*Classroom
func (*GetClassroomsResponse) GetError ¶
func (x *GetClassroomsResponse) GetError() int32
func (*GetClassroomsResponse) GetMsg ¶
func (x *GetClassroomsResponse) GetMsg() string
func (*GetClassroomsResponse) ProtoMessage ¶
func (*GetClassroomsResponse) ProtoMessage()
func (*GetClassroomsResponse) ProtoReflect ¶
func (x *GetClassroomsResponse) ProtoReflect() protoreflect.Message
func (*GetClassroomsResponse) Reset ¶
func (x *GetClassroomsResponse) Reset()
func (*GetClassroomsResponse) String ¶
func (x *GetClassroomsResponse) String() string
type GetGlobalScheduleRequest ¶
type GetGlobalScheduleRequest struct { // 周次 Week int32 `protobuf:"varint,1,opt,name=week,proto3" json:"week,omitempty"` // 星期 Weekday int32 `protobuf:"varint,2,opt,name=weekday,proto3" json:"weekday,omitempty"` // contains filtered or unexported fields }
GetGlobalScheduleRequest 全局课表请求体
func (*GetGlobalScheduleRequest) Descriptor
deprecated
func (*GetGlobalScheduleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGlobalScheduleRequest.ProtoReflect.Descriptor instead.
func (*GetGlobalScheduleRequest) GetWeek ¶
func (x *GetGlobalScheduleRequest) GetWeek() int32
func (*GetGlobalScheduleRequest) GetWeekday ¶
func (x *GetGlobalScheduleRequest) GetWeekday() int32
func (*GetGlobalScheduleRequest) ProtoMessage ¶
func (*GetGlobalScheduleRequest) ProtoMessage()
func (*GetGlobalScheduleRequest) ProtoReflect ¶
func (x *GetGlobalScheduleRequest) ProtoReflect() protoreflect.Message
func (*GetGlobalScheduleRequest) Reset ¶
func (x *GetGlobalScheduleRequest) Reset()
func (*GetGlobalScheduleRequest) String ¶
func (x *GetGlobalScheduleRequest) String() string
type GetGlobalScheduleResponse ¶
type GetGlobalScheduleResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data []*GlobalSchedule `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
GetGlobalScheduleResponse 全局课表返回体
func (*GetGlobalScheduleResponse) Descriptor
deprecated
func (*GetGlobalScheduleResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetGlobalScheduleResponse.ProtoReflect.Descriptor instead.
func (*GetGlobalScheduleResponse) GetData ¶
func (x *GetGlobalScheduleResponse) GetData() []*GlobalSchedule
func (*GetGlobalScheduleResponse) GetError ¶
func (x *GetGlobalScheduleResponse) GetError() int32
func (*GetGlobalScheduleResponse) GetMsg ¶
func (x *GetGlobalScheduleResponse) GetMsg() string
func (*GetGlobalScheduleResponse) ProtoMessage ¶
func (*GetGlobalScheduleResponse) ProtoMessage()
func (*GetGlobalScheduleResponse) ProtoReflect ¶
func (x *GetGlobalScheduleResponse) ProtoReflect() protoreflect.Message
func (*GetGlobalScheduleResponse) Reset ¶
func (x *GetGlobalScheduleResponse) Reset()
func (*GetGlobalScheduleResponse) String ¶
func (x *GetGlobalScheduleResponse) String() string
type GetScheduleNowResponse ¶
type GetScheduleNowResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *GetScheduleNowResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
GetScheduleNowResponse 今天,明天课表信息返回体
func (*GetScheduleNowResponse) Descriptor
deprecated
func (*GetScheduleNowResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetScheduleNowResponse.ProtoReflect.Descriptor instead.
func (*GetScheduleNowResponse) GetData ¶
func (x *GetScheduleNowResponse) GetData() *GetScheduleNowResponse_Data
func (*GetScheduleNowResponse) GetError ¶
func (x *GetScheduleNowResponse) GetError() int32
func (*GetScheduleNowResponse) GetMsg ¶
func (x *GetScheduleNowResponse) GetMsg() string
func (*GetScheduleNowResponse) ProtoMessage ¶
func (*GetScheduleNowResponse) ProtoMessage()
func (*GetScheduleNowResponse) ProtoReflect ¶
func (x *GetScheduleNowResponse) ProtoReflect() protoreflect.Message
func (*GetScheduleNowResponse) Reset ¶
func (x *GetScheduleNowResponse) Reset()
func (*GetScheduleNowResponse) String ¶
func (x *GetScheduleNowResponse) String() string
type GetScheduleNowResponse_Course ¶
type GetScheduleNowResponse_Course struct { // 开始节次 StartSection int32 `protobuf:"varint,1,opt,name=start_section,json=startSection,proto3" json:"start_section,omitempty"` // 结束节次 EndSection int32 `protobuf:"varint,2,opt,name=end_section,json=endSection,proto3" json:"end_section,omitempty"` // 上课时间 StartTime string `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // 下课时间 EndTime string `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // 课程名 CourseName string `protobuf:"bytes,5,opt,name=course_name,json=courseName,proto3" json:"course_name,omitempty"` // 教室 Classroom string `protobuf:"bytes,6,opt,name=classroom,proto3" json:"classroom,omitempty"` // 老师 Teacher string `protobuf:"bytes,7,opt,name=teacher,proto3" json:"teacher,omitempty"` // 时长 Duration string `protobuf:"bytes,8,opt,name=duration,proto3" json:"duration,omitempty"` // contains filtered or unexported fields }
课表
func (*GetScheduleNowResponse_Course) Descriptor
deprecated
func (*GetScheduleNowResponse_Course) Descriptor() ([]byte, []int)
Deprecated: Use GetScheduleNowResponse_Course.ProtoReflect.Descriptor instead.
func (*GetScheduleNowResponse_Course) GetClassroom ¶
func (x *GetScheduleNowResponse_Course) GetClassroom() string
func (*GetScheduleNowResponse_Course) GetCourseName ¶
func (x *GetScheduleNowResponse_Course) GetCourseName() string
func (*GetScheduleNowResponse_Course) GetDuration ¶
func (x *GetScheduleNowResponse_Course) GetDuration() string
func (*GetScheduleNowResponse_Course) GetEndSection ¶
func (x *GetScheduleNowResponse_Course) GetEndSection() int32
func (*GetScheduleNowResponse_Course) GetEndTime ¶
func (x *GetScheduleNowResponse_Course) GetEndTime() string
func (*GetScheduleNowResponse_Course) GetStartSection ¶
func (x *GetScheduleNowResponse_Course) GetStartSection() int32
func (*GetScheduleNowResponse_Course) GetStartTime ¶
func (x *GetScheduleNowResponse_Course) GetStartTime() string
func (*GetScheduleNowResponse_Course) GetTeacher ¶
func (x *GetScheduleNowResponse_Course) GetTeacher() string
func (*GetScheduleNowResponse_Course) ProtoMessage ¶
func (*GetScheduleNowResponse_Course) ProtoMessage()
func (*GetScheduleNowResponse_Course) ProtoReflect ¶
func (x *GetScheduleNowResponse_Course) ProtoReflect() protoreflect.Message
func (*GetScheduleNowResponse_Course) Reset ¶
func (x *GetScheduleNowResponse_Course) Reset()
func (*GetScheduleNowResponse_Course) String ¶
func (x *GetScheduleNowResponse_Course) String() string
type GetScheduleNowResponse_Data ¶
type GetScheduleNowResponse_Data struct { // 今天课表 Today []*GetScheduleNowResponse_Course `protobuf:"bytes,1,rep,name=today,proto3" json:"today,omitempty"` // 明天课表 Tomorrow []*GetScheduleNowResponse_Course `protobuf:"bytes,2,rep,name=tomorrow,proto3" json:"tomorrow,omitempty"` // contains filtered or unexported fields }
func (*GetScheduleNowResponse_Data) Descriptor
deprecated
func (*GetScheduleNowResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use GetScheduleNowResponse_Data.ProtoReflect.Descriptor instead.
func (*GetScheduleNowResponse_Data) GetToday ¶
func (x *GetScheduleNowResponse_Data) GetToday() []*GetScheduleNowResponse_Course
func (*GetScheduleNowResponse_Data) GetTomorrow ¶
func (x *GetScheduleNowResponse_Data) GetTomorrow() []*GetScheduleNowResponse_Course
func (*GetScheduleNowResponse_Data) ProtoMessage ¶
func (*GetScheduleNowResponse_Data) ProtoMessage()
func (*GetScheduleNowResponse_Data) ProtoReflect ¶
func (x *GetScheduleNowResponse_Data) ProtoReflect() protoreflect.Message
func (*GetScheduleNowResponse_Data) Reset ¶
func (x *GetScheduleNowResponse_Data) Reset()
func (*GetScheduleNowResponse_Data) String ¶
func (x *GetScheduleNowResponse_Data) String() string
type GetScheduleNowV2Response ¶
type GetScheduleNowV2Response struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *GetScheduleNowV2Response_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
GetScheduleNowV2Response 今天,明天课表信息返回体
func (*GetScheduleNowV2Response) Descriptor
deprecated
func (*GetScheduleNowV2Response) Descriptor() ([]byte, []int)
Deprecated: Use GetScheduleNowV2Response.ProtoReflect.Descriptor instead.
func (*GetScheduleNowV2Response) GetData ¶
func (x *GetScheduleNowV2Response) GetData() *GetScheduleNowV2Response_Data
func (*GetScheduleNowV2Response) GetError ¶
func (x *GetScheduleNowV2Response) GetError() int32
func (*GetScheduleNowV2Response) GetMsg ¶
func (x *GetScheduleNowV2Response) GetMsg() string
func (*GetScheduleNowV2Response) ProtoMessage ¶
func (*GetScheduleNowV2Response) ProtoMessage()
func (*GetScheduleNowV2Response) ProtoReflect ¶
func (x *GetScheduleNowV2Response) ProtoReflect() protoreflect.Message
func (*GetScheduleNowV2Response) Reset ¶
func (x *GetScheduleNowV2Response) Reset()
func (*GetScheduleNowV2Response) String ¶
func (x *GetScheduleNowV2Response) String() string
type GetScheduleNowV2Response_Data ¶
type GetScheduleNowV2Response_Data struct { // 今天的课表 Today []*ScheduleResponseCourse `protobuf:"bytes,1,rep,name=Today,proto3" json:"Today,omitempty"` // 明天的课表 Tomorrow []*ScheduleResponseCourse `protobuf:"bytes,2,rep,name=Tomorrow,proto3" json:"Tomorrow,omitempty"` // 近期有无课程 HasCourseRecently bool `protobuf:"varint,3,opt,name=HasCourseRecently,proto3" json:"HasCourseRecently,omitempty"` // contains filtered or unexported fields }
func (*GetScheduleNowV2Response_Data) Descriptor
deprecated
func (*GetScheduleNowV2Response_Data) Descriptor() ([]byte, []int)
Deprecated: Use GetScheduleNowV2Response_Data.ProtoReflect.Descriptor instead.
func (*GetScheduleNowV2Response_Data) GetHasCourseRecently ¶
func (x *GetScheduleNowV2Response_Data) GetHasCourseRecently() bool
func (*GetScheduleNowV2Response_Data) GetToday ¶
func (x *GetScheduleNowV2Response_Data) GetToday() []*ScheduleResponseCourse
func (*GetScheduleNowV2Response_Data) GetTomorrow ¶
func (x *GetScheduleNowV2Response_Data) GetTomorrow() []*ScheduleResponseCourse
func (*GetScheduleNowV2Response_Data) ProtoMessage ¶
func (*GetScheduleNowV2Response_Data) ProtoMessage()
func (*GetScheduleNowV2Response_Data) ProtoReflect ¶
func (x *GetScheduleNowV2Response_Data) ProtoReflect() protoreflect.Message
func (*GetScheduleNowV2Response_Data) Reset ¶
func (x *GetScheduleNowV2Response_Data) Reset()
func (*GetScheduleNowV2Response_Data) String ¶
func (x *GetScheduleNowV2Response_Data) String() string
type GetScheduleNowV3Response ¶
type GetScheduleNowV3Response struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data []*GetScheduleNowV3Response_Data `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
GetScheduleNowV3Response 未来n天课表信息返回体
func (*GetScheduleNowV3Response) Descriptor
deprecated
func (*GetScheduleNowV3Response) Descriptor() ([]byte, []int)
Deprecated: Use GetScheduleNowV3Response.ProtoReflect.Descriptor instead.
func (*GetScheduleNowV3Response) GetData ¶
func (x *GetScheduleNowV3Response) GetData() []*GetScheduleNowV3Response_Data
func (*GetScheduleNowV3Response) GetError ¶
func (x *GetScheduleNowV3Response) GetError() int32
func (*GetScheduleNowV3Response) GetMsg ¶
func (x *GetScheduleNowV3Response) GetMsg() string
func (*GetScheduleNowV3Response) ProtoMessage ¶
func (*GetScheduleNowV3Response) ProtoMessage()
func (*GetScheduleNowV3Response) ProtoReflect ¶
func (x *GetScheduleNowV3Response) ProtoReflect() protoreflect.Message
func (*GetScheduleNowV3Response) Reset ¶
func (x *GetScheduleNowV3Response) Reset()
func (*GetScheduleNowV3Response) String ¶
func (x *GetScheduleNowV3Response) String() string
type GetScheduleNowV3Response_Data ¶
type GetScheduleNowV3Response_Data struct { Date string `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` Weekday string `protobuf:"bytes,2,opt,name=weekday,proto3" json:"weekday,omitempty"` Classes []*GetScheduleNowResponse_Course `protobuf:"bytes,3,rep,name=classes,proto3" json:"classes,omitempty"` // contains filtered or unexported fields }
func (*GetScheduleNowV3Response_Data) Descriptor
deprecated
func (*GetScheduleNowV3Response_Data) Descriptor() ([]byte, []int)
Deprecated: Use GetScheduleNowV3Response_Data.ProtoReflect.Descriptor instead.
func (*GetScheduleNowV3Response_Data) GetClasses ¶
func (x *GetScheduleNowV3Response_Data) GetClasses() []*GetScheduleNowResponse_Course
func (*GetScheduleNowV3Response_Data) GetDate ¶
func (x *GetScheduleNowV3Response_Data) GetDate() string
func (*GetScheduleNowV3Response_Data) GetWeekday ¶
func (x *GetScheduleNowV3Response_Data) GetWeekday() string
func (*GetScheduleNowV3Response_Data) ProtoMessage ¶
func (*GetScheduleNowV3Response_Data) ProtoMessage()
func (*GetScheduleNowV3Response_Data) ProtoReflect ¶
func (x *GetScheduleNowV3Response_Data) ProtoReflect() protoreflect.Message
func (*GetScheduleNowV3Response_Data) Reset ¶
func (x *GetScheduleNowV3Response_Data) Reset()
func (*GetScheduleNowV3Response_Data) String ¶
func (x *GetScheduleNowV3Response_Data) String() string
type GetScheduleRequest ¶
type GetScheduleRequest struct { // 学期 Semester string `protobuf:"bytes,1,opt,name=semester,proto3" json:"semester,omitempty"` // 学年 支持多种格式 如:2019-2020 2019 SchoolYear string `protobuf:"bytes,2,opt,name=schoolYear,proto3" json:"schoolYear,omitempty"` // 时间戳 Timestamp int32 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // 周次 Week int32 `protobuf:"varint,4,opt,name=week,proto3" json:"week,omitempty"` // 星期几 Weekday int32 `protobuf:"varint,5,opt,name=weekday,proto3" json:"weekday,omitempty"` // contains filtered or unexported fields }
GetScheduleRequest 根据参数和预设优先级拼装查询日期 优先级: 1. 若含 时间戳: 根据时间戳查询,并标记时间戳所在周(研究生暂未支持) 2. 若含 学年、学期、周次:返回整个学期课表,并标记指定周(研究生暂未支持) 3. 若含 学年、学期: 返回整个学期课表 都不命中:返回当前时间所在周的课表,并标记当前周(研究生暂未支持)
func (*GetScheduleRequest) Descriptor
deprecated
func (*GetScheduleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetScheduleRequest.ProtoReflect.Descriptor instead.
func (*GetScheduleRequest) GetSchoolYear ¶
func (x *GetScheduleRequest) GetSchoolYear() string
func (*GetScheduleRequest) GetSemester ¶
func (x *GetScheduleRequest) GetSemester() string
func (*GetScheduleRequest) GetTimestamp ¶
func (x *GetScheduleRequest) GetTimestamp() int32
func (*GetScheduleRequest) GetWeek ¶
func (x *GetScheduleRequest) GetWeek() int32
func (*GetScheduleRequest) GetWeekday ¶
func (x *GetScheduleRequest) GetWeekday() int32
func (*GetScheduleRequest) ProtoMessage ¶
func (*GetScheduleRequest) ProtoMessage()
func (*GetScheduleRequest) ProtoReflect ¶
func (x *GetScheduleRequest) ProtoReflect() protoreflect.Message
func (*GetScheduleRequest) Reset ¶
func (x *GetScheduleRequest) Reset()
func (*GetScheduleRequest) String ¶
func (x *GetScheduleRequest) String() string
type GetScheduleResponse ¶
type GetScheduleResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data []*ScheduleResponseCourse `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
GetScheduleResponse 课表列表返回体
func (*GetScheduleResponse) Descriptor
deprecated
func (*GetScheduleResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetScheduleResponse.ProtoReflect.Descriptor instead.
func (*GetScheduleResponse) GetData ¶
func (x *GetScheduleResponse) GetData() []*ScheduleResponseCourse
func (*GetScheduleResponse) GetError ¶
func (x *GetScheduleResponse) GetError() int32
func (*GetScheduleResponse) GetMsg ¶
func (x *GetScheduleResponse) GetMsg() string
func (*GetScheduleResponse) ProtoMessage ¶
func (*GetScheduleResponse) ProtoMessage()
func (*GetScheduleResponse) ProtoReflect ¶
func (x *GetScheduleResponse) ProtoReflect() protoreflect.Message
func (*GetScheduleResponse) Reset ¶
func (x *GetScheduleResponse) Reset()
func (*GetScheduleResponse) String ¶
func (x *GetScheduleResponse) String() string
type GetUnusedClassroomsRequest ¶
type GetUnusedClassroomsRequest struct { // 学期 Semester string `protobuf:"bytes,1,opt,name=semester,proto3" json:"semester,omitempty"` // 学年 SchoolYear string `protobuf:"bytes,2,opt,name=schoolYear,proto3" json:"schoolYear,omitempty"` // 星期 Weekday int32 `protobuf:"varint,3,opt,name=weekday,proto3" json:"weekday,omitempty"` // 周次 Week int32 `protobuf:"varint,4,opt,name=week,proto3" json:"week,omitempty"` // 节次 Section int32 `protobuf:"varint,5,opt,name=section,proto3" json:"section,omitempty"` // 教学楼 BuildingID string `protobuf:"bytes,6,opt,name=buildingID,proto3" json:"buildingID,omitempty"` // contains filtered or unexported fields }
教室信息查询关键字
func (*GetUnusedClassroomsRequest) Descriptor
deprecated
func (*GetUnusedClassroomsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUnusedClassroomsRequest.ProtoReflect.Descriptor instead.
func (*GetUnusedClassroomsRequest) GetBuildingID ¶
func (x *GetUnusedClassroomsRequest) GetBuildingID() string
func (*GetUnusedClassroomsRequest) GetSchoolYear ¶
func (x *GetUnusedClassroomsRequest) GetSchoolYear() string
func (*GetUnusedClassroomsRequest) GetSection ¶
func (x *GetUnusedClassroomsRequest) GetSection() int32
func (*GetUnusedClassroomsRequest) GetSemester ¶
func (x *GetUnusedClassroomsRequest) GetSemester() string
func (*GetUnusedClassroomsRequest) GetWeek ¶
func (x *GetUnusedClassroomsRequest) GetWeek() int32
func (*GetUnusedClassroomsRequest) GetWeekday ¶
func (x *GetUnusedClassroomsRequest) GetWeekday() int32
func (*GetUnusedClassroomsRequest) ProtoMessage ¶
func (*GetUnusedClassroomsRequest) ProtoMessage()
func (*GetUnusedClassroomsRequest) ProtoReflect ¶
func (x *GetUnusedClassroomsRequest) ProtoReflect() protoreflect.Message
func (*GetUnusedClassroomsRequest) Reset ¶
func (x *GetUnusedClassroomsRequest) Reset()
func (*GetUnusedClassroomsRequest) String ¶
func (x *GetUnusedClassroomsRequest) String() string
type GetUnusedClassroomsResponse ¶
type GetUnusedClassroomsResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // 教室列表 Data []*Classroom `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetUnusedClassroomsResponse) Descriptor
deprecated
func (*GetUnusedClassroomsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUnusedClassroomsResponse.ProtoReflect.Descriptor instead.
func (*GetUnusedClassroomsResponse) GetData ¶
func (x *GetUnusedClassroomsResponse) GetData() []*Classroom
func (*GetUnusedClassroomsResponse) GetError ¶
func (x *GetUnusedClassroomsResponse) GetError() int32
func (*GetUnusedClassroomsResponse) GetMsg ¶
func (x *GetUnusedClassroomsResponse) GetMsg() string
func (*GetUnusedClassroomsResponse) ProtoMessage ¶
func (*GetUnusedClassroomsResponse) ProtoMessage()
func (*GetUnusedClassroomsResponse) ProtoReflect ¶
func (x *GetUnusedClassroomsResponse) ProtoReflect() protoreflect.Message
func (*GetUnusedClassroomsResponse) Reset ¶
func (x *GetUnusedClassroomsResponse) Reset()
func (*GetUnusedClassroomsResponse) String ¶
func (x *GetUnusedClassroomsResponse) String() string
type GlobalSchedule ¶
type GlobalSchedule struct { // 学号 StaffId string `protobuf:"bytes,1,opt,name=staff_id,json=staffId,proto3" json:"staff_id,omitempty"` // 姓名 StaffName string `protobuf:"bytes,2,opt,name=staff_name,json=staffName,proto3" json:"staff_name,omitempty"` // 节次数组, 升序 Sections []int32 `protobuf:"varint,3,rep,packed,name=sections,proto3" json:"sections,omitempty"` // 周次数组, 升序 Weeks []int32 `protobuf:"varint,4,rep,packed,name=weeks,proto3" json:"weeks,omitempty"` // 课程名 CourseName string `protobuf:"bytes,5,opt,name=course_name,json=courseName,proto3" json:"course_name,omitempty"` // 教室 Classroom string `protobuf:"bytes,6,opt,name=classroom,proto3" json:"classroom,omitempty"` // 老师 TeacherId string `protobuf:"bytes,7,opt,name=teacher_id,json=teacherId,proto3" json:"teacher_id,omitempty"` // 老师姓名 TeacherName string `protobuf:"bytes,8,opt,name=teacher_name,json=teacherName,proto3" json:"teacher_name,omitempty"` // 周几 Weekday int32 `protobuf:"varint,9,opt,name=weekday,proto3" json:"weekday,omitempty"` // contains filtered or unexported fields }
func (*GlobalSchedule) Descriptor
deprecated
func (*GlobalSchedule) Descriptor() ([]byte, []int)
Deprecated: Use GlobalSchedule.ProtoReflect.Descriptor instead.
func (*GlobalSchedule) GetClassroom ¶
func (x *GlobalSchedule) GetClassroom() string
func (*GlobalSchedule) GetCourseName ¶
func (x *GlobalSchedule) GetCourseName() string
func (*GlobalSchedule) GetSections ¶
func (x *GlobalSchedule) GetSections() []int32
func (*GlobalSchedule) GetStaffId ¶
func (x *GlobalSchedule) GetStaffId() string
func (*GlobalSchedule) GetStaffName ¶
func (x *GlobalSchedule) GetStaffName() string
func (*GlobalSchedule) GetTeacherId ¶
func (x *GlobalSchedule) GetTeacherId() string
func (*GlobalSchedule) GetTeacherName ¶
func (x *GlobalSchedule) GetTeacherName() string
func (*GlobalSchedule) GetWeekday ¶
func (x *GlobalSchedule) GetWeekday() int32
func (*GlobalSchedule) GetWeeks ¶
func (x *GlobalSchedule) GetWeeks() []int32
func (*GlobalSchedule) ProtoMessage ¶
func (*GlobalSchedule) ProtoMessage()
func (*GlobalSchedule) ProtoReflect ¶
func (x *GlobalSchedule) ProtoReflect() protoreflect.Message
func (*GlobalSchedule) Reset ¶
func (x *GlobalSchedule) Reset()
func (*GlobalSchedule) String ¶
func (x *GlobalSchedule) String() string
type OptionShowMember ¶
type OptionShowMember int32
const ( OptionShowMemberNone OptionShowMember = iota OptionShowMemberStudent OptionShowMemberTeacher OptionShowMemberAll )
type Queryable ¶
type Queryable interface {
GetCourses(ctx context.Context, staff *staff.Staff, semester *schoolTime.Semester, schoolYear *schoolTime.SchoolYear) ([]CourseReader, error)
}
type RemainFunc ¶
type RemainFunc func(s *ScheduleItem) bool
type Schedule ¶
type Schedule struct { // 排课 map, 排课ID -> 排课信息 Items map[string]*ScheduleItem `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
排课列表详情
func (*Schedule) Descriptor
deprecated
func (*Schedule) GetItems ¶
func (x *Schedule) GetItems() map[string]*ScheduleItem
func (*Schedule) MarshalJSON ¶
func (*Schedule) ProtoMessage ¶
func (*Schedule) ProtoMessage()
func (*Schedule) ProtoReflect ¶
func (x *Schedule) ProtoReflect() protoreflect.Message
func (*Schedule) UnmarshalJSON ¶
type ScheduleItem ¶
type ScheduleItem struct { // 周次列表 Week []int32 `protobuf:"varint,1,rep,packed,name=Week,proto3" json:"Week,omitempty"` // 星期 WeekDay int32 `protobuf:"varint,2,opt,name=WeekDay,proto3" json:"WeekDay,omitempty"` // 节次列表,升序 Section []int32 `protobuf:"varint,3,rep,packed,name=Section,proto3" json:"Section,omitempty"` // 是否本周 IsThisWeek bool `protobuf:"varint,4,opt,name=IsThisWeek,proto3" json:"IsThisWeek,omitempty"` // 上课时间 StartTime int64 `protobuf:"varint,5,opt,name=StartTime,proto3" json:"StartTime,omitempty"` // 下课时间 EndTime int64 `protobuf:"varint,6,opt,name=EndTime,proto3" json:"EndTime,omitempty"` // 老师列表 Teachers *staff.InfoMapList `protobuf:"bytes,7,opt,name=Teachers,proto3" json:"Teachers,omitempty"` // 学生列表 Students *staff.InfoMapList `protobuf:"bytes,8,opt,name=Students,proto3" json:"Students,omitempty"` // 上课地点 Location string `protobuf:"bytes,9,opt,name=Location,proto3" json:"Location,omitempty"` // 教室座位数 SeatsNum int32 `protobuf:"varint,10,opt,name=SeatsNum,proto3" json:"SeatsNum,omitempty"` // 备注 Commit string `protobuf:"bytes,11,opt,name=Commit,proto3" json:"Commit,omitempty"` // contains filtered or unexported fields }
排课信息
func (*ScheduleItem) AddMember ¶
func (x *ScheduleItem) AddMember(optionable ShowMemberOptionable, r ScheduleReader)
AddMember 添加课程人员
func (*ScheduleItem) AddStudent ¶
func (x *ScheduleItem) AddStudent(r ScheduleReader)
func (*ScheduleItem) AddTeacher ¶
func (x *ScheduleItem) AddTeacher(r ScheduleReader)
func (*ScheduleItem) Descriptor
deprecated
func (*ScheduleItem) Descriptor() ([]byte, []int)
Deprecated: Use ScheduleItem.ProtoReflect.Descriptor instead.
func (*ScheduleItem) EndSection ¶
func (schedule *ScheduleItem) EndSection() int
func (*ScheduleItem) GetCommit ¶
func (x *ScheduleItem) GetCommit() string
func (*ScheduleItem) GetEndTime ¶
func (x *ScheduleItem) GetEndTime() int64
func (*ScheduleItem) GetIsThisWeek ¶
func (x *ScheduleItem) GetIsThisWeek() bool
func (*ScheduleItem) GetLocation ¶
func (x *ScheduleItem) GetLocation() string
func (*ScheduleItem) GetSeatsNum ¶
func (x *ScheduleItem) GetSeatsNum() int32
func (*ScheduleItem) GetSection ¶
func (x *ScheduleItem) GetSection() []int32
func (*ScheduleItem) GetStartTime ¶
func (x *ScheduleItem) GetStartTime() int64
func (*ScheduleItem) GetStudents ¶
func (x *ScheduleItem) GetStudents() *staff.InfoMapList
func (*ScheduleItem) GetTeachers ¶
func (x *ScheduleItem) GetTeachers() *staff.InfoMapList
func (*ScheduleItem) GetWeek ¶
func (x *ScheduleItem) GetWeek() []int32
func (*ScheduleItem) GetWeekDay ¶
func (x *ScheduleItem) GetWeekDay() int32
func (*ScheduleItem) InitMember ¶
func (x *ScheduleItem) InitMember()
func (*ScheduleItem) ProtoMessage ¶
func (*ScheduleItem) ProtoMessage()
func (*ScheduleItem) ProtoReflect ¶
func (x *ScheduleItem) ProtoReflect() protoreflect.Message
func (*ScheduleItem) Reset ¶
func (x *ScheduleItem) Reset()
func (*ScheduleItem) StartSection ¶
func (schedule *ScheduleItem) StartSection() int
func (*ScheduleItem) String ¶
func (x *ScheduleItem) String() string
func (*ScheduleItem) ToScheduleResponseCourse_Schedule ¶
func (x *ScheduleItem) ToScheduleResponseCourse_Schedule() *ScheduleResponseCourse_ScheduleInfo
type ScheduleItems ¶
type ScheduleItems []*ScheduleItem
type ScheduleLess ¶
type ScheduleLess func(s1, s2 *ScheduleItem) bool
func Reverse ¶
func Reverse(less ScheduleLess) ScheduleLess
type ScheduleReader ¶
type ScheduleResponseCourse ¶
type ScheduleResponseCourse struct { // 课程内部ID ClassID string `protobuf:"bytes,1,opt,name=ClassID,proto3" json:"ClassID,omitempty"` // 选课号 ClassName string `protobuf:"bytes,2,opt,name=ClassName,proto3" json:"ClassName,omitempty"` // 上课时间中文,如: 星期一第6-7节{1-2周};星期一第6-7节{3-17周} ClassTime string `protobuf:"bytes,3,opt,name=ClassTime,proto3" json:"ClassTime,omitempty"` // 课程代码 CourseID string `protobuf:"bytes,4,opt,name=CourseID,proto3" json:"CourseID,omitempty"` // 课程中文名 CourseName string `protobuf:"bytes,5,opt,name=CourseName,proto3" json:"CourseName,omitempty"` // 学分 Credit string `protobuf:"bytes,6,opt,name=Credit,proto3" json:"Credit,omitempty"` // 此课程排课列表 Schedule []*ScheduleResponseCourse_ScheduleInfo `protobuf:"bytes,7,rep,name=Schedule,proto3" json:"Schedule,omitempty"` // 学年 SchoolYear string `protobuf:"bytes,8,opt,name=SchoolYear,proto3" json:"SchoolYear,omitempty"` // 学期 Semester int32 `protobuf:"varint,9,opt,name=Semester,proto3" json:"Semester,omitempty"` // contains filtered or unexported fields }
ScheduleResponseCourse 单课程返回体(如高等数学课)
func (*ScheduleResponseCourse) Descriptor
deprecated
func (*ScheduleResponseCourse) Descriptor() ([]byte, []int)
Deprecated: Use ScheduleResponseCourse.ProtoReflect.Descriptor instead.
func (*ScheduleResponseCourse) GetClassID ¶
func (x *ScheduleResponseCourse) GetClassID() string
func (*ScheduleResponseCourse) GetClassName ¶
func (x *ScheduleResponseCourse) GetClassName() string
func (*ScheduleResponseCourse) GetClassTime ¶
func (x *ScheduleResponseCourse) GetClassTime() string
func (*ScheduleResponseCourse) GetCourseID ¶
func (x *ScheduleResponseCourse) GetCourseID() string
func (*ScheduleResponseCourse) GetCourseName ¶
func (x *ScheduleResponseCourse) GetCourseName() string
func (*ScheduleResponseCourse) GetCredit ¶
func (x *ScheduleResponseCourse) GetCredit() string
func (*ScheduleResponseCourse) GetSchedule ¶
func (x *ScheduleResponseCourse) GetSchedule() []*ScheduleResponseCourse_ScheduleInfo
func (*ScheduleResponseCourse) GetSchoolYear ¶
func (x *ScheduleResponseCourse) GetSchoolYear() string
func (*ScheduleResponseCourse) GetSemester ¶
func (x *ScheduleResponseCourse) GetSemester() int32
func (*ScheduleResponseCourse) ProtoMessage ¶
func (*ScheduleResponseCourse) ProtoMessage()
func (*ScheduleResponseCourse) ProtoReflect ¶
func (x *ScheduleResponseCourse) ProtoReflect() protoreflect.Message
func (*ScheduleResponseCourse) Reset ¶
func (x *ScheduleResponseCourse) Reset()
func (*ScheduleResponseCourse) String ¶
func (x *ScheduleResponseCourse) String() string
type ScheduleResponseCourse_ScheduleInfo ¶
type ScheduleResponseCourse_ScheduleInfo struct { // 上课地点 Location string `protobuf:"bytes,1,opt,name=Location,proto3" json:"Location,omitempty"` // 教室作为数量 SeatsNum int32 `protobuf:"varint,2,opt,name=SeatsNum,proto3" json:"SeatsNum,omitempty"` // 节次数组, 升序 Section []int32 `protobuf:"varint,3,rep,packed,name=Section,proto3" json:"Section,omitempty"` // 老师列表 Teachers []*ScheduleResponseCourse_StaffInfo `protobuf:"bytes,4,rep,name=Teachers,proto3" json:"Teachers,omitempty"` // 学生列表 Students []*ScheduleResponseCourse_StaffInfo `protobuf:"bytes,5,rep,name=Students,proto3" json:"Students,omitempty"` // 周次数组 Week []int32 `protobuf:"varint,6,rep,packed,name=Week,proto3" json:"Week,omitempty"` // 星期 WeekDay int32 `protobuf:"varint,7,opt,name=WeekDay,proto3" json:"WeekDay,omitempty"` // 是否本周课程 IsThisWeek bool `protobuf:"varint,8,opt,name=IsThisWeek,proto3" json:"IsThisWeek,omitempty"` // 上课时间 StartTime int64 `protobuf:"varint,9,opt,name=StartTime,proto3" json:"StartTime,omitempty"` // 下课时间 EndTime int64 `protobuf:"varint,10,opt,name=EndTime,proto3" json:"EndTime,omitempty"` // contains filtered or unexported fields }
单个排课信息(如高等数学的周一的3-5节)
func (*ScheduleResponseCourse_ScheduleInfo) Descriptor
deprecated
func (*ScheduleResponseCourse_ScheduleInfo) Descriptor() ([]byte, []int)
Deprecated: Use ScheduleResponseCourse_ScheduleInfo.ProtoReflect.Descriptor instead.
func (*ScheduleResponseCourse_ScheduleInfo) GetEndTime ¶
func (x *ScheduleResponseCourse_ScheduleInfo) GetEndTime() int64
func (*ScheduleResponseCourse_ScheduleInfo) GetIsThisWeek ¶
func (x *ScheduleResponseCourse_ScheduleInfo) GetIsThisWeek() bool
func (*ScheduleResponseCourse_ScheduleInfo) GetLocation ¶
func (x *ScheduleResponseCourse_ScheduleInfo) GetLocation() string
func (*ScheduleResponseCourse_ScheduleInfo) GetSeatsNum ¶
func (x *ScheduleResponseCourse_ScheduleInfo) GetSeatsNum() int32
func (*ScheduleResponseCourse_ScheduleInfo) GetSection ¶
func (x *ScheduleResponseCourse_ScheduleInfo) GetSection() []int32
func (*ScheduleResponseCourse_ScheduleInfo) GetStartTime ¶
func (x *ScheduleResponseCourse_ScheduleInfo) GetStartTime() int64
func (*ScheduleResponseCourse_ScheduleInfo) GetStudents ¶
func (x *ScheduleResponseCourse_ScheduleInfo) GetStudents() []*ScheduleResponseCourse_StaffInfo
func (*ScheduleResponseCourse_ScheduleInfo) GetTeachers ¶
func (x *ScheduleResponseCourse_ScheduleInfo) GetTeachers() []*ScheduleResponseCourse_StaffInfo
func (*ScheduleResponseCourse_ScheduleInfo) GetWeek ¶
func (x *ScheduleResponseCourse_ScheduleInfo) GetWeek() []int32
func (*ScheduleResponseCourse_ScheduleInfo) GetWeekDay ¶
func (x *ScheduleResponseCourse_ScheduleInfo) GetWeekDay() int32
func (*ScheduleResponseCourse_ScheduleInfo) ProtoMessage ¶
func (*ScheduleResponseCourse_ScheduleInfo) ProtoMessage()
func (*ScheduleResponseCourse_ScheduleInfo) ProtoReflect ¶
func (x *ScheduleResponseCourse_ScheduleInfo) ProtoReflect() protoreflect.Message
func (*ScheduleResponseCourse_ScheduleInfo) Reset ¶
func (x *ScheduleResponseCourse_ScheduleInfo) Reset()
func (*ScheduleResponseCourse_ScheduleInfo) String ¶
func (x *ScheduleResponseCourse_ScheduleInfo) String() string
type ScheduleResponseCourse_StaffInfo ¶
type ScheduleResponseCourse_StaffInfo struct { // 学工号 StaffID string `protobuf:"bytes,1,opt,name=StaffID,proto3" json:"StaffID,omitempty"` // 姓名 StaffName string `protobuf:"bytes,2,opt,name=StaffName,proto3" json:"StaffName,omitempty"` // 人员类型,枚举及其含义:0->未知 | 1->本科生 | 2->研究生 | 3->教职工 StaffType int32 `protobuf:"varint,3,opt,name=StaffType,proto3" json:"StaffType,omitempty"` // contains filtered or unexported fields }
人员信息
func (*ScheduleResponseCourse_StaffInfo) Descriptor
deprecated
func (*ScheduleResponseCourse_StaffInfo) Descriptor() ([]byte, []int)
Deprecated: Use ScheduleResponseCourse_StaffInfo.ProtoReflect.Descriptor instead.
func (*ScheduleResponseCourse_StaffInfo) GetStaffID ¶
func (x *ScheduleResponseCourse_StaffInfo) GetStaffID() string
func (*ScheduleResponseCourse_StaffInfo) GetStaffName ¶
func (x *ScheduleResponseCourse_StaffInfo) GetStaffName() string
func (*ScheduleResponseCourse_StaffInfo) GetStaffType ¶
func (x *ScheduleResponseCourse_StaffInfo) GetStaffType() int32
func (*ScheduleResponseCourse_StaffInfo) ProtoMessage ¶
func (*ScheduleResponseCourse_StaffInfo) ProtoMessage()
func (*ScheduleResponseCourse_StaffInfo) ProtoReflect ¶
func (x *ScheduleResponseCourse_StaffInfo) ProtoReflect() protoreflect.Message
func (*ScheduleResponseCourse_StaffInfo) Reset ¶
func (x *ScheduleResponseCourse_StaffInfo) Reset()
func (*ScheduleResponseCourse_StaffInfo) String ¶
func (x *ScheduleResponseCourse_StaffInfo) String() string
type ShowMemberOptionable ¶
type ShowMemberOptionable interface {
GetOptionShowMemberOption() OptionShowMember
}
type StaffInfo ¶
type StaffInfo struct { // 学工号 StaffID string `protobuf:"bytes,1,opt,name=StaffID,proto3" json:"StaffID,omitempty"` // 姓名 StaffName string `protobuf:"bytes,2,opt,name=StaffName,proto3" json:"StaffName,omitempty"` // 备注 // todo 有空改成 Comment? // 不知道什么时候有空 Commit string `protobuf:"bytes,3,opt,name=Commit,proto3" json:"Commit,omitempty"` // contains filtered or unexported fields }
人员信息
func (*StaffInfo) Descriptor
deprecated
func (*StaffInfo) GetStaffID ¶
func (*StaffInfo) GetStaffName ¶
func (*StaffInfo) ProtoMessage ¶
func (*StaffInfo) ProtoMessage()
func (*StaffInfo) ProtoReflect ¶
func (x *StaffInfo) ProtoReflect() protoreflect.Message
type Students ¶
type Students struct {
staff.InfoMapList
}
type Teachers ¶
type Teachers struct {
staff.InfoMapList
}
type TeachingServiceClient ¶
type TeachingServiceClient interface { // 获取学生/教师课程表 GetSchedule(ctx context.Context, in *GetScheduleRequest, opts ...grpc.CallOption) (*GetScheduleResponse, error) // 获取学生/教师当前课程表 GetScheduleNow(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetScheduleNowResponse, error) // 获取学生/教师当前课程表V2 返回更详细的信息 GetScheduleNowV2(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetScheduleNowV2Response, error) // 获取学生/教师当前课程表 GetScheduleNowV3(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetScheduleNowV3Response, error) // 获取全局课表,用于推送课程信息,仅内部使用 GetGlobalSchedule(ctx context.Context, in *GetGlobalScheduleRequest, opts ...grpc.CallOption) (*GetGlobalScheduleResponse, error) // 通过CLASS_ID获取学生老师列表 GetClassDetail(ctx context.Context, in *GetClassDetailRequest, opts ...grpc.CallOption) (*GetClassDetailResponse, error) // 获取所有教室列表 GetClassrooms(ctx context.Context, in *GetClassroomsRequest, opts ...grpc.CallOption) (*GetClassroomsResponse, error) // 获取某一教室的使用情况 GetClassroomUsages(ctx context.Context, in *GetClassroomUsagesRequest, opts ...grpc.CallOption) (*GetClassroomUsagesResponse, error) // 获取所有空教室列表 GetUnusedClassrooms(ctx context.Context, in *GetUnusedClassroomsRequest, opts ...grpc.CallOption) (*GetUnusedClassroomsResponse, error) // 课程查询 ClassQuerySearch(ctx context.Context, in *ClassQuerySearchRequest, opts ...grpc.CallOption) (*ClassQuerySearchResponse, error) // magic字段映射表 ClassQueryMap(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ClassQueryMapResponse, error) // 设置课程收藏 ClassQueryFavSet(ctx context.Context, in *ClassQueryFavSetRequest, opts ...grpc.CallOption) (*ClassQueryFavSetResponse, error) // 获取课程收藏 ClassQueryFavGet(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ClassQueryFavGetResponse, error) // 按classIDs获取课程信息 ClassQueryGet(ctx context.Context, in *ClassQueryGetRequest, opts ...grpc.CallOption) (*ClassQueryGetResponse, error) // 获取收藏排行 ClassQueryFavRank(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ClassQueryFavRankResponse, error) }
TeachingServiceClient is the client API for TeachingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTeachingServiceClient ¶
func NewTeachingServiceClient(cc grpc.ClientConnInterface) TeachingServiceClient
type TeachingServiceServer ¶
type TeachingServiceServer interface { // 获取学生/教师课程表 GetSchedule(context.Context, *GetScheduleRequest) (*GetScheduleResponse, error) // 获取学生/教师当前课程表 GetScheduleNow(context.Context, *emptypb.Empty) (*GetScheduleNowResponse, error) // 获取学生/教师当前课程表V2 返回更详细的信息 GetScheduleNowV2(context.Context, *emptypb.Empty) (*GetScheduleNowV2Response, error) // 获取学生/教师当前课程表 GetScheduleNowV3(context.Context, *emptypb.Empty) (*GetScheduleNowV3Response, error) // 获取全局课表,用于推送课程信息,仅内部使用 GetGlobalSchedule(context.Context, *GetGlobalScheduleRequest) (*GetGlobalScheduleResponse, error) // 通过CLASS_ID获取学生老师列表 GetClassDetail(context.Context, *GetClassDetailRequest) (*GetClassDetailResponse, error) // 获取所有教室列表 GetClassrooms(context.Context, *GetClassroomsRequest) (*GetClassroomsResponse, error) // 获取某一教室的使用情况 GetClassroomUsages(context.Context, *GetClassroomUsagesRequest) (*GetClassroomUsagesResponse, error) // 获取所有空教室列表 GetUnusedClassrooms(context.Context, *GetUnusedClassroomsRequest) (*GetUnusedClassroomsResponse, error) // 课程查询 ClassQuerySearch(context.Context, *ClassQuerySearchRequest) (*ClassQuerySearchResponse, error) // magic字段映射表 ClassQueryMap(context.Context, *emptypb.Empty) (*ClassQueryMapResponse, error) // 设置课程收藏 ClassQueryFavSet(context.Context, *ClassQueryFavSetRequest) (*ClassQueryFavSetResponse, error) // 获取课程收藏 ClassQueryFavGet(context.Context, *emptypb.Empty) (*ClassQueryFavGetResponse, error) // 按classIDs获取课程信息 ClassQueryGet(context.Context, *ClassQueryGetRequest) (*ClassQueryGetResponse, error) // 获取收藏排行 ClassQueryFavRank(context.Context, *emptypb.Empty) (*ClassQueryFavRankResponse, error) // contains filtered or unexported methods }
TeachingServiceServer is the server API for TeachingService service. All implementations must embed UnimplementedTeachingServiceServer for forward compatibility.
type UnimplementedTeachingServiceServer ¶
type UnimplementedTeachingServiceServer struct{}
UnimplementedTeachingServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedTeachingServiceServer) ClassQueryFavGet ¶
func (UnimplementedTeachingServiceServer) ClassQueryFavGet(context.Context, *emptypb.Empty) (*ClassQueryFavGetResponse, error)
func (UnimplementedTeachingServiceServer) ClassQueryFavRank ¶
func (UnimplementedTeachingServiceServer) ClassQueryFavRank(context.Context, *emptypb.Empty) (*ClassQueryFavRankResponse, error)
func (UnimplementedTeachingServiceServer) ClassQueryFavSet ¶
func (UnimplementedTeachingServiceServer) ClassQueryFavSet(context.Context, *ClassQueryFavSetRequest) (*ClassQueryFavSetResponse, error)
func (UnimplementedTeachingServiceServer) ClassQueryGet ¶
func (UnimplementedTeachingServiceServer) ClassQueryGet(context.Context, *ClassQueryGetRequest) (*ClassQueryGetResponse, error)
func (UnimplementedTeachingServiceServer) ClassQueryMap ¶
func (UnimplementedTeachingServiceServer) ClassQueryMap(context.Context, *emptypb.Empty) (*ClassQueryMapResponse, error)
func (UnimplementedTeachingServiceServer) ClassQuerySearch ¶
func (UnimplementedTeachingServiceServer) ClassQuerySearch(context.Context, *ClassQuerySearchRequest) (*ClassQuerySearchResponse, error)
func (UnimplementedTeachingServiceServer) GetClassDetail ¶
func (UnimplementedTeachingServiceServer) GetClassDetail(context.Context, *GetClassDetailRequest) (*GetClassDetailResponse, error)
func (UnimplementedTeachingServiceServer) GetClassroomUsages ¶
func (UnimplementedTeachingServiceServer) GetClassroomUsages(context.Context, *GetClassroomUsagesRequest) (*GetClassroomUsagesResponse, error)
func (UnimplementedTeachingServiceServer) GetClassrooms ¶
func (UnimplementedTeachingServiceServer) GetClassrooms(context.Context, *GetClassroomsRequest) (*GetClassroomsResponse, error)
func (UnimplementedTeachingServiceServer) GetGlobalSchedule ¶
func (UnimplementedTeachingServiceServer) GetGlobalSchedule(context.Context, *GetGlobalScheduleRequest) (*GetGlobalScheduleResponse, error)
func (UnimplementedTeachingServiceServer) GetSchedule ¶
func (UnimplementedTeachingServiceServer) GetSchedule(context.Context, *GetScheduleRequest) (*GetScheduleResponse, error)
func (UnimplementedTeachingServiceServer) GetScheduleNow ¶
func (UnimplementedTeachingServiceServer) GetScheduleNow(context.Context, *emptypb.Empty) (*GetScheduleNowResponse, error)
func (UnimplementedTeachingServiceServer) GetScheduleNowV2 ¶
func (UnimplementedTeachingServiceServer) GetScheduleNowV2(context.Context, *emptypb.Empty) (*GetScheduleNowV2Response, error)
func (UnimplementedTeachingServiceServer) GetScheduleNowV3 ¶
func (UnimplementedTeachingServiceServer) GetScheduleNowV3(context.Context, *emptypb.Empty) (*GetScheduleNowV3Response, error)
func (UnimplementedTeachingServiceServer) GetUnusedClassrooms ¶
func (UnimplementedTeachingServiceServer) GetUnusedClassrooms(context.Context, *GetUnusedClassroomsRequest) (*GetUnusedClassroomsResponse, error)
type UnsafeTeachingServiceServer ¶
type UnsafeTeachingServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTeachingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TeachingServiceServer will result in compilation errors.