entity

package
v0.0.0-...-5961e9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceCategoryData

type DeviceCategoryData struct {
	Id         int         `orm:"id,primary" json:"id"`          // 主键
	CategoryId int         `orm:"category_id" json:"categoryId"` // 数据类别主键
	DeviceId   int         `orm:"device_id" json:"deviceId"`     // 设备主键
	DataInt    uint        `orm:"data_int" json:"dataInt"`       // int型数据
	DataStr    string      `orm:"data_str" json:"dataStr"`       // 字符串型数据
	DataDouble float64     `orm:"data_double" json:"dataDouble"` // double型数据
	CreatedAt  *gtime.Time `orm:"created_at" json:"createdAt"`   // 创建时间
}

DeviceCategoryData is the golang structure for table device_category_data.

type DeviceCategoty

type DeviceCategoty struct {
	Id        int         `orm:"id,primary" json:"id"`        // 主键
	KindId    int         `orm:"kind_id" json:"kindId"`       // 数据模板的主键
	Name      string      `orm:"name" json:"name"`            // 数据名称
	Mark      string      `orm:"mark" json:"mark"`            // 数据标识
	DataType  int         `orm:"data_type" json:"dataType"`   // 数据类型
	Unit      string      `orm:"unit" json:"unit"`            // 数据单位
	Ratio     string      `orm:"ratio" json:"ratio"`          // 变比系数
	Format    string      `orm:"format" json:"format"`        // 格式化显示
	HomeShow  int         `orm:"home_show" json:"homeShow"`   // 首页是否展示
	Remark    string      `orm:"remark" json:"remark"`        // 备注
	CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
	UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 修改时间
}

DeviceCategoty is the golang structure for table device_categoty.

type DeviceGroup

type DeviceGroup struct {
	Id        int         `orm:"id,primary" json:"id"`        // 主键
	Name      string      `orm:"name" json:"name"`            // 组名
	CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
	UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 修改时间
}

DeviceGroup is the golang structure for table device_group.

type DeviceInfo

type DeviceInfo 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"`            // 设备类别
	Monitor   int         `orm:"monitor" json:"monitor"`      // 是否监视
	Location  int         `orm:"location" json:"location"`    // 地理位置
	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.

type DeviceKind

type DeviceKind struct {
	Id        int         `orm:"id,primary" json:"id"`        // 设备种类主键
	Name      string      `orm:"name" json:"name"`            // 设备种类名称
	Mark      string      `orm:"mark" json:"mark"`            // 设备名称标记
	TimeOut   int         `orm:"time_out" json:"timeOut"`     // 超时时间
	CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
	UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 修改时间
}

DeviceKind is the golang structure for table device_kind.

type DeviceLabel

type DeviceLabel struct {
	Id        int         `orm:"id,primary" json:"id"`        // 主键
	Name      string      `orm:"name" json:"name"`            // 标签内容
	CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
	UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 修改时间
}

DeviceLabel is the golang structure for table device_label.

type DeviceLabelData

type DeviceLabelData struct {
	Id       int `orm:"id,primary" json:"id"`      // 主键
	LabelId  int `orm:"label_id" json:"labelId"`   // 标签主键
	DeviceId int `orm:"device_id" json:"deviceId"` // 设备主键
}

DeviceLabelData is the golang structure for table device_label_data.

type DeviceStatus

type DeviceStatus struct {
	Id                 int  `orm:"status_id,primary" json:"status_id"`              // 主键
	DeviceId           int  `orm:"device_id" json:"deviceId"`                       // 设备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"` // 最新一次数据更新时间
}

DeviceStatus is the golang structure for table device_status.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL