feat(invite): 添加邀请码注册与验证功能
- 新增邀请码实体、Mapper、Service 及 XML 配置 - 注册接口支持填写邀请码并建立绑定关系 - 邀请码校验包含存在性、状态、过期及次数限制 - 补充相关错误码:INVITE_CODE_* 与 RECEIPT_ALREADY_PROCESSED
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user