box.go 647 B

12345678910111213141516171819202122
  1. package models
  2. type BoxBase struct {
  3. BoxId string `json:"box_id" gorm:"column:box_id"`
  4. BoxName string `json:"box_name" gorm:"column:box_name"`
  5. BoxVersion string `json:"box_version" gorm:"column:box_version"`
  6. BoxOutput string `json:"box_output" gorm:"column:box_output"`
  7. }
  8. type AreaModel struct {
  9. Province string `gorm:"column:province"`
  10. City string `gorm:"column:city"`
  11. Area string `gorm:"column:area"`
  12. District string `gorm:"column:district"`
  13. CityId int64 `gorm:"column:city_id"`
  14. }
  15. type AreaList []*AreaModel
  16. type BoxTime struct {
  17. BoxId string `gorm:"column:box_id"`
  18. Time int64 `gorm:"column:time"`
  19. }