| | |
| | | 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})); |