Files
zmkgC/internal/app/system/model/manage_task.go
2025-07-07 20:11:59 +08:00

75 lines
4.8 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-12-12 15:21:22
// 生成路径: internal/app/system/model/manage_task.go
// 生成人gfast
// desc:航线任务下发
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// ManageTaskInfoRes is the golang structure for table manage_task.
type ManageTaskInfoRes struct {
gmeta.Meta `orm:"table:manage_task"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
TaskName string `orm:"task_name" json:"taskName"` // 任务名称
FlightId string `orm:"flight_id" json:"flightId"` // 计划IDuuid
TaskType string `orm:"task_type" json:"taskType"` // 任务类型("0":"立即任务","1":"定时任务","2":"条件任务"
ExecuteTime int64 `orm:"execute_time" json:"executeTime"` // 任务开始执行时间毫秒时间戳
WaylineType int `orm:"wayline_type" json:"waylineType"` // 0普通航线
AirLine int64 `orm:"air_line" json:"airLine"` // 关联航线
ProjectId int64 `orm:"project_id" json:"projectId"` // 关联项目
RthAltitude int `orm:"rth_altitude" json:"rthAltitude"` // 返航高度
RthMode int `orm:"rth_mode" json:"rthMode"` // 默认为0"0":"智能高度","1":"设定高度"
OutOfControlAction int `orm:"out_of_control_action" json:"outOfControlAction"` // 默认为0"0":"返航","1":"悬停","2":"降落"
ExitWaylineWhenRcLost int `orm:"exit_wayline_when_rc_lost" json:"exitWaylineWhenRcLost"` // 默认为0"0":"继续执行航线任务","1":"退出航线任务,执行遥控器失控动作"
CreateBy string `orm:"create_by" json:"createBy"` // 创建人
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
Remark string `orm:"remark" json:"remark"` // 备注
AirLineName string `orm:"airLineName" json:"airLineName"` // 航线名称
DeviceName string `orm:"deviceName" json:"deviceName"` // 设备名称
MqClientId string `orm:"mq_client_id" json:"mqClientId"` //关联飞机
}
type ManageTaskListRes struct {
Id int64 `json:"id"`
TaskName string `json:"taskName"`
FlightId string `json:"flightId"`
TaskType string `json:"taskType"`
ExecuteTime int64 `json:"executeTime"`
WaylineType int `json:"waylineType"`
AirLine int64 `json:"airLine"`
ProjectId int64 `json:"projectId"`
RthAltitude int `json:"rthAltitude"`
RthMode int `json:"rthMode"`
OutOfControlAction int `json:"outOfControlAction"`
ExitWaylineWhenRcLost int `json:"exitWaylineWhenRcLost"`
CreateBy string `json:"createBy"`
UpdateBy string `json:"updateBy"`
CreatedAt *gtime.Time `json:"createdAt"`
Remark string `json:"remark"`
AirLineName string `json:"airLineName"`
DeviceName string `json:"deviceName"`
MqClientId string `json:"mqClientId"`
IsCron int `json:"isCron" dc:"是否开启定时任务 0未开启 1开启"`
}
// AirLinePublicRes 航线公共字段
type AirLinePublicRes struct {
Tid string `json:"tid" dc:"事务uuid"`
Bid string `json:"bid" dc:"业务uuid"`
Timestamp int64 `json:"flightId" dc:"毫秒时间戳:消息的发送时间"`
Method string `json:"method" dc:"方法名"`
Gateway string `json:"gateway" dc:"网关设备的序列号:发送该消息的网关设备的序列号"`
Data interface{} `json:"data" dc:"消息内容"`
}