Documentation ¶
Index ¶
Constants ¶
View Source
const ( // 成功 ApiCodeOk ApiCode = 0 // 失败 ApiCodeFailed ApiCode = 999 // 验证码 ApiCodeNeedCaptchaCode ApiCode = 10 // 会话/Token已过期 ApiCodeTokenExpiredCode ApiCode = 11 // 文件不存在 NotFound.File ApiCodeFileNotFoundCode ApiCode = 12 // 上传文件失败 ApiCodeUploadFileStatusVerifyFailed = 13 // 上传文件数据偏移值校验失败 ApiCodeUploadOffsetVerifyFailed = 14 // 服务器上传文件不存在 ApiCodeUploadFileNotFound = 15 // 文件已存在 AlreadyExist.File ApiCodeFileAlreadyExisted = 16 // 上传达到日数量上限 ApiCodeUserDayFlowOverLimited = 17 // Token无效或者已过期 AccessTokenInvalid ApiCodeAccessTokenInvalid = 18 // 被禁止 Forbidden ApiCodeForbidden = 19 // RefreshToken已过期 ApiCodeRefreshTokenExpiredCode ApiCode = 20 ApiCodeFileShareNotAllowed ApiCode = 21 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiError ¶
func NewApiError ¶
func NewApiErrorWithError ¶
func NewFailedApiError ¶
func NewOkApiError ¶
func NewOkApiError() *ApiError
func ParseCommonApiError ¶
ParseCommonApiError 解析公共错误,如果没有错误则返回nil
Click to show internal directories.
Click to hide internal directories.