egg-plugin-alisms
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

egg-plugin-alisms

Usage

$ npm install egg-plugin-alisms

add to plugin

// config/plugin.ts
 
export default {
  alisms: {
    enable: true,
    package: 'egg-plugin-alisms',
  }
}
// config/config.default.ts
exports.alisms = {
  client: {
    accessKeyId: 'accessKeyId',
    accessSecret: 'accessSecret',
    defaultSignName: 'defaultSignName', // 默认签名
    templates: {
      login: {
        templateCode: 'SMS_171193819',
        // templateContent: "测试短信 ${code}" // 模板可选参数,添加此参数自动校验
      },
      // 配置多个
      register: {//},
    },
  },
};

Package Sidebar

Install

npm i egg-plugin-alisms

Weekly Downloads

6

Version

0.0.2

License

MIT

Unpacked Size

27.9 kB

Total Files

22

Last publish

Collaborators

  • liuhuanhui