unit_place.go 660 B

123456789101112131415161718192021222324
  1. // 自动生成模板UnitPlace
  2. package autocode
  3. import (
  4. "github.com/flipped-aurora/gin-vue-admin/server/global"
  5. )
  6. // UnitPlace 结构体
  7. // 如果含有time.Time 请自行import time包
  8. type UnitPlace struct {
  9. global.GVA_MODEL
  10. UnitId *int `json:"unitId" form:"unitId" gorm:"column:unit_id;comment:单位id;type:int"`
  11. PlaceId string `json:"placeId" form:"placeId" gorm:"column:place_id;comment:点位id;type:int"`
  12. }
  13. type UnitPlaceVo struct {
  14. UnitId *int `json:"unitId" form:"unitId"`
  15. PlaceIds []string `json:"placeIds" form:"placeIds"` // 点位id
  16. }
  17. // TableName UnitPlace 表名
  18. func (UnitPlace) TableName() string {
  19. return "unit_place"
  20. }