admin
2020-12-01 afdacbdf0e92ed0e85d3e28dcde9cb0e519ee07f
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
package com.ks.app.entity;
 
import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
 
@Valid
public class AppInfo implements Serializable {
 
 
    public enum AppType {
        wxXCX("微信小程序"), alipayXCX("支付宝小程序");
 
        private AppType(String name) {
 
        }
    }
 
 
    private Long id;
 
    @NotNull(message = "appType不能为空")
    private AppType appType;
 
    @NotEmpty(message = "appKey不能为空")
    private String appKey;
 
    @NotEmpty(message = "appSecret不能为空")
    private String appSecret;
 
    @NotEmpty(message = "appName不能为空")
    @Max(value = 32, message = "应用名称最长为32个字符")
    private String appName;
 
    private String appDesc;
 
    private String remarks;
 
    private Date createTime;
 
    private Date updateTime;
 
    private AppAlipayInfoWithBLOBs alipayInfo;
 
    private AppWXInfo wxInfo;
 
 
    public AppAlipayInfoWithBLOBs getAlipayInfo() {
        return alipayInfo;
    }
 
    public void setAlipayInfo(AppAlipayInfoWithBLOBs alipayInfo) {
        this.alipayInfo = alipayInfo;
    }
 
    public AppWXInfo getWxInfo() {
        return wxInfo;
    }
 
    public void setWxInfo(AppWXInfo wxInfo) {
        this.wxInfo = wxInfo;
    }
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public String getAppKey() {
        return appKey;
    }
 
    public void setAppKey(String appKey) {
        this.appKey = appKey == null ? null : appKey.trim();
    }
 
    public String getAppSecret() {
        return appSecret;
    }
 
    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret == null ? null : appSecret.trim();
    }
 
    public String getAppName() {
        return appName;
    }
 
    public void setAppName(String appName) {
        this.appName = appName == null ? null : appName.trim();
    }
 
    public String getAppDesc() {
        return appDesc;
    }
 
    public void setAppDesc(String appDesc) {
        this.appDesc = appDesc == null ? null : appDesc.trim();
    }
 
    public String getRemarks() {
        return remarks;
    }
 
    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public Date getUpdateTime() {
        return updateTime;
    }
 
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
 
 
    public AppType getAppType() {
        return appType;
    }
 
    public void setAppType(AppType appType) {
        this.appType = appType;
    }
 
}