1
This commit is contained in:
@@ -61,12 +61,17 @@ type User struct {
|
||||
UnionId string `json:"union_id" db:"union_id"` // 微信用户Id
|
||||
}
|
||||
|
||||
func (*User) TableUnique() [][]string {
|
||||
func (user *User) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"UserID"},
|
||||
[]string{"Mobile", "DeletedAt"},
|
||||
[]string{"Email", "DeletedAt"},
|
||||
// []string{"IDCardNo", "DeletedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
func (user *User) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"Mobile"},
|
||||
[]string{"OpenId"},
|
||||
[]string{"UserID"},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user