From e54506589370734591ae5c9dba4984ebb746264d Mon Sep 17 00:00:00 2001 From: Leufolium Date: Tue, 6 Aug 2024 13:32:08 +0800 Subject: [PATCH] 1 --- apollostruct/referential_zone_moment.go | 10 ++++++---- app/mix/service/apiservice.go | 16 +++++++++------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/apollostruct/referential_zone_moment.go b/apollostruct/referential_zone_moment.go index f0e57e86..39f26032 100644 --- a/apollostruct/referential_zone_moment.go +++ b/apollostruct/referential_zone_moment.go @@ -3,8 +3,10 @@ package apollostruct import "service/dbstruct" type ReferentialZoneMoment struct { - Text *string `json:"text"` // 动态文字内容 - MediaComp *dbstruct.MediaComponent `json:"media_component"` // 动态媒体内容 - MType *int64 `json:"m_type"` // 媒体类型,见: MediaType* - Status *int64 `json:"status"` // 审批状态 + Text *string `json:"text"` // 动态文字内容 + MediaComp *dbstruct.MediaComponent `json:"media_component"` // 动态媒体内容 + MType *int64 `json:"m_type"` // 媒体类型,见: MediaType* + Status *int64 `json:"status"` // 审批状态 + MediaAmount *int64 `json:"media_amount"` // 媒体数量 + MediaVisibleRange *int64 `json:"media_visible_range"` // 媒体可见数量 } diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index 8279add6..543d2e85 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -2635,13 +2635,15 @@ func (s *Service) ApiCreateZone(ctx *gin.Context, req *zoneproto.ApiCreateReq) ( _, err = _DefaultZoneMoment.OpCreate(ctx, &zonemomentproto.OpCreateReq{ ZoneMoment: &dbstruct.ZoneMoment{ - Mid: req.Zone.Mid, - Zid: goproto.Int64(zid), - CType: goproto.Int64(consts.ZoneMomentCType_Free), - Text: cfg.Text, - MediaComp: cfg.MediaComp, - MType: cfg.MType, - Status: cfg.Status, + Mid: req.Zone.Mid, + Zid: goproto.Int64(zid), + CType: goproto.Int64(consts.ZoneMomentCType_Free), + Text: cfg.Text, + MediaComp: cfg.MediaComp, + MType: cfg.MType, + Status: cfg.Status, + MediaAmount: cfg.MediaAmount, + MediaVisibleRange: cfg.MediaVisibleRange, }, }) if err != nil { -- 2.41.0