Files
aigrammar/errcode.go
2024-08-12 04:10:48 +00:00

18 lines
387 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
)