Files
mayfly-go/server/pkg/model/page.go
2022-11-18 17:52:30 +08:00

19 lines
336 B
Go

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