| | |
| | | BuildingTypeOffice BuildingType = 6 //写字楼 |
| | | ) |
| | | |
| | | //type status int |
| | | |
| | | const ( |
| | | StatusStranger int = 1 |
| | | StatusVisitor int = 2 |
| | | StatusResident int = 3 |
| | | ) |
| | | |
| | | type Device struct { |
| | | DeviceCode string `gorm:"column:deviceCode" json:"deviceCode" example:"J83762"` //设备编码 |
| | | AreaID string `json:"areaID" gorm:"index;column:communityID;type:varchar(299);"` //常住小区 domain unit ID |
| | |
| | | FrequentAddress string `gorm:"column:frequent_address;type:varchar(255);not null;default:''" json:"frequentAddress"` //常出现地点 |
| | | CreatedAt time.Time |
| | | UpdatedAt time.Time |
| | | NewStatus string `gorm:"-"` |
| | | ////OrgId string `gorm:"column:org_id"` |
| | | //CommunityID string `gorm:"column:communityID"` |
| | | //DocumentNumber string `gorm:"column:documentNumber"` |