| | |
| | | */ |
| | | 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")); |
| | | Arrays.asList(AppConstant.BASE_PACKAGES)); |
| | | } |
| | | |
| | | @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) |