Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceAllInfo ¶
type DeviceAllInfo struct {
Info *DeviceInfoExtern `json:"info"`
Kind *entity.DeviceKind `json:"kind"`
CategoryList []*entity.DeviceCategoty `json:"categoryList"`
}
type DeviceInfoExtern ¶
type DeviceInfoExtern struct {
Id int `orm:"id,primary" json:"id"` // 主键
Name string `orm:"name" json:"name"` // 设备名称
Group int `orm:"group" json:"group"` // 设备组
Sn string `orm:"sn" json:"sn"` // SN
Pwd string `orm:"pwd" json:"pwd"` // 密码
Kind int `orm:"kind" json:"kind"` // 设备类别
Logo string `orm:"logo" json:"logo"` // logo
Monitor int `orm:"monitor" json:"monitor"` // 是否监视
Location int `orm:"location" json:"location"` // 地理位置
StatusId int `orm:"status_id" json:"status_id"` // 状态Id
Status int `orm:"status" json:"status"` // 状态
TimeOut int `orm:"time_out" json:"timeOut"` // 超时时间
UpTime int `orm:"up_time" json:"upTime"` // 上线时间
DownTime int `orm:"down_time" json:"downTime"` // 离线时间
LastDataUpdateTime uint `orm:"last_data_update_time" json:"lastDataUpdateTime"` // 最新一次数据更新时间
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 修改时间
}
DeviceInfo is the golang structure for table device_info.
Click to show internal directories.
Click to hide internal directories.