camera.go 813 B

12345678910111213141516171819202122232425
  1. // 自动生成模板Camera
  2. package app
  3. import (
  4. "lcfns/global"
  5. )
  6. // Camera 结构体
  7. type Camera struct {
  8. global.GVA_MODEL
  9. Gid uint `json:"gid" form:"gid" gorm:"column:gid;comment:网关id;"`
  10. Name string `json:"name" form:"name" gorm:"column:name;comment:name;"`
  11. IsDeleted uint `gorm:"column:is_deleted"`
  12. SN string `json:"sn" gorm:"column:sn"`
  13. MacAddress string `json:"macAddress" gorm:"column:mac_address"`
  14. State uint8 `json:"state" gorm:"column:state"`
  15. IsRegisted uint `gorm:"column:is_registed;comment:是否已注册"`
  16. StreamId string `json:"streamId" gorm:"column:stream_id"`
  17. StreamUrl string `json:"streamUrl" form:"streamUrl" gorm:"column:stream_url;comment:流地址;"`
  18. }
  19. // TableName Camera 表名
  20. func (Camera) TableName() string {
  21. return "camera"
  22. }