|
@@ -1,5 +1,7 @@
|
|
package com.gis.cms.controller;
|
|
package com.gis.cms.controller;
|
|
|
|
|
|
|
|
+import com.gis.cms.entity.po.ContentEntity;
|
|
|
|
+import com.gis.cms.entity.po.SceneEntity;
|
|
import com.gis.cms.service.ContentService;
|
|
import com.gis.cms.service.ContentService;
|
|
import com.gis.cms.service.MenuService;
|
|
import com.gis.cms.service.MenuService;
|
|
import com.gis.cms.service.SceneService;
|
|
import com.gis.cms.service.SceneService;
|
|
@@ -35,16 +37,23 @@ public class WebController {
|
|
|
|
|
|
@ApiOperation(value = "内容-列表")
|
|
@ApiOperation(value = "内容-列表")
|
|
@GetMapping("/content/list/{villageId}")
|
|
@GetMapping("/content/list/{villageId}")
|
|
- public Result getList(@PathVariable Long villageId){
|
|
|
|
|
|
+ public Result<ContentEntity> getList(@PathVariable Long villageId){
|
|
return contentService.getList(villageId, null);
|
|
return contentService.getList(villageId, null);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
@ApiOperation(value = "获取菜单树")
|
|
@ApiOperation(value = "获取菜单树")
|
|
@GetMapping("/getTreeMenu")
|
|
@GetMapping("/getTreeMenu")
|
|
public Result getTreeMenu(){
|
|
public Result getTreeMenu(){
|
|
return menuService.getTreeMenu();
|
|
return menuService.getTreeMenu();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "村庄-列表")
|
|
|
|
+ @GetMapping("/village/getList")
|
|
|
|
+ public Result villageList(){
|
|
|
|
+ return villageService.getList();
|
|
|
|
+ }
|
|
|
|
|
|
@ApiOperation(value = "村庄-保存浏览")
|
|
@ApiOperation(value = "村庄-保存浏览")
|
|
@GetMapping("/village/addVisit/{villageId}")
|
|
@GetMapping("/village/addVisit/{villageId}")
|
|
@@ -85,7 +94,7 @@ public class WebController {
|
|
|
|
|
|
@ApiOperation(value = "场景-列表")
|
|
@ApiOperation(value = "场景-列表")
|
|
@GetMapping("/scene/getList")
|
|
@GetMapping("/scene/getList")
|
|
- public Result sceneGetList(){
|
|
|
|
|
|
+ public Result<SceneEntity> sceneGetList(){
|
|
return sceneService.getList();
|
|
return sceneService.getList();
|
|
}
|
|
}
|
|
}
|
|
}
|