PersonalMain-Golang/状态响应表.md
2023-12-24 15:17:21 +08:00

20 lines
1.1 KiB
Go
Raw 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.

# 筱主页(PersonalMain) 状态响应表
## 说在前面
> 这个表最先做出来其实是不要让我自己忘记了这些表有什么功能就是说这些 `code` 以及对于的 `messag` `data` 的作用而做出来的内容
>
> <div style="text-align: right;"> 筱锋xiao_lfeng</div>
这一份表可以用作各位开发者进行二次开发进行的操作方便各位开发者根据接口内容自己编写一些新的功能或者说自定义自己喜欢的前端内容说实话我的前端功底确实不咋样
## 响应对照表
> 注意一切Http响应只要不是业务出错例如数据库错误都返回 200 状态码下面的状态码属于业务代码
| 内容 | 状态响应 | 解释 | 是否包含数据(是否包含 data) |
| -------------- | -------- | --------------------------------- | --------------------------- |
| 时间戳格式错误 | 40010 | 时间戳在请求头中为微秒级别 | False |
| 时间戳过期 | 40011 | 时间戳有效时间为Unix时间的正负2秒 | False |