保誠-保戶業務員媒合平台
jack
2024-03-05 b832880e1fcf3307387d53106078498f68a95853
移除TestLoginResource
修改1個檔案
34 ■■■■ 已變更過的檔案
pamapi/src/main/java/com/pollex/pam/web/rest/TestLoginResource.java 34 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/java/com/pollex/pam/web/rest/TestLoginResource.java
@@ -53,23 +53,23 @@
    @Autowired
    TokenProvider tokenProvider;
    @GetMapping("/bySMS")
    public ResponseEntity<OtpResponseDTO> sendOtpBySMS(@RequestParam("phone") String phone) {
        final OtpResponseDTO otpResponseDTO = otpWebService.sendByPhone(phone);
        return new ResponseEntity<>(otpResponseDTO, HttpStatus.OK);
    }
    @GetMapping("/byEmail")
    public ResponseEntity<OtpResponseDTO> sendOtpByEmail(@RequestParam("email") String email) {
        final OtpResponseDTO otpResponseDTO = otpWebService.sendByEmail(email);
        return new ResponseEntity<>(otpResponseDTO, HttpStatus.OK);
    }
    @GetMapping("/verifyOtp")
    public ResponseEntity<OtpResponseDTO> verifyOtp(@RequestParam("account") String account, @RequestParam("indexKey") String indexKey, @RequestParam("otpCode") String otpCode) {
        final OtpResponseDTO otpResponseDTO = otpWebService.verifyOTP(indexKey, otpCode);
        return new ResponseEntity<>(otpResponseDTO, HttpStatus.OK);
    }
//    @GetMapping("/bySMS")
//    public ResponseEntity<OtpResponseDTO> sendOtpBySMS(@RequestParam("phone") String phone) {
//        final OtpResponseDTO otpResponseDTO = otpWebService.sendByPhone(phone);
//        return new ResponseEntity<>(otpResponseDTO, HttpStatus.OK);
//    }
//
//    @GetMapping("/byEmail")
//    public ResponseEntity<OtpResponseDTO> sendOtpByEmail(@RequestParam("email") String email) {
//        final OtpResponseDTO otpResponseDTO = otpWebService.sendByEmail(email);
//        return new ResponseEntity<>(otpResponseDTO, HttpStatus.OK);
//    }
//
//    @GetMapping("/verifyOtp")
//    public ResponseEntity<OtpResponseDTO> verifyOtp(@RequestParam("account") String account, @RequestParam("indexKey") String indexKey, @RequestParam("otpCode") String otpCode) {
//        final OtpResponseDTO otpResponseDTO = otpWebService.verifyOTP(indexKey, otpCode);
//        return new ResponseEntity<>(otpResponseDTO, HttpStatus.OK);
//    }
//    @GetMapping("/byEService")
//    public ResponseEntity<EServiceResponse> loginByEService(@RequestParam("account") String account, @RequestParam("password") String password) throws Exception {