You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.4 KiB
42 lines
1.4 KiB
2 years ago
|
package com.fr.plugin;
|
||
|
|
||
|
import com.fr.config.*;
|
||
|
import com.fr.config.holder.Conf;
|
||
|
import com.fr.config.holder.factory.Holders;
|
||
|
|
||
|
@Visualization(category = "xxOA插件配置")
|
||
|
public class MBEConfig extends DefaultConfiguration {
|
||
|
|
||
|
private static volatile MBEConfig config = null;
|
||
|
|
||
|
public static MBEConfig getInstance() {
|
||
|
if (config == null) {
|
||
|
config = ConfigContext.getConfigInstance(MBEConfig.class);
|
||
|
}
|
||
|
return config;
|
||
|
}
|
||
|
@Identifier(value = "apiUrl", name = "用户校验身份接口", description = "用户校验身份接口", status = Status.SHOW)
|
||
|
private Conf<String> apiUrl = Holders.simple("http://xxxxxxxx/api/mubea/check/checkuser");
|
||
|
@Identifier(value = "ukey", name = "ukey", description = "描述", status = Status.SHOW)
|
||
|
private Conf<String> ukey = Holders.simple("");
|
||
|
public String getApiUrl() {
|
||
|
return apiUrl.get();
|
||
|
}
|
||
|
public void setApiUrl(String apiUrl) {
|
||
|
this.apiUrl.set(apiUrl);
|
||
|
}
|
||
|
public String getUkey() {
|
||
|
return ukey.get();
|
||
|
}
|
||
|
public void setUkey(String ukey) {
|
||
|
this.ukey.set(ukey);
|
||
|
}
|
||
|
@Override
|
||
|
public Object clone() throws CloneNotSupportedException {
|
||
|
MBEConfig cloned = (MBEConfig) super.clone();
|
||
|
cloned.apiUrl = (Conf<String>) this.apiUrl.clone();
|
||
|
cloned.ukey = (Conf<String>) this.ukey.clone();
|
||
|
return cloned;
|
||
|
}
|
||
|
|
||
|
}
|