2022-08-30 18:49:07 +08:00
|
|
|
package dto
|
|
|
|
|
2023-10-31 14:14:30 +08:00
|
|
|
type SearchCommandWithPage struct {
|
|
|
|
SearchWithPage
|
|
|
|
GroupID uint `json:"groupID"`
|
|
|
|
Info string `json:"info"`
|
|
|
|
}
|
|
|
|
|
2022-09-01 10:25:38 +08:00
|
|
|
type CommandOperate struct {
|
2023-10-31 14:14:30 +08:00
|
|
|
ID uint `json:"id"`
|
|
|
|
GroupID uint `json:"groupID"`
|
|
|
|
GroupBelong string `json:"groupBelong"`
|
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
Command string `json:"command" validate:"required"`
|
2022-08-30 18:49:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type CommandInfo struct {
|
2023-10-31 14:14:30 +08:00
|
|
|
ID uint `json:"id"`
|
|
|
|
GroupID uint `json:"groupID"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Command string `json:"command"`
|
|
|
|
GroupBelong string `json:"groupBelong"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CommandTree struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
Label string `json:"label"`
|
|
|
|
Children []CommandInfo `json:"children"`
|
2022-08-30 18:49:07 +08:00
|
|
|
}
|