| | |
| | | import com.pollex.pam.config.ApplicationProperties; |
| | | import com.pollex.pam.service.dto.EServiceRequest; |
| | | import com.pollex.pam.service.dto.EServiceResponse; |
| | | import com.pollex.pam.web.rest.vm.EServiceRequestVM; |
| | | import com.pollex.pam.web.rest.vm.OtpEmailLoginVM; |
| | | import com.pollex.pam.web.rest.vm.OtpSMSLoginVM; |
| | | import com.pollex.pam.web.rest.vm.VerifyOtpVM; |
| | |
| | | // 假設成功了,DB的確認 |
| | | } |
| | | |
| | | public ResponseEntity<EServiceResponse> loginByEService(EServiceRequestVM param) throws Exception{ |
| | | public ResponseEntity<EServiceResponse> loginByEService(String account, String paxxword) throws Exception{ |
| | | EServiceRequest dto = new EServiceRequest(); |
| | | dto.setFunc("ValidateUserLogin"); |
| | | dto.setId(param.getUsername()); |
| | | dto.setPin(param.getPassword()); |
| | | dto.setPwd(param.getPassword()); |
| | | dto.setId(account); |
| | | dto.setPin(paxxword); |
| | | dto.setPwd(paxxword); |
| | | dto.setSys("epos"); |
| | | |
| | | String dtoJson = new ObjectMapper().writeValueAsString(dto); |