Documentation
¶
Index ¶
- func EncData(dataStr string) (string, error)
- type TtcdwUserCache
- func (cache *TtcdwUserCache) PullChapterListHtmlApi(cid string, retry int, lastErr error) (string, error)
- func (cache *TtcdwUserCache) PullClassRoomApi(courseProjectId string, classId string, retry int, lastErr error) (string, error)
- func (cache *TtcdwUserCache) PullCourseApi(segmentId, itemId string, retry int, lastErr error) (string, error)
- func (cache *TtcdwUserCache) PullCourseInfoApi(segmentId, courseId string, retry int, lastErr error) (string, error)
- func (cache *TtcdwUserCache) PullGetResApi(sectionId string, retry int, lastErr error) (string, error)
- func (cache *TtcdwUserCache) PullProjectApi(retry int, lastErr error) (string, error)
- func (cache *TtcdwUserCache) TtcdwLoginApi() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (*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
Click to show internal directories.
Click to hide internal directories.