feat: first version.

This commit is contained in:
tx7do
2023-05-18 13:06:55 +08:00
parent 75fcd82de5
commit ba93a75c5a
20 changed files with 1703 additions and 1 deletions

5
pagination/pagination.go Normal file
View File

@@ -0,0 +1,5 @@
package pagination
func GetPageOffset(pageNum, pageSize int32) int {
return int((pageNum - 1) * pageSize)
}