2022-08-30 10:49:07 +00:00
|
|
|
package dto
|
|
|
|
|
2023-10-31 06:14:30 +00:00
|
|
|
type SearchCommandWithPage struct {
|
2024-06-11 10:06:34 +00:00
|
|
|
PageInfo
|
|
|
|
OrderBy string `json:"orderBy" validate:"required,oneof=name command created_at"`
|
|
|
|
Order string `json:"order" validate:"required,oneof=null ascending descending"`
|
2023-10-31 06:14:30 +00:00
|
|
|
GroupID uint `json:"groupID"`
|
|
|
|
Info string `json:"info"`
|
2024-04-24 15:08:11 +00:00
|
|
|
Name string `json:"name"`
|
2023-10-31 06:14:30 +00:00
|
|
|
}
|
|
|
|
|
2022-09-01 02:25:38 +00:00
|
|
|
type CommandOperate struct {
|
2023-10-31 06:14:30 +00: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 10:49:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type CommandInfo struct {
|
2023-10-31 06:14:30 +00: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 10:49:07 +00:00
|
|
|
}
|
2024-05-15 15:02:35 +00:00
|
|
|
|
|
|
|
type RedisCommand struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Command string `json:"command"`
|
|
|
|
}
|