- package dao
- import "server/global"
- type Booth struct {
- global.GVA_MODEL
- BoothCode string `gorm:"size:50;not null;uniqueIndex" json:"booth_code"` // 岗亭编码
- BoothName string `gorm:"size:100;not null" json:"booth_name"` // 岗亭名称
- IPAddress string `gorm:"size:50" json:"ip_address"` // IP地址
- Description string `gorm:"size:200" json:"description"` // 备注
- }
- func (Booth) TableName() string {
- return "booth"
- }
|