- more detail error info 4 RegisterUser
This commit is contained in:
@@ -5,10 +5,11 @@ import "errors"
|
||||
const (
|
||||
ErrorCodeIgnore = "ignore"
|
||||
|
||||
ErrCodeSuccess = "0"
|
||||
ErrCodeGeneralFailed = "-1"
|
||||
ErrCodeTokenIsInvalid = "-2"
|
||||
ErrCodeUserNotExist = "-3"
|
||||
ErrCodeSuccess = "0"
|
||||
ErrCodeGeneralFailed = "-1"
|
||||
ErrCodeTokenIsInvalid = "-2"
|
||||
ErrCodeUserNotExist = "-3"
|
||||
ErrCodeUserAlreadyExist = "-4"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -20,7 +20,7 @@ func (*User) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"UserID", "DeletedAt"},
|
||||
[]string{"UserID2", "DeletedAt"},
|
||||
[]string{"Name", "DeletedAt"},
|
||||
// []string{"Name", "DeletedAt"},
|
||||
[]string{"Mobile", "DeletedAt"},
|
||||
// []string{"Email", "DeletedAt"},
|
||||
// []string{"IDCardNo", "DeletedAt"},
|
||||
|
||||
Reference in New Issue
Block a user