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;
|
}
|
|
}
|