| | |
| | | return R.ok(encrypt.getString("content")); |
| | | }*/ |
| | | @ApiOperation(value = "账号密码登录", tags = {"运维APP登录"}) |
| | | @PostMapping("base/v1/operationPasswordLogin") |
| | | @PostMapping("/maintenance-app/base/v1/operationPasswordLogin") |
| | | public R<?> operationPasswordLogin(@RequestBody AppLoginPasswordDTO appLoginPasswordDTO, HttpServletRequest request) { |
| | | // 用户登录 |
| | | LoginOperationUser userInfo = sysLoginService.operationPasswordLogin(appLoginPasswordDTO.getPhoneNumber(), appLoginPasswordDTO.getPassword(), appLoginPasswordDTO.getDeviceType(), request); |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "手机验证码登录", tags = {"运维APP登录"}) |
| | | @PostMapping("base/v1/verificationCodeLogin") |
| | | @PostMapping("/maintenance-app/base/v1/verificationCodeLogin") |
| | | public R<?> verificationCodeLogin(@RequestBody AppLoginCodeDTO appLoginCodeDTO, HttpServletRequest request) { |
| | | // 用户登录 |
| | | LoginOperationUser userInfo = sysLoginService.verificationCodeLogin(appLoginCodeDTO.getPhoneNumber(), appLoginCodeDTO.getVerificationCode(),appLoginCodeDTO.getDeviceType(), request); |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "获取手机验证码", tags = {"运维APP登录"}) |
| | | @PostMapping("base/v1/getVerificationCode") |
| | | @PostMapping("/maintenance-app/base/v1/getVerificationCode") |
| | | public R<?> verificationCodeLogin(@RequestBody AppLoginGetCodeDTO appLoginPasswordDTO) { |
| | | XpOperationsUser xpOperationsUser = xpOperationsUserService.lambdaQuery() |
| | | .eq(XpOperationsUser::getPhoneNumber, appLoginPasswordDTO.getPhoneNumber()) |
| | |
| | | return R.ok(); |
| | | } |
| | | @ApiOperation(value = "修改密码", tags = {"运维APP登录"}) |
| | | @PostMapping("base/v1/updatePassword") |
| | | @PostMapping("/maintenance-app/base/v1/updatePassword") |
| | | public R<?> updatePassword(@RequestBody UpdatePasswordDTO updatePasswordDTO, HttpServletRequest request) { |
| | | // 用户登录 |
| | | if (sysLoginService.verificationCodeUpdate(updatePasswordDTO, request)){ |