From 0d6097d174335bf3bf89000e21776812127a78be Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 16 May 2024 14:07:27 +0800 Subject: [PATCH] by Robin at 20240516 --- api/proto/zonemoment/proto/not_null_def_api.go | 4 ---- api/proto/zonemoment/proto/not_null_def_op.go | 4 ---- 2 files changed, 8 deletions(-) diff --git a/api/proto/zonemoment/proto/not_null_def_api.go b/api/proto/zonemoment/proto/not_null_def_api.go index cccb6e46..88385610 100644 --- a/api/proto/zonemoment/proto/not_null_def_api.go +++ b/api/proto/zonemoment/proto/not_null_def_api.go @@ -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)) diff --git a/api/proto/zonemoment/proto/not_null_def_op.go b/api/proto/zonemoment/proto/not_null_def_op.go index 3dbb2a32..5f9d6039 100644 --- a/api/proto/zonemoment/proto/not_null_def_op.go +++ b/api/proto/zonemoment/proto/not_null_def_op.go @@ -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))