18820227745 / egg-yhsd-api

友好速搭api egg插件版

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

egg-yhsd-api

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-yhsd-api --save

Usage

// {app_root}/config/plugin.js
exports.yhsdApi = {
  enable: true,
  package: 'egg-yhsd-api',
};

Configuration

// {app_root}/config/config.default.js
exports.yhsdApi = {
  client: {  // client必须要
      // 测试
      appKey: '***',
      appSecret: '****',
      private: true,
      topics: {
        'products/create': `${host}/hook/products/create`, //  商品创建
      }
    },
};

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT

About

友好速搭api egg插件版

License:MIT License


Languages

Language:JavaScript 100.0%