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.

13 lines
475 B

4 years ago
package jpush
type JPush struct {
Id uint `gorm:"column:id" json:"id"` //id
UserId uint `gorm:"column:user_id" json:"user_id"` //登录用户id
RegistrationId string `gorm:"column:registration_id" json:"registration_id"` //极光推送关联id
Type int `gorm:"column:type" json:"type"` //1安卓2苹果
}
func (j *JPush) TableName() string {
return "jpush_user"
}