migrate from github

This commit is contained in:
2026-07-15 22:42:31 +08:00
commit 3ad559f05e
262 changed files with 21637 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
package dto
type Pagination struct {
Page int `json:"page"`
PageSize int `json:"page_size"`
}
func (p *Pagination) Validate() bool {
if p == nil {
return false
}
if p.Page <= 0 || p.PageSize <= 0 {
return false
}
return true
}
type SortArgs struct {
Field string `json:"field"`
Desc bool `json:"desc"`
}
type RecursiveOptions struct {
IncludeChildren bool `json:"include_children"`
Recursive bool `json:"recursive"`
Depth *int `json:"depth"`
}