mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-13 19:21:19 +08:00
41 lines
864 B
Go
41 lines
864 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 UpdateDescription struct {
|
|
ID uint `json:"id" validate:"required"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type OperationWithName struct {
|
|
Name string `json:"name" validate:"required"`
|
|
}
|
|
|
|
type OperateByID struct {
|
|
ID uint `json:"id" validate:"required"`
|
|
}
|
|
|
|
type BatchDeleteReq struct {
|
|
Ids []uint `json:"ids" validate:"required"`
|
|
}
|
|
|
|
type FilePath struct {
|
|
Path string `json:"path" validate:"required"`
|
|
}
|
|
|
|
type DeleteByName struct {
|
|
Name string `json:"name" validate:"required"`
|
|
}
|
|
|
|
type OperationWithNameAndType struct {
|
|
Name string `json:"name" validate:"required"`
|
|
Type string `json:"type" validate:"required"`
|
|
}
|