2022-08-30 18:49:07 +08:00
|
|
|
package dto
|
|
|
|
|
2023-03-06 17:18:13 +08:00
|
|
|
type GroupCreate struct {
|
2022-12-13 18:54:28 +08:00
|
|
|
ID uint `json:"id"`
|
2022-08-30 18:49:07 +08:00
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
Type string `json:"type" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2022-08-31 23:16:10 +08:00
|
|
|
type GroupSearch struct {
|
|
|
|
Type string `json:"type" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2023-03-06 17:18:13 +08:00
|
|
|
type GroupUpdate struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
Name string `json:"name"`
|
2023-03-23 20:58:33 +08:00
|
|
|
Type string `json:"type" validate:"required"`
|
2023-03-06 17:18:13 +08:00
|
|
|
IsDefault bool `json:"isDefault"`
|
|
|
|
}
|
|
|
|
|
2022-08-31 23:16:10 +08:00
|
|
|
type GroupInfo struct {
|
2023-03-06 17:18:13 +08:00
|
|
|
ID uint `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Type string `json:"type"`
|
|
|
|
IsDefault bool `json:"isDefault"`
|
2022-08-30 18:49:07 +08:00
|
|
|
}
|