mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-22 18:17:10 +08:00
feat: obj list api
This commit is contained in:
@@ -4,3 +4,12 @@ type PageReq struct {
|
||||
PageIndex int `json:"page_index" form:"page_index"`
|
||||
PageSize int `json:"page_size" form:"page_size"`
|
||||
}
|
||||
|
||||
func (p *PageReq) Validate() {
|
||||
if p.PageIndex < 1 {
|
||||
p.PageIndex = 1
|
||||
}
|
||||
if p.PageSize < 1 {
|
||||
p.PageSize = 50
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user