2022-08-16 15:30:23 +00:00
|
|
|
package dto
|
|
|
|
|
2022-08-30 10:49:07 +00:00
|
|
|
type SearchWithPage struct {
|
|
|
|
PageInfo
|
2023-02-07 10:48:32 +00:00
|
|
|
Info string `json:"info"`
|
2022-08-30 10:49:07 +00:00
|
|
|
}
|
|
|
|
|
2022-08-16 15:30:23 +00:00
|
|
|
type PageInfo struct {
|
|
|
|
Page int `json:"page" validate:"required,number"`
|
|
|
|
PageSize int `json:"pageSize" validate:"required,number"`
|
|
|
|
}
|
|
|
|
|
2023-02-13 07:48:18 +00:00
|
|
|
type UpdateDescription struct {
|
|
|
|
ID uint `json:"id" validate:"required"`
|
|
|
|
Description string `json:"description"`
|
|
|
|
}
|
|
|
|
|
2022-08-16 15:30:23 +00:00
|
|
|
type OperationWithName struct {
|
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2022-12-13 10:54:28 +00:00
|
|
|
type OperateByID struct {
|
|
|
|
ID uint `json:"id" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2022-08-16 15:30:23 +00:00
|
|
|
type BatchDeleteReq struct {
|
|
|
|
Ids []uint `json:"ids" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2022-10-12 05:42:58 +00:00
|
|
|
type FilePath struct {
|
|
|
|
Path string `json:"path" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2022-08-30 10:49:07 +00:00
|
|
|
type DeleteByName struct {
|
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2022-08-16 15:30:23 +00:00
|
|
|
type OperationWithNameAndType struct {
|
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
Type string `json:"type" validate:"required"`
|
|
|
|
}
|