This commit is contained in:
bryanqiu 2023-03-02 10:23:28 +08:00
commit 67a1665cc2
2 changed files with 27 additions and 0 deletions

24
eno.go Normal file
View File

@ -0,0 +1,24 @@
package eno
// Common error code
const (
errcode_class____system_error = -10000 /////////////////////////
SYSTEM_ERROR = -10000 // unreachable code, maybe a bug.
UNREACHABLE_CODE = -10000 // unreachable code, maybe a bug.
UNKNOWN_ERROR = -10000 // unreachable code, maybe a bug.
DATABASE_ERROR = -10001 // database error.
REDIS_ERROR = -10002 // redis error.
errcode_class___request_error = -20000 /////////////////////////
PARAMETER_INVALID = -20000 // request parameter error
APPID_INVALID = -20001 // request appid invalid
API_NOT_FOUND = -20404 // api not found
errcode_class__haverisk_error = 20000 //////////////////////////
NEED_CAPTCHA = 20001 // need captcha
LOGIN_FREEZEN = 20002 // login freezen by too many errors
errcode_class___frontend_jump = 10000 //////////////////////////
NOT_LOGIN = 10400 // user not login
NEED_PAY_PASSWORD = 10401 // need input pay password
)

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module qoobing.com/gomod/eno
go 1.16