PageToSlice

master
nikkiing 2 years ago
parent d651c6fb09
commit ada4207336
  1. 2
      pagination/v1/pagination.go

@ -22,7 +22,7 @@ type Integer interface {
}
// 用于对一个切片分页
func PageToSlice[T ~int](page, pageSize, total T) (begin, end T) {
func PageToSlice[T Integer](page, pageSize, total T) (begin, end T) {
if page < DefaultPage {
page = DefaultPage
}

Loading…
Cancel
Save