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/afsCancel.go

58 lines
1.4 KiB

package afs
import "git.oa00.com/go/jcook-sdk/api/rest"
// CancelAfsServiceDetailRequest 售后服务单取消.
type CancelAfsServiceDetailRequest struct {
CtpProtocol rest.CtpProtocol `json:"ctpProtocol"`
CancelAfsServiceParam ServiceDetailParam `json:"cancelAfsServiceParam"`
}
func (o CancelAfsServiceDetailRequest) GetApiName() string {
return "jingdong.ctp.afs.servicenbill.cancelAfsService"
}
func (o CancelAfsServiceDetailRequest) GetRespName() string {
return "jingdong_ctp_afs_servicenbill_cancelAfsService_responce"
}
func (o CancelAfsServiceDetailRequest) GetRespObj() interface{} {
return CancelAfsResponse{}
}
// CancelAfsResponse 售后单创建返回.
type CancelAfsResponse struct {
Result struct {
Data CancelAfsParams `json:"data"`
ErrCode uint `json:"errCode"`
ErrMsg string `json:"errMsg"`
Success bool `json:"success"`
} `json:"result"`
}
type CancelState uint
const (
CancelStateNot CancelState = iota + 1
CancelStateSuccess
CancelStateFail
)
var cancelStateMap = map[CancelState]string{
CancelStateNot: "不可取消",
CancelStateSuccess: "取消成功",
CancelStateFail: "取消失败",
}
func (o CancelState) String() string {
if value, ok := cancelStateMap[o]; !ok {
return rest.UnKnow
} else {
return value
}
}
type CancelAfsParams struct {
CancelState CancelState `json:"CancelState"`
}