37 lines
1.6 KiB
Go
37 lines
1.6 KiB
Go
package pubdef
|
|
|
|
type Flow struct {
|
|
WatchTimes int64 `json:"watchTimes" bson:"watchTimes"` // 真实观看次数
|
|
ShowTimes int64 `json:"showTimes" bson:"showTimes"` // 展示次数
|
|
Comments int64 `json:"comments" bson:"comments"` // 评论条数
|
|
Likes int64 `json:"likes" bson:"likes"` // 真实点赞数(收藏总量)
|
|
WeekWatchs int64 `json:"weekWatchs" bson:"weekWatchs"` // 本周观看次数
|
|
MonthWatchs int64 `json:"monthWatchs" bson:"monthWatchs"` // 本月观看次数
|
|
YearWatchs int64 `json:"yearWatchs" bson:"yearWatchs"` // 本年观看次数
|
|
TodayWatchs int64 `json:"todayWatchs" bson:"todayWatchs"` // 当日观看次数
|
|
WeekLikes int64 `json:"weekLikes" bson:"weekLikes"` // 近7日收藏量
|
|
MonthLikes int64 `json:"monthLikes" bson:"monthLikes"` // 近30日收藏量
|
|
YearLikes int64 `json:"yearLikes" bson:"yearLikes"` // 近365日收藏量
|
|
}
|
|
|
|
type FakeFlow struct {
|
|
WatchTimes int64 `json:"watchTimes" bson:"watchTimes"` // 假观看次数
|
|
Likes int64 `json:"likes" bson:"likes"` // 假点赞数
|
|
}
|
|
|
|
type InformationStatus int32
|
|
|
|
const (
|
|
InformationStatusWaiting InformationStatus = 0 // 初始化
|
|
InformationStatusVerifyOK InformationStatus = 1 // 上架
|
|
InformationStatusVerifyCancel InformationStatus = 2 // 下架
|
|
)
|
|
|
|
type InformationUpdateStatus int32
|
|
|
|
const (
|
|
InformationUpdateStatusWaiting InformationUpdateStatus = 0 // 待发布
|
|
InformationUpdateStatusLoading InformationUpdateStatus = 1 // 连载中
|
|
InformationUpdateStatusEnd InformationUpdateStatus = 2 // 已完结
|
|
)
|