From 73f1224de5da620eef353b900221703409aa1007 Mon Sep 17 00:00:00 2001 From: Monet Lee Date: Mon, 28 Oct 2024 15:18:55 +0800 Subject: [PATCH] fix: remove check. (#153) * fix:remove unused method. * remove unused AppVersion * remove. * fix: remove check. --- third/third.go | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/third/third.go b/third/third.go index 14f629d1..0f5d2ca9 100644 --- a/third/third.go +++ b/third/third.go @@ -16,6 +16,7 @@ package third import ( "errors" + "github.com/openimsdk/protocol/constant" ) @@ -59,23 +60,3 @@ func (x *CompleteFormDataReq) Check() error { } return nil } - -func (x *LatestApplicationVersionReq) Check() error { - if x.Platform == "" { - return errors.New("platform is empty") - } - return nil -} - -func (x *PageApplicationVersionReq) Check() error { - if x.Pagination == nil { - return errors.New("pagination is empty") - } - if x.Pagination.PageNumber < 1 { - return errors.New("pageNumber is invalid") - } - if x.Pagination.ShowNumber < 1 { - return errors.New("showNumber is invalid") - } - return nil -}