enaea

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginApi

func LoginApi(cache *EnaeaUserCache) (string, error)

LoginApi 学习公社登录

func PullCourseVideoListApi

func PullCourseVideoListApi(cache *EnaeaUserCache, circleId, courseId string) (string, error)

PullCourseVideoListApi 拉取课程对应视屏列表

func PullProjectsApi

func PullProjectsApi(cache *EnaeaUserCache) (string, error)

ProjectsPull 拉取所有工程

func PullStudyCourseHTMLApi

func PullStudyCourseHTMLApi(cache *EnaeaUserCache, circleId string) (string, error)

获取对应项目的页面的HTML,用于截取侧边栏菜单栏

func PullStudyCourseListApi

func PullStudyCourseListApi(cache *EnaeaUserCache, circleId, syllabusId string) (string, error)

获取对项目课程列表

func StatisticTicForCCVideApi

func StatisticTicForCCVideApi(cache *EnaeaUserCache, courseId, courseContentId, circleId string) (string, string, string, error)

StatisticTicForCCVideApi 在观看视屏前一定要先调用这个函数,相当于告诉后端,我要看这个视屏了,请对这个视屏开始计时

func SubmitStudyTimeApi

func SubmitStudyTimeApi(cache *EnaeaUserCache, circleId, SCFUCKPKey, SCFUCKPValue, id string, studyTime int64) (string, error)

SubmitStudyTimeApi 提交学时

Types

type EnaeaUserCache

type EnaeaUserCache struct {
	Account  string //账号
	Password string //密码
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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