0.0.3 • Published 5 years ago

@titanmatrix/macafe v0.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

macafe 重构版

  • 支持前后端
  • 统一状态接口
  • 内部通过私有模块加载

示例

import macafe from 'macafe'
async function init() {
  // 1. 注册macafe
  const conf = await macafe.register({
    appid: 'aa',
    keyid: '201010',
    keyno: '6661afawdw',
  })
  // 2. 获取界面数据
  const product = await macafe.getState({
    sid: 660,
    pkey: '1111',
    cpkey: '1212',
    viewid: 1111212,
    action: {
      type: 'SELECT_PROP',
      payload: {
        pid: 11,
        id: 111
      }
    }
  })
  // 3. 获取规格参数
  const params = await macafe.getParams({
  })
  // 4. 获取样本
  const samples = await macafe.getSamples({
    sid: 660
  })
}
0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago