添加邮箱绑定错误码和消息 修改解绑设备逻辑,解绑后创建新用户设备记录 重构邮箱绑定逻辑,支持检测已绑定邮箱并处理设备转移
This commit is contained in:
@@ -27,6 +27,8 @@ const (
|
||||
TelegramNotBound uint32 = 20007
|
||||
UserNotBindOauth uint32 = 20008
|
||||
InviteCodeError uint32 = 20009
|
||||
// 邮箱绑定错误
|
||||
EmailBindError uint32 = 20010
|
||||
)
|
||||
|
||||
// Node error
|
||||
|
||||
@@ -33,6 +33,8 @@ func init() {
|
||||
TelegramNotBound: "Telegram not bound ",
|
||||
UserNotBindOauth: "User not bind oauth method",
|
||||
InviteCodeError: "Invite code error",
|
||||
// 邮箱绑定错误
|
||||
EmailBindError: "已经绑定该邮箱",
|
||||
|
||||
// Node error
|
||||
NodeExist: "Node already exists",
|
||||
|
||||
Reference in New Issue
Block a user