2022-08-16 23:30:23 +08:00
|
|
|
package dto
|
|
|
|
|
2022-08-30 18:49:07 +08:00
|
|
|
type SearchWithPage struct {
|
|
|
|
PageInfo
|
2023-06-29 18:40:12 +08:00
|
|
|
Info string `json:"info"`
|
|
|
|
OrderBy string `json:"orderBy"`
|
|
|
|
Order string `json:"order"`
|
2022-08-30 18:49:07 +08:00
|
|
|
}
|
|
|
|
|
2022-08-16 23:30:23 +08:00
|
|
|
type PageInfo struct {
|
|
|
|
Page int `json:"page" validate:"required,number"`
|
|
|
|
PageSize int `json:"pageSize" validate:"required,number"`
|
|
|
|
}
|
|
|
|
|
2023-02-13 15:48:18 +08:00
|
|
|
type UpdateDescription struct {
|
|
|
|
ID uint `json:"id" validate:"required"`
|
2023-05-04 17:44:41 +08:00
|
|
|
Description string `json:"description" validate:"max=256"`
|
2023-02-13 15:48:18 +08:00
|
|
|
}
|
|
|
|
|
2022-08-16 23:30:23 +08:00
|
|
|
type OperationWithName struct {
|
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2022-12-13 18:54:28 +08:00
|
|
|
type OperateByID struct {
|
|
|
|
ID uint `json:"id" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2023-05-17 18:45:48 +08:00
|
|
|
type Operate struct {
|
|
|
|
Operation string `json:"operation" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:30:23 +08:00
|
|
|
type BatchDeleteReq struct {
|
|
|
|
Ids []uint `json:"ids" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2022-10-12 13:42:58 +08:00
|
|
|
type FilePath struct {
|
|
|
|
Path string `json:"path" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2022-08-30 18:49:07 +08:00
|
|
|
type DeleteByName struct {
|
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2023-11-16 14:40:08 +08:00
|
|
|
type UpdateByFile struct {
|
|
|
|
File string `json:"file"`
|
|
|
|
}
|
|
|
|
|
2023-11-20 15:28:09 +08:00
|
|
|
type UpdateByNameAndFile struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
File string `json:"file"`
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:30:23 +08:00
|
|
|
type OperationWithNameAndType struct {
|
2023-10-27 17:19:04 +08:00
|
|
|
Name string `json:"name"`
|
2022-08-16 23:30:23 +08:00
|
|
|
Type string `json:"type" validate:"required"`
|
|
|
|
}
|