by Robin at 20240516

This commit is contained in:
Leufolium 2024-05-16 14:07:27 +08:00
parent c0698c2da3
commit 0d6097d174
2 changed files with 0 additions and 8 deletions

View File

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

View File

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