Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceGetData ¶
type BalanceGetData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"` Result *BalanceGetResult `json:"getaccountbalance_result,omitempty" codec:"getaccountbalance_result,omitempty"` }
func (BalanceGetData) Error ¶ added in v1.1.1
func (r BalanceGetData) Error() string
func (BalanceGetData) IsError ¶ added in v1.1.1
func (r BalanceGetData) IsError() bool
type BalanceGetRequest ¶
type BalanceGetRequest struct {
api.BaseRequest
}
type BalanceGetResponse ¶
type BalanceGetResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *BalanceGetData `json:"jingdong_dsp_balance_get_responce,omitempty" codec:"jingdong_dsp_balance_get_responce,omitempty"` }
func (BalanceGetResponse) Error ¶ added in v1.1.1
func (r BalanceGetResponse) Error() string
func (BalanceGetResponse) IsError ¶ added in v1.1.1
func (r BalanceGetResponse) IsError() bool
type BalanceGetResult ¶
type BalanceGetResult struct { Data *BalanceGetResultData `json:"value,omitempty" codec:"value,omitempty"` ResultCode string `json:"resultCode,omitempty" codec:"resultCode,omitempty"` ErrorMsg string `json:"errorMsg,omitempty" codec:"errorMsg,omitempty"` Success bool `json:"success" codec:"success"` }
func (BalanceGetResult) Error ¶ added in v1.1.1
func (r BalanceGetResult) Error() string
func (BalanceGetResult) IsError ¶ added in v1.1.1
func (r BalanceGetResult) IsError() bool
type BalanceGetResultData ¶
type BalanceGetResultData struct { TotalAmount float64 `json:"totalAmount" codec:"totalAmount"` AvailableAmount float64 `json:"availableAmount" codec:"availableAmount"` FreezeAmount float64 `json:"freezeAmount" codec:"freezeAmount"` }
func BalanceGet ¶
func BalanceGet(ctx context.Context, req *BalanceGetRequest) (*BalanceGetResultData, error)
Click to show internal directories.
Click to hide internal directories.