1.1.3 • Published 3 months ago

egg-normal-response-x v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

egg-normal-response

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

Install

$ npm i egg-normal-response-x --save

Usage

// {app_root}/config/plugin.js
exports.normalResponse = {
  enable: true,
  package: 'egg-normal-response-x',
};

Configuration

// {app_root}/config/config.default.js
exports.normalResponse = {
   outSystemError:false,
   systemErrorCode:500,
   userErrorCode:600,
   succeeCode:200,
  ignore: ["/*","*/upload/*","/assets/*","/static/*"]
};

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

Example

error throw new UserRequestError("u-token不能为空","xxx",data);

Questions & Suggestions

Please open an issue here.

License

MIT

1.1.3

3 months ago

1.1.2

3 months ago

1.1.1

5 months ago

1.1.0

5 months ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago