田源
2023-10-30 158ac9bdc5d184a4dca8ff30755186f5ca2db771
Source/UBCS/ubcs-service/ubcs-system/src/main/java/com/vci/ubcs/system/feign/SysClient.java
@@ -18,13 +18,13 @@
import com.vci.ubcs.system.entity.*;
import com.vci.ubcs.system.service.*;
import com.vci.ubcs.system.vo.DeptVO;
import com.vci.ubcs.system.vo.RoleVO;
import lombok.AllArgsConstructor;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tenant.annotation.NonDS;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import java.util.List;
@@ -60,10 +60,29 @@
   private final ICombinationService combinationService;
   private final IMdmCountConfigService mdmCountConfigService;
   @Override
   @GetMapping(MENU)
   public R<Menu> getMenu(Long id) {
      return R.data(menuService.getById(id));
   }
   /**
    * 根据code查询菜单信息
    * @param codes
    * @return
    */
   @Override
   @GetMapping(MENU_BY_CODES)
   public R<List<Menu>> getMenuByCodes(List<String> codes,Long userId) {
      return R.data(menuService.getMenuByCodes(codes,userId));
   }
   @Override
   @GetMapping(MENU_BUTTON)
   public R<List<Menu>> getMenuButtonByType(String btmType) {
      return R.data(menuService.getMenuButtonByType(btmType, AuthUtil.getUserId()));
   }
   @Override
@@ -75,6 +94,15 @@
   @Override
   public R<String> getDeptIds(String tenantId, String deptNames) {
      return R.data(deptService.getDeptIds(tenantId, deptNames));
   }
   @Override
   public R<List<DeptVO>> tree(String tenantId) {
      return R.data(deptService.tree(tenantId));
   }
   @Override
   public R<List<DeptVO>> deptList(String tenantId) {
      return R.data(deptService.deptList(tenantId));
   }
   @Override
@@ -135,7 +163,14 @@
   public R<String> getRoleIds(String tenantId, String roleNames) {
      return R.data(roleService.getRoleIds(tenantId, roleNames));
   }
   @Override
   public R<List<RoleVO>> roleTree(String tenantId) {
      return R.data(roleService.tree(tenantId));
   }
   @Override
   public R<List<RoleVO>>  roleList(String tenantId) {
      return R.data(roleService.roleList(tenantId));
   }
   @Override
   @GetMapping(ROLE_NAME)
   public R<String> getRoleName(Long id) {
@@ -221,5 +256,10 @@
      return R.data(combinationService.getRegexList(combinationIds));
   }
   @Override
   @GetMapping(MDM_COUNT_CONFIG)
   public R<MdmCountConfig> getMdmCountConfig (String userId) {
      return R.data(mdmCountConfigService.getMdmCountConfig(userId));
   }
}