Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RPCBusinessError ... RPCBusinessError codes.Code = 101 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Status ¶
type Status string
Status ...
const ( StatusOk Status = "OK" // 请求成功 StatusUnknownError Status = "UNKNOWN_ERROR" // 未知错误 StatusApiNotFount Status = "API_NOT_FOUND" // 请求的API不存在 StatusNotFound Status = "NOT_FOUND" // 资源不存在 StatusRecordNotFound Status = "RECORD_NOT_FOUND" // 记录不存在 StatusInvalidRequest Status = "INVALID_REQUEST" // 请求参数错误 StatusRequestTimeout Status = "REQUEST_TIMEOUT" // 请求超时 StatusTooManyRequests Status = "TOO_MANY_REQUESTS" // 请求过于频繁 StatusInternalServerError Status = "INTERNAL_SERVER_ERROR" // 服务内部异常 StatusExternalServerError Status = "EXTERNAL_SERVER_ERROR" // 外部服务异常 )
const ( StatusAccessDenied Status = "ACCESS_DENIED" // 拒绝访问 )
const ( StatusPaymentValueNotEnough Status = "PAYMENT_VALUE_NOT_ENOUGH" // 余额不足 StatusPayTimeout Status = "PAY_TIMEOUT" // 支付超时 StatusPaymentLocked Status = "PAYMENT_LOCKED" // 支付方式已被锁定 StatusInvalidPayment Status = "INVALID_PAYMENT" // 无效的支付方式 StatusUnsupportedPayment Status = "UNSUPPORTED_PAYMENT" // 不支持的支付方式 StatusInvalidCallbackURL Status = "INVALID_CALLBACK_URL" // 无效的回调地址 StatusExternalPaymentError Status = "EXTERNAL_PAYMENT_ERROR" // 外部支付错误 StatusPaymentUnknownError Status = "PAYMENT_UNKNOWN_ERROR" // 支付未知错误 StatusPointValueNotEnough Status = "POINT_VALUE_NOT_ENOUGH" // 积分余额不足 )
Click to show internal directories.
Click to hide internal directories.