| | |
| | | ywContract.setLoginUserInfo(this.getLoginUser(token)); |
| | | return ApiResponse.success(ywContractService.create(ywContract)); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("退租") |
| | | @PostMapping("/backRent") |
| | | @CloudRequiredPermission("business:ywcontract:update") |
| | | public ApiResponse backRent(@RequestBody YwContract ywContract,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | ywContract.setLoginUserInfo(this.getLoginUser(token)); |
| | | return ApiResponse.success(ywContractService.backRent(ywContract)); |
| | | } |
| | | |
| | | @ApiOperation("根据ID删除") |
| | | @GetMapping("/delete/{id}") |