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

48 lines
2.5 KiB
Go
Raw Permalink 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-10-10 12:11:05
// 生成路径: internal/app/system/model/bus_tour.go
// 生成人gfast
// desc:煤科巡视-故障记录
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusTourInfoRes is the golang structure for table bus_tour.
type BusTourInfoRes struct {
gmeta.Meta `orm:"table:bus_tour"`
Id int64 `orm:"id,primary" json:"id"` // 序号
ProjectId int64 `orm:"project_id,primary" json:"projectId"` // 项目id
TourCategory string `orm:"tour_category" json:"tourCategory"` // 类别字典
TourType string `orm:"tour_type" json:"tourType"` // 类型字典
Picture string `orm:"picture" json:"picture"` // 图片路径
Num string `orm:"num" json:"num"` // 违规数量
Describe string `orm:"describe" json:"describe"` // 故障描述
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
TableName string `orm:"table_name" json:"tableName"` // 表名
TableId int64 `orm:"table_id" json:"tableId"` // 表id
Nickname string `orm:"nickname" json:"nickname"` //根据表名+id得到的昵称
SxtName string `orm:"sxt_name" json:"sxtName"` //根据表名+id得到的昵称
}
type BusTourListRes struct {
Id int64 `json:"id" dc:"主键ID"`
ProjectId int64 `json:"projectId" dc:"项目id"`
TourCategory string `json:"tourCategory" dc:"类别字典(如:无人机识别、监控拍摄)"`
TourType string `json:"tourType" dc:"类型字典(如:安全帽、安全带)"`
Picture string `json:"picture" dc:"图片路径"`
Describe string `json:"describe" dc:"故障描述"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
Num string `orm:"num" json:"num" dc:"违规人数"`
Nickname string `json:"nickname" dc:"昵称"`
SxtName string `json:"sxtName" dc:"摄像头名称"`
}