From a421bd11bb34098f61b549f9fdff9e8358ceb6fd Mon Sep 17 00:00:00 2001 From: Monet Lee Date: Wed, 3 Jul 2024 11:14:38 +0800 Subject: [PATCH] fix uncorrect args call. --- internal/rpc/third/s3.go | 3 ++- pkg/common/storage/common/types.go | 12 ------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/internal/rpc/third/s3.go b/internal/rpc/third/s3.go index 7d6d2a375..a1e3d857e 100644 --- a/internal/rpc/third/s3.go +++ b/internal/rpc/third/s3.go @@ -30,6 +30,7 @@ import ( "github.com/google/uuid" "github.com/openimsdk/open-im-server/v3/pkg/common/servererrs" + "github.com/openimsdk/protocol/sdkws" "github.com/openimsdk/protocol/third" "github.com/openimsdk/tools/errs" "github.com/openimsdk/tools/log" @@ -290,7 +291,7 @@ func (t *thirdServer) apiAddress(prefix, name string) string { func (t *thirdServer) DeleteOutdatedData(ctx context.Context, req *third.DeleteOutdatedDataReq) (*third.DeleteOutdatedDataResp, error) { var conf config.Third expireTime := time.UnixMilli(req.ExpireTime) - findPagination := &common.FindPagination{ + findPagination := &sdkws.RequestPagination{ PageNumber: 1, ShowNumber: 1000, } diff --git a/pkg/common/storage/common/types.go b/pkg/common/storage/common/types.go index a19de205e..759121158 100644 --- a/pkg/common/storage/common/types.go +++ b/pkg/common/storage/common/types.go @@ -24,15 +24,3 @@ type GroupSimpleUserID struct { Hash uint64 MemberNum uint32 } - -type FindPagination struct { - PageNumber int32 - ShowNumber int32 -} - -func (f *FindPagination) GetPageNumber() int32 { - return f.PageNumber -} -func (f *FindPagination) GetShowNumber() int32 { - return f.ShowNumber -}