liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
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
/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.sys.entity;
 
import org.hibernate.validator.constraints.Length;
 
import com.jeeplus.common.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
 
/**
 * 系统配置Entity
 * @author liugf
 * @version 2016-02-07
 */
public class SystemConfig extends DataEntity<SystemConfig> {
    
    private static final long serialVersionUID = 1L;
    private String smtp;        // 邮箱服务器地址
    private String port;        // 邮箱服务器端口
    private String mailName;        // 系统邮箱地址
    private String mailPassword;        // 系统邮箱密码
    private String smsName;        // 短信用户名
    private String smsPassword;        // 短信密码
    private boolean test = false;
    public SystemConfig() {
        super();
    }
 
    public SystemConfig(String id){
        super(id);
    }
 
    @Length(min=0, max=64, message="邮箱服务器地址长度必须介于 0 和 64 之间")
    @ExcelField(title="邮箱服务器地址", align=2, sort=1)
    public String getSmtp() {
        return smtp;
    }
 
    public void setSmtp(String smtp) {
        this.smtp = smtp;
    }
    
    @Length(min=0, max=64, message="邮箱服务器端口长度必须介于 0 和 64 之间")
    @ExcelField(title="邮箱服务器端口", align=2, sort=2)
    public String getPort() {
        return port;
    }
 
    public void setPort(String port) {
        this.port = port;
    }
    
    @Length(min=0, max=64, message="系统邮箱地址长度必须介于 0 和 64 之间")
    @ExcelField(title="系统邮箱地址", align=2, sort=3)
    public String getMailName() {
        return mailName;
    }
 
    public void setMailName(String mailName) {
        this.mailName = mailName;
    }
    
    @Length(min=0, max=64, message="系统邮箱密码长度必须介于 0 和 64 之间")
    @ExcelField(title="系统邮箱密码", align=2, sort=4)
    public String getMailPassword() {
        return mailPassword;
    }
 
    public void setMailPassword(String mailPassword) {
        this.mailPassword = mailPassword;
    }
    
    @Length(min=0, max=64, message="短信用户名长度必须介于 0 和 64 之间")
    @ExcelField(title="短信用户名", align=2, sort=5)
    public String getSmsName() {
        return smsName;
    }
 
    public void setSmsName(String smsName) {
        this.smsName = smsName;
    }
    
    @Length(min=0, max=64, message="短信密码长度必须介于 0 和 64 之间")
    @ExcelField(title="短信密码", align=2, sort=6)
    public String getSmsPassword() {
        return smsPassword;
    }
 
    public void setSmsPassword(String smsPassword) {
        this.smsPassword = smsPassword;
    }
 
    public void setTest(boolean test) {
        this.test = test;
    }
 
    public boolean isTest() {
        return test;
    }
    
}