yangys
2024-04-28 258a769f6790f832d1c67839d59be04a118767e5
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
package com.qianwen.smartman.modules.cps.vo;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
 
@ApiModel(description = "配置信息")
@Component
public class ConfigVO implements Serializable {
    @Value("${oss.endpoint}")
    @ApiModelProperty(name = "ossUrl")
    private String ossUrl;
    @Value("${oss.access-key}")
    @ApiModelProperty("access-key")
    private String accessKey;
    @Value("${oss.secret-key}")
    @ApiModelProperty("secret-key")
    private String secretKey;
    @Value("${spring.datasource.dynamic.datasource.tdengine.url}")
    @ApiModelProperty("tdengine配置")
    private String tdengineUrl;
    @Value("${spring.datasource.dynamic.datasource.master.url}")
    @ApiModelProperty("数据库配置")
    private String mysqlUrl;
    @Value("${datasource.driver-class-name}")
    @ApiModelProperty("驱动")
    private String driverClassName;
    @Value("${datasource.database}")
    @ApiModelProperty("数据库名")
    private String database;
    @Value("${datasource.type}")
    @ApiModelProperty("数据库类型")
    private String type;
    @Value("${datasource.url}")
    @ApiModelProperty("ip")
    private String url;
 
    public static class ConfigVOBuilder {
        private String ossUrl;
        private String accessKey;
        private String secretKey;
        private String tdengineUrl;
        private String mysqlUrl;
        private String driverClassName;
        private String database;
        private String type;
        private String url;
 
        ConfigVOBuilder() {
        }
 
        public ConfigVOBuilder ossUrl(final String ossUrl) {
            this.ossUrl = ossUrl;
            return this;
        }
 
        public ConfigVOBuilder accessKey(final String accessKey) {
            this.accessKey = accessKey;
            return this;
        }
 
        public ConfigVOBuilder secretKey(final String secretKey) {
            this.secretKey = secretKey;
            return this;
        }
 
        public ConfigVOBuilder tdengineUrl(final String tdengineUrl) {
            this.tdengineUrl = tdengineUrl;
            return this;
        }
 
        public ConfigVOBuilder mysqlUrl(final String mysqlUrl) {
            this.mysqlUrl = mysqlUrl;
            return this;
        }
 
        public ConfigVOBuilder driverClassName(final String driverClassName) {
            this.driverClassName = driverClassName;
            return this;
        }
 
        public ConfigVOBuilder database(final String database) {
            this.database = database;
            return this;
        }
 
        public ConfigVOBuilder type(final String type) {
            this.type = type;
            return this;
        }
 
        public ConfigVOBuilder url(final String url) {
            this.url = url;
            return this;
        }
 
        public ConfigVO build() {
            return new ConfigVO(this.ossUrl, this.accessKey, this.secretKey, this.tdengineUrl, this.mysqlUrl, this.driverClassName, this.database, this.type, this.url);
        }
 
        public String toString() {
            return "ConfigVO.ConfigVOBuilder(ossUrl=" + this.ossUrl + ", accessKey=" + this.accessKey + ", secretKey=" + this.secretKey + ", tdengineUrl=" + this.tdengineUrl + ", mysqlUrl=" + this.mysqlUrl + ", driverClassName=" + this.driverClassName + ", database=" + this.database + ", type=" + this.type + ", url=" + this.url + ")";
        }
    }
 
    public void setOssUrl(final String ossUrl) {
        this.ossUrl = ossUrl;
    }
 
    public void setAccessKey(final String accessKey) {
        this.accessKey = accessKey;
    }
 
    public void setSecretKey(final String secretKey) {
        this.secretKey = secretKey;
    }
 
    public void setTdengineUrl(final String tdengineUrl) {
        this.tdengineUrl = tdengineUrl;
    }
 
    public void setMysqlUrl(final String mysqlUrl) {
        this.mysqlUrl = mysqlUrl;
    }
 
    public void setDriverClassName(final String driverClassName) {
        this.driverClassName = driverClassName;
    }
 
    public void setDatabase(final String database) {
        this.database = database;
    }
 
    public void setType(final String type) {
        this.type = type;
    }
 
    public void setUrl(final String url) {
        this.url = url;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof ConfigVO) {
            ConfigVO other = (ConfigVO) o;
            if (other.canEqual(this)) {
                Object this$ossUrl = getOssUrl();
                Object other$ossUrl = other.getOssUrl();
                if (this$ossUrl == null) {
                    if (other$ossUrl != null) {
                        return false;
                    }
                } else if (!this$ossUrl.equals(other$ossUrl)) {
                    return false;
                }
                Object this$accessKey = getAccessKey();
                Object other$accessKey = other.getAccessKey();
                if (this$accessKey == null) {
                    if (other$accessKey != null) {
                        return false;
                    }
                } else if (!this$accessKey.equals(other$accessKey)) {
                    return false;
                }
                Object this$secretKey = getSecretKey();
                Object other$secretKey = other.getSecretKey();
                if (this$secretKey == null) {
                    if (other$secretKey != null) {
                        return false;
                    }
                } else if (!this$secretKey.equals(other$secretKey)) {
                    return false;
                }
                Object this$tdengineUrl = getTdengineUrl();
                Object other$tdengineUrl = other.getTdengineUrl();
                if (this$tdengineUrl == null) {
                    if (other$tdengineUrl != null) {
                        return false;
                    }
                } else if (!this$tdengineUrl.equals(other$tdengineUrl)) {
                    return false;
                }
                Object this$mysqlUrl = getMysqlUrl();
                Object other$mysqlUrl = other.getMysqlUrl();
                if (this$mysqlUrl == null) {
                    if (other$mysqlUrl != null) {
                        return false;
                    }
                } else if (!this$mysqlUrl.equals(other$mysqlUrl)) {
                    return false;
                }
                Object this$driverClassName = getDriverClassName();
                Object other$driverClassName = other.getDriverClassName();
                if (this$driverClassName == null) {
                    if (other$driverClassName != null) {
                        return false;
                    }
                } else if (!this$driverClassName.equals(other$driverClassName)) {
                    return false;
                }
                Object this$database = getDatabase();
                Object other$database = other.getDatabase();
                if (this$database == null) {
                    if (other$database != null) {
                        return false;
                    }
                } else if (!this$database.equals(other$database)) {
                    return false;
                }
                Object this$type = getType();
                Object other$type = other.getType();
                if (this$type == null) {
                    if (other$type != null) {
                        return false;
                    }
                } else if (!this$type.equals(other$type)) {
                    return false;
                }
                Object this$url = getUrl();
                Object other$url = other.getUrl();
                return this$url == null ? other$url == null : this$url.equals(other$url);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof ConfigVO;
    }
 
    public int hashCode() {
        Object $ossUrl = getOssUrl();
        int result = (1 * 59) + ($ossUrl == null ? 43 : $ossUrl.hashCode());
        Object $accessKey = getAccessKey();
        int result2 = (result * 59) + ($accessKey == null ? 43 : $accessKey.hashCode());
        Object $secretKey = getSecretKey();
        int result3 = (result2 * 59) + ($secretKey == null ? 43 : $secretKey.hashCode());
        Object $tdengineUrl = getTdengineUrl();
        int result4 = (result3 * 59) + ($tdengineUrl == null ? 43 : $tdengineUrl.hashCode());
        Object $mysqlUrl = getMysqlUrl();
        int result5 = (result4 * 59) + ($mysqlUrl == null ? 43 : $mysqlUrl.hashCode());
        Object $driverClassName = getDriverClassName();
        int result6 = (result5 * 59) + ($driverClassName == null ? 43 : $driverClassName.hashCode());
        Object $database = getDatabase();
        int result7 = (result6 * 59) + ($database == null ? 43 : $database.hashCode());
        Object $type = getType();
        int result8 = (result7 * 59) + ($type == null ? 43 : $type.hashCode());
        Object $url = getUrl();
        return (result8 * 59) + ($url == null ? 43 : $url.hashCode());
    }
 
    public String toString() {
        return "ConfigVO(ossUrl=" + getOssUrl() + ", accessKey=" + getAccessKey() + ", secretKey=" + getSecretKey() + ", tdengineUrl=" + getTdengineUrl() + ", mysqlUrl=" + getMysqlUrl() + ", driverClassName=" + getDriverClassName() + ", database=" + getDatabase() + ", type=" + getType() + ", url=" + getUrl() + ")";
    }
 
    public static ConfigVOBuilder builder() {
        return new ConfigVOBuilder();
    }
 
    public ConfigVO() {
    }
 
    public ConfigVO(final String ossUrl, final String accessKey, final String secretKey, final String tdengineUrl, final String mysqlUrl, final String driverClassName, final String database, final String type, final String url) {
        this.ossUrl = ossUrl;
        this.accessKey = accessKey;
        this.secretKey = secretKey;
        this.tdengineUrl = tdengineUrl;
        this.mysqlUrl = mysqlUrl;
        this.driverClassName = driverClassName;
        this.database = database;
        this.type = type;
        this.url = url;
    }
 
    public String getOssUrl() {
        return this.ossUrl;
    }
 
    public String getAccessKey() {
        return this.accessKey;
    }
 
    public String getSecretKey() {
        return this.secretKey;
    }
 
    public String getTdengineUrl() {
        return this.tdengineUrl;
    }
 
    public String getMysqlUrl() {
        return this.mysqlUrl;
    }
 
    public String getDriverClassName() {
        return this.driverClassName;
    }
 
    public String getDatabase() {
        return this.database;
    }
 
    public String getType() {
        return this.type;
    }
 
    public String getUrl() {
        return this.url;
    }
}