gaodm 5 роки тому
батько
коміт
4f042e1221

+ 1 - 0
icssman-service/src/main/java/com/diagbot/config/ResourceServerConfigurer.java

@@ -34,6 +34,7 @@ public class ResourceServerConfigurer extends ResourceServerConfigurerAdapter {
                 .antMatchers("/getIcssEnumsData").permitAll()
                 .antMatchers("/questionInfo/indexByLexicon").permitAll()
                 .antMatchers("/cache/clearCache").permitAll()
+                .antMatchers("/questionInfo/indexForkl").permitAll()
                 .antMatchers("/**").authenticated();
 //                        .antMatchers("/**").permitAll();
 

+ 1 - 0
icssman-service/src/main/java/com/diagbot/config/security/UrlAccessDecisionManager.java

@@ -95,6 +95,7 @@ public class UrlAccessDecisionManager implements AccessDecisionManager {
                 || matchers("/dictionaryInfo/getList", request)
                 || matchers("/questionInfo/indexByLexicon", request)
                 || matchers("/cache/clearCache", request)
+                || matchers("/questionInfo/indexForkl", request)
                 || matchers("/", request)) {
             return true;
         }

+ 11 - 0
icssman-service/src/main/java/com/diagbot/web/QuestionInfoController.java

@@ -26,6 +26,7 @@ import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
+import springfox.documentation.annotations.ApiIgnore;
 
 import javax.validation.Valid;
 import java.util.List;
@@ -78,6 +79,16 @@ public class QuestionInfoController {
         return RespDTO.onSuc(data);
     }
 
+    @ApiOperation(value = "标签检索[by:zhoutg]",
+            notes = "")
+    @PostMapping("/indexForkl")
+    @SysLogger("indexForkl")
+    @ApiIgnore
+    public RespDTO<List<QuestionInfo>> indexForkl(@RequestBody QuestionIndexVO questionIndexVO) {
+        List<QuestionInfo> data = questionFacade.indexFac(questionIndexVO);
+        return RespDTO.onSuc(data);
+    }
+
     @ApiOperation(value = "子标签检索[by:zhaops]",
             notes = "")
     @PostMapping("/indexSub")

+ 1 - 1
knowledgeman-service/src/main/java/com/diagbot/client/ICSSManServiceClient.java

@@ -18,7 +18,7 @@ import java.util.List;
  */
 @FeignClient(value = "icssman-service", fallback = ICSSManServiceHystrix.class)
 public interface ICSSManServiceClient {
-    @PostMapping("/questionInfo/index")
+    @PostMapping("/questionInfo/indexForkl")
     RespDTO<List<QuestionInfo>> index(@RequestBody QuestionIndexVO questionIndexVO);
 
     @PostMapping("/cache/clearCache")