Skip to content

Commit

Permalink
feat:添加几个返回码
Browse files Browse the repository at this point in the history
  • Loading branch information
MonkeyIsMe committed Mar 21, 2023
1 parent 6db11dd commit 607c9bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions constant/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const (
UnknowError = 30003 // 未知错误
UnknowOwner = 30004 // 不是球馆管理员返回码
InfoNotMatch = 30005 // 信息不匹配
ModelIsExist = 30006 // 该类型已存在
)

// 返回4xxxx -> json错误
Expand All @@ -42,4 +43,6 @@ const (
const (
HTTPDoReqError = 80000
HTTPNewReqError = 80001
HTTPGetError = 80002
HTTPPostError = 80003
)

0 comments on commit 607c9bd

Please sign in to comment.