gateway.go 846 B

123456789101112131415161718192021222324252627282930
  1. package app
  2. import (
  3. "lcfns/global"
  4. )
  5. type Gateway struct {
  6. global.GVA_MODEL
  7. Uid int `json:"uid" form:"uid" gorm:"column:uid;comment:所属用户名id;"`
  8. GatewayName string `json:"gatewayName" form:"gatewayName" gorm:"column:gateway_name"`
  9. Isn string `json:"isn" form:"isn" gorm:"column:isn;comment:内部sn;"`
  10. Osn string `json:"osn" form:"osn" gorm:"column:osn;comment:外部sn;"`
  11. //CreatedAt time.Time
  12. //DeletedAt time.Time
  13. IsDeleted uint `json:"isDeleted" gorm:"column:is_deleted"`
  14. Description string `json:"description" gorm:"column:description;comment:描述"`
  15. }
  16. // TableName Gateway 表名
  17. func (Gateway) TableName() string {
  18. return "gateway"
  19. }
  20. type Devices struct {
  21. Gid uint `json:"gid"`
  22. Osn string `json:"osn"`
  23. Cid uint `json:"cid"`
  24. Csn string `json:"csn"`
  25. Iid uint `json:"iid"`
  26. }