Merge pull request 'by Robin at 20240422' (#325) from dev-feat-IRONFANS-70-Robin into feat-IRONFANS-70

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/325
This commit is contained in:
chenhao 2024-04-23 18:32:13 +08:00
commit d48d695310
2 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ type ApiZoneMomentVO struct {
Expenditure int64 `json:"expenditure"` Expenditure int64 `json:"expenditure"`
IronfanshipPrice int64 `json:"ironfanship_price"` IronfanshipPrice int64 `json:"ironfanship_price"`
BuyerCnt int64 `json:"buyer_cnt"` // 动态购买人数 BuyerCnt int64 `json:"buyer_cnt"` // 动态购买人数
IsSuperfanshipEnabled int64 `json:"is_superfanship_enabled"`
} }
func (vo *ApiZoneMomentVO) CopyZoneMoment(zonemoment *dbstruct.ZoneMoment) { 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 { if zv, ok := zvMap[zid]; ok {
vo.IronfanshipPrice = zv.IronfanshipPrice vo.IronfanshipPrice = zv.IronfanshipPrice
vo.IsSuperfanshipEnabled = int64(zv.IsSuperfanshipEnabled)
} }
} }