Documentation ¶
Index ¶
- Constants
- type ArgHasLike
- type ArgItemLikes
- type ArgLike
- type ArgRawStats
- type ArgStats
- type ArgStatsWithLike
- type ArgUpdateCount
- type ArgUserLikes
- type Business
- type ItemLikeRecord
- type ItemMsg
- type LikeCounts
- type LikeItem
- type LikeMsg
- type MultiBusiness
- type MultiBusinessItem
- type RawStats
- type StatMsg
- type Stats
- type StatsWithLike
- type UpMidsReq
- type UserLikeRecord
- type UserMsg
- type UserTotalLike
Constants ¶
View Source
const ( TypeLike = 1 TypeCancelLike = 2 TypeDislike = 3 TypeCancelDislike = 4 // only used by internal TypeLikeReverse = 5 TypeDislikeReverse = 6 StateBlank = 0 StateLike = 1 StateDislike = 2 ItemListLike = 1 ItemListDislike = 2 ItemListAll = 3 UserListLike = 1 UserListDislike = 2 UserListAll = 3 )
type and states
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgHasLike ¶
ArgHasLike .
type ArgItemLikes ¶
type ArgItemLikes struct { Business string OriginID int64 MessageID int64 Mid int64 Pn, Ps int RealIP string }
ArgItemLikes .
type ArgLike ¶
type ArgLike struct { Mid int64 UpMid int64 Business string OriginID int64 MessageID int64 Type int8 RealIP string }
ArgLike .
type ArgRawStats ¶
ArgRawStats .
type ArgStatsWithLike ¶
type ArgStatsWithLike struct { Mid int64 Business string OriginID int64 MessageIDs []int64 RealIP string }
ArgStatsWithLike .
type ArgUpdateCount ¶
type ArgUpdateCount struct { Business string OriginID int64 MessageID int64 LikeChange int64 DislikeChange int64 Operator string RealIP string }
ArgUpdateCount .
type ArgUserLikes ¶
ArgUserLikes .
type Business ¶
type Business struct { ID int64 `json:"id"` Name string `json:"name"` MessageListType uint8 `json:"message_list_type"` UserListType uint8 `json:"user_list_type"` UserLikesLimit int `json:"user_likes_limit"` MessageLikesLimit int `json:"message_likes_limit"` EnableOriginID int `json:"enable_origin_id"` }
Business .
func (*Business) EnableItemDislikeList ¶
EnableItemDislikeList .
func (*Business) EnableItemLikeList ¶
EnableItemLikeList .
func (*Business) EnableUserDislikeList ¶
EnableUserDislikeList .
func (*Business) EnableUserLikeList ¶
EnableUserLikeList .
type ItemLikeRecord ¶
ItemLikeRecord .
type ItemMsg ¶
type ItemMsg struct { State int8 `json:"state"` Business string `json:"business"` OriginID int64 `json:"origin_id"` MessageID int64 `json:"message_id"` }
ItemMsg .
type LikeCounts ¶
LikeCounts like counts
type LikeMsg ¶
type LikeMsg struct { Type int8 Mid int64 UpMid int64 LikeTime time.Time Business string OriginID int64 MessageID int64 }
LikeMsg like message
type MultiBusiness ¶
type MultiBusiness struct { Mid int64 `json:"mid"` Businesses map[string][]*MultiBusinessItem `json:"businesses" validate:"required"` }
MultiBusiness .
type MultiBusinessItem ¶
type MultiBusinessItem struct { OriginID int64 `json:"origin_id"` MessageID int64 `json:"message_id"` }
MultiBusinessItem .
type RawStats ¶
type RawStats struct { Stats LikesChange int64 `json:"likes_change"` DislikesChange int64 `json:"dislikes_change"` }
RawStats .
type StatMsg ¶
type StatMsg struct { Type string `json:"type"` ID int64 `json:"id"` Count int64 `json:"count"` Timestamp int64 `json:"timestamp"` OriginID int64 `json:"origin_id,omitempty"` DislikeCount int64 `json:"dislike_count,omitempty"` Mid int64 `json:"mid,omitempty"` UpMid int64 `json:"up_mid,omitempty"` }
StatMsg databus stat message
type Stats ¶
type Stats struct { OriginID int64 `json:"origin_id"` ID int64 `json:"id"` Likes int64 `json:"likes"` Dislikes int64 `json:"dislikes"` }
Stats .
type StatsWithLike ¶
StatsWithLike .
type UpMidsReq ¶
type UpMidsReq struct { OriginID int64 `json:"origin_id" validate:"min=0"` MessageID int64 `json:"message_id" validate:"min=1,required"` UpMid int64 `json:"up_mid" validate:"required"` }
UpMidsReq .
type UserLikeRecord ¶
UserLikeRecord .
type UserMsg ¶
type UserMsg struct { Mid int64 `json:"mid"` State int8 `json:"state"` Business string `json:"business"` }
UserMsg .
type UserTotalLike ¶
type UserTotalLike struct { Total int `json:"total"` List []*ItemLikeRecord `json:"list"` }
UserTotalLike .
Click to show internal directories.
Click to hide internal directories.