mirror of https://github.com/1Panel-dev/1Panel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.1 KiB
55 lines
1.1 KiB
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" validate:"max=256"`
|
|
}
|
|
|
|
type OperationWithName struct {
|
|
Name string `json:"name" validate:"required"`
|
|
}
|
|
|
|
type OperateByID struct {
|
|
ID uint `json:"id" validate:"required"`
|
|
}
|
|
|
|
type Operate struct {
|
|
Operation string `json:"operation" 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 UpdateByFile struct {
|
|
File string `json:"file"`
|
|
}
|
|
|
|
type UpdateByNameAndFile struct {
|
|
Name string `json:"name"`
|
|
File string `json:"file"`
|
|
}
|
|
|
|
type OperationWithNameAndType struct {
|
|
Name string `json:"name"`
|
|
Type string `json:"type" validate:"required"`
|
|
}
|