|
|
|
|
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:主部门"` //'主部门',
|
|
|
|
|
GroupName string `json:"groupName" gorm:"column:group_name;type:varchar(255);comment:集团名称"` //'集团名称',
|
|
|
|
|
GroupId int64 `json:"groupId" gorm:"column:group_id;type:bigint(20) unsigned;default:1;not null;comment:集团id"` //'集团id',
|
|
|
|
|
RiskLevel int `json:"riskLevel" gorm:"column:risk_level;type:int(3) unsigned;default:0;not null;comment:风险等级"` //'风险等级',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ReportAddress *ReportAddress) TableName() string {
|
|
|
|
|
return "report_address"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//未上报人员
|
|
|
|
|
type NotReportPeople 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',
|
|
|
|
|
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:计算时间"` //'计算时间',
|
|
|
|
|
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:主部门"` //'主部门',
|
|
|
|
|
GroupName string `json:"groupName" gorm:"column:group_name;type:varchar(255);comment:集团名称"` //'集团名称',
|
|
|
|
|
GroupId int64 `json:"groupId" gorm:"column:group_id;type:bigint(20) unsigned;default:1;not null;comment:集团id"` //'集团id',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (NotReportPeople *NotReportPeople) TableName() string {
|
|
|
|
|
return "not_report_people"
|
|
|
|
|
}
|