Versions in this module Expand all Collapse all v0 v0.0.8 Feb 26, 2022 Changes in this version + const ApiCodeFailed + const ApiCodeFileAlreadyExisted + const ApiCodeFileNotFoundCode + const ApiCodeInfoSecurityError + const ApiCodeInvalidArgument + const ApiCodeNeedCaptchaCode + const ApiCodeOk + const ApiCodeTokenExpiredCode + const ApiCodeUploadFileNotFound + const ApiCodeUploadFileStatusVerifyFailed + const ApiCodeUploadOffsetVerifyFailed + const ApiCodeUserDayFlowOverLimited + type ApiCode int + type ApiError struct + Code ApiCode + Err string + func NewApiError(code ApiCode, err string) *ApiError + func NewApiErrorWithError(err error) *ApiError + func NewFailedApiError(err string) *ApiError + func NewOkApiError() *ApiError + func ParseAppCommonApiError(data []byte) *ApiError + func (a *ApiError) ErrCode() ApiCode + func (a *ApiError) Error() string + func (a *ApiError) SetErr(code ApiCode, err string) + type AppErrorXmlResp struct + Code string + Message string + XMLName xml.Name + type ErrorResp struct + ErrorCode string + ErrorMsg string + type SuccessResp struct + Success bool