// 自动生成模板UnitPlace package autocode import ( "github.com/flipped-aurora/gin-vue-admin/server/global" ) // UnitPlace 结构体 // 如果含有time.Time 请自行import time包 type UnitPlace struct { global.GVA_MODEL UnitId *int `json:"unitId" form:"unitId" gorm:"column:unit_id;comment:单位id;type:int"` PlaceId string `json:"placeId" form:"placeId" gorm:"column:place_id;comment:点位id;type:int"` } type UnitPlaceVo struct { UnitId *int `json:"unitId" form:"unitId"` PlaceIds []string `json:"placeIds" form:"placeIds"` // 点位id } // TableName UnitPlace 表名 func (UnitPlace) TableName() string { return "unit_place" }