| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.DriverInfo; |
| | | import com.doumee.dao.dto.AuditDTO; |
| | | import com.doumee.dao.dto.ChangeStatusDTO; |
| | | import com.doumee.service.business.DriverInfoService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | return ApiResponse.success(driverInfoService.findById(id)); |
| | | } |
| | | |
| | | @ApiOperation("司机详情(含附件)") |
| | | @GetMapping("/detail/{id}") |
| | | @RequiresPermissions("business:driverInfo:query") |
| | | public ApiResponse getDetail(@PathVariable Integer id) { |
| | | return ApiResponse.success(driverInfoService.getDetail(id)); |
| | | } |
| | | |
| | | @ApiOperation("审批司机实名认证") |
| | | @PostMapping("/audit") |
| | | @RequiresPermissions("business:driverInfo:audit") |
| | | @RequiresPermissions("business:driverInfo:update") |
| | | public ApiResponse audit(@RequestBody AuditDTO auditDTO) { |
| | | auditDTO.setAuditUser(this.getLoginUser().getId()); |
| | | driverInfoService.auditVerify(auditDTO); |
| | | return ApiResponse.success("审批成功"); |
| | | } |
| | | |
| | | @ApiOperation("修改司机状态") |
| | | @PostMapping("/changeStatus") |
| | | @RequiresPermissions("business:driverInfo:update") |
| | | public ApiResponse changeStatus(@RequestBody ChangeStatusDTO dto) { |
| | | driverInfoService.changeStatus(dto); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | } |