package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Nov 23, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
Success = NewError(0, "成功")
ServerError = NewError(10000000, "服务内部错误")
InvalidParams = NewError(10000001, "参数错误")
NotFound = NewError(10000002, "无法找到")
UnauthorizedAuthNotExist = NewError(10000003, "鉴权失败,找不到相应的AppKey和AppSecret")
UnauthorizedTokenError = NewError(10000004, "鉴权失败,Token错误")
UnauthorizedTokenTimeout = NewError(10000005, "鉴权失败,Token超时")
UnauthorizedTokenGenerate = NewError(10000006, "鉴权失败,Token生成失败")
TooManyRequests = NewError(10000007, "请求过多")
)
View Source
var (
ErrorGetTagListFail = NewError(20010001, "获取标签列表失败")
ErrorCreateTagFail = NewError(20010002, "创建标签失败")
ErrorUpdateTagFail = NewError(20010003, "更新标签失败")
ErrorDeleteTagFail = NewError(20010004, "删除标签失败")
ErrorCountTagFail = NewError(20010005, "统计标签失败")
)
type Error struct {
ErrCode int `json:"code"`
ErrMsg string `json:"msg"`
ErrDetails []string `json:"details"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.