详情的五拦截接口

gstadmin
王家东 2 months ago
parent 4e3455bfbe
commit f9047827fe
  1. 3
      jeecg-boot-master/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java
  2. 8
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java
  3. 7
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java
  4. 7
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/controller/CompController.java

@ -76,8 +76,11 @@ public class ShiroConfig {
} }
// 配置不会被拦截的链接 顺序判断 // 配置不会被拦截的链接 顺序判断
filterChainDefinitionMap.put("/annualcomp/annualComp/findndbswlj", "anon"); //年度比赛列表无拦截需要传比赛id filterChainDefinitionMap.put("/annualcomp/annualComp/findndbswlj", "anon"); //年度比赛列表无拦截需要传比赛id
filterChainDefinitionMap.put("/annualcomp/annualComp/findndbswxq", "anon"); //年度比赛详情无拦截需要传比赛id
filterChainDefinitionMap.put("/comp/comp/complistnoxq", "anon"); //比赛详情无拦截
filterChainDefinitionMap.put("/comp/comp/complistnolj", "anon"); //比赛列表无拦截 filterChainDefinitionMap.put("/comp/comp/complistnolj", "anon"); //比赛列表无拦截
filterChainDefinitionMap.put("/AnnualCompPoint/annualCompPoint/findcompp", "anon"); //查询是已经通过审核的且在报名时间段之内的年度比赛项目需要穿年度比赛id filterChainDefinitionMap.put("/AnnualCompPoint/annualCompPoint/findcompp", "anon"); //查询是已经通过审核的且在报名时间段之内的年度比赛项目需要穿年度比赛id
filterChainDefinitionMap.put("/AnnualCompPoint/annualCompPoint/findcomppxq", "anon"); //查询是已经通过审核的且在报名时间段之内的年度比赛项目详情需要穿年度比赛id
filterChainDefinitionMap.put("/sysconfiguration/sysConfiguration/**", "anon"); //系统配置 filterChainDefinitionMap.put("/sysconfiguration/sysConfiguration/**", "anon"); //系统配置
filterChainDefinitionMap.put("/sys/cas/client/validateLogin", "anon"); //cas验证登录 filterChainDefinitionMap.put("/sys/cas/client/validateLogin", "anon"); //cas验证登录
filterChainDefinitionMap.put("/sys/randomImage/**", "anon"); //登录验证码接口排除 filterChainDefinitionMap.put("/sys/randomImage/**", "anon"); //登录验证码接口排除

@ -1557,4 +1557,12 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint,
} }
@ApiOperation(value="查询是已经通过审核的且在报名时间段之内的年度比赛项目详情", notes="查询是已经通过审核的且在报名时间段之内的年度比赛项目详情")
@GetMapping(value = "/findcomppxq")
public Result<?> findcomppxq(@RequestParam(name = "id", required = true) String id) {
AnnualCompPoint annualCompPoint = annualCompPointService.getById(id);
return Result.OK(annualCompPoint);
}
} }

@ -586,6 +586,11 @@ public class AnnualCompController extends JeecgController<AnnualComp, IAnnualCom
} }
@ApiOperation(value = "年度比赛详情(无拦截)", notes = "年度比赛详情(无拦截)")
@GetMapping(value = "/findndbswxq")
public Result<?> findndbswxq(@RequestParam(name = "id", required = true) String id) {
AnnualComp annualComp =annualCompService.getById(id);
return Result.OK(annualComp);
}
} }

@ -450,5 +450,12 @@ public class CompController extends JeecgController<Comp, ICompService> {
return Result.OK(compList); return Result.OK(compList);
} }
@ApiOperation(value = "获取比赛详情无拦截", notes = "获取比赛详情无拦截")
@GetMapping(value = "/complistnoxq")
public Result<?> complistnoxq(@RequestParam(name = "id", required = true) String id) {
Comp comp = compService.getById(id);
return Result.OK(comp);
}
} }

Loading…
Cancel
Save