lhb-framework
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

lhb-framework

lhb-framework 是一个 EGG.js 框架,扩展了以下内容:

  1. ctx 上的 success 和 fail 方法,用于返回数据;
  2. 集成了 Mysql ,直接配置即可,无需再添加依赖;
  3. 添加了若干实用的工具方法。可以通过 ctx.helper 访问;
  4. 封装了接口返回格式;
  5. 统一错误处理;
  6. ……

QuickStart

  1. 修改 EGG 项目 package.json 文件,添加以下配置:
  "egg": {
    "typescript": true,
    "declarations": true,
    "framework": "lhb-framework"
  }
  1. 在 EGG 项目中添加依赖 npm install lhb-framework --save;
  2. npm install , 掂;

Readme

Keywords

Package Sidebar

Install

npm i lhb-framework

Weekly Downloads

1

Version

1.0.14

License

MIT

Unpacked Size

5.81 kB

Total Files

15

Last publish

Collaborators

  • luobro