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

36 lines
1.4 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操作代码。
// 生成日期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"`
}