提交 9f3b58a9 authored 作者: 孙洁清's avatar 孙洁清

Merge branch 'master' of git.yfzx.zjtys.com.cn:912-system/monitor/inspect

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