Files
mayfly-go/server/pkg/model/page.go
2022-10-26 20:49:29 +08:00

19 lines
356 B
Go

package model
// 分页参数
type PageParam struct {
PageNum int `json:"pageNum"`
PageSize int `json:"pageSize"`
}
// 分页结果
type PageResult struct {
Total int64 `json:"total"`
List interface{} `json:"list"`
}
// 空分页结果日志
func EmptyPageResult() *PageResult {
return &PageResult{Total: 0, List: make([]interface{}, 0)}
}