Initial commit

This commit is contained in:
2024-08-12 04:10:48 +00:00
commit a55ef32347
22 changed files with 2410 additions and 0 deletions

17
errcode.go Normal file
View File

@ -0,0 +1,17 @@
package main
// 定义统一的错误码
const (
// 从jwt中解析出来的字段放到 context 中
ERR_BEGIN = 100000
ERR_COMM_AUTH = 100001
ERR_COMM_PARAM = 100002
ERR_COMM_IVALID_USER = 100003
ERR_COMM_SVR_TIMEOUT = 100004
ERR_COMM_SVR_WRONG = 100005
ERR_BENIFIT_FREE_LIMIT = 101000
ERR_DIRTY_CONTENT = 101001
ERR_GRAMMAR_OK = 102000
)