package com.qianwen.core.notify.provider.wechat.mp;
|
|
import javax.validation.constraints.NotEmpty;
|
import me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl;
|
|
public class WechatMpProperties {
|
@NotEmpty(message = "名称不得为空")
|
private String name;
|
@NotEmpty(message = "appid不得为空")
|
private String appid;
|
@NotEmpty(message = "appSecret不得为空")
|
private String secret;
|
private String token;
|
private String aesKey;
|
|
public void setName(final String name) {
|
this.name = name;
|
}
|
|
public void setAppid(final String appid) {
|
this.appid = appid;
|
}
|
|
public void setSecret(final String secret) {
|
this.secret = secret;
|
}
|
|
public void setToken(final String token) {
|
this.token = token;
|
}
|
|
public void setAesKey(final String aesKey) {
|
this.aesKey = aesKey;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
public String getAppid() {
|
return this.appid;
|
}
|
|
public String getSecret() {
|
return this.secret;
|
}
|
|
public String getToken() {
|
return this.token;
|
}
|
|
public String getAesKey() {
|
return this.aesKey;
|
}
|
|
public WxMpDefaultConfigImpl toWxMpConfigStorage() {
|
WxMpDefaultConfigImpl configStorage = new WxMpDefaultConfigImpl();
|
configStorage.setAppId(this.appid);
|
configStorage.setSecret(this.secret);
|
configStorage.setToken(this.token);
|
configStorage.setAesKey(this.aesKey);
|
return configStorage;
|
}
|
}
|