feat(invite): 添加邀请码注册与验证功能

- 新增邀请码实体、Mapper、Service 及 XML 配置
- 注册接口支持填写邀请码并建立绑定关系
- 邀请码校验包含存在性、状态、过期及次数限制
- 补充相关错误码:INVITE_CODE_* 与 RECEIPT_ALREADY_PROCESSED
This commit is contained in:
2025-12-19 14:47:54 +08:00
parent 0ef7a7fd83
commit 6638ff2ccc
6 changed files with 77 additions and 2 deletions

View File

@@ -142,4 +142,10 @@ public class UserController {
return ResultUtils.success(respVO);
}
@PostMapping("/bindInviteCode")
@Operation(summary = "绑定邀请码", description = "用户填写邀请码进行绑定")
public BaseResponse<Boolean> bindInviteCode(@RequestBody BindInviteCodeDTO bindInviteCodeDTO) {
return ResultUtils.success(userService.bindInviteCode(bindInviteCodeDTO));
}
}