xyc
2025-02-21 664db98c9e8595ce4dd636a27f480e3a08b81ff5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
 * 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");
    }
 
}