33 lines
957 B
Go
33 lines
957 B
Go
package recommod
|
|
|
|
import "91porn-server/models/v/vidmod"
|
|
|
|
// BaseInfo 推荐用户信息
|
|
type BaseInfo struct {
|
|
UID uint64 `json:"uid"`
|
|
Name string `json:"name"`
|
|
Gender string `json:"gender"`
|
|
Portrait string `json:"portrait"`
|
|
HasLocked bool `json:"hasLocked"` //已禁止登陆
|
|
HasBanned bool `json:"hasBanned"` //已禁言
|
|
CollectionCount int `json:"collectionCount"` //作品总数
|
|
}
|
|
|
|
// UserListResp 主播推荐应答
|
|
type UserListResp struct {
|
|
List []BaseInfo `json:"list"`
|
|
HasNext bool `json:"hasNext"`
|
|
}
|
|
|
|
// VideoListResp 视频推荐应答
|
|
type VideoListResp struct {
|
|
//视频信息
|
|
VInfos []*vidmod.VideoInfo `json:"vInfos"`
|
|
//总页数
|
|
TotalPages int `json:"totalPages"`
|
|
//环形队列非空时始终可继续读取
|
|
HasNext bool `json:"hasNext"`
|
|
//当前全局推荐队列版本,仅用于排查
|
|
QueueVersion string `json:"queueVersion,omitempty"`
|
|
}
|