15 lines
416 B
Go
15 lines
416 B
Go
package dto
|
|
|
|
// PageRequest 分页请求参数(GET query,嵌入各列表请求)
|
|
type PageRequest struct {
|
|
Page int `form:"page" binding:"omitempty,min=1"`
|
|
PageSize int `form:"page_size" binding:"omitempty,min=1,max=50"`
|
|
}
|
|
|
|
// PageResponse 分页响应(嵌入各列表响应)
|
|
type PageResponse struct {
|
|
Total int64 `json:"total"`
|
|
Page int `json:"page"`
|
|
PageSize int `json:"page_size"`
|
|
}
|