|
@@ -9,6 +9,9 @@ import com.dragoninfo.dcuc.auth.auth.enumresources.SubDataAuthTypeEnum;
|
|
|
import com.dragoninfo.dcuc.auth.auth.facade.IDataAuthFacade;
|
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.auth.vo.data.*;
|
|
|
import com.dragoninfo.dcuc.authweb.util.VersionUtils;
|
|
|
+import com.dragoninfo.dcuc.user.label.ILabelFacade;
|
|
|
+import com.dragoninfo.dcuc.user.label.dto.LabelSearchDto;
|
|
|
+import com.dragoninfo.dcuc.user.label.vo.LabelTreeVO;
|
|
|
import com.dragoninfo.duceap.core.response.Result;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
@@ -39,15 +42,19 @@ public class DataAuthController {
|
|
|
@Autowired
|
|
|
IDataAuthFacade dataAuthFacade;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ ILabelFacade labelFacade;
|
|
|
|
|
|
@ApiOperation(value = "获取属性列表,树形结构:警种1-业务域N")
|
|
|
@ApiImplicitParam(name = "name", value = "查询条件")
|
|
|
- @GetMapping(value = "businessTreeList", produces = "application/json;charset=UTF-8")
|
|
|
- public Result<List<PropertyTreeVo>> businessTreeList(@RequestParam(value = "name",required = false) String name){
|
|
|
+ @RequestMapping(value = "businessTreeList", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
|
|
|
+ public Result businessTreeList(@RequestBody LabelSearchDto labelSearchDto){
|
|
|
|
|
|
- return null;
|
|
|
+ List<LabelTreeVO> labelTreeList = labelFacade.labelTreeList(labelSearchDto);
|
|
|
+ return Result.success(labelTreeList);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@ApiOperation(value = "获取所有数据资源,返回返回树结构")
|
|
|
@ApiImplicitParam(name = "attrType",value = "数据属性类型 TABLE:表 COLUMN:列")
|
|
|
@GetMapping(value = "allDataTree", produces = "application/json;charset=UTF-8")
|