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

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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"
}