低空智控平台 后端go
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.
 
 

27 lines
671 B

package vo
import (
"laic-backend/common"
"laic-backend/model"
)
// DronePageReq 无人机分页查询
type DronePageReq struct {
common.Pagination
Status string `json:"status" form:"status"`
Keyword string `json:"keyword" form:"keyword"` // 匹配 droneSn / name / code / model
}
// DroneUpdateReq 更新无人机
type DroneUpdateReq struct {
Name string `json:"name" validate:"max=64"`
Code string `json:"code" validate:"max=32"`
Model string `json:"model" validate:"max=32"`
}
// DroneVO 无人机详情(含实时遥测)
type DroneVO struct {
*model.Drone
Online bool `json:"online"`
Realtime map[string]string `json:"realtime"`
}