service

package
v0.0.0-...-df8f3be Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitNoPageRouter

func InitNoPageRouter() *gin.Engine

func InitRouter

func InitRouter(page embed.FS) *gin.Engine

func RunRouter

func RunRouter(router *gin.Engine)

Types

type Course

type Course struct {
	Index  int    `json:"index"`
	Name   string `json:"name"`
	Looked bool   `json:"looked"`
}

type CourseService

type CourseService struct {
	Browser context.Context
}

func (CourseService) GetList

func (cs CourseService) GetList(ctx *gin.Context)

获取课程列表

type Push

type Push struct {
	Enable bool   `json:"enable"`
	Path   string `json:"path"`
}

type SettingService

type SettingService struct{}

func (SettingService) GetPush

func (ss SettingService) GetPush(ctx *gin.Context)

func (SettingService) SettingPush

func (ss SettingService) SettingPush(ctx *gin.Context)

type Subject

type Subject struct {
	Id    string `json:"id"`
	Name  string `json:"name"`
	Cover string `json:"cover"`
}

type SubjectService

type SubjectService struct {
	Browser context.Context
}

func (SubjectService) GetList

func (ss SubjectService) GetList(ctx *gin.Context)

获取科目列表

func (SubjectService) Select

func (ss SubjectService) Select(ctx *gin.Context)

选择科目

type UserService

type UserService struct {
	Browser context.Context
}

func (UserService) GetLoginQrCode

func (us UserService) GetLoginQrCode(ctx *gin.Context)

获取登录二维码

func (UserService) GetLoginState

func (us UserService) GetLoginState(ctx *gin.Context)

获取登录状态

func (UserService) GetQrState

func (us UserService) GetQrState(ctx *gin.Context)

获取二维码登录状态(0离开1等待2成功3失败4未生成)

func (UserService) GetUserName

func (us UserService) GetUserName(ctx *gin.Context)

获取用户姓名

type WorkService

type WorkService struct {
	Browser context.Context
}

func (WorkService) Close

func (ws WorkService) Close() bool

关闭任务

func (WorkService) GetPlayerState

func (ws WorkService) GetPlayerState() bool

获取播放状态

func (WorkService) GetScreenshot

func (ws WorkService) GetScreenshot(ctx *gin.Context)

获取截图

func (WorkService) GetState

func (ws WorkService) GetState(ctx *gin.Context)

获取任务状态

func (WorkService) KeepPlaying

func (ws WorkService) KeepPlaying()

维持播放

func (WorkService) Recovery

func (ws WorkService) Recovery(ctx *gin.Context)

恢复任务

func (WorkService) Start

func (ws WorkService) Start(ctx *gin.Context)

开始任务

func (WorkService) Stop

func (ws WorkService) Stop(ctx *gin.Context)

结束任务

Jump to

Keyboard shortcuts

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