This commit is contained in:
wangchuxiao
2023-03-17 15:24:07 +08:00
parent 2f8c65f930
commit 19f5354721
2 changed files with 15 additions and 7 deletions

10
pkg/utils/page.go Normal file
View File

@@ -0,0 +1,10 @@
package utils
import "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
func GetPage(pagination *sdkws.RequestPagination) (pageNumber, showNumber int32) {
if pagination != nil {
return pagination.PageNumber, pagination.ShowNumber
}
return
}