package locationing //全国地区管理 type LegalArea struct { Id int64 `json:"id" gorm:"column:la_id;type:bigint(20);primaryKey;unique;not null;autoIncrement;index"` Province int64 `json:"province" gorm:"column:province;type:bigint(20) unsigned;default:0;not null;comment:省"` //'省', ProvinceName string `json:"provincename" gorm:"column:province_name;type:varchar(255);not null;comment:省名称"` //省名称 City int64 `json:"city" gorm:"column:city;type:bigint(20) unsigned;default:0;not null;comment:市"` //'市', CityName string `json:"cityname" gorm:"column:city_name;type:varchar(255);not null;comment:市名称"` //市名称 County int64 `json:"county" gorm:"column:county;type:bigint(20) unsigned;default:0;not null;comment:县"` //'县', CountyName string `json:"countyname" gorm:"column:county_name;type:varchar(255);not null;comment:县名称"` //'县名称', LaTime int64 `json:"latime" gorm:"column:la_time;type:bigint(20) unsigned;default:0;not null;comment:时间"` //'时间', LaState int `json:"lastate" gorm:"column:la_state;type:tinyint(1) unsigned;default:1;not null;comment:状态"` //'状态', } func (LegalArea *LegalArea) TableName() string { return "legal_area" }