Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SendBeanData ¶
type SendBeanData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"` Result *SendBeanResult `json:"beanSendResult,omitempty" codec:"beanSendResult,omitempty"` }
func (SendBeanData) Error ¶ added in v1.1.1
func (r SendBeanData) Error() string
func (SendBeanData) IsError ¶ added in v1.1.1
func (r SendBeanData) IsError() bool
type SendBeanRequest ¶
type SendBeanRequest struct { api.BaseRequest RequestId string `json:"requestId,omitempty" codec:"requestId,omitempty"` // 防重入ID BeanNum uint32 `json:"beanNum" codec:"beanNum"` // 发豆数量 AccountId uint64 `json:"accountId" codec:"accountId"` // 京豆账户ID AccountCode string `json:"accountCode" codec:"accountCode"` // 京豆账户,当accountType=1,则accountCode为商家id;当accountType=2,则accouontCode为供应商简码 SendWay uint8 `json:"sendWay" codec:"sendWay"` // 发豆方式,目前只支持按PIN发豆,固定值为1 SendCode string `json:"sendCode" codec:"sendCode"` // 发豆参数,当sendWay=1, 为用户pin,目前只支持按PIN发豆,固定值为1 AccountType uint8 `json:"accountType" codec:"accountType"` // 京豆账户类型,1:商家账户,2:供应商账户,3:品牌商账户 Context string `json:"context,omitempty" codec:"context,omitempty"` // 发豆说明 PlanId uint64 `json:"planId" codec:"planId"` // 计划ID Rfld string `json:"rfld,omitempty" codec:"rfld,omitempty"` // 外部活动id }
type SendBeanResponse ¶
type SendBeanResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *SendBeanData `json:"jingdong_pop_bean_sendBean_responce,omitempty" codec:"jingdong_pop_bean_sendBean_responce,omitempty"` }
func (SendBeanResponse) Error ¶ added in v1.1.1
func (r SendBeanResponse) Error() string
func (SendBeanResponse) IsError ¶ added in v1.1.1
func (r SendBeanResponse) IsError() bool
type SendBeanResult ¶
type SendBeanResult struct { Result uint32 `json:"result" codec:"result"` RemainBeanNum uint64 `json:"remainBeanNum" codec:"remainBeanNum"` Desc string `json:"desc" codec:"desc"` }
func SendBean ¶
func SendBean(req *SendBeanRequest) (*SendBeanResult, error)
Click to show internal directories.
Click to hide internal directories.