service

package
v0.0.0-...-156939b Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CLASS_TIME = [][2][2]int{
	{{0, 0}, {23, 59}},
	{{8, 20}, {9, 5}},
	{{9, 15}, {10, 0}},
	{{10, 20}, {11, 5}},
	{{11, 15}, {12, 0}},
	{{14, 0}, {14, 45}},
	{{14, 55}, {15, 40}},
	{{15, 50}, {16, 35}},
	{{16, 45}, {17, 30}},
	{{19, 0}, {19, 45}},
	{{19, 55}, {20, 40}},
	{{20, 50}, {21, 35}},
}

作息时间

Functions

This section is empty.

Types

type CourseService

type CourseService struct {
	// contains filtered or unexported fields
}

func NewCourseService

func NewCourseService(ctx context.Context, clientset *base.ClientSet, taskQueue taskqueue.TaskQueue) *CourseService

func (*CourseService) GetCalendar

func (s *CourseService) GetCalendar(req *course.GetCalendarRequest) (string, error)

func (*CourseService) GetCourseList

func (s *CourseService) GetCourseList(req *course.CourseListRequest) ([]*jwch.Course, error)

func (*CourseService) GetTermsList

func (s *CourseService) GetTermsList(req *course.TermListRequest) ([]string, error)

GetTermsList 会返回当前用户含有课表的学期信息

Jump to

Keyboard shortcuts

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