1
Some checks failed
Build / build (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
build / Build (push) Has been cancelled
GitHub Actions Mirror / mirror_to_gitee (push) Has been cancelled
GitHub Actions Mirror / mirror_to_gitlab (push) Has been cancelled
Issue Close Require / issue-close-require (push) Has been cancelled
Some checks failed
Build / build (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
build / Build (push) Has been cancelled
GitHub Actions Mirror / mirror_to_gitee (push) Has been cancelled
GitHub Actions Mirror / mirror_to_gitlab (push) Has been cancelled
Issue Close Require / issue-close-require (push) Has been cancelled
This commit is contained in:
@ -10,16 +10,19 @@ type Response struct {
|
||||
}
|
||||
|
||||
var ErrorMessage = map[int]string{
|
||||
Success: "success",
|
||||
Unauthorized: "unauthorized",
|
||||
ServerError: "server error",
|
||||
NotFound: "not found",
|
||||
Forbidden: "forbidden",
|
||||
InvalidParams: "invalid params",
|
||||
InSufficRemainChar: "insufficent remain char",
|
||||
PlatformNotSupport: "platform not support",
|
||||
TransactionNotAvailable: "transaction not available",
|
||||
ApiUnauthorized: "api unauthorized",
|
||||
Success: "success",
|
||||
Unauthorized: "unauthorized",
|
||||
ServerError: "server error",
|
||||
NotFound: "not found",
|
||||
Forbidden: "forbidden",
|
||||
InvalidParams: "invalid params",
|
||||
InSufficRemainChar: "insufficent remain char",
|
||||
PlatformNotSupport: "platform not support",
|
||||
TransactionNotAvailable: "transaction not available",
|
||||
ApiUnauthorized: "api unauthorized",
|
||||
NotFindMember: "not find member",
|
||||
NotFindApiKey: "not find api key",
|
||||
MemberPlatformNotSupport: "member platform not support",
|
||||
}
|
||||
|
||||
const (
|
||||
@ -37,4 +40,8 @@ const (
|
||||
PlatformNotSupport = 20002 //平台不支持
|
||||
TransactionNotAvailable = 20003 //翻译服务不可用
|
||||
ApiUnauthorized = 20004 //api禁止访问
|
||||
|
||||
NotFindMember = 30001 //未找到用户
|
||||
NotFindApiKey = 30002 //未找到api key
|
||||
MemberPlatformNotSupport = 30003 //用户平台不支持
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user