ciweimaoapi

package module
v0.0.0-...-d6720da Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 9 Imported by: 0

README

概述

本文项目封装了刺猬猫API, 可通过调用本项目里的接口快速调用刺猬猫API。

函数列表

SetciweimaoAuthentication

设置ciweimao身份验证信息。

func SetciweimaoAuthentication(token, account string)
参数
  • token:string,用于身份验证的令牌,长度必须为32。
  • account:string,账户名,必须以"书客"开头。

AppIndex

获取App首页信息。

func AppIndex() *client.Client

BookInfoApi

通过书籍ID获取书籍信息。

func BookInfoApi(bookID string) *client.Client
参数
  • bookID:string,书籍ID。

BookReviewInfoApi

通过书籍ID和页码获取书评信息。

func BookReviewInfoApi(bookID, page string) *client.Client
参数
  • bookID:string,书籍ID。
  • page:string,页码。

BookLongReviewInfoApi

通过书籍ID和页码获取长评信息。

func BookLongReviewInfoApi(bookID, page string) *client.Client
参数
  • bookID:string,书籍ID。
  • page:string,页码。

BookContentReviewNumberInfoApi

通过章节ID获取该章节的吐槽数量。

func BookContentReviewNumberInfoApi(chapterId string) *client.Client
参数
  • chapterId:string,章节ID。

BookContentReviewInfoApi

通过章节ID、段落索引和页码获取该章节段落的吐槽信息。

func BookContentReviewInfoApi(chapterId, paragraphIndex, page string) *client.Client
参数
  • chapterId:string,章节ID。
  • paragraphIndex:string,段落索引。
  • page:string,页码。

BookFansListApi

通过书籍ID和页码获取书籍的粉丝列表。

func BookFansListApi(bookID, page string) *client.Client
参数
  • bookID:string,书籍ID。
  • page:string,页码。

BookOperateListApi

通过书籍ID和页码获取书籍的操作列表。

func BookOperateListApi(bookID, page string) *client.Client
参数
  • bookID:string,书籍ID。
  • page:string,页码。

CatalogInfoApi

通过书籍ID获取书籍的目录信息。

func CatalogInfoApi(bookID string) *client.Client
参数
  • bookID:string,书籍ID。

ContentInfoApi

通过章节ID和指令获取章节的内容信息。

func ContentInfoApi(chapterID, command string) *client.Client
参数
  • chapterID:string,章节ID。
  • command:string,指令。

ContentKetApi

通过章节ID获取章节的关键词信息。

func ContentKetApi(chapterID string) *client.Client
参数
  • chapterID:string,章节ID。

UserPropInfoApi

获取用户的道具信息。

func UserPropInfoApi() *client.Client

UserInfoApi

获取用户的个人信息。

func UserInfoApi() *client.Client

ShelfInfoApi

获取书架列表信息。

func ShelfInfoApi() *client.Client

ShelfBookInfoApi

通过书架ID获取书架中书籍的列表信息。

func ShelfBookInfoApi(shelfId string) *client.Client
参数
  • shelfId:string,书架ID。

AddBookshelfApi

将书籍加入书架。

func AddBookshelfApi(bookId, shelfId string) *client.Client
参数
  • bookId:string,书籍ID。
  • shelfId:string,书架ID。

DeleteBookshelfApi

将书籍从书架中删除。

func DeleteBookshelfApi(bookId, shelfId string) *client.Client
参数
  • bookId:string,书籍ID。
  • shelfId:string,书架ID。

RegisterApi

注册新用户。

func RegisterApi() *client.Client

SearchInfoApi

通过关键词、状态、页码和是否付费来搜索书籍。

func SearchInfoApi(keyword, status, page, isPaid string) *client.Client
参数
  • keyword:string,搜索关键词。
  • status:string,状态。
  • page:string,页码。
  • isPaid:string,是否付费。

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RankPeriod = struct {
	Week  string // 周榜
	Month string // 月榜
	Total string // 总榜
}{Week: "week", Month: "month", Total: "total"}
View Source
var RankType = struct {
	NoVipClick string // 点击
	FansValue  string // 畅销
	Yp         string // 月票
	YpNew      string // 新书
	Favor      string // 收藏
	Recommend  string // 推荐
	Blade      string // 刀片
	WordCount  string // 更新
	Tsukkomi   string // 吐槽
	Complet    string // 完本
	TrackRead  string // 追读
}{
	NoVipClick: "no_vip_click",
	FansValue:  "fans_value",
	Yp:         "yp",
	YpNew:      "yp_new",
	Favor:      "favor",
	Recommend:  "recommend",
	Blade:      "blade",
	WordCount:  "word_count",
	Tsukkomi:   "tsukkomi",
	Complet:    "complet",
	TrackRead:  "track_read",
}
View Source
var SearchType = struct {
	Free string // 免费
	Paid string // 付费
}{Free: "free", Paid: "paid"}

Functions

func AddBookshelfBool

func AddBookshelfBool(bookId, shelfId string) bool

func DeleteBookshelfBool

func DeleteBookshelfBool(bookId, shelfId string) bool

func EncryptionDecryption

func EncryptionDecryption(encryption bool, decryptContent interface{}, key string) string

func GetBookContentReviewMapList

func GetBookContentReviewMapList(chapterId string) []interface{}

func GetBookFansMap

func GetBookFansMap(bookId, page string, week bool) map[string]interface{}

func GetBookIndexMapList

func GetBookIndexMapList() []interface{}

func GetBookInfoMap

func GetBookInfoMap(bookId string) map[string]interface{}

func GetBookLongReviewInfoMapList

func GetBookLongReviewInfoMapList(bookId, page string) []interface{}

func GetBookOperateMapList

func GetBookOperateMapList(bookId, page string) []interface{}

func GetBookReviewInfoMapList

func GetBookReviewInfoMapList(bookId, page string) []interface{}

func GetBookshelfInfoMapList

func GetBookshelfInfoMapList() []interface{}

func GetCatalogMapList

func GetCatalogMapList(bookId string) []interface{}

func GetContentMap

func GetContentMap(chapterId string) map[string]interface{}

func GetPropUserInfoMap

func GetPropUserInfoMap() map[string]interface{}

func GetRankInfoMapList

func GetRankInfoMapList(period, rankType, page string) []interface{}

func GetRegisterMap

func GetRegisterMap() map[string]interface{}

func GetSearchInfoMapList

func GetSearchInfoMapList(keyword, status, page, isPaid string) []interface{}

func GetUserInfoMap

func GetUserInfoMap() map[string]interface{}

func SetciweimaoAuthentication

func SetciweimaoAuthentication(token, account string) error

Types

This section is empty.

Directories

Path Synopsis
ciweimao
api

Jump to

Keyboard shortcuts

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