1Panel/backend/app/dto/group.go

25 lines
522 B
Go
Raw Normal View History

package dto
type GroupCreate struct {
ID uint `json:"id"`
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"`
}
type GroupUpdate struct {
ID uint `json:"id"`
Name string `json:"name"`
IsDefault bool `json:"isDefault"`
}
2022-08-31 15:16:10 +00:00
type GroupInfo struct {
ID uint `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
IsDefault bool `json:"isDefault"`
}