Documentation ¶
Index ¶
- func Replace(selection *goquery.Selection, old string) string
- type APP
- func (app *APP) GetBookInfo(bookId string) (*BookInfoModel, error)
- func (app *APP) GetBookTypeList(typeNumber int, page int) ([]TypeListBookInfoModel, error)
- func (app *APP) GetBookshelf() ([]BookshelfModel, error)
- func (app *APP) GetCatalogs(bookId string) ([]CatalogModel, error)
- func (app *APP) GetContent(bookId string, chapterId string) (*ContentModel, error)
- func (app *APP) GetCookie(username string, password string) (string, error)
- func (app *APP) GetCover(coverPath string) ([]byte, error)
- func (app *APP) GetSearch(keyword string) ([]SearchModel, error)
- type BookInfoModel
- type BookshelfModel
- type CatalogModel
- type Client
- type ContentModel
- type Response
- type ResponseInterface
- type SearchModel
- type TypeListBookInfoModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APP ¶
type APP struct { Request *resty.Request Client *Client }
func (*APP) GetBookInfo ¶
func (app *APP) GetBookInfo(bookId string) (*BookInfoModel, error)
func (*APP) GetBookTypeList ¶
func (app *APP) GetBookTypeList(typeNumber int, page int) ([]TypeListBookInfoModel, error)
func (*APP) GetBookshelf ¶
func (app *APP) GetBookshelf() ([]BookshelfModel, error)
func (*APP) GetCatalogs ¶
func (app *APP) GetCatalogs(bookId string) ([]CatalogModel, error)
func (*APP) GetContent ¶
func (app *APP) GetContent(bookId string, chapterId string) (*ContentModel, error)
type BookInfoModel ¶
type BookInfoModel struct { BookId string `json:"book_id"` BookName string `json:"book_name"` Author string `json:"author"` Cover string `json:"cover"` UpdateDate string `json:"update_date"` Status string `json:"status"` Download string `json:"download"` ClickInfo string `json:"click_info"` FileSize string `json:"file_size"` Description string `json:"description"` }
type BookshelfModel ¶
type CatalogModel ¶
type Client ¶
type Client struct { Lock sync.Mutex HTTPClient *resty.Client // contains filtered or unexported fields }
func (*Client) SetBaseURL ¶
func (*Client) SetRetryCount ¶
func (*Client) SetUserAgent ¶
type ContentModel ¶
type ContentModel struct { ID string `json:"_id" bson:"_id"` BookId string `json:"book_id" bson:"book_id"` ChapterId string `json:"chapter_id" bson:"chapter_id"` ChapterTitle string `json:"chapter_title" bson:"chapter_title"` Content string `json:"content" bson:"content"` ChapterWord int `json:"chapter_word" bson:"chapter_word"` }
type ResponseInterface ¶
type SearchModel ¶
Click to show internal directories.
Click to hide internal directories.