12345678910111213141516171819202122232425262728293031 |
- package app
- import (
- "lcfns/global"
- )
- type Gateway struct {
- global.GVA_MODEL
- Uid int `json:"uid" form:"uid" gorm:"column:uid;comment:所属用户名id;"`
- GatewayName string `json:"gatewayName" form:"gatewayName" gorm:"column:gateway_name"`
- Isn string `json:"isn" form:"isn" gorm:"column:isn;comment:内部sn;"`
- Osn string `json:"osn" form:"osn" gorm:"column:osn;comment:外部sn;"`
- //CreatedAt time.Time
- //DeletedAt time.Time
- State uint8 `json:"state" gorm:"column:state;comment:在线状态;"`
- IsDeleted uint8 `json:"isDeleted" gorm:"column:is_deleted"`
- Description string `json:"description" gorm:"column:description;comment:描述"`
- }
- // TableName Gateway 表名
- func (Gateway) TableName() string {
- return "gateway"
- }
- type Devices struct {
- Gid uint `json:"gid"`
- Osn string `json:"osn"`
- Cid uint `json:"cid"`
- Csn string `json:"csn"`
- Iid uint `json:"iid"`
- }
|