Documentation
¶
Index ¶
- func CancelCourse(c *client.Client, JxbIds string, KchId string, XueNian string, Xqm string) error
- func CourseRenameToExcel(course *client.GetCourseToExcelResp, xnmc string, xqmc string) error
- func GetCourse(c *client.Client, cfg *config.Config) (*client.GetCourseResp, error)
- func GetCourseOnline(c *client.Client, cfg *config.Config, CourseName string) (*client.GetCourseResp, *client.GetCourseToExcelResp, error)
- func GetDoJxbId(c *client.Client, KchId string, JxbId string, Kklxdm string, NjdmId string, ...) (string, error)
- func GetIsCourseOk(c *client.Client, cfg *config.Config, course *client.GetCourseResp, ...) (bool, error)
- func HandleCourse(c *client.Client, cfg *config.Config, course *client.GetCourseResp, ...) error
- func KillCourse(ctx context.Context, channel chan string, c *client.Client, cfg *config.Config, ...)
- func ReadClientBodyConfig(c *client.Client) error
- func ReadCourse(cfg *config.Config) (*client.GetCourseResp, error)
- func SaveClientBodyConfig(c *client.Client) error
- func SaveCourse(course *client.GetCourseResp) error
- func SelectCourse(c *client.Client, JxbIds string, KchId string, Kklxdm string, Jxbzc string, ...) error
- func SendEmail(cfg *config.Config, subject string, body string)
- func StartWaitCourse(ctx context.Context, c *client.Client, cfg *config.Config, ...)
- func VarifyCourse(course *client.GetCourseResp, cfg *config.Config) error
- func WaitCourse(ctx context.Context, channel chan string, c *client.Client, cfg *config.Config, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelCourse ¶
CancelCourse 退课
func CourseRenameToExcel ¶
func CourseRenameToExcel(course *client.GetCourseToExcelResp, xnmc string, xqmc string) error
CourseRenameToExcel 将课程信息转换为Excel保存
func GetCourseOnline ¶ added in v1.4.6
func GetCourseOnline(c *client.Client, cfg *config.Config, CourseName string) (*client.GetCourseResp, *client.GetCourseToExcelResp, error)
GetCourseOnline 在线获取课程
func GetDoJxbId ¶
func GetDoJxbId(c *client.Client, KchId string, JxbId string, Kklxdm string, NjdmId string, XueNian string, Xqm string) (string, error)
GetDoJxbId 获取doJxbId
func GetIsCourseOk ¶
func GetIsCourseOk(c *client.Client, cfg *config.Config, course *client.GetCourseResp, CourseName string) (bool, error)
GetIsCourseOk 检验是否有余量
func HandleCourse ¶
func HandleCourse(c *client.Client, cfg *config.Config, course *client.GetCourseResp, CourseName string, SelectFlag interface{}) error
HandleCourse 处理课程
func KillCourse ¶
func KillCourse(ctx context.Context, channel chan string, c *client.Client, cfg *config.Config, course *client.GetCourseResp)
KillCourse 选退课
func ReadClientBodyConfig ¶
ReadClientBodyConfig 读取选课配置
func ReadCourse ¶
func ReadCourse(cfg *config.Config) (*client.GetCourseResp, error)
ReadCourse 读取课程信息
func SaveClientBodyConfig ¶
SaveClientBodyConfig 保存选课配置
func SelectCourse ¶
func SelectCourse(c *client.Client, JxbIds string, KchId string, Kklxdm string, Jxbzc string, cfg *config.Config) error
SelectCourse 选课
func StartWaitCourse ¶
func StartWaitCourse(ctx context.Context, c *client.Client, cfg *config.Config, courses *client.GetCourseResp, CourseName string, waitCourseChannel chan string)
StartWaitCourse 开始蹲课
func VarifyCourse ¶
func VarifyCourse(course *client.GetCourseResp, cfg *config.Config) error
VarifyCourse 验证课程信息
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.