zhongrj
2023-11-01 efd3674f931b0a2217c67efe88cfc559da67f125
src/main/java/org/springblade/modules/house/controller/HouseRentalController.java
@@ -93,6 +93,16 @@
   }
   /**
    * 出租屋 自定义新增
    */
   @PostMapping("/add")
   @ApiOperationSupport(order = 4)
   @ApiOperation(value = "自定义新增", notes = "传入houseRentalVo")
   public R add(@RequestBody HouseRentalVO houseRentalVO) {
      return R.status(houseRentalService.add(houseRentalVO));
   }
   /**
    * 出租屋 修改
    */
   @PostMapping("/update")
@@ -100,6 +110,16 @@
   @ApiOperation(value = "修改", notes = "传入houseRental")
   public R update(@Valid @RequestBody HouseRentalEntity houseRental) {
      return R.status(houseRentalService.updateById(houseRental));
   }
   /**
    * 出租屋 自定义修改
    * @param houseRental
    * @return
    */
   @PostMapping("/updateHouseRental")
   public R updateHouseRental(@RequestBody HouseRentalVO houseRental) {
      return R.status(houseRentalService.updateHouseRental(houseRental));
   }
   /**
@@ -122,5 +142,15 @@
      return R.status(houseRentalService.removeByIds(Func.toLongList(ids)));
   }
   /**
    * 出租屋 自定义删除
    * @param id
    * @return
    */
   @PostMapping("/removeHouseRental")
   public R removeHouseRental(@ApiParam(value = "主键集合", required = true) @RequestParam Long id) {
      return R.status(houseRentalService.removeHouseRental(id));
   }
}