Documentation
¶
Index ¶
Constants ¶
View Source
const ( // 成功 ApiCodeOk ApiCode = 0 // 成功 ApiCodeNeedCaptchaCode ApiCode = 10 // 会话/Token已过期 ApiCodeTokenExpiredCode ApiCode = 11 // 文件不存在 ApiCodeFileNotFoundCode ApiCode = 12 // 上传文件失败 ApiCodeUploadFileStatusVerifyFailed = 13 // 上传文件数据偏移值校验失败 ApiCodeUploadOffsetVerifyFailed = 14 // 服务器上传文件不存在 ApiCodeUploadFileNotFound = 15 // 失败 ApiCodeFailed ApiCode = 999 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiError ¶
func NewApiError ¶
func NewApiErrorWithError ¶
func NewFailedApiError ¶
func NewOkApiError ¶
func NewOkApiError() *ApiError
type AppErrorXmlResp ¶
type SuccessResp ¶
type SuccessResp struct { // Success 是否成功。true为成功,false或者没有返回则为失败 Success bool `json:"success"` }
Click to show internal directories.
Click to hide internal directories.