Documentation ¶
Overview ¶
Package idleitem 包含闲鱼发布相关结构体
Index ¶
- type AlibabaIdleItemMediaAddAPIRequest
- func (r AlibabaIdleItemMediaAddAPIRequest) GetApiMethodName() string
- func (r AlibabaIdleItemMediaAddAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaIdleItemMediaAddAPIRequest) GetMediaData() *model.File
- func (r AlibabaIdleItemMediaAddAPIRequest) GetMediaType() int64
- func (r AlibabaIdleItemMediaAddAPIRequest) GetRawParams() model.Params
- func (r AlibabaIdleItemMediaAddAPIRequest) GetUserNick() string
- func (r *AlibabaIdleItemMediaAddAPIRequest) SetMediaData(_mediaData *model.File) error
- func (r *AlibabaIdleItemMediaAddAPIRequest) SetMediaType(_mediaType int64) error
- func (r *AlibabaIdleItemMediaAddAPIRequest) SetUserNick(_userNick string) error
- type AlibabaIdleItemMediaAddAPIResponse
- type AlibabaIdleItemMediaAddAPIResponseModel
- type AlibabaIdleRecycleOrderGetAPIRequest
- func (r AlibabaIdleRecycleOrderGetAPIRequest) GetApiMethodName() string
- func (r AlibabaIdleRecycleOrderGetAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaIdleRecycleOrderGetAPIRequest) GetBizOrderId() int64
- func (r AlibabaIdleRecycleOrderGetAPIRequest) GetRawParams() model.Params
- func (r *AlibabaIdleRecycleOrderGetAPIRequest) SetBizOrderId(_bizOrderId int64) error
- type AlibabaIdleRecycleOrderGetAPIResponse
- type AlibabaIdleRecycleOrderGetAPIResponseModel
- type EasyResultDto
- type RecycleOrderTo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlibabaIdleItemMediaAddAPIRequest ¶ added in v1.2.0
type AlibabaIdleItemMediaAddAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaIdleItemMediaAddAPIRequest 图片上传 API请求 alibaba.idle.item.media.add
上传图片
func NewAlibabaIdleItemMediaAddRequest ¶
func NewAlibabaIdleItemMediaAddRequest() *AlibabaIdleItemMediaAddAPIRequest
NewAlibabaIdleItemMediaAddRequest 初始化AlibabaIdleItemMediaAddAPIRequest对象
func (AlibabaIdleItemMediaAddAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaIdleItemMediaAddAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaIdleItemMediaAddAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaIdleItemMediaAddAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaIdleItemMediaAddAPIRequest) GetMediaData ¶ added in v1.2.0
func (r AlibabaIdleItemMediaAddAPIRequest) GetMediaData() *model.File
GetMediaData MediaData Getter
func (AlibabaIdleItemMediaAddAPIRequest) GetMediaType ¶ added in v1.2.0
func (r AlibabaIdleItemMediaAddAPIRequest) GetMediaType() int64
GetMediaType MediaType Getter
func (AlibabaIdleItemMediaAddAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaIdleItemMediaAddAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AlibabaIdleItemMediaAddAPIRequest) GetUserNick ¶ added in v1.2.0
func (r AlibabaIdleItemMediaAddAPIRequest) GetUserNick() string
GetUserNick UserNick Getter
func (*AlibabaIdleItemMediaAddAPIRequest) SetMediaData ¶ added in v1.2.0
func (r *AlibabaIdleItemMediaAddAPIRequest) SetMediaData(_mediaData *model.File) error
SetMediaData is MediaData Setter 多媒体文件字节流,图片<5M,视频<8M
func (*AlibabaIdleItemMediaAddAPIRequest) SetMediaType ¶ added in v1.2.0
func (r *AlibabaIdleItemMediaAddAPIRequest) SetMediaType(_mediaType int64) error
SetMediaType is MediaType Setter 类型:0 - 图片 ,仅支持图片
func (*AlibabaIdleItemMediaAddAPIRequest) SetUserNick ¶ added in v1.2.0
func (r *AlibabaIdleItemMediaAddAPIRequest) SetUserNick(_userNick string) error
SetUserNick is UserNick Setter 废弃,不用再输入
type AlibabaIdleItemMediaAddAPIResponse ¶
type AlibabaIdleItemMediaAddAPIResponse struct { model.CommonResponse AlibabaIdleItemMediaAddAPIResponseModel }
AlibabaIdleItemMediaAddAPIResponse 图片上传 API返回值 alibaba.idle.item.media.add
上传图片
type AlibabaIdleItemMediaAddAPIResponseModel ¶ added in v1.2.0
type AlibabaIdleItemMediaAddAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_idle_item_media_add_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // result Result *EasyResultDto `json:"result,omitempty" xml:"result,omitempty"` }
AlibabaIdleItemMediaAddAPIResponseModel is 图片上传 成功返回结果
type AlibabaIdleRecycleOrderGetAPIRequest ¶ added in v1.2.0
type AlibabaIdleRecycleOrderGetAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaIdleRecycleOrderGetAPIRequest 闲鱼回收订单查询V2 API请求 alibaba.idle.recycle.order.get
闲鱼回收业务中,外部回收商作为交易上买家,闲鱼用户下单后,需要回收商主动拉取交易订单
func NewAlibabaIdleRecycleOrderGetRequest ¶
func NewAlibabaIdleRecycleOrderGetRequest() *AlibabaIdleRecycleOrderGetAPIRequest
NewAlibabaIdleRecycleOrderGetRequest 初始化AlibabaIdleRecycleOrderGetAPIRequest对象
func (AlibabaIdleRecycleOrderGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaIdleRecycleOrderGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaIdleRecycleOrderGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaIdleRecycleOrderGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaIdleRecycleOrderGetAPIRequest) GetBizOrderId ¶ added in v1.2.0
func (r AlibabaIdleRecycleOrderGetAPIRequest) GetBizOrderId() int64
GetBizOrderId BizOrderId Getter
func (AlibabaIdleRecycleOrderGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaIdleRecycleOrderGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaIdleRecycleOrderGetAPIRequest) SetBizOrderId ¶ added in v1.2.0
func (r *AlibabaIdleRecycleOrderGetAPIRequest) SetBizOrderId(_bizOrderId int64) error
SetBizOrderId is BizOrderId Setter 订单号
type AlibabaIdleRecycleOrderGetAPIResponse ¶
type AlibabaIdleRecycleOrderGetAPIResponse struct { model.CommonResponse AlibabaIdleRecycleOrderGetAPIResponseModel }
AlibabaIdleRecycleOrderGetAPIResponse 闲鱼回收订单查询V2 API返回值 alibaba.idle.recycle.order.get
闲鱼回收业务中,外部回收商作为交易上买家,闲鱼用户下单后,需要回收商主动拉取交易订单
type AlibabaIdleRecycleOrderGetAPIResponseModel ¶ added in v1.2.0
type AlibabaIdleRecycleOrderGetAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_idle_recycle_order_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 失败时候错误信息 ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` // 订单信息 Module *RecycleOrderTo `json:"module,omitempty" xml:"module,omitempty"` // 是否成功 Result bool `json:"result,omitempty" xml:"result,omitempty"` }
AlibabaIdleRecycleOrderGetAPIResponseModel is 闲鱼回收订单查询V2 成功返回结果
type EasyResultDto ¶
type EasyResultDto struct { // 错误编码 ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` // 上传成功的文件id Data string `json:"data,omitempty" xml:"data,omitempty"` // 错误描述 ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` // 成功与否 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
EasyResultDto 结构体
type RecycleOrderTo ¶
type RecycleOrderTo struct { // 回收商appkey AppKey string `json:"app_key,omitempty" xml:"app_key,omitempty"` // 估价Id ApprizeId string `json:"apprize_id,omitempty" xml:"apprize_id,omitempty"` // 区 Area string `json:"area,omitempty" xml:"area,omitempty"` // 交易订单号 BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"` // 回收商取消订单原因 BuyerCloseReason string `json:"buyer_close_reason,omitempty" xml:"buyer_close_reason,omitempty"` // 用户取消订单原因 SellerCloseReason string `json:"seller_close_reason,omitempty" xml:"seller_close_reason,omitempty"` // 回收商买家账号 BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"` // 渠道信息 Channel string `json:"channel,omitempty" xml:"channel,omitempty"` // 渠道内的业务数据json格式 比如 ship=1 服装类的不需要发货,weight=5-15 代表服装5-15kg, userLevel=vip 代表免议价用户,sellerRealPhone 淘宝账号绑定的手机号 ChannelData string `json:"channel_data,omitempty" xml:"channel_data,omitempty"` // 城市 City string `json:"city,omitempty" xml:"city,omitempty"` // 村 Country string `json:"country,omitempty" xml:"country,omitempty"` // 加价券金额,单位分 CouponFee string `json:"coupon_fee,omitempty" xml:"coupon_fee,omitempty"` // 加价券Id(预留) CouponId string `json:"coupon_id,omitempty" xml:"coupon_id,omitempty"` // 加价券规则(预留) CouponRule string `json:"coupon_rule,omitempty" xml:"coupon_rule,omitempty"` // onlien:线上环境 pre:测试环境 Env string `json:"env,omitempty" xml:"env,omitempty"` // 订单创建时间 GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` // 1:现金支付 IdlePayType string `json:"idle_pay_type,omitempty" xml:"idle_pay_type,omitempty"` // 省 Province string `json:"province,omitempty" xml:"province,omitempty"` // 卖家评价内容 RateContent string `json:"rate_content,omitempty" xml:"rate_content,omitempty"` // 卖家评价等级 RateGrade string `json:"rate_grade,omitempty" xml:"rate_grade,omitempty"` // 卖家申请退回原因 RefundReason string `json:"refund_reason,omitempty" xml:"refund_reason,omitempty"` // 卖家收货地址 SellerAddress string `json:"seller_address,omitempty" xml:"seller_address,omitempty"` // 卖家淘宝nick SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"` // 卖家联系号码 SellerPhone string `json:"seller_phone,omitempty" xml:"seller_phone,omitempty"` // 卖家真实姓名 SellerRealName string `json:"seller_real_name,omitempty" xml:"seller_real_name,omitempty"` // 上门取件时间 ShipTime string `json:"ship_time,omitempty" xml:"ship_time,omitempty"` // 取件类型 ShipType string `json:"ship_type,omitempty" xml:"ship_type,omitempty"` // 子渠道 SubChannel string `json:"sub_channel,omitempty" xml:"sub_channel,omitempty"` // 支付状态 1:未付款 2:已付款 PayStatus string `json:"pay_status,omitempty" xml:"pay_status,omitempty"` // 下单后付款时间 PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"` // 订单完结时间 EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"` // 追缴单流水Id RecoveryPayId string `json:"recovery_pay_id,omitempty" xml:"recovery_pay_id,omitempty"` // 追缴成功时间 RecoveryPayTime string `json:"recovery_pay_time,omitempty" xml:"recovery_pay_time,omitempty"` // 少补单流水Id MakeupPayId string `json:"makeup_pay_id,omitempty" xml:"makeup_pay_id,omitempty"` // 少补成功时间 MakeupPayTime string `json:"makeup_pay_time,omitempty" xml:"makeup_pay_time,omitempty"` // 主订单支付流水Id MainPayId string `json:"main_pay_id,omitempty" xml:"main_pay_id,omitempty"` // 估价版本,第几次估价 QuoteVersion string `json:"quote_version,omitempty" xml:"quote_version,omitempty"` // 估价金额,单位分 ApprizeAmount int64 `json:"apprize_amount,omitempty" xml:"apprize_amount,omitempty"` // 信用预付金额,单位分 CreditPayAmount int64 `json:"credit_pay_amount,omitempty" xml:"credit_pay_amount,omitempty"` // 回收订单状态:1:订单创建 2:已上门取件 3:已质检 4:卖家确认交易完成 6:卖家订单已评价 7:回收商订单已评价 100:卖家申请退回 101:货物已退回 102:卖家关闭订单 OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` // 质检金额,单位分 QaAmount int64 `json:"qa_amount,omitempty" xml:"qa_amount,omitempty"` // true:是信用预付订单,false:普通订单 CreditPay bool `json:"credit_pay,omitempty" xml:"credit_pay,omitempty"` }
RecycleOrderTo 结构体