com.gitee.target123.develop.pay.PayProperties Maven / Gradle / Ivy
package com.gitee.target123.develop.pay;
import com.gitee.target123.develop.pay.wx.WxPayProperties;
import com.gitee.target123.develop.pay.ali.AliPayProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.HashMap;
import java.util.Map;
@ConfigurationProperties(prefix = "pay.map")
public class PayProperties {
private boolean wxEnabled = false;
private Map wx = new HashMap<>();
private boolean aliEnabled = false;
private Map ali = new HashMap<>();
public boolean isWxEnabled() {
return wxEnabled;
}
public void setWxEnabled(boolean wxEnabled) {
this.wxEnabled = wxEnabled;
}
public Map getWx() {
return wx;
}
public void setWx(Map wx) {
this.wx = wx;
}
public boolean isAliEnabled() {
return aliEnabled;
}
public void setAliEnabled(boolean aliEnabled) {
this.aliEnabled = aliEnabled;
}
public Map getAli() {
return ali;
}
public void setAli(Map ali) {
this.ali = ali;
}
}