1 #680
|
@ -3,8 +3,10 @@ package apollostruct
|
||||||
import "service/dbstruct"
|
import "service/dbstruct"
|
||||||
|
|
||||||
type ReferentialZoneMoment struct {
|
type ReferentialZoneMoment struct {
|
||||||
Text *string `json:"text"` // 动态文字内容
|
Text *string `json:"text"` // 动态文字内容
|
||||||
MediaComp *dbstruct.MediaComponent `json:"media_component"` // 动态媒体内容
|
MediaComp *dbstruct.MediaComponent `json:"media_component"` // 动态媒体内容
|
||||||
MType *int64 `json:"m_type"` // 媒体类型,见: MediaType*
|
MType *int64 `json:"m_type"` // 媒体类型,见: MediaType*
|
||||||
Status *int64 `json:"status"` // 审批状态
|
Status *int64 `json:"status"` // 审批状态
|
||||||
|
MediaAmount *int64 `json:"media_amount"` // 媒体数量
|
||||||
|
MediaVisibleRange *int64 `json:"media_visible_range"` // 媒体可见数量
|
||||||
}
|
}
|
||||||
|
|
|
@ -2635,13 +2635,15 @@ func (s *Service) ApiCreateZone(ctx *gin.Context, req *zoneproto.ApiCreateReq) (
|
||||||
|
|
||||||
_, err = _DefaultZoneMoment.OpCreate(ctx, &zonemomentproto.OpCreateReq{
|
_, err = _DefaultZoneMoment.OpCreate(ctx, &zonemomentproto.OpCreateReq{
|
||||||
ZoneMoment: &dbstruct.ZoneMoment{
|
ZoneMoment: &dbstruct.ZoneMoment{
|
||||||
Mid: req.Zone.Mid,
|
Mid: req.Zone.Mid,
|
||||||
Zid: goproto.Int64(zid),
|
Zid: goproto.Int64(zid),
|
||||||
CType: goproto.Int64(consts.ZoneMomentCType_Free),
|
CType: goproto.Int64(consts.ZoneMomentCType_Free),
|
||||||
Text: cfg.Text,
|
Text: cfg.Text,
|
||||||
MediaComp: cfg.MediaComp,
|
MediaComp: cfg.MediaComp,
|
||||||
MType: cfg.MType,
|
MType: cfg.MType,
|
||||||
Status: cfg.Status,
|
Status: cfg.Status,
|
||||||
|
MediaAmount: cfg.MediaAmount,
|
||||||
|
MediaVisibleRange: cfg.MediaVisibleRange,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue