123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- package model
- import (
- user "go-common/app/service/bbq/user/api"
- xtime "go-common/library/time"
- )
- const (
-
- DefaultCmType = 23
- )
- type Int64Bytes []int64
- type Mstr []string
- type ReplyCount struct {
- SubState int64 `json:"sub_state"`
- Count int64 `json:"count"`
- }
- type ReplyList struct {
- Page struct {
- Num int `json:"num"`
- Size int `json:"size"`
- Count int `json:"count"`
- Acount int `json:"acount"`
- }
- Config struct {
- ShowEntry int `json:"showentry"`
- ShowAdmin int `json:"showadmin"`
- }
- Replies []*Reply `json:"replies,omitempty"`
- Hots []*Reply `json:"hots,omitempty"`
- Upper struct {
- MID int64 `json:"mid"`
- Top *Reply `json:"top,omitempty"`
- }
- Top *Reply `json:"top,omitempty"`
- Notice *Notice `json:"notice,omitempty"`
- BlackList int16 `json:"blacklist"`
- Assist int16 `json:"assist"`
- }
- type Reply struct {
- RpID int64 `json:"rpid"`
- Oid uint64 `json:"oid"`
- Type int8 `json:"type"`
- Mid int64 `json:"mid"`
- Root int64 `json:"root"`
- Parent int64 `json:"parent"`
- Dialog int64 `json:"dialog"`
- Count int `json:"count"`
- RCount int `json:"rcount"`
- Floor int `json:"floor"`
- State int8 `json:"state"`
- FansGrade int8 `json:"fansgrade"`
- Attr int8 `json:"attr"`
- CTime xtime.Time `json:"ctime"`
- MTime xtime.Time `json:"-"`
-
- RpIDStr string `json:"rpid_str"`
- RootStr string `json:"root_str"`
- ParentStr string `json:"parent_str"`
- DialogStr string `json:"dialog_str"`
-
- Like int `json:"like"`
- Hate int `json:"-"`
- Action int8 `json:"action"`
-
- Member *Member `json:"member,omitempty"`
-
- Content *Content `json:"content,omitempty"`
- Replies []*Reply `json:"replies,omitempty"`
- Assist int `json:"assist"`
- }
- type Content struct {
- RpID int64 `json:"-"`
- Message string `json:"message"`
- Ats Int64Bytes `json:"ats"`
- Topics Mstr `json:"topics"`
- IP uint32 `json:"ipi"`
- Plat int8 `json:"plat"`
- Device string `json:"device"`
- Version string `json:"version"`
- CTime xtime.Time `json:"-"`
- MTime xtime.Time `json:"-"`
-
- Members []*Info `json:"members,omitempty"`
- }
- type Info struct {
- Mid string `json:"mid"`
- Name string `json:"uname"`
- Sex string `json:"sex"`
- Sign string `json:"sign"`
- Avatar string `json:"avatar"`
- Rank string `json:"rank"`
- DisplayRank string `json:"DisplayRank"`
- LevelInfo struct {
- Cur int `json:"current_level"`
- Min int `json:"current_min"`
- NowExp int `json:"current_exp"`
- NextExp int `json:"next_exp"`
- } `json:"level_info"`
- Pendant PendantInfo `json:"pendant"`
- Nameplate NameplateInfo `json:"nameplate"`
- OfficialVerify struct {
- Type int `json:"type"`
- Desc string `json:"desc"`
- } `json:"official_verify"`
- Vip struct {
- Type int `json:"vipType"`
- DueDate int64 `json:"vipDueDate"`
- DueRemark string `json:"dueRemark"`
- AccessStatus int `json:"accessStatus"`
- VipStatus int `json:"vipStatus"`
- VipStatusWarn string `json:"vipStatusWarn"`
- } `json:"vip"`
- BInfo *user.UserBase `json:"b_info,omitempty"`
- }
- type Member struct {
- Mid string `json:"mid"`
- Name string `json:"uname"`
- Sex string `json:"sex"`
- Sign string `json:"sign"`
- Avatar string `json:"avatar"`
- Rank string `json:"rank"`
- DisplayRank string `json:"DisplayRank"`
- LevelInfo struct {
- CurrentLevel int `json:"current_level"`
- Min int `json:"current_min"`
- NowExp int `json:"current_exp"`
- NextExp int `json:"next_exp"`
- } `json:"level_info"`
- Pendant PendantInfo `json:"pendant"`
- Nameplate NameplateInfo `json:"nameplate"`
- OfficialVerify struct {
- Type int `json:"type"`
- Desc string `json:"desc"`
- } `json:"official_verify"`
- Vip struct {
- Type int `json:"vipType"`
- DueDate int64 `json:"vipDueDate"`
- DueRemark string `json:"dueRemark"`
- AccessStatus int `json:"accessStatus"`
- VipStatus int `json:"vipStatus"`
- VipStatusWarn string `json:"vipStatusWarn"`
- } `json:"vip"`
- FansDetail *FansDetail `json:"fans_detail,omitempty"`
- Following int16 `json:"following"`
- BInfo *user.UserBase `json:"b_info,omitempty"`
- }
- type FansDetail struct {
- UID int64 `json:"uid"`
- MedalID int32 `json:"medal_id"`
- MedalName string `json:"medal_name"`
- Score int32 `json:"score"`
- Level int8 `json:"level"`
- Intimacy int32 `json:"intimacy"`
- Status int8 `json:"master_status"`
- Received int8 `json:"is_receive"`
- }
- type NameplateInfo struct {
- Nid int `json:"nid"`
- Name string `json:"name"`
- Image string `json:"image"`
- ImageSmall string `json:"image_small"`
- Level string `json:"level"`
- Condition string `json:"condition"`
- }
- type PendantInfo struct {
- PID int `json:"pid"`
- Name string `json:"name"`
- Image string `json:"image"`
- Expire int `json:"expire"`
- }
- type AddRes struct {
- RpID int64 `json:"rpid"`
- NeedCaptcha bool `json:"need_captcha"`
- URL string `json:"url"`
- }
- type CursorRes struct {
- Assist int64 `json:"assist"`
- BlackList int64 `json:"blacklist"`
- Replies []*Reply `json:"replies,omitempty"`
- Upper *Upper `json:"upper,omitempty"`
- Cursor *Cursor `json:"cursor,omitempty"`
- Config *Config `json:"config,omitempty"`
- Hots []*Reply `json:"hots,omitempty"`
- Notice *Notice `json:"notice,omitempty"`
- Top *Top `json:"top,omitempty"`
- }
- type SubCursorRes struct {
- Assist int64 `json:"assist"`
- BlackList int64 `json:"blacklist"`
- Root *Reply `json:"root,omitempty"`
- Upper *Upper `json:"upper,omitempty"`
- Cursor *Cursor `json:"cursor,omitempty"`
- }
- type Notice struct {
- ID int64 `json:"id"`
- Plat int8 `json:"-"`
- Condition int8 `json:"-"`
- Build int64 `json:"-"`
- Title string `json:"title"`
- Content string `json:"content"`
- Link string `json:"link"`
- ClientType string `json:"-"`
- }
- type Top struct {
- Admin *Reply `json:"admin,omitempty"`
- Upper *Reply `json:"upper,omitempty"`
- }
- type Config struct {
- ShowEntry int16 `json:"showentry"`
- ShowAdmin int16 `json:"showadmin"`
- }
- type Cursor struct {
- ACount int64 `json:"all_count"`
- CursorRangeMax int64 `json:"max_id"`
- CursorRangeMin int64 `json:"min_id"`
- Size int64 `json:"size"`
- }
- type Upper struct {
- MID int64 `json:"mid"`
- }
|