by Robin at 20240516
This commit is contained in:
parent
c0698c2da3
commit
0d6097d174
|
@ -19,10 +19,6 @@ func (p *ApiCreateReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
|||
case consts.ZoneMomentCType_Paid:
|
||||
params = append(params, validator.NewInt64PtrParam("请确认创建动态的文字可见范围!", p.ZoneMoment.TextVisibleRange))
|
||||
params = append(params, validator.NewInt64PtrParam("请确认创建动态的价格!", p.ZoneMoment.Price))
|
||||
params = append(params, validator.NewInt64PtrParam("请确认是否添加付费文案!", p.ZoneMoment.IsCreatingPaidText))
|
||||
if p.ZoneMoment.GetIsCreatingPaidText() == 1 {
|
||||
params = append(params, validator.NewStringPtrParam("请确认创建动态的付费文案!", p.PaidText))
|
||||
}
|
||||
switch util.DerefInt64(p.ZoneMoment.MType) {
|
||||
case consts.MediaTypeImg:
|
||||
params = append(params, validator.NewInt64PtrParam("请确认创建动态的媒体可见范围!", p.ZoneMoment.MediaVisibleRange))
|
||||
|
|
|
@ -19,10 +19,6 @@ func (p *OpCreateReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
|||
case consts.ZoneMomentCType_Paid:
|
||||
params = append(params, validator.NewInt64PtrParam("请确认创建动态的文字可见范围!", p.ZoneMoment.TextVisibleRange))
|
||||
params = append(params, validator.NewInt64PtrParam("请确认创建动态的价格!", p.ZoneMoment.Price))
|
||||
params = append(params, validator.NewInt64PtrParam("请确认是否添加付费文案!", p.ZoneMoment.IsCreatingPaidText))
|
||||
if p.ZoneMoment.GetIsCreatingPaidText() == 1 {
|
||||
params = append(params, validator.NewStringPtrParam("请确认创建动态的付费文案!", p.PaidText))
|
||||
}
|
||||
switch util.DerefInt64(p.ZoneMoment.MType) {
|
||||
case consts.MediaTypeImg:
|
||||
params = append(params, validator.NewInt64PtrParam("请确认创建动态的媒体可见范围!", p.ZoneMoment.MediaVisibleRange))
|
||||
|
|
Loading…
Reference in New Issue