Browse Source

swagger隐藏不要显示的接口

gaodm 6 năm trước cách đây
mục cha
commit
5335de8dbe

+ 3 - 1
icss-service/src/main/java/com/diagbot/web/DisScaleController.java

@@ -15,6 +15,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 java.util.List;
 
@@ -47,8 +48,9 @@ public class DisScaleController {
     }
 
 
-//    @ApiOperation(value = "2期-获取量表内容[by:zhoutg]",notes = "")
+    @ApiOperation(value = "2期-获取量表内容[by:zhoutg]",notes = "")
     @PostMapping("/getContent")
+    @ApiIgnore
     public RespDTO<List<ScaleContent>> getContent(@RequestBody PushVO pushVO) {
         List<ScaleContent> data = scaleContentFacade.getContent(pushVO);
         return RespDTO.onSuc(data);