|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fr.design.actions.help.alphafine; |
|
|
|
|
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.general.CloudCenter; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -52,21 +53,21 @@ public class AlphaFineCloudConstants {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* get PluginUrl |
|
|
|
|
* 获取插件信息api |
|
|
|
|
*/ |
|
|
|
|
public static String getPluginUrl() { |
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind(AF_PLUGIN_INFO); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* get ReuseUrl |
|
|
|
|
* 获取组件信息api |
|
|
|
|
*/ |
|
|
|
|
public static String getReuseUrl() { |
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind(AF_REUSE_INFO); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* get DocumentDocUrl |
|
|
|
|
* 获取帮助文档url |
|
|
|
|
*/ |
|
|
|
|
public static String getDocumentDocUrl() { |
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind(AF_DOC_VIEW); |
|
|
|
@ -94,28 +95,28 @@ public class AlphaFineCloudConstants {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* get CloudServerUrl |
|
|
|
|
* 获取云端接口,用于上传alphafine搜索记录 |
|
|
|
|
*/ |
|
|
|
|
public static String getCloudServerUrl() { |
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind(AF_RECORD); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* get SearchApi |
|
|
|
|
* 获取搜索api,输入搜索词,返回fr的相关功能 |
|
|
|
|
*/ |
|
|
|
|
public static String getSearchApi() { |
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind(AF_CLOUD_SEARCH); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* get SimilarSearchUrlPrefix |
|
|
|
|
* 获取模糊搜索api前缀,输入搜索词,返回alphaFine相关内容,插件,文档,功能等 |
|
|
|
|
*/ |
|
|
|
|
public static String getSimilarSearchUrlPrefix() { |
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind(AF_SIMILAR_SEARCH); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* get ComplementAdviceSearchUrlPrefix |
|
|
|
|
* 补全建议搜索结果 api,与AF_SIMILAR_SEARCH接口类似,但是返回的信息更全 |
|
|
|
|
*/ |
|
|
|
|
public static String getComplementAdviceSearchUrlPrefix() { |
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind(AF_ADVICE_SEARCH); |
|
|
|
@ -136,14 +137,14 @@ public class AlphaFineCloudConstants {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* get AlphaGoToWeb |
|
|
|
|
* 推荐搜索api,输入搜索词,返回猜你想搜的内容(html格式) |
|
|
|
|
*/ |
|
|
|
|
public static String getAlphaGoToWeb() { |
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind(AF_GO_WEB); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* get AlphaPreview |
|
|
|
|
* 帆软智能客服页面url |
|
|
|
|
*/ |
|
|
|
|
public static String getAlphaPreview() { |
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind(AF_PREVIEW); |
|
|
|
@ -170,12 +171,12 @@ public class AlphaFineCloudConstants {
|
|
|
|
|
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); |
|
|
|
|
return "[{\"name\":\"快速入门指南\", \"link\":\"" + quickStartUrl + "\"}," + |
|
|
|
|
"{\"name\":\"报表应用学习路径\", \"link\":\"" + reportLearningPath + "\"}," + |
|
|
|
|
"{\"name\":\"参数应用学习路径\", \"link\":\"" + parameterLearningPath + "\"}," + |
|
|
|
|
"{\"name\":\"填报学习路径\", \"link\":\"" + fillLearningPath + "\"}," + |
|
|
|
|
"{\"name\":\"API接口汇总\", \"link\":\"" + apiSummary + "\"}," + |
|
|
|
|
"{\"name\":\"文档月刊\", \"link\":\"" + monthlyDocument + "\"} ]"; |
|
|
|
|
return "[{\"name\":\"" + Toolkit.i18nText("Fine-Design_Report_AlphaFine_Doc_Quick_Start") + "\", \"link\":\"" + quickStartUrl + "\"}," + |
|
|
|
|
"{\"name\":\"" + Toolkit.i18nText("Fine-Design_Report_AlphaFine_Doc_Report_Learning") + "\", \"link\":\"" + reportLearningPath + "\"}," + |
|
|
|
|
"{\"name\":\"" + Toolkit.i18nText("Fine-Design_Report_AlphaFine_Doc_Parameter_Learning") + "\", \"link\":\"" + parameterLearningPath + "\"}," + |
|
|
|
|
"{\"name\":\"" + Toolkit.i18nText("Fine-Design_Report_AlphaFine_Doc_Fill_Learning") + "\", \"link\":\"" + fillLearningPath + "\"}," + |
|
|
|
|
"{\"name\":\"" + Toolkit.i18nText("Fine-Design_Report_AlphaFine_Doc_Api_Summary") + "\", \"link\":\"" + apiSummary + "\"}," + |
|
|
|
|
"{\"name\":\"" + Toolkit.i18nText("Fine-Design_Report_AlphaFine_Doc_Monthly_Document") + "\", \"link\":\"" + monthlyDocument + "\"} ]"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|