refactor: reorganize modules and add Linux build tooling
This commit is contained in:
14
module/base/mgt/internal/logic/tool/tool.go
Normal file
14
module/base/mgt/internal/logic/tool/tool.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package tool
|
||||
|
||||
import "bsm/full/module/base/mgt/internal/types"
|
||||
|
||||
func GetSizeAndPage(page, size int) (int, int) {
|
||||
if page <= 0 {
|
||||
page = types.DefaultPage
|
||||
}
|
||||
|
||||
if size <= 0 {
|
||||
size = types.DefaultSize
|
||||
}
|
||||
return page, size
|
||||
}
|
||||
Reference in New Issue
Block a user