backend

package
v0.0.0-...-55e8476 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Instance *services.Service

Functions

This section is empty.

Types

type App

type App struct {
	Ctx context.Context
}

App struct

func NewApp

func NewApp() *App

NewApp creates a new App application struct

func (*App) AlgoFilter

func (a *App) AlgoFilter(param services.AlgoFilterParam) (resp *services.AlgoFilterResp, err error)

func (*App) AlgoProduct

func (a *App) AlgoProduct(param services.AlgoFilterParam) (resp *services.AlgoProductResp, err error)

func (*App) ArticleDetail

func (a *App) ArticleDetail(aType int, aEnid string) (markdown string, err error)

ArticleDetail enid article enid or odob audioAliasID, aType 1-course article, 2-odob article

func (*App) ArticleList

func (a *App) ArticleList(enid, chapterID string, count, maxID int) (list *services.ArticleList, err error)

func (*App) AudioDetail

func (a *App) AudioDetail(id string) (detail *services.AudioInfoResp, err error)

AudioDetail 听书简介

func (*App) CheckLogin

func (a *App) CheckLogin(token, qrCodeString string) (result LoginResult, err error)

func (*App) CourseCategory

func (a *App) CourseCategory() (list []services.CourseCategory, err error)

func (*App) CourseDownload

func (a *App) CourseDownload(id, aid, dType int, enid string) (err error)

func (*App) CourseInfo

func (a *App) CourseInfo(enid string) (info *services.CourseInfo, err error)

func (*App) CourseList

func (a *App) CourseList(category, order string, page, limit int) (list *services.CourseList, err error)

func (*App) DomReady

func (a *App) DomReady(ctx context.Context)

func (*App) EbookCommentList

func (a *App) EbookCommentList(enid string, page, limit int) (list *services.EbookCommentList, err error)

func (*App) EbookDownload

func (a *App) EbookDownload(id, dType int, enid string) (err error)

func (*App) EbookInfo

func (a *App) EbookInfo(enid string) (info *services.EbookDetail, err error)

func (*App) EbookShelfAdd

func (a *App) EbookShelfAdd(enids []string) (resp *services.EbookShelfAddResp, err error)

func (*App) EbookShelfRemove

func (a *App) EbookShelfRemove(enids []string) (resp *services.EbookShelfAddResp, err error)

func (*App) EbookUserInfo

func (a *App) EbookUserInfo() (user *services.EbookVIPInfo, err error)

func (*App) GetHomeInitialState

func (a *App) GetHomeInitialState() (state services.HomeInitState, err error)

func (*App) GetQrcode

func (a *App) GetQrcode() (qrCode QrCodeResp, err error)

func (*App) GetVolcPlayAuthToken

func (a *App) GetVolcPlayAuthToken(mediaID, securityToken string) (info *services.MediaVolc, err error)

func (*App) GetVolcPlayInfo

func (a *App) GetVolcPlayInfo(query string) (info *services.VodPlayInfoResp, err error)

func (*App) Logout

func (a *App) Logout() (err error)

func (*App) NotesTimeline

func (a *App) NotesTimeline(maxID string) (list *services.NotesTimeline, err error)

NotesTimeline 知识城邦首页时间线列表

func (*App) OdobDownload

func (a *App) OdobDownload(id, dType int, data *services.Course) (err error)

func (*App) OdobShelfAdd

func (a *App) OdobShelfAdd(enids []string) (resp *services.EbookShelfAddResp, err error)

func (*App) OdobUserInfo

func (a *App) OdobUserInfo() (user *services.OdobVip, err error)

func (*App) OpenDirectoryDialog

func (a *App) OpenDirectoryDialog(title string) (dir string, err error)

func (*App) SearchHot

func (a *App) SearchHot() (list *services.SearchTot, err error)

func (*App) SetDir

func (a *App) SetDir(dir []string)

func (*App) Shutdown

func (a *App) Shutdown(ctx context.Context)

func (*App) Startup

func (a *App) Startup(ctx context.Context)

Startup is called when the app starts. The context is saved so we can call the runtime methods

func (*App) SunflowerLabelContent

func (a *App) SunflowerLabelContent(enID string, nType, page, pageSize int) (list *services.SunflowerContent, err error)

func (*App) SunflowerLabelList

func (a *App) SunflowerLabelList(nType int) (list *services.SunflowerLabelList, err error)

SunflowerLabelList 首页导航标签列表 2-好看又好查的电子书, 4-精选课程

func (*App) SunflowerResourceList

func (a *App) SunflowerResourceList() (list *services.SunflowerResourceList, err error)

func (*App) TopicAll

func (a *App) TopicAll(page, limit int) (list *services.TopicAll, err error)

TopicAll 推荐话题列表

func (*App) TopicNoteDetail

func (a *App) TopicNoteDetail(id string) (list *services.TopicDetail, err error)

TopicNoteDetail 话题笔记详情

func (*App) TopicNotesList

func (a *App) TopicNotesList(id string, isElected bool, page, limit int) (list *services.NotesList, err error)

TopicNotesList 话题笔记列表 isElected true 精选,false 最新

func (*App) UserInfo

func (a *App) UserInfo() (user *services.User, err error)

type LoginResult

type LoginResult struct {
	Status int            `json:"status"` // 1-登录成功,2-二维码过期
	Cookie string         `json:"cookie"` // cookies string
	User   *services.User `json:"user"`
}

type QrCodeResp

type QrCodeResp struct {
	Token        string `json:"token"`
	QrCode       string `json:"qrCode"`
	QrCodeString string `json:"qrCodeString"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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