1Panel/core/app/dto/common.go
ssongliu f0274701cf
Some checks failed
sync2gitee / repo-sync (push) Failing after -7m48s
feat: 修改备份账号同步方式 (#6108)
2024-08-13 15:33:34 +08:00

39 lines
711 B
Go

package dto
type SearchWithPage struct {
PageInfo
Info string `json:"info"`
}
type SearchPageWithType struct {
PageInfo
Type string `json:"type"`
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"`
}
type OperateByID struct {
ID uint `json:"id"`
}
type OperateByIDs struct {
IDs []uint `json:"ids"`
}