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

47 lines
2.0 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-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"`
}