|
|
|
@ -5,15 +5,18 @@ import (
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
AfterServiceCanApplyFalse = 1 // 不可申请
|
|
|
|
|
AfterServiceCanApplyTrue = 2 // 可申请
|
|
|
|
|
AfterServiceCanApplyTrue = 1 // 可申请
|
|
|
|
|
AfterServiceCanApplyFalse = 2 // 不可申请
|
|
|
|
|
|
|
|
|
|
AfterServiceNeedPictureTrue = 1 // 需要上传
|
|
|
|
|
AfterServiceNeedPictureFalse = 2 // 不需要上传
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type AfterServiceInterface interface {
|
|
|
|
|
// Can 获取是否可发起售后
|
|
|
|
|
Can(ctx context.Context, args ArgsAfterServiceCan, reply *ReplyAfterServiceCan) error
|
|
|
|
|
// Reason 获取售后原因
|
|
|
|
|
Reason(ctx context.Context, args ArgsAfterServiceReason, reply *ReplyAfterServiceReason) error
|
|
|
|
|
Reason(ctx context.Context, args ArgsAfterServiceReason, reply *[]ReplyAfterServiceReason) error
|
|
|
|
|
// Apply @Title 发起售后
|
|
|
|
|
Apply(ctx context.Context, args ArgsAfterServiceApply, reply *ReplyAfterServiceApply) error
|
|
|
|
|
// LogisticsAddress @Title 寄回地址
|
|
|
|
@ -28,7 +31,7 @@ type ArgsAfterServiceCan struct {
|
|
|
|
|
SkuId string // skuId
|
|
|
|
|
}
|
|
|
|
|
type ReplyAfterServiceCan struct {
|
|
|
|
|
CanApply uint `json:"canApply"` // 是否可申请售后 0=不可申请 1=可申请
|
|
|
|
|
CanApply uint `json:"canApply"` // 是否可申请售后 1=可申请 2=不可申请
|
|
|
|
|
SkuId string `json:"skuId"` // skuId
|
|
|
|
|
AppliedNum uint `json:"appliedNum"` // 已申请售后商品数量
|
|
|
|
|
CannotApplyTip string `json:"cannotApplyTip"` // 不可申请原因
|
|
|
|
|