1 #680

Merged
chenhao merged 1 commits from BUG-20240806 into test 2024-08-06 13:32:42 +08:00
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

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