Documentation
¶
Index ¶
- Constants
- type ApplyPList
- type ApplyResult
- type ApplyStateCount
- type Arc
- type ArcParam
- type ArcResult
- type Bgm
- type BgmExtResult
- type BgmResult
- type BgmSearchRes
- type ClassCount
- type DCount
- type MaterialRel
- type PList
- type Pager
- type ReliesES
- type Replies
- type Reply
- type ReplyES
- type ReplyParam
- type Result
- type SimpleArcVideos
- type SimpleResult
- type StaffApply
- type StaffApplyResult
- type TList
- type TypeCount
Constants ¶
View Source
const ( //All for all of reply type. All = 0 //Archive for reply type. Archive = 1 //Article for reply type. Article = 12 //Audio for reply type. Audio = 14 //SmallVideo for reply type. SmallVideo = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyPList ¶
type ApplyPList struct { Neglected DCount `json:"neglected"` Pending DCount `json:"pending"` Processed DCount `json:"processed"` }
ApplyPList for apply state count list.
type ApplyResult ¶
type ApplyResult struct { Page *Pager `json:"page"` Result struct { Vlist []*Arc `json:"vlist"` ApplyPList *ApplyPList `json:"plist"` TList []*TList `json:"tlist"` } `json:"result"` }
ApplyResult apply list from search.
type ApplyStateCount ¶
type ApplyStateCount struct { Neglected int `json:"neglected"` Pending int `json:"pending"` Processed int `json:"processed"` }
ApplyStateCount pub count.
type Arc ¶
type Arc struct { ID int64 `json:"id"` TypeID int64 `json:"typeid"` PID int64 `json:"pid"` State int64 `json:"state"` Duration int64 `json:"duration"` Title string `json:"title"` Cover string `json:"cover"` Desc string `json:"description"` PubDate string `json:"pubdate"` }
Arc for search archive.
type ArcParam ¶
type ArcParam struct { MID int64 AID int64 TypeID int64 Pn int Ps int State string Keyword string Order string }
ArcParam for es search param.
type ArcResult ¶
type ArcResult struct { Page *Pager `json:"page"` Result struct { Vlist []*Arc `json:"vlist"` PList *PList `json:"plist"` TList []*TList `json:"tlist"` } `json:"result"` }
ArcResult archive list from search.
type BgmExtResult ¶
type BgmExtResult struct { Page *Pager `json:"page"` Result []*MaterialRel `json:"result"` }
BgmExtResult str
type BgmSearchRes ¶
BgmSearchRes str
type ClassCount ¶
type ClassCount struct { Pubed int `json:"pubed"` NotPubed int `json:"not_pubed"` Pubing int `json:"is_pubing"` }
ClassCount pub count.
type PList ¶
type PList struct { IsPubing DCount `json:"is_pubing"` NotPubed DCount `json:"not_pubed"` Pubed DCount `json:"pubed"` Pending DCount `json:"pending"` }
PList for state count list.
type ReliesES ¶
type ReliesES struct { Order string `json:"order"` Sort string `json:"sort"` Page *Pager `json:"page"` Result []*ReplyES `json:"result"` }
ReliesES str
type Replies ¶
type Replies struct { SeID string `json:"seid"` Order string `json:"order"` Keyword string `json:"keyword"` Total int `json:"total"` PageCount int `json:"pagecount"` Repliers []int64 `json:"repliers"` DeriveOids []int64 `json:"-"` DeriveIds []int64 `json:"-"` Oids []int64 `json:"-"` TyOids map[int][]int64 `json:"-"` Result []*Reply `json:"result"` }
Replies for reply list.
type Reply ¶
type Reply struct { Message string `json:"message"` ID int64 `json:"id"` Floor int64 `json:"floor"` Count int `json:"count"` Root int64 `json:"root"` Oid int64 `json:"oid"` CTime string `json:"ctime"` MTime string `json:"mtime"` State int `json:"state"` Parent int64 `json:"parent"` Mid int64 `json:"mid"` Like int `json:"like"` Replier string `json:"replier"` Uface string `json:"uface"` Cover string `json:"cover"` Title string `json:"title"` Relation int `json:"relation"` IsElec int `json:"is_elec"` Type int `json:"type"` RootInfo *reply.Reply `json:"root_info"` ParentInfo *reply.Reply `json:"parent_info"` }
Reply str
type ReplyES ¶
type ReplyES struct { Count int `json:"count"` CTime string `json:"ctime"` Floor int64 `json:"floor"` Hate int64 `json:"hate"` ID int64 `json:"id"` Like int `json:"like"` Message string `json:"message"` Mid int64 `json:"mid"` MTime string `json:"mtime"` OMid int64 `json:"o_mid"` Oid int64 `json:"oid"` Parent int64 `json:"parent"` Rcount int64 `json:"rcount"` Root int64 `json:"root"` State int `json:"state"` Type int `json:"type"` }
ReplyES str
type ReplyParam ¶
type ReplyParam struct { Ak string Ck string OMID int64 OID int64 Pn int Ps int IsReport int8 Type int8 ResMdlPlat int8 FilterCtime string Kw string Order string IP string }
ReplyParam str
type Result ¶
type Result struct { Class *ClassCount `json:"class"` Applies *ApplyStateCount `json:"apply_count"` Type map[int16]*TypeCount `json:"-"` ArrType []*TypeCount `json:"type"` OldArchives []*archive.OldArchiveVideoAudit `json:"archives"` Archives []*archive.ArcVideoAudit `json:"arc_audits"` Page struct { Pn int `json:"pn"` Ps int `json:"ps"` Count int `json:"count"` } `json:"page"` Aids []int64 `json:"-"` // from search, call archiveRPC Tip string `json:"tip"` }
Result search list.
type SimpleArcVideos ¶
type SimpleArcVideos struct { Archive *archive.SimpleArchive `json:"archive"` Videos []*archive.SimpleVideo `json:"videos"` }
SimpleArcVideos for search archive & vidoes.
type SimpleResult ¶
type SimpleResult struct { ArchivesVideos []*SimpleArcVideos `json:"simple_arc_videos"` Class *ClassCount `json:"class"` Page struct { Pn int `json:"pn"` Ps int `json:"ps"` Count int `json:"count"` } `json:"page"` }
SimpleResult for archives simple result.
type StaffApply ¶
type StaffApply struct { ID int64 `json:"id"` Type int8 `json:"type"` Mid int64 `json:"mid"` Uname string `json:"uname"` State int8 `json:"state"` ApplyTitle string `json:"apply_title"` ApplyState int8 `json:"apply_state"` Archive *archive.ArcVideoAudit `json:"arc_audits"` }
StaffApply str
type StaffApplyResult ¶
type StaffApplyResult struct { StateCount *ApplyStateCount `json:"state_count"` Type map[int16]*TypeCount `json:"-"` ArrType []*TypeCount `json:"type"` Applies []*StaffApply `json:"applies"` Page struct { Pn int `json:"pn"` Ps int `json:"ps"` Count int `json:"count"` } `json:"page"` Aids []int64 `json:"-"` // from search, call archiveRPC }
StaffApplyResult search list.
Click to show internal directories.
Click to hide internal directories.