mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-28 18:36:34 +08:00
19 lines
356 B
Go
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)}
|
|
}
|