Documentation ¶
Index ¶
- func EnaeaLoginAction(cache *enaea.EnaeaUserCache) (string, error)
- func LoginTimeoutAfreshAction(cache *enaea.EnaeaUserCache, err error)
- func StatisticTicForCCVideAction(cache *enaea.EnaeaUserCache, video *EnaeaVideo) error
- func SubmitStudyTimeAction(cache *enaea.EnaeaUserCache, video *EnaeaVideo, time int64) error
- type EnaeaCourse
- type EnaeaProject
- type EnaeaVideo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnaeaLoginAction ¶
func EnaeaLoginAction(cache *enaea.EnaeaUserCache) (string, error)
EnaeaLoginAction 学习公社登录
func LoginTimeoutAfreshAction ¶
func LoginTimeoutAfreshAction(cache *enaea.EnaeaUserCache, err error)
LoginTimeoutAfreshAction 超时重登
func StatisticTicForCCVideAction ¶
func StatisticTicForCCVideAction(cache *enaea.EnaeaUserCache, video *EnaeaVideo) error
开始学习适配,首次学习视频前必须先调用这个函数接口
func SubmitStudyTimeAction ¶
func SubmitStudyTimeAction(cache *enaea.EnaeaUserCache, video *EnaeaVideo, time int64) error
提交学时 {"success": false,"message":"nologin"}
Types ¶
type EnaeaCourse ¶
type EnaeaCourse struct { TitleTag string //课程对应侧边栏标签 CourseTitle string //课程名称 Remark string //课程节点名称 CourseContentType string //课程内容类型 StudyProgress float32 //学习进度 CourseId string //课程ID CircleId string SyllabusId string }
func CourseListAction ¶
func CourseListAction(cache *enaea.EnaeaUserCache, circleId string) ([]EnaeaCourse, error)
拉取项目对应课程
type EnaeaProject ¶
type EnaeaProject struct { CircleNameShort string //短标题名称 ClusterId string //组ID?反正不知道啥玩意 ClusterName string //期数名称 PlanState int //计划状态 CircleId string //班级ID?反正不知道啥玩意 CircleName string //班级期数名称 StartTime time.Time //开始时间 EndTime time.Time //结束时间 CircleCardNumber string //卡片数字编号 }
func ProjectListAction ¶
func ProjectListAction(cache *enaea.EnaeaUserCache) ([]EnaeaProject, error)
ProjectListAction 获取所需要学习的工程列表
type EnaeaVideo ¶
type EnaeaVideo struct { TitleTag string //标签,选修还是必修 CourseName string //课程名称 CourseContentStr string //视屏标签名称 FileName string //视频文件名称 TccId string //视频的TccID StudyProgress float32 //视频学习进度 Id string //Id CourseId string CircleId string SCFUCKPKey string //key SCFUCKPValue string //value }
func VideoListAction ¶
func VideoListAction(cache *enaea.EnaeaUserCache, course *EnaeaCourse) ([]EnaeaVideo, error)
拉取对应课程的视频
Click to show internal directories.
Click to hide internal directories.