| | |
| | | import com.doumee.dao.business.model.DriverInfo; |
| | | import com.doumee.dao.dto.AuditDTO; |
| | | import com.doumee.dao.dto.ChangeStatusDTO; |
| | | import com.doumee.dao.dto.DriverVerifyRequest; |
| | | import com.doumee.service.business.DriverInfoService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | return ApiResponse.success(driverInfoService.getDetail(id)); |
| | | } |
| | | |
| | | @ApiOperation("修改司机注册信息") |
| | | @PostMapping("/updateDriverInfo") |
| | | @RequiresPermissions("business:driverInfo:update") |
| | | public ApiResponse updateDriverInfo(@RequestBody DriverVerifyRequest request) { |
| | | return ApiResponse.success(driverInfoService.updateDriverInfo(request)); |
| | | } |
| | | |
| | | @ApiOperation("审批司机实名认证") |
| | | @PostMapping("/audit") |
| | | @RequiresPermissions("business:driverInfo:update") |
| | |
| | | } |
| | | |
| | | @ApiOperation("修改司机状态") |
| | | @PostMapping("/changeStatus") |
| | | @PostMapping("/updateStatus") |
| | | @RequiresPermissions("business:driverInfo:update") |
| | | public ApiResponse changeStatus(@RequestBody ChangeStatusDTO dto) { |
| | | public ApiResponse updateStatus(@RequestBody ChangeStatusDTO dto) { |
| | | driverInfoService.changeStatus(dto); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | @ApiOperation("已支付押金司机列表") |
| | | @GetMapping("/paidDepositList") |
| | | @RequiresPermissions("business:driverInfo:query") |
| | | public ApiResponse<List<DriverInfo>> paidDepositList() { |
| | | DriverInfo query = new DriverInfo(); |
| | | query.setAuditStatus(3); |
| | | query.setDeleted(0); |
| | | return ApiResponse.success(driverInfoService.findList(query)); |
| | | } |
| | | |
| | | } |