2022-08-16 23:30:23 +08:00
|
|
|
package dto
|
|
|
|
|
2022-08-30 18:49:07 +08:00
|
|
|
type SearchWithPage struct {
|
|
|
|
PageInfo
|
2022-08-31 23:16:10 +08:00
|
|
|
Info string `json:"info" validate:"required"`
|
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"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type OperationWithName struct {
|
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
}
|
|
|
|
|
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:30:23 +08:00
|
|
|
type OperationWithNameAndType struct {
|
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
Type string `json:"type" validate:"required"`
|
|
|
|
}
|