| | |
| | | public Docket enforceApi() |
| | | { |
| | | return new Docket(DocumentationType.OAS_30) |
| | | .groupName("执法流程") |
| | | .groupName("执法中心") |
| | | .apiInfo(apiInfo()) |
| | | .select() |
| | | .apis(RequestHandlerSelectors.any()) |
| | |
| | | .pathMapping(pathMapping); |
| | | } |
| | | |
| | | @Bean |
| | | public Docket reportApi() |
| | | { |
| | | return new Docket(DocumentationType.OAS_30) |
| | | .groupName("报表中心") |
| | | .apiInfo(apiInfo()) |
| | | .select() |
| | | .apis(RequestHandlerSelectors.any()) |
| | | .paths(PathSelectors.regex("/report/.*")) |
| | | .build() |
| | | /* 设置安全模式,swagger可以设置访问token */ |
| | | .securitySchemes(securitySchemes()) |
| | | .securityContexts(securityContexts()) |
| | | .pathMapping(pathMapping); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 安全模式,这里指定token通过Authorization头请求头传递 |