by Robin at 20240422

This commit is contained in:
Leufolium 2024-04-23 18:30:28 +08:00
parent 0eef3c0aef
commit 1966a42d28
2 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ type ApiZoneMomentVO struct {
Expenditure int64 `json:"expenditure"`
IronfanshipPrice int64 `json:"ironfanship_price"`
BuyerCnt int64 `json:"buyer_cnt"` // 动态购买人数
IsSuperfanshipEnabled int64 `json:"is_superfanship_enabled"`
}
func (vo *ApiZoneMomentVO) CopyZoneMoment(zonemoment *dbstruct.ZoneMoment) {

View File

@ -1722,6 +1722,7 @@ func (s *Service) utilFillZoneMomentsWithApiVOInfo(ctx *gin.Context, list []*dbs
// 铁粉价格
if zv, ok := zvMap[zid]; ok {
vo.IronfanshipPrice = zv.IronfanshipPrice
vo.IsSuperfanshipEnabled = int64(zv.IsSuperfanshipEnabled)
}
}