carinfo.go 924 B

123456789101112131415161718192021222324
  1. package app
  2. import (
  3. "lc-fangdaosha/global"
  4. "time"
  5. )
  6. // CarInfo 结构体
  7. type CarInfo struct {
  8. global.GVA_MODEL
  9. PlateNumber string `json:"plateNumber" form:"plateNumber" gorm:"column:plate_number;comment:车牌号;"`
  10. //CarType string `json:"carType" form:"carType" gorm:"column:car_type;comment:车类型;"`
  11. Long float64 `json:"long" form:"long" gorm:"column:long;comment:长度;"`
  12. Width float64 `json:"width" form:"width" gorm:"column:width;comment:宽度;"`
  13. Height float64 `json:"height" form:"height" gorm:"column:height;comment:高度;"`
  14. Time time.Time `json:"time" form:"time" gorm:"column:time;comment:出现时间;"`
  15. Count int `json:"count" form:"count" gorm:"column:count;comment:出现次数;"`
  16. Volume float64 `json:"volume" form:"volume" gorm:"column:volume;comment:体积;"`
  17. }
  18. // TableName CarInfo 自定义表名
  19. func (CarInfo) TableName() string {
  20. return "car_info"
  21. }