You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jcook-sdk/api/rest/afs/afsReason.go

44 lines
1.2 KiB

package afs
import "git.oa00.com/go/jcook-sdk/api/rest"
type ApplyReasonParam struct {
Pin string `json:"pin"`
SkuID uint `json:"skuId"`
OrderID uint `json:"orderId"`
AfsType ReturnType `json:"afsType"`
}
// QueryAfterSaleReasonRequest 查询售后原因.
type QueryAfterSaleReasonRequest struct {
CtpProtocol rest.CtpProtocol `json:"ctpProtocol"`
ApplyReasonParam ApplyReasonParam `json:"applyReasonParam"`
}
func (o QueryAfterSaleReasonRequest) GetApiName() string {
return "jingdong.ctp.afs.operate.apply.getApplyReason"
}
func (o QueryAfterSaleReasonRequest) GetRespName() string {
return "jingdong_ctp_afs_operate_apply_getApplyReason_responce"
}
func (o QueryAfterSaleReasonRequest) GetRespObj() interface{} {
return ReasonResponse{}
}
type ReasonResponse struct {
Result struct {
Data []ReasonParams `json:"data"`
ErrCode uint `json:"errCode"`
ErrMsg string `json:"errMsg"`
Success bool `json:"success"`
} `json:"result"`
}
type ReasonParams struct {
ApplyReasonName string `json:"applyReasonName"`
ApplyReasonID uint `json:"applyReasonId"`
NeedUploadPic bool `json:"needUploadPic"`
}