From efd3674f931b0a2217c67efe88cfc559da67f125 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Wed, 01 Nov 2023 20:44:15 +0800
Subject: [PATCH] 租房,租户新增, 修改,删除修改
---
src/main/java/org/springblade/modules/house/controller/HouseRentalController.java | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/src/main/java/org/springblade/modules/house/controller/HouseRentalController.java b/src/main/java/org/springblade/modules/house/controller/HouseRentalController.java
index 0344c12..8c20769 100644
--- a/src/main/java/org/springblade/modules/house/controller/HouseRentalController.java
+++ b/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));
+ }
+
}
--
Gitblit v1.9.3