| | |
| | | import com.qianwen.core.swagger.EnableSwagger; |
| | | import com.qianwen.core.swagger.SwaggerProperties; |
| | | import com.qianwen.core.swagger.SwaggerUtil; |
| | | import com.qianwen.smartman.modules.dmpLog.constant.DmpLogSyncConstant; |
| | | //import com.qianwen.smartman.modules.dmpLog.constant.DmpLogSyncConstant; |
| | | |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.context.annotation.Bean; |
| | |
| | | public Docket syncDocket() { |
| | | return docket("sync", Collections.singletonList("com.qianwen.smartman.modules.sync")); |
| | | } |
| | | |
| | | /* |
| | | @Bean |
| | | public Docket dmpLogDocket() { |
| | | return docket(DmpLogSyncConstant.DMP_LOG_TOPIC, Collections.singletonList("com.qianwen.smartman.modules.dmpLog")); |
| | | } |
| | | */ |
| | | |
| | | @Bean |
| | | public Docket toolDocket() { |
| | |
| | | return docket("andon", Collections.singletonList("com.qianwen.smartman.modules.andon")); |
| | | } |
| | | |
| | | @Bean |
| | | public Docket workinghourDocket() { |
| | | return docket("workinghour", Collections.singletonList("com.qianwen.smartman.modules.workinghour")); |
| | | } |
| | | |
| | | private Docket docket(String groupName, List<String> basePackages) { |
| | | TypeResolver resolver = new TypeResolver(); |
| | | AlternateTypeRule listLongToString = AlternateTypeRules.newRule(resolver.resolve(List.class, new Type[]{Long.class}), resolver.resolve(List.class, new Type[]{String.class})); |