1Panel/core/app/dto/group.go
ssongliu 37df602ae8
Some checks failed
sync2gitee / repo-sync (push) Failing after -8m3s
feat: 提取分组及快速命令功能 (#6169)
2024-08-19 10:04:43 +00:00

25 lines
574 B
Go

package dto
type GroupCreate struct {
ID uint `json:"id"`
Name string `json:"name" validate:"required"`
Type string `json:"type" validate:"required"`
}
type GroupSearch struct {
Type string `json:"type" validate:"required"`
}
type GroupUpdate struct {
ID uint `json:"id"`
Name string `json:"name"`
Type string `json:"type" validate:"required"`
IsDefault bool `json:"isDefault"`
}
type GroupInfo struct {
ID uint `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
IsDefault bool `json:"isDefault"`
}