@imedx/ics-imedx-chromely-plugin-intf-platform
Advanced tools
Comparing version 0.0.6-beta.1 to 0.0.6-beta.2
@@ -73,2 +73,8 @@ import icsChromelyRequest from '@icreate/ics-chromely-js-sdk'; | ||
/** | ||
* 接口初始化 | ||
*/ | ||
BaseInterfaceCore.prototype.init = function () { | ||
console.log(this); | ||
}; | ||
/** | ||
* 200成功返回 | ||
@@ -189,2 +195,9 @@ * @param data 成功数据 | ||
*/ | ||
IntfPlatform.getInterfaceInfo = function (intfId) { | ||
return IntfPlatform.GetInterfaceInfo(intfId); | ||
}; | ||
/** | ||
* 获取接口信息 | ||
* @returns 配置选项记录 | ||
*/ | ||
IntfPlatform.GetInterfaceInfo = function (intfId) { | ||
@@ -254,2 +267,12 @@ if (IntfPlatform.___intfInfo[intfId]) { | ||
this.hbbasic = hbBasicClient; | ||
// 初始化所有核心接口 | ||
var coreInterfaces = IntfPlatform.getAllCoreInterface(); | ||
for (var key in coreInterfaces) { | ||
if (coreInterfaces.hasOwnProperty(key)) { | ||
var coreInterface = coreInterfaces[key]; | ||
if (coreInterface.init) { | ||
coreInterface.init(); | ||
} | ||
} | ||
} | ||
return this.OperateEx('Init'); | ||
@@ -410,3 +433,4 @@ }; | ||
IntfPlatform.getCoreInterfaceConfig = function (name) { | ||
return IntfPlatform.configs[name]; | ||
// return IntfPlatform.configs[name] | ||
return IntfPlatform.GetInterfaceInfo(name); | ||
}; | ||
@@ -435,3 +459,4 @@ /** | ||
IntfPlatform.getInterfaceConfig = function (name) { | ||
return IntfPlatform.configs[name]; | ||
// return IntfPlatform.configs[name] | ||
return IntfPlatform.GetInterfaceConfig(name); | ||
}; | ||
@@ -438,0 +463,0 @@ /** |
@@ -76,2 +76,8 @@ (function (global, factory) { | ||
/** | ||
* 接口初始化 | ||
*/ | ||
BaseInterfaceCore.prototype.init = function () { | ||
console.log(this); | ||
}; | ||
/** | ||
* 200成功返回 | ||
@@ -192,2 +198,9 @@ * @param data 成功数据 | ||
*/ | ||
IntfPlatform.getInterfaceInfo = function (intfId) { | ||
return IntfPlatform.GetInterfaceInfo(intfId); | ||
}; | ||
/** | ||
* 获取接口信息 | ||
* @returns 配置选项记录 | ||
*/ | ||
IntfPlatform.GetInterfaceInfo = function (intfId) { | ||
@@ -257,2 +270,12 @@ if (IntfPlatform.___intfInfo[intfId]) { | ||
this.hbbasic = hbBasicClient; | ||
// 初始化所有核心接口 | ||
var coreInterfaces = IntfPlatform.getAllCoreInterface(); | ||
for (var key in coreInterfaces) { | ||
if (coreInterfaces.hasOwnProperty(key)) { | ||
var coreInterface = coreInterfaces[key]; | ||
if (coreInterface.init) { | ||
coreInterface.init(); | ||
} | ||
} | ||
} | ||
return this.OperateEx('Init'); | ||
@@ -413,3 +436,4 @@ }; | ||
IntfPlatform.getCoreInterfaceConfig = function (name) { | ||
return IntfPlatform.configs[name]; | ||
// return IntfPlatform.configs[name] | ||
return IntfPlatform.GetInterfaceInfo(name); | ||
}; | ||
@@ -438,3 +462,4 @@ /** | ||
IntfPlatform.getInterfaceConfig = function (name) { | ||
return IntfPlatform.configs[name]; | ||
// return IntfPlatform.configs[name] | ||
return IntfPlatform.GetInterfaceConfig(name); | ||
}; | ||
@@ -441,0 +466,0 @@ /** |
@@ -42,2 +42,8 @@ "use strict"; | ||
/** | ||
* 接口初始化 | ||
*/ | ||
BaseInterfaceCore.prototype.init = function () { | ||
console.log(this); | ||
}; | ||
/** | ||
* 200成功返回 | ||
@@ -44,0 +50,0 @@ * @param data 成功数据 |
@@ -44,2 +44,9 @@ "use strict"; | ||
*/ | ||
IntfPlatform.getInterfaceInfo = function (intfId) { | ||
return IntfPlatform.GetInterfaceInfo(intfId); | ||
}; | ||
/** | ||
* 获取接口信息 | ||
* @returns 配置选项记录 | ||
*/ | ||
IntfPlatform.GetInterfaceInfo = function (intfId) { | ||
@@ -109,2 +116,12 @@ if (IntfPlatform.___intfInfo[intfId]) { | ||
this.hbbasic = hbBasicClient; | ||
// 初始化所有核心接口 | ||
var coreInterfaces = IntfPlatform.getAllCoreInterface(); | ||
for (var key in coreInterfaces) { | ||
if (coreInterfaces.hasOwnProperty(key)) { | ||
var coreInterface = coreInterfaces[key]; | ||
if (coreInterface.init) { | ||
coreInterface.init(); | ||
} | ||
} | ||
} | ||
return this.OperateEx('Init'); | ||
@@ -265,3 +282,4 @@ }; | ||
IntfPlatform.getCoreInterfaceConfig = function (name) { | ||
return IntfPlatform.configs[name]; | ||
// return IntfPlatform.configs[name] | ||
return IntfPlatform.GetInterfaceInfo(name); | ||
}; | ||
@@ -290,3 +308,4 @@ /** | ||
IntfPlatform.getInterfaceConfig = function (name) { | ||
return IntfPlatform.configs[name]; | ||
// return IntfPlatform.configs[name] | ||
return IntfPlatform.GetInterfaceConfig(name); | ||
}; | ||
@@ -293,0 +312,0 @@ /** |
@@ -6,2 +6,6 @@ /** | ||
/** | ||
* 初始化 | ||
*/ | ||
init(): void; | ||
/** | ||
* 业务交互接口 | ||
@@ -28,2 +32,6 @@ * @param code 交易码 | ||
/** | ||
* 接口初始化 | ||
*/ | ||
init(): void; | ||
/** | ||
* | ||
@@ -30,0 +38,0 @@ * @param code |
@@ -52,2 +52,7 @@ import HBBasicClient from '@icreate/hb-basic-js-sdk'; | ||
*/ | ||
static getInterfaceInfo(intfId: string): Promise<any>; | ||
/** | ||
* 获取接口信息 | ||
* @returns 配置选项记录 | ||
*/ | ||
static GetInterfaceInfo(intfId: string): Promise<any>; | ||
@@ -109,3 +114,3 @@ /** | ||
*/ | ||
static getCoreInterfaceConfig(name: string): ConfigRecord | undefined; | ||
static getCoreInterfaceConfig(name: string): Promise<any>; | ||
/** | ||
@@ -127,3 +132,3 @@ * 获取所有实现接口 | ||
*/ | ||
static getInterfaceConfig(name: string): ConfigRecord | undefined; | ||
static getInterfaceConfig(name: string): Promise<any>; | ||
} |
{ | ||
"name": "@imedx/ics-imedx-chromely-plugin-intf-platform", | ||
"version": "0.0.6-beta.1", | ||
"version": "0.0.6-beta.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
138359
1717