property.go 845 B

1234567891011121314151617181920212223242526272829303132
  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. Context string `json:"Context"` //详情
  21. Date string `json:"Date"` //时间
  22. }
  23. type Garage struct {
  24. OutboundShipments int `json:"OutboundShipments"` //出库
  25. Storage int `json:"Storage"` //入库
  26. }
  27. func (m *Property) TableName() string {
  28. return "property"
  29. }