| | |
| | | import com.doumee.dao.dto.DriverVerifyRequest; |
| | | import com.doumee.dao.vo.AccountResponse; |
| | | import com.doumee.dao.dto.CancelOrderDTO; |
| | | import com.doumee.dao.dto.ChangePasswordDTO; |
| | | import com.doumee.dao.vo.DriverActiveOrderCountVO; |
| | | import com.doumee.dao.vo.DriverCancelLimitVO; |
| | | import com.doumee.dao.vo.DriverCenterVO; |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | }) |
| | | public ApiResponse changePassword(@RequestParam String oldPassword, |
| | | @RequestParam String newPassword) { |
| | | public ApiResponse changePassword(@RequestBody @Valid ChangePasswordDTO dto) { |
| | | String token = this.getRequest().getHeader(JwtTokenUtil.HEADER_KEY); |
| | | driverInfoService.changePassword(this.getDriverId(), oldPassword, newPassword, token); |
| | | driverInfoService.changePassword(this.getDriverId(), dto.getOldPassword(), dto.getNewPassword(), token); |
| | | return ApiResponse.success("密码修改成功,请重新登录"); |
| | | } |
| | | |