ttcdw

package
v1.2.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncData

func EncData(dataStr string) (string, error)

加密数据函数

Types

type TtcdwUserCache

type TtcdwUserCache struct {
	PreUrl   string //前置url
	Account  string //账号
	Password string //用户密码
	// contains filtered or unexported fields
}

func (*TtcdwUserCache) PullChapterListHtmlApi

func (cache *TtcdwUserCache) PullChapterListHtmlApi(cid string, retry int, lastErr error) (string, error)

拉取项目对应课程章节列表

func (*TtcdwUserCache) PullClassRoomApi

func (cache *TtcdwUserCache) PullClassRoomApi(courseProjectId string, classId string, retry int, lastErr error) (string, error)

拉取项目的课堂内容,比如必修或者非必修

func (*TtcdwUserCache) PullCourseApi

func (cache *TtcdwUserCache) PullCourseApi(segmentId, itemId string, retry int, lastErr error) (string, error)

拉取对应项目的课程

func (*TtcdwUserCache) PullCourseInfoApi

func (cache *TtcdwUserCache) PullCourseInfoApi(segmentId, courseId string, retry int, lastErr error) (string, error)

func (*TtcdwUserCache) PullGetResApi

func (cache *TtcdwUserCache) PullGetResApi(sectionId string, retry int, lastErr error) (string, error)

获取章节secId对应的子章节内容json

func (*TtcdwUserCache) PullProjectApi

func (cache *TtcdwUserCache) PullProjectApi(retry int, lastErr error) (string, error)

拉取所有项目

func (*TtcdwUserCache) TtcdwLoginApi

func (cache *TtcdwUserCache) TtcdwLoginApi() error

Jump to

Keyboard shortcuts

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