Skip to content

Commit

Permalink
增加Pagination结构体 用户接收curd请求的分页参数
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmao88 committed Jun 22, 2022
1 parent 6d98c9e commit a3dd4b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/service/curd/curd.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ type Curd interface {
Options() ([]Option, error)
}

type Pagination struct {
Page int `p:"page"`
PageSize int `p:"page_size"`
Order string `p:"order"`
}

type List struct {
Items interface{} `json:"items"`
Total int `json:"total"`
Expand Down

0 comments on commit a3dd4b8

Please sign in to comment.