by Robin at 20241210 #879
|
@ -5,14 +5,17 @@ import (
|
|||
)
|
||||
|
||||
type ActivityHotApiVO struct {
|
||||
Mid int64 `json:"mid" bson:"mid"` // 主播mid
|
||||
Image *dbstruct.MediaComponent `json:"image" bson:"image"` // 主图
|
||||
Title string `json:"title" bson:"title"` // 标题
|
||||
Text string `json:"text" bson:"text"` // 文字内容
|
||||
Hyperlinks []*dbstruct.Hyperlink `json:"hyperlinks" bson:"hyperlinks"` // 跳转链接
|
||||
Gender int64 `json:"gender" bson:"gender"` // 性别
|
||||
Age int64 `json:"age" bson:"age"` // 年龄
|
||||
Tag []string `json:"tag" bson:"tag"` // 标签
|
||||
Mid int64 `json:"mid" bson:"mid"` // 主播mid
|
||||
Image *dbstruct.MediaComponent `json:"image" bson:"image"` // 主图
|
||||
Title string `json:"title" bson:"title"` // 标题
|
||||
Text string `json:"text" bson:"text"` // 文字内容
|
||||
Hyperlinks []*dbstruct.Hyperlink `json:"hyperlinks" bson:"hyperlinks"` // 跳转链接
|
||||
Gender int64 `json:"gender" bson:"gender"` // 性别
|
||||
Age int64 `json:"age" bson:"age"` // 年龄
|
||||
Height int64 `json:"height" bson:"height"` // 身高
|
||||
Weight int64 `json:"weight" bson:"weight"` // 体重
|
||||
Constellation string `json:"constellation" bson:"constellation"` // 星座
|
||||
City string `json:"city" bson:"city"` // 所在城市
|
||||
}
|
||||
|
||||
func NewActivityHotApiVO() *ActivityHotApiVO {
|
||||
|
@ -57,7 +60,10 @@ func (vo *ActivityHotApiVO) CopyStreamer(streamer *dbstruct.Streamer) *ActivityH
|
|||
}
|
||||
vo.Gender = streamer.GetGender()
|
||||
vo.Age = streamer.GetAge()
|
||||
vo.Tag = streamer.GetTag()
|
||||
vo.Height = streamer.GetHeight()
|
||||
vo.Weight = streamer.GetWeight()
|
||||
vo.Constellation = streamer.GetConstellation()
|
||||
vo.City = streamer.GetCity()
|
||||
return vo
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue