From eac26caaf78ec36215c9c204f8142c2e26dc0579 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 25 Apr 2024 20:18:23 +0800 Subject: [PATCH] by Robin at 20240425 --- api/proto/zonemoment/proto/not_null_def_api.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/api/proto/zonemoment/proto/not_null_def_api.go b/api/proto/zonemoment/proto/not_null_def_api.go index b62a2a6d..88385610 100644 --- a/api/proto/zonemoment/proto/not_null_def_api.go +++ b/api/proto/zonemoment/proto/not_null_def_api.go @@ -43,12 +43,6 @@ func (p *ApiUpdateReq) ProvideNotNullValue() (params []*validator.JsonParam) { } if p.MediaComp != nil { params = append(params, validator.NewStructPtrParam("请确认创建动态的媒体!", p.MediaComp)) - switch util.DerefInt64(p.ZoneMoment.MType) { - case consts.MediaTypeImg: - params = append(params, validator.NewInt64PtrParam("请确认创建动态的媒体可见范围!", p.ZoneMoment.MediaVisibleRange)) - case consts.MediaTypeVideo: - params = append(params, validator.NewInt64PtrParam("请确认创建动态是否要模糊封面!", p.ZoneMoment.IsBlurringCover)) - } } } return