提交 d4904820 authored 作者: 马晨俊's avatar 马晨俊

mcj:不添加权限

上级 5e128cd4
...@@ -17,9 +17,6 @@ public class MvcConfig extends WebMvcConfigurationSupport { ...@@ -17,9 +17,6 @@ public class MvcConfig extends WebMvcConfigurationSupport {
// 多个拦截器组成一个拦截器链 // 多个拦截器组成一个拦截器链
// addPathPatterns 用于添加拦截规则,/**表示拦截所有请求 // addPathPatterns 用于添加拦截规则,/**表示拦截所有请求
// excludePathPatterns 用户排除拦截 // excludePathPatterns 用户排除拦截
registry.addInterceptor(loginInterceptor).addPathPatterns("/**")
.excludePathPatterns("/swagger-resources/**", "/webjars/**", "/v2/**", "/swagger-ui.html/**");
;
super.addInterceptors(registry); super.addInterceptors(registry);
} }
@Override @Override
......
...@@ -37,7 +37,6 @@ public class RuleController { ...@@ -37,7 +37,6 @@ public class RuleController {
*/ */
@PostMapping @PostMapping
@ApiOperation("新增规则") @ApiOperation("新增规则")
@AuthAnnotation(code = {"1200","1400"})
public ResponseEntity rule(@RequestBody RuleQo ruleQo){ public ResponseEntity rule(@RequestBody RuleQo ruleQo){
ruleService.addRule(ruleQo); ruleService.addRule(ruleQo);
return ResponseEntity.ok(200); return ResponseEntity.ok(200);
...@@ -49,7 +48,6 @@ public class RuleController { ...@@ -49,7 +48,6 @@ public class RuleController {
*/ */
@PostMapping(value = "/update") @PostMapping(value = "/update")
@ApiOperation("修改规则") @ApiOperation("修改规则")
@AuthAnnotation(code = {"1200","1400"})
public ResponseEntity update(@RequestBody RuleQo ruleQo){ public ResponseEntity update(@RequestBody RuleQo ruleQo){
ruleService.upRule(ruleQo); ruleService.upRule(ruleQo);
return ResponseEntity.ok(200); return ResponseEntity.ok(200);
...@@ -61,14 +59,12 @@ public class RuleController { ...@@ -61,14 +59,12 @@ public class RuleController {
*/ */
@ApiOperation("根据数据封装删除规则") @ApiOperation("根据数据封装删除规则")
@DeleteMapping @DeleteMapping
@AuthAnnotation(code = {"1200","1400"})
public ResponseEntity deleteByQo(@RequestBody RuleQo ruleQo){ public ResponseEntity deleteByQo(@RequestBody RuleQo ruleQo){
ruleService.deleteRule(ruleQo); ruleService.deleteRule(ruleQo);
return ResponseEntity.ok(200); return ResponseEntity.ok(200);
} }
@ApiOperation("根据name查询规则") @ApiOperation("根据name查询规则")
@GetMapping(value = "/{name}") @GetMapping(value = "/{name}")
@AuthAnnotation(code = {"1200","1400"})
public ResponseEntity getName(@PathVariable String name) { public ResponseEntity getName(@PathVariable String name) {
List<RuleCollection> byName = ruleService.findByName(name); List<RuleCollection> byName = ruleService.findByName(name);
return ResponseEntity.ok(byName); return ResponseEntity.ok(byName);
......
...@@ -58,7 +58,6 @@ public class TechnologyController { ...@@ -58,7 +58,6 @@ public class TechnologyController {
* 添加关键技术 * 添加关键技术
* @return List * @return List
*/ */
@AuthAnnotation(code = "1100")
@PostMapping("/add") @PostMapping("/add")
@ApiOperation("新添加关键技术") @ApiOperation("新添加关键技术")
public ResponseEntity addTechnologies(@RequestBody Technology technology){ public ResponseEntity addTechnologies(@RequestBody Technology technology){
...@@ -66,7 +65,6 @@ public class TechnologyController { ...@@ -66,7 +65,6 @@ public class TechnologyController {
return ResponseEntity.ok(200); return ResponseEntity.ok(200);
} }
@AuthAnnotation(code = "1100")
@PostMapping(value = "/{id}") @PostMapping(value = "/{id}")
@ApiOperation("修改关键技术") @ApiOperation("修改关键技术")
public ResponseEntity update(@RequestBody Technology technology,@PathVariable String id){ public ResponseEntity update(@RequestBody Technology technology,@PathVariable String id){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论