feat(用户绑定): 实现邮箱绑定功能并优化设备解绑逻辑
Build docker and publish / build (20.15.1) (push) Successful in 7m20s

添加邮箱绑定错误码和消息
修改解绑设备逻辑,解绑后创建新用户设备记录
重构邮箱绑定逻辑,支持检测已绑定邮箱并处理设备转移
This commit is contained in:
2025-10-31 00:14:22 -07:00
parent e23809b32e
commit c5d59b86b0
4 changed files with 269 additions and 20 deletions
+2
View File
@@ -27,6 +27,8 @@ const (
TelegramNotBound uint32 = 20007
UserNotBindOauth uint32 = 20008
InviteCodeError uint32 = 20009
// 邮箱绑定错误
EmailBindError uint32 = 20010
)
// Node error
+2
View File
@@ -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",