feat(商城): 代码优化
parent
4d749a1d9d
commit
7eb4bf7f01
@ -0,0 +1,51 @@
|
||||
package com.wayn.admin.framework.config.properties;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Configuration
|
||||
@EnableConfigurationProperties
|
||||
@ConfigurationProperties(prefix = "shop.express")
|
||||
public class ExpressProperties {
|
||||
private boolean enable;
|
||||
private String appId;
|
||||
private String appKey;
|
||||
private List<Map<String, String>> vendors = new ArrayList<>();
|
||||
|
||||
public boolean isEnable() {
|
||||
return enable;
|
||||
}
|
||||
|
||||
public void setEnable(boolean enable) {
|
||||
this.enable = enable;
|
||||
}
|
||||
|
||||
public List<Map<String, String>> getVendors() {
|
||||
return vendors;
|
||||
}
|
||||
|
||||
public void setVendors(List<Map<String, String>> vendors) {
|
||||
this.vendors = vendors;
|
||||
}
|
||||
|
||||
public String getAppKey() {
|
||||
return appKey;
|
||||
}
|
||||
|
||||
public void setAppKey(String appKey) {
|
||||
this.appKey = appKey;
|
||||
}
|
||||
|
||||
public String getAppId() {
|
||||
return appId;
|
||||
}
|
||||
|
||||
public void setAppId(String appId) {
|
||||
this.appId = appId;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue