Merge pull request '1' (#680) from BUG-20240806 into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/680
This commit is contained in:
chenhao 2024-08-06 13:32:41 +08:00
commit c2d3b2cf30
2 changed files with 15 additions and 11 deletions

View File

@ -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"` // 媒体可见数量
}

View File

@ -2641,13 +2641,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 {