property.go 803 B

12345678910111213141516171819202122232425262728293031
  1. package model
  2. import "gorm.io/gorm"
  3. type Property struct {
  4. gorm.Model
  5. }
  6. type AccessRecords struct {
  7. Name string `json:"Name"` //人员姓名
  8. State int `json:"State"` //状态
  9. Date string `json:"Date"` //时间
  10. }
  11. type AccessData struct {
  12. BrushFace int `json:"BrushFace"` //刷脸进入
  13. CreditCard int `json:"CreditCard"` //刷卡进入
  14. Remote int `json:"Remote"` //远程开门
  15. }
  16. type GarRecords struct {
  17. GarName string `json:"GarName"` //车牌
  18. State int `json:"State"` //状态
  19. GarImag string `json:"GarImag"` //图片
  20. Date string `json:"Date"` //时间
  21. }
  22. type Garage struct {
  23. OutboundShipments int `json:"OutboundShipments"` //出库
  24. Storage int `json:"Storage"` //入库
  25. }
  26. func (m *Property) TableName() string {
  27. return "property"
  28. }