This commit is contained in:
邹宗楠
2022-08-12 15:51:56 +08:00
parent 4ae09764cb
commit 001cf56863

View File

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