|
@@ -7,6 +7,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springblade.community.entity.Room;
|
|
import org.springblade.community.entity.Room;
|
|
|
import org.springblade.community.feign.IRoomClient;
|
|
import org.springblade.community.feign.IRoomClient;
|
|
|
import org.springblade.community.vo.RoomVO;
|
|
import org.springblade.community.vo.RoomVO;
|
|
|
|
|
+import org.springblade.core.tool.api.R;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -29,6 +30,12 @@ public class RoomController {
|
|
|
|
|
|
|
|
private final IRoomClient roomClient;
|
|
private final IRoomClient roomClient;
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ @PostMapping("list")
|
|
|
|
|
+ public R list(Room room){
|
|
|
|
|
+ List<RoomVO> list = roomClient.list(room);
|
|
|
|
|
+ return R.data(list);
|
|
|
|
|
+ }
|
|
|
/**
|
|
/**
|
|
|
* 功能描述: 通过单元id获取房间列表
|
|
* 功能描述: 通过单元id获取房间列表
|
|
|
*
|
|
*
|
|
@@ -41,7 +48,6 @@ public class RoomController {
|
|
|
*/
|
|
*/
|
|
|
@PostMapping(value = "/getByUnitId")
|
|
@PostMapping(value = "/getByUnitId")
|
|
|
public Map<String, Object> getByUnitId(@RequestBody Map<String, String> map) {
|
|
public Map<String, Object> getByUnitId(@RequestBody Map<String, String> map) {
|
|
|
-
|
|
|
|
|
Map<String, Object> hashMap = new HashMap<>();
|
|
Map<String, Object> hashMap = new HashMap<>();
|
|
|
//result_code:0-失败 1-成功
|
|
//result_code:0-失败 1-成功
|
|
|
hashMap.put("result_code", 0);
|
|
hashMap.put("result_code", 0);
|