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.
73 lines
2.2 KiB
73 lines
2.2 KiB
/* |
|
* Copyright (C), 2018-2021 |
|
* Project: starter |
|
* FileName: DingSynConfig |
|
* Author: Louis |
|
* Date: 2021/3/30 9:38 |
|
*/ |
|
package com.fr.plugin.mqh.dingtalksyn.config; |
|
|
|
import com.fanruan.api.util.StringKit; |
|
import com.fr.config.*; |
|
import com.fr.config.holder.Conf; |
|
import com.fr.config.holder.factory.Holders; |
|
|
|
/** |
|
* <Function Description><br> |
|
* <DingSynConfig> |
|
* |
|
* @author Louis |
|
* @since 1.0.0 |
|
*/ |
|
@Visualization(category = "Plugin-dingtalksyn_Group") |
|
public class DingSynConfig extends DefaultConfiguration { |
|
|
|
private static volatile DingSynConfig config = null; |
|
|
|
public static DingSynConfig getInstance() { |
|
if (config == null) { |
|
config = ConfigContext.getConfigInstance(DingSynConfig.class); |
|
} |
|
return config; |
|
} |
|
|
|
@Identifier(value = "appKey", name = "Plugin-dingtalksyn_Config_appKey", description = "Plugin-dingtalksyn_Config_appKey_Description", status = Status.SHOW) |
|
private Conf<String> appKey = Holders.simple(StringKit.EMPTY); |
|
@Identifier(value = "appSecret", name = "Plugin-dingtalksyn_Config_appSecret", description = "Plugin-dingtalksyn_Config_appSecret_Description", status = Status.SHOW) |
|
private Conf<String> appSecret = Holders.simple(StringKit.EMPTY); |
|
@Identifier(value = "corpId", name = "Plugin-dingtalksyn_Config_corpId", description = "Plugin-dingtalksyn_Config_corpId_Description", status = Status.SHOW) |
|
private Conf<String> corpId = Holders.simple(StringKit.EMPTY); |
|
private Conf<Boolean> ssoEnable = Holders.simple(true); |
|
|
|
public String getAppKey() { |
|
return appKey.get(); |
|
} |
|
|
|
public void setAppKey(String appKey) { |
|
this.appKey.set(appKey); |
|
} |
|
|
|
public String getAppSecret() { |
|
return appSecret.get(); |
|
} |
|
|
|
public void setAppSecret(String appSecret) { |
|
this.appSecret.set(appSecret); |
|
} |
|
|
|
public String getCorpId() { |
|
return corpId.get(); |
|
} |
|
|
|
public void setCorpId(String corpId) { |
|
this.corpId.set(corpId); |
|
} |
|
|
|
public boolean getSsoEnable() { |
|
return ssoEnable.get(); |
|
} |
|
|
|
public void setSsoEnable(boolean ssoEnable) { |
|
this.ssoEnable.set(ssoEnable); |
|
} |
|
} |