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