Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

ret_codes

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ret_codes

约定的返回码

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
6
100%
Maintainers
1
Weekly downloads
 
Created
Source

ret_codes

项目使用及说明

安装

npm i ret_codes

使用

import retcode from 'ret_codes';
ctx.body = {
    ret : retcode.ok,
};
retkeymean
0ok成功
99999fail操作失败
50000err系统错误
40000noallow没有权限
  • 按照项目,可以自行扩展其他的返回码
  • 团队讨论后可以补充通用返回码到这里

Keywords

ret_codes

FAQs

Package last updated on 24 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts