You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
699 B
20 lines
699 B
package vo
|
|
|
|
import "laic-backend/common"
|
|
|
|
// CommandReq 指令下发请求
|
|
type CommandReq struct {
|
|
Type string `json:"type" validate:"required,max=64"` // dock.open / drone.takeoff / workflow.start_task
|
|
Params map[string]any `json:"params"`
|
|
DroneSN string `json:"droneSn" validate:"max=32"`
|
|
TTLMs int `json:"ttlMs"`
|
|
}
|
|
|
|
// CommandPageReq 指令历史分页查询
|
|
type CommandPageReq struct {
|
|
common.Pagination
|
|
Status string `json:"status" form:"status"` // sent / acked / timeout / terminal
|
|
CommandType string `json:"commandType" form:"commandType"`
|
|
DockID string `json:"dockId" form:"dockId"`
|
|
Keyword string `json:"keyword" form:"keyword"`
|
|
}
|
|
|