by Robin at 20241210 #879

Merged
chenhao merged 1 commits from feat-IRONFANS-250-Robin into test 2024-12-10 15:05:31 +08:00
1 changed files with 15 additions and 9 deletions
Showing only changes of commit 4d92cc78ce - Show all commits

View File

@ -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
}