This commit is contained in:
2025-03-07 16:57:28 +08:00
parent 93ab56f580
commit 83fa2cc789
181 changed files with 14333 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
package consts
// 业务状态码
const (
HttpSuccess = 200 // 成功
HttpError = -1 // 失败
UserStatusError = 201 // 用户状态异常
ClientHttpError = 400 // 错误请求
ClientHttpUnauthorized = 401 // 未授权
HttpProhibit = 403 // 禁止请求
ClientHttpNotFound = 404 // 资源未找到
TokenError = 405 // token错误/无效
TokenExptired = 406 // token过期
SignError = 407 // 签名错误
ServerError = 500 // 服务器异常
)