Files
zmkgC/internal/app/system/model/manage_airline.go

99 lines
5.9 KiB
Go
Raw Permalink Normal View History

2025-07-07 20:11:59 +08:00
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-12-11 16:10:19
// 生成路径: internal/app/system/model/manage_airline.go
// 生成人gfast
// desc:航线
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// ManageAirlineInfoRes is the golang structure for table manage_airline.
type ManageAirlineInfoRes struct {
gmeta.Meta `orm:"table:manage_airline"`
Id int64 `orm:"id,primary" json:"id"` // 序号
StrId string `orm:"str_id" json:"strId"` // 航线ID
Speed int `orm:"speed" json:"speed"` // 航线速度
Height int `orm:"height" json:"height"` //航线高度
Gap int `orm:"gap" json:"gap"` //航线高度
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
AirLine string `orm:"air_line" json:"airLine"` // 航线名称
Positions string `orm:"positions" json:"positions"` // 航线笛卡尔
PositionsEntity []*PositionsEntity `orm:"positionsEntity" json:"positionsEntity"` // 航线笛卡尔
FilePath string `orm:"file_path" json:"filePath"` // 航线文件
Fingerprint string `orm:"fingerprint" json:"fingerprint"` // 航线内容md5加密
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"` // 备注
TakeOffPoint string `orm:"take_off_point" json:"takeOffPoint"` // 起飞点
TakeOffSecurityHeight string `orm:"take_off_security_height" json:"takeOffSecurityHeight"` // 安全起飞高度
GlobalTransitionalSpeed string `orm:"global_transitional_speed" json:"globalTransitionalSpeed"` // 飞向首航点速度
MqClientId string `orm:"mq_client_id" json:"mqClientId"` //关联飞机
}
type ManageAirlineListRes struct {
Id int64 `json:"id"`
StrId string `json:"strId"`
Speed int `json:"speed"`
Height int `json:"height"`
Gap int `json:"gap"`
ProjectId int64 `json:"projectId"`
AirLine string `json:"airLine"`
Positions string `json:"positions"`
PositionsEntity []*PositionsEntity `json:"positionsEntity"`
FilePath string `json:"filePath"`
Fingerprint string `json:"fingerprint"`
CreatedAt *gtime.Time `json:"createdAt"`
Remark string `json:"remark"`
MqClientId string `json:"mqClientId"`
TakeOffPoint string `json:"takeOffPoint"`
TakeOffSecurityHeight string `json:"takeOffSecurityHeight"` // 安全起飞高度
GlobalTransitionalSpeed string `json:"globalTransitionalSpeed"` // 飞向首航点速度
}
type PositionsEntity struct {
X float64 `json:"x"`
Y float64 `json:"y"`
Z float64 `json:"z"`
}
type AirlineEntity struct {
AbsolutePath string `json:"absolutePath" dc:"生成的航线执行 kmz 文件在服务器的存放路径"`
TakeOffRefPoint string `json:"takeOffRefPoint" dc:"参考起飞点,维度,精度.高度"`
GlobalHeight int `json:"globalHeight" dc:"全局航线高度"`
//GlobalSpeed int `json:"globalSpeed" dc:"全局航线速度"`
WayLineId int `json:"waylineId" dc:"航线ID"`
AutoFlightSpeed int `json:"autoFlightSpeed" dc:"全局航线速度"`
TakeOffSecurityHeight float64 `json:"takeOffSecurityHeight" dc:"安全起飞高度" `
GlobalTransitionalSpeed float64 `json:"globalTransitionalSpeed" dc:"飞向首航点速度"`
DroneInfo struct {
DroneEnumValue string `json:"droneEnumValue"`
DroneSubEnumValue string `json:"droneSubEnumValue"`
} `json:"droneInfo" dc:"无人机的型号及其子类型"`
PayloadInfo struct {
PayloadEnumValue string `json:"payloadEnumValue"`
PayloadSubEnumValue string `json:"payloadSubEnumValue"`
PayloadPositionIndex string `json:"payloadPositionIndex"`
} `json:"payloadInfo" dc:"无人机携带的负载以及负载在无人机上的位置"`
LocationList []struct {
Longitude string `json:"longitude"`
Latitude string `json:"latitude"`
Height string `json:"height"`
} `json:"locationList" dc:"一系列经纬度和高低"`
}
type CoordinateEntity struct {
Longitude string `json:"longitude"`
Latitude string `json:"latitude"`
Height string `json:"height"`
}