Skip to content

Commit

Permalink
feat: 更新标准文档的错误代码表
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoLFeng committed May 15, 2024
1 parent 3c46f4e commit 7394178
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/开发文档/接口文档.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 接口文档

> 请参考 Apifox 内接口描述(当前位置跟新有延迟)
22 changes: 22 additions & 0 deletions docs/开发文档/标准文档.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 标准文档

## 错误代码

| 错误编码 | 错误表示 | 错误码 | 描述 |
| ----------------------------- | -------------------------- | ------ | ------------------ |
| REQUEST_BODY_PARAMETERS_ERROR | RequestBodyParametersError | 40001 | 请求体参数错误 |
| REQUEST_PARAMETERS_ERROR | RequestParametersError | 40002 | 请求参数错误 |
| REQUEST_PATH_ERROR | RequestPathError | 40003 | 请求路径参数错误 |
| USER_NOT_LOGIN | UserNotLogin | 40101 | 用户未登录 |
| USER_NOT_EXIST | UserNotExist | 40102 | 用户不存在 |
| WRONG_PASSWORD | WrongPassword | 40103 | 密码错误 |
| USER_BANNED | UserBanned | 40104 | 用户被封禁或未启用 |
| REQUEST_METHOD_NOT_ALLOWED | RequestMethodNotAllowed | 40301 | 请求方法不允许 |
| VERIFY_CODE_ERROR | VerifyCodeError | 40302 | 验证码错误 |
| MAIL_ERROR | MailError | 40303 | 邮件发送失败 |
| OPERATION_FAILED | OperationFailed | 40304 | 操作失败 |
| USER_EXIST | UserExist | 40305 | 用户已存在 |
| LOGIN_ACCESS | LoginAccess | 40306 | 用户已登录 |
| PAGE_NOT_FOUND | PageNotFound | 40401 | 页面未找到 |
| SERVER_INTERNAL_ERROR | ServerInternalError | 50001 | 服务器内部错误 |

0 comments on commit 7394178

Please sign in to comment.