/**
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
*
|
* https://www.renren.io
|
*
|
* 版权所有,侵权必究!
|
*/
|
|
package com.zt.core.config.swagger;
|
|
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Configuration;
|
|
import springfox.documentation.spring.web.plugins.Docket;
|
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
|
import com.zt.common.utils.DocketUtil;
|
|
/**
|
* Swagger配置
|
*
|
* @author Mark sunlightcs@gmail.com
|
*/
|
@Configuration("swaggerConfig")
|
@EnableSwagger2
|
public class SwaggerConfig {
|
|
@Bean
|
public Docket loginApi() {
|
return DocketUtil.getDocket("登录", "用户登录", "com.zt.security.controller");
|
}
|
|
@Bean
|
public Docket sysApi() {
|
return DocketUtil.getDocket("系统管理", "系统管理", "com.zt.modules.sys.controller");
|
}
|
|
@Bean
|
public Docket logApi() {
|
return DocketUtil.getDocket("日志管理", "日志管理", "com.zt.modules.log.controller");
|
}
|
|
@Bean
|
public Docket messageApi() {
|
return DocketUtil.getDocket("消息管理", "消息管理", "com.zt.modules.message.controller");
|
}
|
|
@Bean
|
public Docket ossApi() {
|
return DocketUtil.getDocket("文件管理", "文件管理", "com.zt.modules.oss.controller");
|
}
|
|
@Bean
|
public Docket bpmApi() {
|
return DocketUtil.getDocket("工作流", "工作流", "com.zt.modules.bpm");
|
}
|
|
}
|