| | |
| | | package com.oying.modules.system.rest; |
| | | |
| | | import com.oying.utils.R; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | public ResponseEntity<Object> resetEmail(@RequestParam String email){ |
| | | EmailDto emailDto = verificationCodeService.sendEmail(email, CodeEnum.EMAIL_RESET_EMAIL_CODE.getKey()); |
| | | emailService.send(emailDto,emailService.find()); |
| | | return new ResponseEntity<>(HttpStatus.OK); |
| | | return new ResponseEntity<>(R.success(),HttpStatus.OK); |
| | | } |
| | | |
| | | @PostMapping(value = "/email/resetPass") |
| | |
| | | public ResponseEntity<Object> resetPass(@RequestParam String email){ |
| | | EmailDto emailDto = verificationCodeService.sendEmail(email, CodeEnum.EMAIL_RESET_PWD_CODE.getKey()); |
| | | emailService.send(emailDto,emailService.find()); |
| | | return new ResponseEntity<>(HttpStatus.OK); |
| | | return new ResponseEntity<>(R.success(),HttpStatus.OK); |
| | | } |
| | | |
| | | @GetMapping(value = "/validated") |
| | |
| | | default: |
| | | break; |
| | | } |
| | | return new ResponseEntity<>(HttpStatus.OK); |
| | | return new ResponseEntity<>(R.success(),HttpStatus.OK); |
| | | } |
| | | } |