| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //package nju.seec.helper.controller;
- //
- //import nju.seec.helper.dto.validator.phone.Phone;
- //import nju.seec.helper.dto.validator.schoolemail.SchoolEmail;
- //import nju.seec.helper.service.CodeService;
- //import org.springframework.validation.annotation.Validated;
- //import org.springframework.web.bind.annotation.PostMapping;
- //import org.springframework.web.bind.annotation.RequestMapping;
- //import org.springframework.web.bind.annotation.RestController;
- //
- //import javax.validation.constraints.NotBlank;
- //
- ///**
- // * 发送验证码
- // *
- // * @author cst
- // */
- //@Validated
- //@RestController
- //@RequestMapping("/api/code")
- //public class CodeController {
- // private final CodeService codeService;
- //
- // public CodeController(CodeService codeService) {
- // this.codeService = codeService;
- // }
- //
- // /**
- // * 发送邮箱验证码
- // */
- // @PostMapping("/email")
- // public void sendEmailCode(@NotBlank(message = "邮箱不能为空") @SchoolEmail String email) {
- // codeService.sendEmailCode(email);
- // }
- //
- // /**
- // * 发送手机验证码
- // */
- // @PostMapping("/phone")
- // public void sendPhoneCode(@NotBlank(message = "手机号不能为空") @Phone String phone) {
- // codeService.sendPhoneCode(phone);
- // }
- //}
|