You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
package locationing
|
|
|
|
|
|
|
|
|
|
type ReportAddress struct {
|
|
|
|
|
Id int64 `json:"id" gorm:"column:id;type:bigint(20);primaryKey;unique;not null;autoIncrement;index"`
|
|
|
|
|
WechatId string `json:"wechatid" gorm:"column:wechat_id;type:varchar(255);not null;comment:上报人微信ID"` //'上报人微信ID',
|
|
|
|
|
Province string `json:"province" gorm:"column:province;type:varchar(255);not null;comment:省"` //'省',
|
|
|
|
|
City string `json:"city" gorm:"column:city;type:varchar(255);not null;comment:市"` //'市',
|
|
|
|
|
County string `json:"county" gorm:"column:county;type:varchar(255);not null;comment:县"` //'县',
|
|
|
|
|
Userid string `json:"userid" gorm:"column:userid;type:varchar(255);not null;comment:微信ID"` //'微信ID',
|
|
|
|
|
AddTime int64 `json:"addtime" gorm:"column:addtime;type:bigint(20) unsigned;default:0;not null;comment:写入时间"` //'写入时间',
|
|
|
|
|
CalCulTime int64 `json:"calcultime" gorm:"column:calcultime;type:bigint(20) unsigned;default:0;not null;comment:计算时间"` //'计算时间',
|
|
|
|
|
Address string `json:"address" gorm:"column:address;type:text;comment:详细地址"` //'详细地址',
|
|
|
|
|
IsDbnormal int `json:"isabnormal" gorm:"column:isabnormal;type:tinyint(1) unsigned;default:1;not null;comment:状态"`
|
|
|
|
|
UserName string `json:"user_name" gorm:"column:user_name;type:varchar(255);comment:微信名称"`
|
|
|
|
|
UserTel string `json:"user_tel" gorm:"column:user_tel;type:varchar(255);comment:微信电话联系方式"`
|
|
|
|
|
MainDepartment int64 `json:"main_department" gorm:"column:main_department;type:bigint(20) unsigned;default:0;not null;comment:主部门"` //'主部门',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ReportAddress *ReportAddress) TableName() string {
|
|
|
|
|
return "report_address"
|
|
|
|
|
}
|