package locationing //被通知人模型 type NoticeUser struct { Id int64 `json:"id" gorm:"column:n_id;type:bigint(20);primaryKey;unique;not null;autoIncrement;index"` UserWechat string `json:"user_wechat" gorm:"column:n_user_wechat;type:varchar(255);not null;comment:被通知人微信ID"` //被通知人微信ID UserName string `json:"user_name" gorm:"column:n_user_name;type:varchar(255);not null;comment:被通知人姓名"` //被通知人姓名 State int `json:"state" gorm:"column:n_state;type:tinyint(1) unsigned;default:1;not null;comment:是否启用"` //'是否启用', Time int64 `json:"time" gorm:"column:n_time;type:bigint(20) unsigned;default:0;not null;comment:时间"` //'时间', } func (NoticeUser *NoticeUser) TableName() string { return "notice_user" }