|
@@ -1,16 +1,21 @@
|
|
|
|
|
|
package com.dragoninfo.dcuc.authweb.restcontroller.auth;
|
|
|
|
|
|
+import cn.hutool.core.bean.BeanUtil;
|
|
|
+import com.dragoninfo.dcuc.app.entity.ApplyInfo;
|
|
|
import com.dragoninfo.dcuc.auth.auth.entity.AppFunInfo;
|
|
|
import com.dragoninfo.dcuc.auth.auth.vo.EventInfoVO;
|
|
|
import com.dragoninfo.dcuc.auth.auth.vo.TreeInfoVO;
|
|
|
import com.dragoninfo.dcuc.auth.power.facade.IAppFunInfoFacade;
|
|
|
import com.dragoninfo.dcuc.auth.power.facade.IFunEventFacade;
|
|
|
-import com.dragoninfo.dcuc.authweb.restcontroller.auth.vo.AppFunInfoVo;
|
|
|
+import com.dragoninfo.dcuc.auth.auth.vo.AppFunInfoVo;
|
|
|
+import com.dragoninfo.dcuc.authweb.restcontroller.app.vo.AppVo;
|
|
|
import com.dragoninfo.duceap.core.response.Result;
|
|
|
+import com.dragonsoft.duceap.base.entity.search.SearchDTO;
|
|
|
import com.dragonsoft.duceap.commons.util.collections.CollectionUtils;
|
|
|
import com.dragonsoft.duceap.commons.util.tree.SimpleTreeNodeItemResolver;
|
|
|
import com.dragonsoft.duceap.commons.util.tree.TreeNodeUtils;
|
|
|
+import com.dragonsoft.duceap.core.search.Searchable;
|
|
|
import com.dragonsoft.duceap.web.annotation.Permission;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
@@ -19,6 +24,7 @@ import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.data.domain.Page;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@@ -102,6 +108,39 @@ public class AppFunInfoController {
|
|
|
return Result.success(maps);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "查询功能资源列表")
|
|
|
+ @ApiImplicitParam(name = "searchable", value = "查询条件(name:功能名称,like;isActive:在用状态(0:停用 1:启用),=;)")
|
|
|
+ @PostMapping(value = "/search")
|
|
|
+ public Result<List<AppFunInfoVo>> appFunInfoPage(Searchable searchable) {
|
|
|
+ SearchDTO searchDTO = searchable.toSearchDTO();
|
|
|
+ Page<AppFunInfoVo> page = iAppFunInfoFacade.appFunInfoPage(searchDTO);
|
|
|
+ return Result.success(page.getTotalElements(), page.getContent());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "查询功能详情")
|
|
|
+ @ApiImplicitParam(name = "id", value = "id")
|
|
|
+ @GetMapping(value = "/{id}")
|
|
|
+ public Result<AppFunInfoVo> toDetail(@PathVariable("id") String id) {
|
|
|
+ //查询查询功能详情
|
|
|
+ AppFunInfoVo appFunInfoVo = iAppFunInfoFacade.getById(id);
|
|
|
+ return Result.success(appFunInfoVo);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
public List<TreeInfoVO> getChildTreeObjects(List<TreeInfoVO> list,
|
|
|
String parentCode) {
|
|
|
List<TreeInfoVO> returnList = new ArrayList<TreeInfoVO>();
|