|
@@ -9,11 +9,12 @@ import (
|
|
|
// 如果含有time.Time 请自行import time包
|
|
|
type Place struct {
|
|
|
global.GVA_MODEL
|
|
|
- Name string `json:"name" form:"name" gorm:"column:name;comment:点位名称;type:varchar(255);"`
|
|
|
- Position string `json:"position" form:"position" gorm:"column:position;comment:点位定位;type:varchar(255);"`
|
|
|
- Type *int `json:"type" form:"type" gorm:"column:type;comment:点位类型;type:int;"`
|
|
|
- Region string `json:"region" form:"region" gorm:"column:region;comment:区域;type:varchar(255);"`
|
|
|
- OrganCode string `json:"organCode" form:"organCode" gorm:"column:organ_code;comment:区域归属;type:varchar(255);"`
|
|
|
+ Name string `json:"name" form:"name" gorm:"column:name;comment:点位名称;type:varchar(255);"`
|
|
|
+ Position string `json:"position" form:"position" gorm:"column:position;comment:点位定位;type:varchar(255);"`
|
|
|
+ Type *int `json:"type" form:"type" gorm:"column:type;comment:点位类型;type:int;"`
|
|
|
+ Region string `json:"region" form:"region" gorm:"column:region;comment:区域;type:varchar(255);"`
|
|
|
+ OrganCode string `json:"organCode" form:"organCode" gorm:"column:organ_code;comment:区域归属;type:varchar(255);"`
|
|
|
+ ProList []PlacePro `json:"proList" gorm:"-"`
|
|
|
}
|
|
|
|
|
|
// TableName Place 表名
|