专家部分CMS不拦截配置

master
王家东 2 weeks ago
parent 91d1b4fb5b
commit 3879aa062f
  1. 3
      jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java
  2. 4
      jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java

@ -84,6 +84,9 @@ public class ShiroConfig {
} }
// 配置不会被拦截的链接 顺序判断 // 配置不会被拦截的链接 顺序判断
filterChainDefinitionMap.put("/expert/expert/listadminCMS", "anon"); //cms专家模块不拦截
filterChainDefinitionMap.put("/expert/expert/directioncalListCMS", "anon"); //cms专家模块不拦截
filterChainDefinitionMap.put("/expert/expert/CMSexpinfo", "anon"); //cms专家模块不拦截
filterChainDefinitionMap.put("/cms/front/**", "anon"); //cms不拦截 filterChainDefinitionMap.put("/cms/front/**", "anon"); //cms不拦截
filterChainDefinitionMap.put("/newsWebsocket/**", "anon");//CMS模块 filterChainDefinitionMap.put("/newsWebsocket/**", "anon");//CMS模块
filterChainDefinitionMap.put("/expert/expert/userRegisterexp", "anon"); //专家注册 filterChainDefinitionMap.put("/expert/expert/userRegisterexp", "anon"); //专家注册

@ -721,14 +721,14 @@ public class ExpertController extends JeecgController<Expert, IExpertService> {
} }
@ApiOperation(value="专家列表研究方向CMS列表", notes="专家列表研究方向CMS列表") @ApiOperation(value="专家列表研究方向CMS列表", notes="专家列表研究方向CMS列表")
@GetMapping(value = "directioncalListCMS") @GetMapping(value = "/directioncalListCMS")
public Result<List<DisciplineFieid>> directioncalListCMS() { public Result<List<DisciplineFieid>> directioncalListCMS() {
List<DisciplineFieid> disciplineFieid =disciplineFieidService.list(); List<DisciplineFieid> disciplineFieid =disciplineFieidService.list();
return Result.OK(disciplineFieid); return Result.OK(disciplineFieid);
} }
@ApiOperation(value="专家CMS详细信息需要的,参数为专家的id", notes="专家CMS详细信息需要的,参数为专家的id") @ApiOperation(value="专家CMS详细信息需要的,参数为专家的id", notes="专家CMS详细信息需要的,参数为专家的id")
@GetMapping(value = "CMSexpinfo") @GetMapping(value = "/CMSexpinfo")
public Result<ExpCmsVo> CMSexpinfo(@RequestParam(name="id",required=true) String id) { public Result<ExpCmsVo> CMSexpinfo(@RequestParam(name="id",required=true) String id) {
Expert expert = expertService.getById(id); Expert expert = expertService.getById(id);
SysUser sysUser=sysUserService.query().eq("username",expert.getSeusername()).one(); SysUser sysUser=sysUserService.query().eq("username",expert.getSeusername()).one();

Loading…
Cancel
Save