Documentation
¶
Index ¶
- type Authenticate
- func (authenticate *Authenticate) GetAuthenticate() map[string]string
- func (authenticate *Authenticate) SetAccount(account string) *Authenticate
- func (authenticate *Authenticate) SetAppVersion(appVersion string) *Authenticate
- func (authenticate *Authenticate) SetDeviceToken(deviceToken string) *Authenticate
- func (authenticate *Authenticate) SetLoginToken(loginToken string) *Authenticate
- type BookInfo
- type Bookcase
- type Bookshelf
- type ChapterCmd
- type ChapterInfo
- type ChapterList
- type Content
- type ContentBuy
- type ContentBuyData
- type Detail
- type Division
- type DivisionData
- type DivisionList
- type Geetest
- type GeetestData
- type GeetestFirstRegisterStruct
- type LastChapterInfo
- type Login
- type LoginData
- type PropInfo
- type ReaderInfo
- type Register
- type ScrollChest
- type Search
- type SearchData
- type ShelfBookList
- type ShelfList
- type TagList
- type Tip
- type UserInfo
- type UserInfoData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticate ¶ added in v0.4.0
type Authenticate struct {
AppVersion string `json:"app_version"`
DeviceToken string `json:"device_token"`
LoginToken string `json:"login_token"`
Account string `json:"account"`
}
func (*Authenticate) GetAuthenticate ¶ added in v0.4.0
func (authenticate *Authenticate) GetAuthenticate() map[string]string
func (*Authenticate) SetAccount ¶ added in v0.4.0
func (authenticate *Authenticate) SetAccount(account string) *Authenticate
func (*Authenticate) SetAppVersion ¶ added in v0.4.0
func (authenticate *Authenticate) SetAppVersion(appVersion string) *Authenticate
func (*Authenticate) SetDeviceToken ¶ added in v0.4.0
func (authenticate *Authenticate) SetDeviceToken(deviceToken string) *Authenticate
func (*Authenticate) SetLoginToken ¶ added in v0.4.0
func (authenticate *Authenticate) SetLoginToken(loginToken string) *Authenticate
type BookInfo ¶
type BookInfo struct {
BookID string `json:"book_id" bson:"book_id"`
BookName string `json:"book_name" bson:"book_name"`
Description string `json:"description" bson:"description"`
BookSrc string `json:"book_src" bson:"book_src"`
Tag string `json:"tag" bson:"tag"`
TotalWordCount string `json:"total_word_count" bson:"total_word_count"`
UpStatus string `json:"up_status" bson:"up_status"`
UpdateStatus string `json:"update_status" bson:"update_status"`
IsPaid string `json:"is_paid" bson:"is_paid"`
Cover string `json:"cover" bson:"cover"`
AuthorName string `json:"author_name" bson:"author_name"`
Uptime string `json:"uptime" bson:"uptime"`
Newtime string `json:"newtime" bson:"newtime"`
ReviewAmount string `json:"review_amount" bson:"review_amount"`
RewardAmount string `json:"reward_amount" bson:"reward_amount"`
ChapterAmount string `json:"chapter_amount" bson:"chapter_amount"`
LastChapterInfo LastChapterInfo `json:"last_chapter_info" bson:"last_chapter_info"`
TagList []TagList `json:"tag_list" bson:"tag_list"`
BookType string `json:"book_type" bson:"book_type"`
TransverseCover string `json:"transverse_cover" bson:"transverse_cover"`
}
type Bookcase ¶ added in v0.2.4
type Bookcase struct {
Tip
Data struct {
BookList []ShelfBookList `json:"book_list"`
} `json:"data"`
ScrollChests []interface{} `json:"scroll_chests"`
}
type ChapterCmd ¶ added in v0.4.0
type ChapterInfo ¶
type ChapterInfo struct {
ChapterID string `json:"chapter_id" bson:"chapter_id"`
BookID string `json:"book_id" bson:"book_id"`
DivisionID string `json:"division_id" bson:"division_id"`
UnitHlb string `json:"unit_hlb" bson:"unit_hlb"`
ChapterIndex string `json:"chapter_index" bson:"chapter_index"`
ChapterTitle string `json:"chapter_title" bson:"chapter_title"`
AuthorSay string `json:"author_say" bson:"author_say"`
WordCount string `json:"word_count" bson:"word_count"`
Discount string `json:"discount" bson:"discount"`
IsPaid string `json:"is_paid" bson:"is_paid"`
AuthAccess string `json:"auth_access" bson:"auth_access"`
BuyAmount string `json:"buy_amount" bson:"buy_amount"`
TsukkomiAmount string `json:"tsukkomi_amount" bson:"tsukkomi_amount"`
TotalHlb string `json:"total_hlb" bson:"total_hlb"`
Uptime string `json:"uptime" bson:"uptime"`
Mtime string `json:"mtime" bson:"mtime"`
RecommendBookInfo string `json:"recommend_book_info" bson:"recommend_book_info"`
TxtContent string `json:"txt_content" bson:"txt_content"`
}
type ChapterList ¶
type ChapterList struct {
ChapterID string `json:"chapter_id" bson:"chapter_id"`
ChapterIndex string `json:"chapter_index" bson:"chapter_index"`
ChapterTitle string `json:"chapter_title" bson:"chapter_title"`
WordCount string `json:"word_count" bson:"word_count"`
TsukkomiAmount string `json:"tsukkomi_amount" bson:"tsukkomi_amount"`
IsPaid string `json:"is_paid" bson:"is_paid"`
Mtime string `json:"mtime" bson:"mtime"`
IsValid string `json:"is_valid" bson:"is_valid"`
AuthAccess string `json:"auth_access" bson:"auth_access"`
}
type Content ¶
type Content struct {
Tip
Data struct {
ChapterInfo ChapterInfo `json:"chapter_info" bson:"chapter_info"`
} `json:"data" bson:"data"`
}
type ContentBuy ¶
type ContentBuy struct {
Tip
Data ContentBuyData `json:"data" bson:"data"`
ScrollChests ScrollChest `json:"scroll_chests" bson:"scroll_chests"`
}
type ContentBuyData ¶
type ContentBuyData struct {
ReaderInfo ReaderInfo `json:"reader_info" bson:"reader_info"`
PropInfo PropInfo `json:"prop_info" bson:"prop_info"`
BookInfo struct {
IsBuy string `json:"is_buy" bson:"is_buy"`
BookInfo BookInfo `json:"book_info" bson:"book_info"`
ShelfId string `json:"shelf_id" bson:"shelf_id"`
ChapterInfo ChapterInfo `json:"chapter_info" bson:"chapter_info"`
} `json:"book_info" bson:"book_info"`
}
type Detail ¶
type Detail struct {
Tip
Data struct {
BookInfo BookInfo `json:"book_info" bson:"book_info"`
RelatedList []BookInfo `json:"related_list" bson:"related_list"`
} `json:"data" bson:"data"`
ScrollChests []ScrollChest `json:"scroll_chests" bson:"scroll_chests"`
}
type Division ¶ added in v0.3.4
type Division struct {
Tip
Data DivisionData `json:"data" bson:"data"`
ScrollChests []interface{} `json:"scroll_chests" bson:"scroll_chests"`
}
type DivisionData ¶ added in v0.3.0
type DivisionData struct {
ChapterList []DivisionList `json:"chapter_list" bson:"chapter_list"`
}
type DivisionList ¶ added in v0.3.0
type DivisionList struct {
ChapterList []ChapterList `json:"chapter_list" bson:"chapter_list"`
MaxUpdateTime string `json:"max_update_time" bson:"max_update_time"`
MaxChapterIndex string `json:"max_chapter_index" bson:"max_chapter_index"`
DivisionID string `json:"division_id" bson:"division_id"`
DivisionIndex string `json:"division_index" bson:"division_index"`
DivisionName string `json:"division_name" bson:"division_name"`
}
type Geetest ¶
type Geetest struct {
Tip
Data GeetestData `json:"data"`
}
type GeetestData ¶
type GeetestFirstRegisterStruct ¶ added in v0.1.1
type LastChapterInfo ¶
type LastChapterInfo struct {
ChapterID string `json:"chapter_id" bson:"chapter_id"`
BookID string `json:"book_id" bson:"book_id"`
ChapterIndex string `json:"chapter_index" bson:"chapter_index"`
ChapterTitle string `json:"chapter_title" bson:"chapter_title"`
Uptime string `json:"uptime" bson:"uptime"`
Mtime string `json:"mtime" bson:"mtime"`
RecommendBookInfo string `json:"recommend_book_info" bson:"recommend_book_info"`
}
type LoginData ¶
type LoginData struct {
LoginToken string `json:"login_token"`
UserCode string `json:"user_code"`
ReaderInfo ReaderInfo `json:"reader_info"`
PropInfo PropInfo `json:"prop_info"`
IsSetYoung string `json:"is_set_young"`
}
type PropInfo ¶
type PropInfo struct {
RESTGiftHlb string `json:"rest_gift_hlb"`
RESTHlb string `json:"rest_hlb"`
RESTYp string `json:"rest_yp"`
RESTRecommend string `json:"rest_recommend"`
RESTTotalBlade string `json:"rest_total_blade"`
RESTMonthBlade string `json:"rest_month_blade"`
RESTTotal100 string `json:"rest_total_100"`
RESTTotal588 string `json:"rest_total_588"`
RESTTotal1688 string `json:"rest_total_1688"`
RESTTotal5000 string `json:"rest_total_5000"`
RESTTotal10000 string `json:"rest_total_10000"`
RESTTotal100000 string `json:"rest_total_100000"`
RESTTotal50000 string `json:"rest_total_50000"`
RESTTotal160000 string `json:"rest_total_160000"`
}
type ReaderInfo ¶
type ReaderInfo struct {
ReaderId string `json:"reader_id"`
Account string `json:"account"`
IsBind string `json:"is_bind"`
IsBindQq string `json:"is_bind_qq"`
IsBindWeixin string `json:"is_bind_weixin"`
IsBindHuawei string `json:"is_bind_huawei"`
IsBindApple string `json:"is_bind_apple"`
PhoneNum string `json:"phone_num"`
PhoneCrypto string `json:"phone_crypto"`
MobileVal string `json:"mobileVal"`
Email string `json:"email"`
License string `json:"license"`
ReaderName string `json:"reader_name"`
AvatarUrl string `json:"avatar_url"`
AvatarThumbUrl string `json:"avatar_thumb_url"`
BaseStatus string `json:"base_status"`
ExpLv string `json:"exp_lv"`
ExpValue string `json:"exp_value"`
Gender string `json:"gender"`
VipLv string `json:"vip_lv"`
VipValue string `json:"vip_value"`
IsAuthor string `json:"is_author"`
IsUploader string `json:"is_uploader"`
BookAge string `json:"book_age"`
CategoryPrefer []interface{} `json:"category_prefer"`
UsedDecoration []struct {
DecorationType string `json:"decoration_type"`
DecorationUrl string `json:"decoration_url"`
DecorationId string `json:"decoration_id"`
ReaderDecorationId string `json:"reader_decoration_id"`
} `json:"used_decoration"`
Rank string `json:"rank"`
FirstLoginIp string `json:"first_login_ip"`
Ctime string `json:"ctime"`
}
type ScrollChest ¶
type ScrollChest struct {
ChestID string `json:"chest_id" bson:"chest_id"`
ReaderName string `json:"reader_name" bson:"reader_name"`
Gender string `json:"gender" bson:"gender"`
AvatarURL string `json:"avatar_url" bson:"avatar_url"`
BookName string `json:"book_name" bson:"book_name"`
Cost int64 `json:"cost" bson:"cost"`
ChestImgURL string `json:"chest_img_url" bson:"chest_img_url"`
PropID int64 `json:"prop_id" bson:"prop_id"`
Content string `json:"content" bson:"content"`
}
type Search ¶
type Search struct {
Tip
Data SearchData `json:"data"`
}
type SearchData ¶
type ShelfBookList ¶
type UserInfo ¶ added in v0.1.2
type UserInfo struct {
Tip
Data UserInfoData `json:"data"`
}
type UserInfoData ¶ added in v0.1.2
type UserInfoData struct {
ReaderInfo ReaderInfo `json:"reader_info"`
PropInfo PropInfo `json:"prop_info"`
TrackAmount string `json:"track_amount"`
FollowingAmount string `json:"following_amount"`
FollowedAmount string `json:"followed_amount"`
OneMoreTask string `json:"one_more_task"`
OneMoreMessage string `json:"one_more_message"`
InternalVersion string `json:"internal_version"`
EntryCheck string `json:"entry_check"`
IsSetYoung string `json:"is_set_young"`
}
Click to show internal directories.
Click to hide internal directories.