唐耀东
2022-02-18 ce34d9d0ac101f816a0fc7f798607adfe44d7885
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package com.ruoyi.framework.config.properties;
 
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
import java.util.List;
 
/**
 * swagger 配置属性
 *
 * @author Lion Li
 */
@Data
@Component
@ConfigurationProperties(prefix = "swagger")
public class SwaggerProperties {
 
    /**
     * 验证码类型
     */
    private Boolean enabled;
    /**
     * 设置请求的统一前缀
     */
    private String pathMapping;
    /**
     * 验证码类别
     */
    private String title;
    /**
     * 数字验证码位数
     */
    private String description;
    /**
     * 字符验证码长度
     */
    private String version;
 
    /**
     * 联系方式
     */
    private Contact contact;
 
    /**
     * 组配置
     */
    private List<Groups> groups;
 
    @Data
    @NoArgsConstructor
    public static class Contact {
 
        /**
         * 联系人
         */
        private String name;
 
        /**
         * 联系人url
         */
        private String url;
 
        /**
         * 联系人email
         */
        private String email;
 
    }
 
    @Data
    @NoArgsConstructor
    public static class Groups {
 
        /**
         * 组名
         */
        private String name;
 
        /**
         * 基础包路径
         */
        private String basePackage;
 
    }
 
}