1.0.73 • Published 8 months ago

dubhe-sdk-delegate v1.0.73

Weekly downloads
-
License
Unlicense
Repository
-
Last release
8 months ago

dubhe-sdk-delegate

dubhe-sdk-delegate - JavaScript client for dubhe delegate service

  • Package version: 1.0.71
  • Build date: 2023-08-16 11:02:50

For more information, please visit http://www.billion-byte.com

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install dubhe-sdk-delegate --save

Finally, you need to build the module:

npm run build
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

To use the link you just defined in your project, switch to the directory you want to use your dubhe-sdk-delegate from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

Getting Started

Please follow the installation instruction and execute the following JS code:

import { CacheApiControllerApi } from 'dubhe-sdk-delegate';

const api = new CacheApiControllerApi(ApiContext.getInstance());
const businessType = "businessType_example"; // {String} 系统编码
var opts = {
  'categoryCode': "categoryCode_example" // {String} categoryCode
};
try {
  const {data} = await api.fetchCmCodeItemBusiByBusinessTypeAndCategoryCodeMT(businessType, opts);
} catch(error) {
  console.error(error);
}

API Endpoints

All URIs are relative to http://91.2.3.65:28790/DELEGATE

ClassMethodHTTP requestDescription
CacheApiControllerApifetchCmCodeItemBusiByBusinessTypeAndCategoryCodeMTGET /rest/delegate/cache/fetchCmCodeItemBusiByBusinessTypeAndCategoryCodeMT通过businessType查询业务码值
CacheApiControllerApifetchProdNameByProdCodeListMTPOST /rest/delegate/cache/fetchProdNameByProdCodeListMTprodCode获取产品名称
CmFineReportControllerApidisableCmFineReportPUT /rest/delegate/cmFineReport/disable/{id}禁用fine报表配置
CmFineReportControllerApienableCmFineReportPUT /rest/delegate/cmFineReport/enable/{id}启用fine报表配置
CmFineReportControllerApifetchCmFineReportDetailGET /rest/delegate/cmFineReport/detail/{id}获取fine报表配置详细
CmFineReportControllerApifetchCmFineReportListGET /rest/delegate/cmFineReport/list获取fine报表配置列表
CmFineReportControllerApifetchCmFineReportListByBksGET /rest/delegate/cmFineReport/fetchByBksfetchCmFineReportListByBks
CmFineReportControllerApiremoveCmFineReportDELETE /rest/delegate/cmFineReport/remove/{id}删除fine报表配置
CmFineReportControllerApiremoveCmFineReportListByBksDELETE /rest/delegate/cmFineReport/removeByBksremoveCmFineReportListByBks
CmFineReportControllerApisaveCmFineReportPOST /rest/delegate/cmFineReport/save保存fine报表配置
CmFineReportControllerApiupdateCmFineReportPATCH /rest/delegate/cmFineReport/update更新fine报表配置
CmFineReportControllerApiupdateForceCmFineReportPUT /rest/delegate/cmFineReport/updateForce刷新fine报表配置
CmGisControllerApifetchGisDetailGET /rest/delegate/gis/fetchGisDetailGIS详情
CmGisControllerApifetchGisListPOST /rest/delegate/gis/fetchGisListGIS列表
DecisionControllerApifetchDsmFlowChainListGET /rest/delegate/decision/fetchDsmFlowChainList获取决策流基础表列表
DecisionControllerApifetchDsmRuleChainListGET /rest/delegate/decision/fetchDsmRuleChainList获取决策树列表
DecisionControllerApifetchDsmScoreChainListGET /rest/delegate/decision/fetchDsmScoreChainList获取评分卡列表
DecisionControllerApifetchIndexCiteListGET /rest/delegate/decision/fetchIndexCiteList获取指标引用详情列表
DiscoveryControllerApiallApplicationGET /rest/delegate/discovery/allApplicationallApplication
DiscoveryControllerApidiscoveryServiceGET /rest/delegate/discovery/discoveryService/{serviceName}discoveryService
DoExpressControllerApidoExpressPOST /rest/delegate/express/doExpress表达式
DoExpressControllerApifetchCustomeFuncListGET /rest/delegate/express/fetchCustomeFuncList获取所有的自定义Groovy函数
IndicatorControllerApifeignFetchIndexDetailGET /rest/delegate/indicator/indexDetail/{indexCode}获取指标详情
IndicatorControllerApifetchGroupNameAndProductNameGET /rest/delegate/indicator/fetchGroupNameAndProductName根据后端服务URL查询分组名称和服务编码
IndicatorControllerApifetchIndexByProductCodeGET /rest/delegate/indicator/fetchIndexByProductCode/{productCode}根据服务编码查询指标列表信息
IndicatorControllerApifetchIndicatorListPOST /rest/delegate/indicator/fetchIndicatorList指标抓取
IndicatorEngineControllerApifetchCmDataSourceDetailIEGET /rest/delegate/indicatorEngine/fetchCmDataSourceDetailIE/{dsCode}获取数据源详细
IndicatorEngineControllerApivalidateRegExpressIEPATCH /rest/delegate/indicatorEngine/ValidateRegExpressIE验证正则表达式
MidletApiControllerApidoExpressOpenPOST /rest/delegate/midlet/doExpress表达式
MidletApiControllerApifetchAreaBySysConfigGET /rest/delegate/midlet/fetchAreaBySysConfig通过配置获取区域
MidletApiControllerApifetchCmAreaInfoByAreaCodeMTGET /rest/delegate/midlet/fetchCmAreaInfoByAreaCodeMT获取区域列表
MidletApiControllerApifetchCmAreaInfoByAreaLevelMTGET /rest/delegate/midlet/fetchCmAreaInfoByAreaLevelMT获取区域列表
MidletApiControllerApifetchCmAreaInfoLikeAreaCodeMTGET /rest/delegate/midlet/fetchCmAreaInfoLikeAreaCodeMT获取区域列表
MidletApiControllerApifetchCmCodeItemByCategoryCodeListMTPOST /rest/delegate/midlet/fetchCmCodeItemByCategoryCodeListMT通过CategoryCodes查询公共码值
MidletApiControllerApifetchFullCmAreaGET /rest/delegate/midlet/fetchFullCmArea获取区域上级
MidletApiControllerApigenCodeMTGET /rest/delegate/midlet/genCodeMT根据编码规则生成唯一code
MidletApiControllerApisaveCmCodeRuleMTPOST /rest/delegate/midlet/saveCmCodeRuleMT新建编码规则
MockCacheControllerApidoMockCacheGET /rest/delegate/mockCache/doMockCachedoMockCache
PingControllerApisystemPingGET /open/delegate/ping/ping/pingsystemPing
ServiceOfflineControllerApifireOfflineDELETE /rest/delegate/serviceOffline/fireOfflinefireOffline
ServiceReportControllerApigenReportPOST /rest/delegate/serviceReport/genReport生成报告
SysGlobalConfigDelegateControllerApibindTagByConfigCodePUT /open/delegate/sysGlobalConfigDelegate/bindTagByConfigCode/{tag}绑定配置到tag
SysGlobalConfigDelegateControllerApideleteTagByConfigCodePOST /open/delegate/sysGlobalConfigDelegate/deleteTagByConfigCode删除tag里的配置列表
SysGlobalConfigDelegateControllerApifetchCmCustomerConfigByTagGET /open/delegate/sysGlobalConfigDelegate/fetchCmCustomerConfigByTag通过tag获取cm_customer_config详情
SysGlobalConfigDelegateControllerApifetchSysGlobalConfigDelegateDetailGET /open/delegate/sysGlobalConfigDelegate/detail/{configCode}获取sys_global_config详细
SysGlobalConfigDelegateControllerApifetchSysGlobalConfigDelegateListGET /open/delegate/sysGlobalConfigDelegate/list获取SysGlobalConfigDelegate列表
SysGlobalConfigDelegateControllerApifetchTagListGET /open/delegate/sysGlobalConfigDelegate/fetchTagList获取tag列表
SysResourceWithSecondControllerApifetchSysResourceWithSecondListGET /open/delegate/sysResourceWithSecond/list获取SysResourceWithSecond列表
SysSpringConfigControllerApifetchSysSpringConfigDetailGET /rest/delegate/SysSpringConfig/detail/{actionCode}获取sys_spring_config详细
SysSpringConfigControllerApifetchSysSpringConfigListGET /rest/delegate/SysSpringConfig/list获取sys_spring_config列表
SysSpringConfigControllerApigenerateSysSpringConfigPOST /rest/delegate/SysSpringConfig/generate/{actionCode}生成sys_spring_config配置
SysSpringConfigControllerApipreviewSysSpringConfigPOST /rest/delegate/SysSpringConfig/preview预览配置信息
SystemCacheControllerApisystemCacheClearAllPOST /rest/delegate/systemCache/clearAll清理L2CACHE全部缓存
SystemCacheControllerApisystemCacheClearMultiPOST /rest/delegate/systemCache/clearMulti清理L2CACHE缓存
SystemCacheControllerApisystemCacheListGET /rest/delegate/systemCache/listlist
TfhrmsControllerApifetchTfhrmsDetailGET /open/delegate/tfhrms/fetchDetail获取详细信息

Models

1.0.73

8 months ago

1.0.72

9 months ago

1.0.71

9 months ago