// ========================================================================== // GFast自动生成model操作代码。 // 生成日期:2024-03-01 12:50:08 // 生成路径: internal/app/system/model/device_preset.go // 生成人:gfast // desc:预置位 // company:云南奇讯科技有限公司 // ========================================================================== package model import ( "github.com/gogf/gf/v2/os/gtime" "github.com/gogf/gf/v2/util/gmeta" ) // DevicePresetInfoRes is the golang structure for table device_preset. type DevicePresetInfoRes struct { gmeta.Meta `orm:"table:device_preset"` Id uint `orm:"id,primary" json:"id"` // 主键ID CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间 DeviceSerial string `orm:"deviceSerial" json:"deviceSerial"` // 设备序列号 ChannelNo string `orm:"channelNo" json:"channelNo"` // 通道号 Index int `orm:"index" json:"index"` // 预置点序号 Name string `orm:"name" json:"name"` // 预置点名称 } type DevicePresetListRes struct { Id uint `json:"id"` CreatedAt *gtime.Time `json:"createdAt"` DeviceSerial string `json:"deviceSerial"` ChannelNo string `json:"channelNo"` Index int `json:"index"` Name string `json:"name"` }