fix
This commit is contained in:
18
pkg/proto/apicode.go
Normal file
18
pkg/proto/apicode.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package proto
|
||||
|
||||
const (
|
||||
Code_Success = 0
|
||||
Code_FailedAuth = 5001
|
||||
Code_Error = 5002
|
||||
Code_NotFound = 5004
|
||||
Code_NotAllowed = 5005
|
||||
Code_JWTError = 5006
|
||||
Code_RPCError = 5007
|
||||
Code_ParamsError = 5008
|
||||
Code_DBError = 5009
|
||||
)
|
||||
|
||||
const (
|
||||
Msg_NotAllowed = "permission not allowed"
|
||||
Msg_JWTError = "parse jwt token failed"
|
||||
)
|
||||
Reference in New Issue
Block a user