| | |
| | | private List<SecurityScheme> securitySchemes() { |
| | | List<SecurityScheme> apiKeyList = new ArrayList<SecurityScheme>(); |
| | | apiKeyList.add(new ApiKey("Authorization", "Authorization", In.HEADER.toValue())); |
| | | apiKeyList.add(new ApiKey("hospId", "hospId", In.HEADER.toValue())); |
| | | return apiKeyList; |
| | | } |
| | | |
| | |
| | | */ |
| | | private List<SecurityReference> defaultAuth() { |
| | | AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything"); |
| | | AuthorizationScope[] authorizationScopes = new AuthorizationScope[2]; |
| | | AuthorizationScope[] authorizationScopes = new AuthorizationScope[1]; |
| | | authorizationScopes[0] = authorizationScope; |
| | | // authorizationScopes[1] = authorizationScope; |
| | | List<SecurityReference> securityReferences = new ArrayList<>(); |
| | | securityReferences.add(new SecurityReference("Authorization", authorizationScopes)); |
| | | // securityReferences.add(new SecurityReference("hospId", authorizationScopes)); |
| | | securityReferences.add(new SecurityReference("hospId", authorizationScopes)); |
| | | return securityReferences; |
| | | } |
| | | |
| | |
| | | // 用ApiInfoBuilder进行定制 |
| | | return new ApiInfoBuilder() |
| | | // 设置标题 |
| | | .title("体检项目接口文档") |
| | | .title("体检系统区域版接口文档") |
| | | // 描述 |
| | | .description("西安路泰科技有限公司") |
| | | // 作者信息 |
| | | .contact(new Contact("李格&赵佳豪", null, null)) |
| | | .contact(new Contact("zwx&zjh", null, null)) |
| | | // 版本 |
| | | .version("版本号:" + ltkjConfig.getVersion()) |
| | | .build(); |
| | |
| | | // "/system/dict/type/**", |
| | | "/captchaImage","/getCaptchaConfigKey/**", |
| | | "/system/role/execUpdateSql", |
| | | "/jmreport/**" |
| | | // , |
| | | // "/login", "/register", "/captchaImage","/cus/**","/getCaptchaConfigKey","/report/jmreport/**", |
| | | // "/sqlserver/getdata/**","/api/His/**","/system/config/zx","/system/config/gxxmpym","/system/report/savePdf", |
| | | // "/system/dyjl/saveGjddyjl","/system/dyjl/saveBlGjddyjl","/check/ceshi","/check/pacs","/check/ceshicc", |
| | | // "/common/uploadImgExe","/common/listExeVal","/pacs/InvokeRisService/**","/check/dataSynchronizationApi", |
| | | // String.valueOf(HttpMethod.GET), "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**", |
| | | // "/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**","/jmreport/**","/lis/**","/pacs/**","/callBack/**" |
| | | "/jmreport/**", |
| | | "/**/*.html", "/**/*.css", "/**/*.js","/swagger-ui.html", |
| | | "/swagger-resources/**", "/*/api-docs", "/webjars/**" |
| | | }); |
| | | |
| | | registry.addInterceptor(jimuInterceptor) |