package model import "gorm.io/gorm" type Property struct { gorm.Model } type AccessRecords struct { Name string `json:"Name"` //人员姓名 State int `json:"State"` //状态 Date string `json:"Date"` //时间 } type AccessData struct { BrushFace int `json:"BrushFace"` //刷脸进入 CreditCard int `json:"CreditCard"` //刷卡进入 Remote int `json:"Remote"` //远程开门 } type GarRecords struct { GarName string `json:"GarName"` //车牌 State int `json:"State"` //状态 GarImag string `json:"GarImag"` //图片 Context string `json:"Context"` //详情 Date string `json:"Date"` //时间 } type Garage struct { OutboundShipments int `json:"OutboundShipments"` //出库 Storage int `json:"Storage"` //入库 } func (m *Property) TableName() string { return "property" }