初始
This commit is contained in:
46
internal/app/system/model/qianqi_cameras.go
Normal file
46
internal/app/system/model/qianqi_cameras.go
Normal file
@ -0,0 +1,46 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成model操作代码。
|
||||
// 生成日期:2023-07-31 09:48:11
|
||||
// 生成路径: internal/app/system/model/qianqi_cameras.go
|
||||
// 生成人:gfast
|
||||
// desc:所有摄像头列
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"github.com/gogf/gf/v2/util/gmeta"
|
||||
)
|
||||
|
||||
// QianqiCamerasInfoRes is the golang structure for table qianqi_cameras.
|
||||
type QianqiCamerasInfoRes struct {
|
||||
gmeta.Meta `orm:"table:qianqi_cameras"`
|
||||
Id int `orm:"id,primary" json:"id"` // 序号
|
||||
CameraName string `orm:"camera_name" json:"cameraName"` // 摄像头名称
|
||||
CameraCode string `orm:"camera_code" json:"cameraCode"` // 摄像头编码
|
||||
Detail string `orm:"detail" json:"detail"` // 摄像头坐标信息
|
||||
ProjectId string `orm:"project_id" json:"projectId"` // 项目id
|
||||
Status int `orm:"status" json:"status"` // 在线情况
|
||||
Poster string `orm:"poster" json:"poster"` // 封面图
|
||||
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"` // 删除时间
|
||||
}
|
||||
|
||||
type QianqiCamerasListRes struct {
|
||||
Id int `json:"id"`
|
||||
CameraName string `json:"cameraName"`
|
||||
CameraCode string `json:"cameraCode"`
|
||||
Detail string `json:"detail"`
|
||||
ProjectId string `json:"projectId"`
|
||||
Status int `json:"status"`
|
||||
Poster string `json:"poster"`
|
||||
CreatedAt *gtime.Time `json:"createdAt"`
|
||||
Name string `json:"name"` //CameraName
|
||||
Code string `json:"code"` //CameraCode
|
||||
SourceType string `json:"source_type"`
|
||||
}
|
Reference in New Issue
Block a user