Documentation ¶
Index ¶
- Constants
- Variables
- func ArticleCommentList(enId, sort string, page, limit int) (list *services.ArticleCommentList, err error)
- func ArticleDetail(id, aid int) (detail *services.ArticleDetail, enId string, err error)
- func ArticleInfo(id, aid int) (info *services.ArticleInfo, aEnid string, err error)
- func ArticleList(id int, chapterID string) (list *services.ArticleList, err error)
- func ContentsToMarkdown(contents []services.Content) (res string)
- func CourseDetail(category string, id int) (idMap map[string]interface{}, err error)
- func CourseInfo(id int) (info *services.CourseInfo, err error)
- func CourseList(category string) (list *services.CourseList, err error)
- func CourseType() (list *services.CourseCategoryList, err error)
- func Download(downloader DeDaoDownloader) error
- func DownloadMarkdown(cType string, id, aid int, path string) error
- func EbookDetail(id int) (detail *services.EbookDetail, err error)
- func EbookInfo(enID string) (info *services.EbookInfo, err error)
- func EbookPage(enID string) (info *services.EbookInfo, svgContent utils.SvgContents, err error)
- func GetCourseIDMap(course *services.Course) map[string]interface{}
- func LoginByCookie(cookie string) (err error)
- func LoginByQr() error
- func LoginedCookies() (cookies map[string]string)
- func OdobArticleDetail(aEnid string) (detail *services.ArticleDetail, err error)
- func OdobArticleInfo(aEnid string) (info *services.ArticleInfo, err error)
- func SwitchAccount(uid string) (err error)
- func TopicAll() (list *services.TopicAll, err error)
- func TopicDetail(id string) (detail *services.TopicDetail, err error)
- func TopicNotesList(id string) (list *services.NotesList, err error)
- type CourseDownload
- type DeDaoDownloader
- type EBookDownload
- type OdobDownload
Constants ¶
View Source
const ( // CateCourse 课程 CateCourse = "bauhinia" // CateAudioBook 听书 CateAudioBook = "odob" // CateEbook 电子书 CateEbook = "ebook" // CateAce 锦囊 CateAce = "compass" // CatAll 全部 CatAll = "all" )
Variables ¶
View Source
var OutputDir = "output"
Functions ¶
func ArticleCommentList ¶
func ArticleCommentList(enId, sort string, page, limit int) (list *services.ArticleCommentList, err error)
ArticleCommentList article comment list
func ArticleDetail ¶
func ArticleDetail(id, aid int) (detail *services.ArticleDetail, enId string, err error)
ArticleDetail article detail
func ArticleInfo ¶
func ArticleInfo(id, aid int) (info *services.ArticleInfo, aEnid string, err error)
ArticleInfo article info get article token, audio token, media security token etc
func ArticleList ¶
func ArticleList(id int, chapterID string) (list *services.ArticleList, err error)
ArticleList 已购课程文章列表
func ContentsToMarkdown ¶
func CourseDetail ¶
CourseDetail 已购课程详情
func CourseList ¶
func CourseList(category string) (list *services.CourseList, err error)
CourseList 已购课程列表
func Download ¶
func Download(downloader DeDaoDownloader) error
func EbookDetail ¶
func EbookDetail(id int) (detail *services.EbookDetail, err error)
EbookDetail 电子书详情
func GetCourseIDMap ¶
func LoginedCookies ¶
LoginedCookies cookie sting to map for chromedp print pdf
func OdobArticleDetail ¶
func OdobArticleDetail(aEnid string) (detail *services.ArticleDetail, err error)
OdobArticleDetail odob article detail
func OdobArticleInfo ¶
func OdobArticleInfo(aEnid string) (info *services.ArticleInfo, err error)
OdobArticleInfo article info get article token, audio token, media security token etc.
func SwitchAccount ¶
func TopicDetail ¶
func TopicDetail(id string) (detail *services.TopicDetail, err error)
TopicDetail Topic Detail
Types ¶
type CourseDownload ¶
func (*CourseDownload) Download ¶
func (d *CourseDownload) Download() error
type DeDaoDownloader ¶
type DeDaoDownloader interface {
Download() error
}
type EBookDownload ¶
func (*EBookDownload) Download ¶
func (d *EBookDownload) Download() error
type OdobDownload ¶
func (*OdobDownload) Download ¶
func (d *OdobDownload) Download() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.