place.go 1.2 KB

12345678910111213141516171819202122232425
  1. // 自动生成模板Place
  2. package autocode
  3. import (
  4. "github.com/flipped-aurora/gin-vue-admin/server/global"
  5. )
  6. // Place 结构体
  7. // 如果含有time.Time 请自行import time包
  8. type Place struct {
  9. global.GVA_MODEL
  10. Name string `json:"name" form:"name" gorm:"column:name;comment:点位名称;type:varchar(255);"`
  11. Position string `json:"position" form:"position" gorm:"column:position;comment:点位定位;type:varchar(255);"`
  12. Type *int `json:"type" form:"type" gorm:"column:type;comment:点位类型;type:int;"`
  13. Region string `json:"region" form:"region" gorm:"column:region;comment:区域;type:varchar(255);"`
  14. OrganCode string `json:"organCode" form:"organCode" gorm:"column:organ_code;comment:区域归属;type:varchar(255);"`
  15. UnitIntegral *int `json:"unitIntegral" form:"unitIntegral" gorm:"column:unit_integral;comment:现有积分;type:int"`
  16. UnitMaxIntegral *int `json:"unitMaxIntegral" form:"unitMaxIntegral" gorm:"column:unit_max_integral;comment:满分;type:int"`
  17. ProList []PlacePro `json:"proList" gorm:"-"`
  18. }
  19. // TableName Place 表名
  20. func (Place) TableName() string {
  21. return "place"
  22. }