1Panel/core/app/dto/common.go

44 lines
769 B
Go
Raw Normal View History

2024-07-19 19:04:11 +08:00
package dto
2024-07-25 14:43:41 +08:00
type SearchWithPage struct {
PageInfo
Info string `json:"info"`
}
type SearchPageWithType struct {
PageInfo
Type string `json:"type"`
Info string `json:"info"`
}
2024-07-25 14:43:41 +08:00
type PageInfo struct {
Page int `json:"page" validate:"required,number"`
PageSize int `json:"pageSize" validate:"required,number"`
}
2024-07-19 19:04:11 +08:00
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"`
}
type OperateByType struct {
Type string `json:"type"`
}
type OperateByID struct {
ID uint `json:"id"`
}
type OperateByIDs struct {
IDs []uint `json:"ids"`
}