@imedx/ics-imedx-chromely-plugin-intf-platform
TypeScript icon, indicating that this package has built-in type declarations

0.0.8-beta.1 • Public • Published

引入

import IntfPlatform from '@imedx/ics-imedx-chromely-plugin-intf-platform'

使用方法

init 初始化接口

/**
 * 
 * @returns 成功:{code: 200, data, message: 'ok'}
 */
IntfPlatform.init()

dispose 释放核心接口

  /**
   * 
   * @returns 成功:{code: 200, data, message: 'ok'}
   */
IntfPlatform.dispose()

bussiness 业务交互接口

  /**
   * 
   * @param intfCode: string 
   * @param code: string
   * @param param: any
   * @returns 成功:{code: 200, data, message: 'ok'}
   */
IntfPlatform.bussiness(intfCode, code, param)

register 注册接口

   /**
   * 注册接口
   * @param name 接口名称
   * @param intfType 接口类型
   * @param config 接口配置
   */
  public static register(name: string, intfType: any, config: ConfigRecord)

getCoreInterface 获取核心接口

   /**
   * 获取核心接口
   * @param name 接口名称
   * @returns
   */
  public static getCoreInterface(name: string): IInterfaceCore | undefined

getInterface 获取实现接口

  /**
   * 获取实现接口
   * @param name 接口名称
   * @returns
   */
  public static getInterface(name: string): any | undefined

getInterfaceConfig 获取实现接口配置

  /**
   * 获取实现接口配置
   * @param name 接口名称
   * @returns
   */
  public static getInterfaceConfig(name: string): ConfigRecord | undefined

getCoreInterfaceConfig 获取核心接口配置

   /**
   * 获取核心接口配置
   * @param name 接口名称
   * @returns
   */
  public static getCoreInterfaceConfig(name: string): ConfigRecord | undefined

Readme

Keywords

none

Package Sidebar

Install

npm i @imedx/ics-imedx-chromely-plugin-intf-platform

Weekly Downloads

51

Version

0.0.8-beta.1

License

MIT

Unpacked Size

139 kB

Total Files

17

Last publish

Collaborators

  • zhangmenglei
  • susu_aki
  • zer001
  • 1871507wt
  • jiangbing
  • flown
  • liangdong8
  • zhu_enrui
  • yujian01
  • lxs1998
  • liuzk
  • dawnnnnn
  • jiyuandeng
  • fanglj
  • djlsprite
  • pwh09025
  • yuan_123
  • restlife1994
  • dingwei1
  • wenbei