// ========================================================================== // GFast自动生成model操作代码。 // 生成日期:2024-03-01 12:49:32 // 生成路径: internal/app/system/model/ys7devices.go // 生成人:gfast // desc:荧石摄像头 // company:云南奇讯科技有限公司 // ========================================================================== package model import ( "github.com/gogf/gf/v2/os/gtime" "github.com/gogf/gf/v2/util/gmeta" ) // Ys7DevicesInfoRes is the golang structure for table ys7devices. type Ys7DevicesInfoRes struct { gmeta.Meta `orm:"table:ys7devices"` Id uint `orm:"id,primary" json:"id"` // id CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // DeviceSerial string `orm:"DeviceSerial" json:"deviceSerial"` // 设备串号 DeviceName string `orm:"DeviceName" json:"deviceName"` // 设备名称 DeviceType string `orm:"DeviceType" json:"deviceType"` // 设备类型 Status int `orm:"Status" json:"status"` // 状态 Defence int64 `orm:"Defence" json:"defence"` // DeviceVersion string `orm:"DeviceVersion" json:"deviceVersion"` // 设备版本 ProjectId string `orm:"ProjectId" json:"projectId"` // 项目ID Position string `orm:"Position" json:"position"` // 摄像头位置 Detail string `orm:"Detail" json:"detail"` // 摄像头位置信息 ReMark string `orm:"Remark" json:"remark"` // 备注 VideoEncrypted int `orm:"VideoEncrypted" json:"videoEncrypted"` // 0:未加密 1:加密 Sort int `orm:"Sort" json:"sort" ` //排序字段 } type Ys7DevicesListRes struct { Id uint `json:"id"` CreatedAt *gtime.Time `json:"createdAt"` DeviceSerial string `json:"deviceSerial"` DeviceName string `json:"deviceName"` DeviceType string `json:"deviceType"` Status int `json:"status"` Defence int64 `json:"defence"` DeviceVersion string `json:"deviceVersion"` ProjectId string `json:"projectId"` Detail string `json:"detail" dc:"摄像头位置信息"` SourceType string `json:"source_type" dc:"来源类型"` SourceId string `json:"sourceId" dc:"deviceSerial"` Token string `json:"token" dc:"token"` Lag float64 `json:"lag" dc:"经度"` Lat float64 `json:"lat" dc:"纬度"` ReMark string `json:"remark" dc:"备注"` VideoEncrypted int `json:"videoEncrypted" dc:"0:未加密 1:加密"` Sort int `json:"sort" dc:"排序字段"` } type Ys7DevicesList3Res struct { Id uint `json:"id"` CreatedAt *gtime.Time `json:"createdAt"` DeviceSerial string `json:"deviceSerial"` DeviceName string `json:"deviceName"` DeviceType string `json:"deviceType"` Status int `json:"status"` Defence int64 `json:"defence"` DeviceVersion string `json:"deviceVersion"` ProjectId string `json:"projectId"` Detail string `json:"detail" dc:"摄像头位置信息"` SourceType string `json:"source_type" dc:"来源类型"` SourceId string `json:"sourceId" dc:"deviceSerial"` Token string `json:"token" dc:"token"` Lag float64 `json:"lag" dc:"经度"` Lat float64 `json:"lat" dc:"纬度"` ReMark string `json:"remark" dc:"备注"` VideoEncrypted int `json:"videoEncrypted" dc:"0:未加密 1:加密"` Cover string `json:"cover" dc:"封面图"` } type Ys7DevicesList2Res struct { Id uint `json:"id"` DeviceSerial string `json:"deviceSerial"` DeviceName string `json:"deviceName"` ProjectId string `json:"projectId"` Token string `json:"token" dc:"token"` } // 摄像头绑定项目 type Ys7DevicesProject struct { ProjectId string `json:"projectId" dc:"项目ID"` DeviceSerial []string `json:"deviceSerial" dc:"设备串号 示例:["203490843","C25464274"]"` }