TASK:Global Award邮箱验证

This commit is contained in:
2026-01-20 13:14:50 +08:00
parent 6bc500e78f
commit d7edc166b3
8 changed files with 140 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ package com.ai.da.controller;
import com.ai.da.common.response.Response;
import com.ai.da.model.dto.ContestantDTO;
import com.ai.da.model.vo.CheckOTPVO;
import com.ai.da.service.GlobalAwardService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;
@@ -38,6 +39,18 @@ public class GlobalAwardController {
ContestantDTO dto = globalAwardService.getContestantByEmail(email);
return Response.success(dto);
}
@GetMapping("/checkEmail")
public Response<String> checkEmail(@RequestParam("email") String email) {
globalAwardService.checkEmail(email);
return Response.success();
}
@GetMapping("/checkCode")
public Response<CheckOTPVO> checkOTP(@RequestParam("email") String email, @RequestParam("code") String code) {
return Response.success(globalAwardService.checkOTP(email, code));
}
}