From 0a287ebbfc513fcf910507f52d2e727acc1da06c Mon Sep 17 00:00:00 2001 From: Leufolium Date: Tue, 21 May 2024 23:19:08 +0800 Subject: [PATCH] by Robin at 20240521 --- .../proto/not_null_def_op.go | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/api/proto/zone_third_partner/proto/not_null_def_op.go b/api/proto/zone_third_partner/proto/not_null_def_op.go index 5c812859..e796a143 100644 --- a/api/proto/zone_third_partner/proto/not_null_def_op.go +++ b/api/proto/zone_third_partner/proto/not_null_def_op.go @@ -25,25 +25,3 @@ func (p *OpDeleteReq) ProvideNotNullValue() (params []*validator.JsonParam) { params = append(params, validator.NewInt64PtrParam("请填写空间id!", p.Zid)) return } - -func (p *OpCreateReq) ProvideNotNullValue() (params []*validator.JsonParam) { - params = make([]*validator.JsonParam, 0) - params = append(params, validator.NewInt64PtrParam("请填写空间id!", p.ZoneThirdPartner.Zid)) - params = append(params, validator.NewInt64PtrParam("请填写代运营用户id!", p.ZoneThirdPartner.ThirdPartnerMid)) - params = append(params, validator.NewFloat64PtrParam("请填写分成比例!", p.ZoneThirdPartner.SharingRatio)) - return -} - -func (p *OpUpdateReq) ProvideNotNullValue() (params []*validator.JsonParam) { - params = make([]*validator.JsonParam, 0) - - params = append(params, validator.NewInt64PtrParam("请填写空间id!", p.Zid)) - return -} - -func (p *OpDeleteReq) ProvideNotNullValue() (params []*validator.JsonParam) { - params = make([]*validator.JsonParam, 0) - - params = append(params, validator.NewInt64PtrParam("请填写空间id!", p.Zid)) - return -}