dubhe-sdk-delegate
v1.1.12
Published
javascript sdk for dubhe_delegate_service, generate at 2024-03-13 17:40:36, generate by [email protected]
Downloads
6
Readme
dubhe-sdk-delegate
dubhe-sdk-delegate - JavaScript client for dubhe delegate service
- Package version: 1.1.12, generate by [email protected]
- Build date: 2024-03-13 17:40:36
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://139.3.24.189:28790/DELEGATE
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- CacheApiControllerApi | fetchCmCodeItemBusiByBusinessTypeAndCategoryCodeMT | GET /rest/delegate/cache/fetchCmCodeItemBusiByBusinessTypeAndCategoryCodeMT | 通过businessType查询业务码值 CacheApiControllerApi | fetchProdNameByProdCodeListMT | POST /rest/delegate/cache/fetchProdNameByProdCodeListMT | prodCode获取产品名称 ClockControllerApi | checkClock | GET /rest/delegate/clock/check/{clientTime} | 对表 ClockControllerApi | checkClockSm2 | GET /rest/delegate/clock/checkClockSm2/{clientTime} | 对表SM2 CmDbParamConfigControllerApi | disableCmDbParamConfig | PUT /rest/delegate/cmDbParamConfig/disable | 禁用数据库参数管理 CmDbParamConfigControllerApi | enableCmDbParamConfig | PUT /rest/delegate/cmDbParamConfig/enable | 启用数据库参数管理 CmDbParamConfigControllerApi | fetchCmDbParamConfigDetail | GET /rest/delegate/cmDbParamConfig/detail | 获取数据库参数管理详细 CmDbParamConfigControllerApi | fetchCmDbParamConfigList | GET /rest/delegate/cmDbParamConfig/list | 获取数据库参数管理列表 CmDbParamConfigControllerApi | fetchCmDbParamConfigListItems | GET /rest/delegate/cmDbParamConfig/listItems | 获取数据库参数管理列表 CmDbParamConfigControllerApi | removeCmDbParamConfig | DELETE /rest/delegate/cmDbParamConfig/remove | 删除数据库参数管理 CmDbParamConfigControllerApi | saveCmDmParamConfig | POST /rest/delegate/cmDbParamConfig/save | 保存系统参数管理 CmDbParamConfigControllerApi | updateCmDbParamConfig | PATCH /rest/delegate/cmDbParamConfig/update | 更新数据库参数管理 CmDbParamConfigControllerApi | updateForceCmDbParamConfig | PUT /rest/delegate/cmDbParamConfig/updateForce | 刷新数据库参数管理 CmDbParamGroupControllerApi | disableCmDbParamGroup | PUT /rest/delegate/cmDbParamGroup/disable | 禁用数据库参数分组 CmDbParamGroupControllerApi | enableCmDbParamGroup | PUT /rest/delegate/cmDbParamGroup/enable | 启用数据库参数分组 CmDbParamGroupControllerApi | fetchCmDbParamGroupDetail | GET /rest/delegate/cmDbParamGroup/detail | 获取数据库参数分组详细 CmDbParamGroupControllerApi | fetchCmDbParamGroupList | GET /rest/delegate/cmDbParamGroup/list | 获取数据库参数分组列表 CmDbParamGroupControllerApi | removeCmDbParamGroup | DELETE /rest/delegate/cmDbParamGroup/remove | 删除数据库参数分组 CmDbParamGroupControllerApi | saveCmDbParamGroup | POST /rest/delegate/cmDbParamGroup/save | 保存数据库参数分组 CmDbParamGroupControllerApi | updateCmDbParamGroup | PATCH /rest/delegate/cmDbParamGroup/update | 更新数据库参数分组 CmDbParamGroupControllerApi | updateForceCmDbParamGroup | PUT /rest/delegate/cmDbParamGroup/updateForce | 刷新数据库参数分组 CmDbParamGroupTlpControllerApi | bindDbParamGroup | PUT /rest/delegate/cmDbParamGroupTlp/bindParamGroup | 通过groupCode绑定参数分组 CmDbParamGroupTlpControllerApi | disableCmDbParamGroupTlp | PUT /rest/delegate/cmDbParamGroupTlp/disable/{id} | 禁用参数分组关系 CmDbParamGroupTlpControllerApi | enableCmDbParamGroupTlp | PUT /rest/delegate/cmDbParamGroupTlp/enable/{id} | 启用参数分组关系 CmDbParamGroupTlpControllerApi | fetchCmDbParamGroupTlpDetail | GET /rest/delegate/cmDbParamGroupTlp/detail/{id} | 获取参数分组关系详细 CmDbParamGroupTlpControllerApi | fetchCmDbParamGroupTlpList | GET /rest/delegate/cmDbParamGroupTlp/list | 获取参数分组关系列表 CmDbParamGroupTlpControllerApi | removeCmDbParamGroupTlp | DELETE /rest/delegate/cmDbParamGroupTlp/remove/{id} | 删除参数分组关系 CmDbParamGroupTlpControllerApi | saveCmDbParamGroupTlp | POST /rest/delegate/cmDbParamGroupTlp/save | 保存参数分组关系 CmDbParamGroupTlpControllerApi | unBindDbParamGroup | DELETE /rest/delegate/cmDbParamGroupTlp/unBindParamGroup | 通过groupCode解绑参数分组 CmDbParamGroupTlpControllerApi | updateCmDbParamGroupTlp | PATCH /rest/delegate/cmDbParamGroupTlp/update | 更新参数分组关系 CmDbParamGroupTlpControllerApi | updateForceCmDbParamGroupTlp | PUT /rest/delegate/cmDbParamGroupTlp/updateForce | 刷新参数分组关系 CmGisControllerApi | fetchGisDetail | GET /rest/delegate/gis/fetchGisDetail | GIS详情 CmGisControllerApi | fetchGisList | POST /rest/delegate/gis/fetchGisList | GIS列表 DiscoveryControllerApi | allApplication | GET /rest/delegate/discovery/allApplication | allApplication DiscoveryControllerApi | discoveryService | GET /rest/delegate/discovery/discoveryService/{serviceName} | discoveryService MidletApiControllerApi | doExpressOpen | POST /rest/delegate/midlet/doExpress | 表达式 MidletApiControllerApi | fetchAreaBySysConfig | GET /rest/delegate/midlet/fetchAreaBySysConfig | 通过配置获取区域 MidletApiControllerApi | fetchCmAreaInfoByAreaCodeMT | GET /rest/delegate/midlet/fetchCmAreaInfoByAreaCodeMT | 获取区域列表 MidletApiControllerApi | fetchCmAreaInfoByAreaLevelMT | GET /rest/delegate/midlet/fetchCmAreaInfoByAreaLevelMT | 获取区域列表 MidletApiControllerApi | fetchCmAreaInfoLikeAreaCodeMT | GET /rest/delegate/midlet/fetchCmAreaInfoLikeAreaCodeMT | 获取区域列表 MidletApiControllerApi | fetchCmCodeItemByCategoryCodeListMT | POST /rest/delegate/midlet/fetchCmCodeItemByCategoryCodeListMT | 通过CategoryCodes查询公共码值 MidletApiControllerApi | fetchFullCmArea | GET /rest/delegate/midlet/fetchFullCmArea | 获取区域上级 MidletApiControllerApi | genCodeMT | GET /rest/delegate/midlet/genCodeMT | 根据编码规则生成唯一code MidletApiControllerApi | saveCmCodeRuleMT | POST /rest/delegate/midlet/saveCmCodeRuleMT | 新建编码规则 MockCacheControllerApi | doMockCache | GET /rest/delegate/mockCache/doMockCache | doMockCache OriginApiControllerApi | fetchCmCustomerConfigList | GET /rest/delegate/origin/customerConfigList | 获取cm_customer_config列表 OriginApiControllerApi | fetchCmPlatformListOrg | GET /rest/delegate/origin/fetchCmPlatformListOrg | 获取平台信息表列表信息 OriginApiControllerApi | fetchCurrentUserAvatarOrg | GET /rest/delegate/origin/fetchCurrentUserAvatarOrg | 获取系统用户头像 OriginApiControllerApi | fetchOrgDptCacheListOrg | GET /rest/delegate/origin/fetchOrgDptCacheListOrg | 获取部门机构缓存信息 OriginApiControllerApi | fetchSysApplicationCacheListOrg | GET /rest/delegate/origin/fetchSysApplicationCacheListOrg | 获取系统信息列表信息 OriginApiControllerApi | fetchSysApplicationListOrg | GET /rest/delegate/origin/fetchSysApplicationListOrg | 获取系统信息列表信息 OriginApiControllerApi | fetchSysOrganizationListOrg | GET /rest/delegate/origin/fetchSysOrganizationListOrg | 获取组织机构列表信息 OriginApiControllerApi | fetchSysPortalList | GET /rest/delegate/origin/fetchSysPortalList | 获取接入系统信息表列表 PingControllerApi | systemPing | GET /open/delegate/ping/ping/ping | systemPing ServiceOfflineControllerApi | fireOffline | DELETE /rest/delegate/serviceOffline/fireOffline | fireOffline Sm2CryptoControllerApi | decryptBySm2 | POST /rest/delegate/sm2/crypto/decrypt | 在线解密 Sm2CryptoControllerApi | encryptBySm2 | POST /rest/delegate/sm2/crypto/encrypt | 在线加密 Sm2CryptoControllerApi | getSm2CryptoPublicKey | GET /rest/delegate/sm2/crypto/getPublicKey | 获取加密公钥 Sm2CryptoMockControllerApi | testMixupWithPublicKey | GET /rest/delegate/sm2/cryptoMock/testMixup | 测试公钥Mixup SysGlobalConfigDelegateControllerApi | bindTagByConfigCode | PUT /open/delegate/sysGlobalConfigDelegate/bindTagByConfigCode/{tag} | 绑定配置到tag SysGlobalConfigDelegateControllerApi | deleteTagByConfigCode | POST /open/delegate/sysGlobalConfigDelegate/deleteTagByConfigCode | 删除tag里的配置列表 SysGlobalConfigDelegateControllerApi | fetchCmCustomerConfigByTag | GET /open/delegate/sysGlobalConfigDelegate/fetchCmCustomerConfigByTag | 通过tag获取cm_customer_config详情 SysGlobalConfigDelegateControllerApi | fetchSysGlobalConfigDelegateDetail | GET /open/delegate/sysGlobalConfigDelegate/detail/{configCode} | 获取sys_global_config详细 SysGlobalConfigDelegateControllerApi | fetchSysGlobalConfigDelegateList | GET /open/delegate/sysGlobalConfigDelegate/list | 获取SysGlobalConfigDelegate列表 SysGlobalConfigDelegateControllerApi | fetchTagList | GET /open/delegate/sysGlobalConfigDelegate/fetchTagList | 获取tag列表 SysResourceWithSecondControllerApi | fetchSysResourceWithSecondList | GET /open/delegate/sysResourceWithSecond/list | 获取SysResourceWithSecond列表 SysSpringConfigControllerApi | fetchSysSpringConfigDetail | GET /rest/delegate/SysSpringConfig/detail/{actionCode} | 获取sys_spring_config详细 SysSpringConfigControllerApi | fetchSysSpringConfigList | GET /rest/delegate/SysSpringConfig/list | 获取sys_spring_config列表 SysSpringConfigControllerApi | generateSysSpringConfig | POST /rest/delegate/SysSpringConfig/generate/{actionCode} | 生成sys_spring_config配置 SysSpringConfigControllerApi | previewSysSpringConfig | POST /rest/delegate/SysSpringConfig/preview | 预览配置信息 SystemCacheControllerApi | systemCacheClearAll | POST /rest/delegate/systemCache/clearAll | 清理L2CACHE全部缓存 SystemCacheControllerApi | systemCacheClearMulti | POST /rest/delegate/systemCache/clearMulti | 清理L2CACHE缓存 SystemCacheControllerApi | systemCacheList | GET /rest/delegate/systemCache/list | list TfhrmsControllerApi | fetchTfhrmsDetail | GET /open/delegate/tfhrms/fetchDetail | 获取详细信息
Models
- CacheStatsWraper
- CmAreaBean
- CmCodeItemBean
- CmCodeRule
- CmDbParamGroupTlpBean
- CmDbparamConfig
- CmDbparamConfigBean
- CmDbparamGroup
- CmDbparamGroupTlp
- CmGis
- CmPlatform
- ExpressParam
- ExpressParamRun
- SysApplicationBean
- SysConfigTag
- SysGlobalConfig
- SysGlobalConfigBean
- SysGlobalConfigDelegateBean
- SysOrganization
- SysPortal
- SysResourceWithSecondBean
- SysSpringCommonConfig
- SysSpringConfig
- SysSpringDatasourceConfig
- SysSpringRabbitmqConfig
- SysSpringRedisConfig
- TfhrmsInfobean
- ViewOrgBean