|
@@ -5,6 +5,7 @@ import com.bosshand.virgo.api.model.RoomCollection;
|
|
|
import com.bosshand.virgo.api.model.Tag;
|
|
|
import com.bosshand.virgo.api.service.ProjectItemTargetRoomService;
|
|
|
import com.bosshand.virgo.api.service.RoomService;
|
|
|
+import com.bosshand.virgo.core.config.OperationControllerLog;
|
|
|
import com.bosshand.virgo.core.response.Response;
|
|
|
import com.bosshand.virgo.core.utils.ContextUtils;
|
|
|
import com.bosshand.virgo.core.utils.StringUtil;
|
|
@@ -43,6 +44,7 @@ public class ProjectItemTargetRoomController {
|
|
|
return Response.ok(projectItemTargetRoomService.queryKeyWord(keyWord));
|
|
|
}
|
|
|
|
|
|
+ @OperationControllerLog(module = "房源管理", operation = "房源列表")
|
|
|
@ApiOperation("获取")
|
|
|
@RequestMapping(value = "/{currPage}/{pageSize}", method = RequestMethod.POST)
|
|
|
public Response list(@RequestBody ProjectItemTargetRoom projectItemTargetRoom, @PathVariable int currPage, @PathVariable int pageSize) {
|
|
@@ -77,6 +79,7 @@ public class ProjectItemTargetRoomController {
|
|
|
return Response.ok(result);
|
|
|
}
|
|
|
|
|
|
+ @OperationControllerLog(module = "房源管理", operation = "房源新增")
|
|
|
@ApiOperation("新增")
|
|
|
@RequestMapping(value = "", method = RequestMethod.POST)
|
|
|
public Response insert(@RequestBody ProjectItemTargetRoom projectItemTargetRoom) {
|
|
@@ -84,6 +87,7 @@ public class ProjectItemTargetRoomController {
|
|
|
return Response.ok();
|
|
|
}
|
|
|
|
|
|
+ @OperationControllerLog(module = "房源管理", operation = "房源删除")
|
|
|
@ApiOperation("删除")
|
|
|
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
|
|
|
public Response delete(@PathVariable long id) {
|
|
@@ -91,6 +95,7 @@ public class ProjectItemTargetRoomController {
|
|
|
return Response.ok();
|
|
|
}
|
|
|
|
|
|
+ @OperationControllerLog(module = "房源管理", operation = "房源编辑")
|
|
|
@ApiOperation("修改")
|
|
|
@RequestMapping(value = "", method = RequestMethod.PUT)
|
|
|
public Response update(@RequestBody ProjectItemTargetRoom projectItemTargetRoom) {
|
|
@@ -98,6 +103,7 @@ public class ProjectItemTargetRoomController {
|
|
|
return Response.ok();
|
|
|
}
|
|
|
|
|
|
+ @OperationControllerLog(module = "房源管理", operation = "房源详情")
|
|
|
@ApiOperation("详情")
|
|
|
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
|
|
|
public Response get(@PathVariable long id) {
|