2025-10-16 13:28:24 +08:00

13 lines
550 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 错误码规则
- 错误码需在 `code` 包中进行定义。
#### 错误码为 5 位数
| 1 | 01 | 01 |
| :------ | :------ | :------ |
| 服务级错误码 | 模块级错误码 | 具体错误码 |
- 服务级错误码1 位数进行表示,比如 1 为系统级错误2 为普通错误,通常是由用户非法操作引起。
- 模块级错误码2 位数进行表示,比如 01 为用户模块02 为订单模块。
- 具体的错误码2 位数进行表示,比如 01 为手机号不合法02 为验证码输入错误。