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.
160 lines
4.8 KiB
160 lines
4.8 KiB
package com.fr.design.mainframe.alphafine; |
|
|
|
import com.fr.general.CloudCenter; |
|
|
|
/** |
|
* 需要从云端获取的常量单独放一起 |
|
* 每次获取的时候都去加载一次 |
|
* |
|
* @author Link |
|
* @version 11.0 |
|
* Created by Link on 2022/9/28 |
|
*/ |
|
public class AlphaFineCloudConstants { |
|
|
|
/** |
|
* get PluginSearchUrl |
|
*/ |
|
public static String getPluginSearchUrl() { |
|
return CloudCenter.getInstance().acquireUrlByKind("plugin.searchAPI"); |
|
} |
|
|
|
/** |
|
* get PLUGIN_URL |
|
*/ |
|
public static String getPluginUrl() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.pluginInfo"); |
|
} |
|
|
|
/** |
|
* get REUSE_URL |
|
*/ |
|
public static String getReuseUrl() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.reuseInfo"); |
|
} |
|
|
|
/** |
|
* get DOCUMENT_DOC_URL |
|
*/ |
|
public static String getDocumentDocUrl() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.doc_view"); |
|
} |
|
|
|
/** |
|
* get DOCUMENT_SEARCH_URL |
|
*/ |
|
public static String getDocumentSearchUrl() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.doc_search"); |
|
} |
|
|
|
/** |
|
* get DOCUMENT_INFORMATION_URL |
|
*/ |
|
public static String getDocumentInformationUrl() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.doc_info"); |
|
} |
|
|
|
/** |
|
* get PLUGIN_IMAGE_URL |
|
*/ |
|
public static String getPluginImageUrl() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.plugin_image"); |
|
} |
|
|
|
/** |
|
* get CLOUD_SERVER_URL |
|
*/ |
|
public static String getCloudServerUrl() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.record"); |
|
} |
|
|
|
/** |
|
* get SEARCH_API |
|
*/ |
|
public static String getSearchApi() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.cloud_search"); |
|
} |
|
|
|
/** |
|
* get SIMILAR_SEARCH_URL_PREFIX |
|
*/ |
|
public static String getSimilarSearchUrlPrefix() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.similar_search"); |
|
} |
|
|
|
/** |
|
* get COMPLEMENT_ADVICE_SEARCH_URL_PREFIX |
|
*/ |
|
public static String getComplementAdviceSearchUrlPrefix() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.advice_search"); |
|
} |
|
|
|
/** |
|
* get ALPHA_HOT_SEARCH |
|
*/ |
|
public static String getAlphaHotSearch() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.hot_search"); |
|
} |
|
|
|
/** |
|
* get ALPHA_GO_TO_FORUM |
|
*/ |
|
public static String getAlphaGoToForum() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.go_fourm"); |
|
} |
|
|
|
/** |
|
* get ALPHA_GO_TO_WEB |
|
*/ |
|
public static String getAlphaGoToWeb() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.go_web"); |
|
} |
|
|
|
/** |
|
* get ALPHA_PREVIEW |
|
*/ |
|
public static String getAlphaPreview() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.preview"); |
|
} |
|
|
|
/** |
|
* get ALPHA_CID |
|
*/ |
|
public static String getAlphaCid() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.cid.new"); |
|
} |
|
|
|
/** |
|
* get ALPHA_CID_USER_GROUP_INFO |
|
*/ |
|
public static String getAlphaCidUserGroupInfo() { |
|
return CloudCenter.getInstance().acquireUrlByKind("af.cid.user.group.info"); |
|
} |
|
|
|
/** |
|
* get ALPHA_HELP_RECOMMEND |
|
*/ |
|
public static String getAlphaHelpRecommend() { |
|
String quickStartUrl = CloudCenter.getInstance().acquireUrlByKind("af.help.quick.start"); |
|
|
|
String reportLearningPath = CloudCenter.getInstance().acquireUrlByKind("af.help.report.learning.path"); |
|
|
|
String parameterLearningPath = CloudCenter.getInstance().acquireUrlByKind("af.help.param.learning.path"); |
|
|
|
String fillLearningPath = CloudCenter.getInstance().acquireUrlByKind("af.help.fill.learning.path"); |
|
|
|
String apiSummary = CloudCenter.getInstance().acquireUrlByKind("af.help.api.summary"); |
|
|
|
String monthlyDocument = CloudCenter.getInstance().acquireUrlByKind("af.help.monthly.document"); |
|
|
|
String defaultRecommend = "[ {\"name\":\"快速入门指南\", \"link\":\"" + quickStartUrl + "\"}," + |
|
"{\"name\":\"报表应用学习路径\", \"link\":\"" + reportLearningPath + "\"}," + |
|
"{\"name\":\"参数应用学习路径\", \"link\":\"" + parameterLearningPath + "\"}," + |
|
"{\"name\":\"填报学习路径\", \"link\":\"" + fillLearningPath + "\"}," + |
|
"{\"name\":\"API接口汇总\", \"link\":\"" + apiSummary + "\"}," + |
|
"{\"name\":\"文档月刊\", \"link\":\"" + monthlyDocument + "\"} ]"; |
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.recommend", defaultRecommend); |
|
} |
|
} |
|
|
|
|