mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-19 03:54:13 +08:00
27 lines
507 B
Go
27 lines
507 B
Go
package dto
|
|
|
|
type SearchWithPage struct {
|
|
PageInfo
|
|
Info string `json:"info"`
|
|
}
|
|
|
|
type PageInfo struct {
|
|
Page int `json:"page" validate:"required,number"`
|
|
PageSize int `json:"pageSize" validate:"required,number"`
|
|
}
|
|
|
|
type PageResult struct {
|
|
Total int64 `json:"total"`
|
|
Items interface{} `json:"items"`
|
|
}
|
|
|
|
type Response struct {
|
|
Code int `json:"code"`
|
|
Message string `json:"message"`
|
|
Data interface{} `json:"data"`
|
|
}
|
|
|
|
type Options struct {
|
|
Option string `json:"option"`
|
|
}
|