//package cn.superdesk.uniorder.openapicall.config.swagger3;
//
//import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
//import com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//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.ApiInfo;
//import springfox.documentation.service.Contact;
//import springfox.documentation.spi.DocumentationType;
//import springfox.documentation.spring.web.plugins.Docket;
//
//
//@Configuration
//@EnableKnife4j
//public class Knife4jConfig {
//
//
//	/*引入Knife4j提供的扩展类*/
//	private final OpenApiExtensionResolver openApiExtensionResolver;
//
//	@Autowired
//	public Knife4jConfig(OpenApiExtensionResolver openApiExtensionResolver) {
//		this.openApiExtensionResolver = openApiExtensionResolver;
//	}
//
//	@Bean
//	public Docket createRestApiForAll() {
//
//		return new Docket(DocumentationType.SWAGGER_2)
//				.useDefaultResponseMessages(false)
//				.apiInfo(apiInfo())
//				.select()
//				.apis(RequestHandlerSelectors.basePackage("cn.superdesk.uniorder.openapicall"))
//				.paths(PathSelectors.any())
//				.build()
//				.groupName("default")
//				.pathMapping("/")
//				// 赋予插件体系
//				.extensions(openApiExtensionResolver.buildExtensions("default"))
//				;
//	}
//
//	private ApiInfo apiInfo() {
//		return new ApiInfoBuilder()
//				.title("Superdesk UniOrder Services Open APIs Call")
//				.description("Superdesk UniOrder Services Open APIs Call Readme")
//				.termsOfServiceUrl("https://www.superdesk.cn/superdesk-uniorder")
//				.contact(new Contact("linjinyu", "", "linjinyu@avic-s.com"))
//				.version("1.0.0")
//				.build();
//	}
//
//}