This commit is contained in:
邹宗楠
2022-08-12 11:28:20 +08:00
parent 4759a2d6b5
commit 4ae09764cb

View File

@@ -57,6 +57,8 @@ type User struct {
LastLoginAt *time.Time `orm:"null" json:"lastLoginAt"`
LastLoginIP string `orm:"size(64);column(last_login_ip)" json:"lastLoginIP"`
LastLoginType string `orm:"size(16)" json:"lastLoginType"`
OpenId string `json:"open_id" db:"open_id"` // 微信用户openId
UnionId string `json:"union_id" db:"union_id"` // 微信用户Id
}
func (*User) TableUnique() [][]string {