Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxPageSize = 50 ModeOrigin = 1 // origin ModeTime = 2 // sort by time ModeHot = 3 // sort by hot FolderKindSub = "s" FolderKindRoot = "r" CursorModePage = 1 // pn ps翻页的 CursorModeCursor = 2 // 按游标翻页的 )
const
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonReq ¶
type CommonReq struct { Plat int8 `form:"plat"` Build int64 `form:"build"` Buvid string `form:"buvid"` MobiApp string `form:"mobi_app"` Mid int64 `form:"mid"` IP string `form:"ip` }
CommonReq ...
type CommonRes ¶
type CommonRes struct { Assist int `json:"assist"` Blacklist int `json:"blacklist"` Config ReplyConfig `json:"config"` Upper Upper `json:"upper"` }
type Cursor ¶
type Cursor struct { IsBegin bool `json:"is_begin"` Prev int `json:"prev"` Next int `json:"next"` IsEnd bool `json:"is_end"` Ps int `json:"ps"` }
Cursor Common Cursor
type CursorReq ¶
type CursorReq struct { Ps int `form:"ps" validate:"omitempty,min=1,max=50" default:"20"` Prev int `form:"prev"` Next int `form:"next"` Mode int `form:"mode"` }
CursorReq ...
type CursorRes ¶
type CursorRes struct { AllCount int `json:"all_count,omitempty"` IsBegin bool `json:"is_begin"` Prev int `json:"prev"` Next int `json:"next"` IsEnd bool `json:"is_end"` Ps int `json:"ps,omitempty"` Mode int `json:"mode,omitempty"` SupportMode []int `json:"support_mode,omitempty"` }
CursorRes ...
type ReplyCommonReq ¶
type ReplyCommonReq struct { Oid int64 `form:"oid" validate:"required"` Type int8 `form:"type" validate:"required"` }
ReplyCommonReq ...
type ReplyConfig ¶
type ReplyReq ¶
type ReplyReq struct { CommonReq ReplyCommonReq Cursor CursorReq }
type RootFolderReq ¶
type RootFolderReq struct { CommonReq ReplyCommonReq Cursor CursorReq Root int64 `form:"root" validate:"required"` }
type RootFolderRes ¶
type SubFolderReq ¶
type SubFolderReq struct { CommonReq ReplyCommonReq Cursor CursorReq }
type SubFolderRes ¶
Click to show internal directories.
Click to hide internal directories.