| | |
| | | import org.springframework.context.annotation.Configuration; |
| | | import springfox.documentation.builders.ApiInfoBuilder; |
| | | import springfox.documentation.builders.PathSelectors; |
| | | import springfox.documentation.builders.RequestHandlerSelectors; |
| | | import springfox.documentation.service.*; |
| | | import springfox.documentation.spi.DocumentationType; |
| | | import springfox.documentation.spi.service.contexts.SecurityContext; |
| | |
| | | */ |
| | | private final OpenApiExtensionResolver openApiExtensionResolver; |
| | | |
| | | @Bean |
| | | public Docket authDocket() { |
| | | return docket("授权模块", Collections.singletonList(AppConstant.BASE_PACKAGES + ".modules.auth")); |
| | | } |
| | | // @Bean |
| | | // public Docket authDocket() { |
| | | // return docket("授权模块", Collections.singletonList(AppConstant.BASE_PACKAGES + ".modules.auth")); |
| | | // } |
| | | |
| | | // @Bean |
| | | // public Docket sysDocket() { |
| | | // return docket("系统模块", |
| | | // Arrays.asList(AppConstant.BASE_PACKAGES + ".modules.system", AppConstant.BASE_PACKAGES + ".modules.resource")); |
| | | // } |
| | | |
| | | |
| | | @Bean |
| | | public Docket sysDocket() { |
| | | return docket("系统模块", |
| | | Arrays.asList(AppConstant.BASE_PACKAGES + ".modules.system", AppConstant.BASE_PACKAGES + ".modules.resource")); |
| | | public Docket ywDocket() { |
| | | return docket("业务模块", |
| | | Arrays.asList(AppConstant.BASE_PACKAGES + ".modules.yw", AppConstant.BASE_PACKAGES + ".modules.yw")); |
| | | } |
| | | |
| | | @Bean |
| | | public Docket flowDocket() { |
| | | return docket("工作流模块", Collections.singletonList(AppConstant.BASE_PACKAGES + ".flow")); |
| | | } |
| | | // @Bean |
| | | // public Docket flowDocket() { |
| | | // return docket("工作流模块", Collections.singletonList(AppConstant.BASE_PACKAGES + ".flow")); |
| | | // } |
| | | |
| | | private Docket docket(String groupName, List<String> basePackages) { |
| | | return new Docket(DocumentationType.SWAGGER_2) |