12345678910111213141516171819202122232425 |
- // 自动生成模板Camera
- package app
- import (
- "lcfns/global"
- )
- // Camera 结构体
- type Camera struct {
- global.GVA_MODEL
- Gid uint `json:"gid" form:"gid" gorm:"column:gid;comment:网关id;"`
- Name string `json:"name" form:"name" gorm:"column:name;comment:name;"`
- IsDeleted uint `gorm:"column:is_deleted"`
- SN string `json:"sn" gorm:"column:sn"`
- MacAddress string `json:"macAddress" gorm:"column:mac_address"`
- State uint8 `json:"state" gorm:"column:state"`
- IsRegisted uint `gorm:"column:is_registed;comment:是否已注册"`
- StreamId string `json:"streamId" gorm:"column:stream_id"`
- StreamUrl string `json:"streamUrl" form:"streamUrl" gorm:"column:stream_url;comment:流地址;"`
- }
- // TableName Camera 表名
- func (Camera) TableName() string {
- return "camera"
- }
|