|
|
|
@ -14,19 +14,19 @@ type CanApplyInfoParam struct {
|
|
|
|
|
OrderID uint `json:"orderId"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type canApplyType uint
|
|
|
|
|
type CanApplyType uint
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
CannotApply canApplyType = iota
|
|
|
|
|
CannotApply CanApplyType = iota
|
|
|
|
|
CanApply
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var canApplyTypeMap = map[canApplyType]string{
|
|
|
|
|
var canApplyTypeMap = map[CanApplyType]string{
|
|
|
|
|
CannotApply: "不可申请",
|
|
|
|
|
CanApply: "可申请",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o canApplyType) String() string {
|
|
|
|
|
func (o CanApplyType) String() string {
|
|
|
|
|
if value, ok := canApplyTypeMap[o]; !ok {
|
|
|
|
|
return rest.UnKnow
|
|
|
|
|
} else {
|
|
|
|
@ -34,19 +34,19 @@ func (o canApplyType) String() string {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type returnType uint
|
|
|
|
|
type ReturnType uint
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
Return returnType = 10
|
|
|
|
|
Exchange returnType = 20
|
|
|
|
|
Return ReturnType = 10
|
|
|
|
|
Exchange ReturnType = 20
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var returnTypeMap = map[returnType]string{
|
|
|
|
|
var returnTypeMap = map[ReturnType]string{
|
|
|
|
|
Return: "退货",
|
|
|
|
|
Exchange: "换货",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o returnType) String() string {
|
|
|
|
|
func (o ReturnType) String() string {
|
|
|
|
|
if value, ok := returnTypeMap[o]; !ok {
|
|
|
|
|
return rest.UnKnow
|
|
|
|
|
} else {
|
|
|
|
@ -77,7 +77,7 @@ type CanAfterSaleResponse struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CanAfterSaleParams struct {
|
|
|
|
|
CanApply canApplyType `json:"canApply"`
|
|
|
|
|
CanApply CanApplyType `json:"canApply"`
|
|
|
|
|
SkuID uint `json:"skuId"`
|
|
|
|
|
AppliedNum uint `json:"appliedNum"`
|
|
|
|
|
CannotApplyTip string `json:"cannotApplyTip"`
|
|
|
|
@ -87,5 +87,5 @@ type CanAfterSaleParams struct {
|
|
|
|
|
|
|
|
|
|
type SupportParams struct {
|
|
|
|
|
AfsTypeName string `json:"afsTypeName"`
|
|
|
|
|
AfsType returnType `json:"afsType"`
|
|
|
|
|
AfsType ReturnType `json:"afsType"`
|
|
|
|
|
}
|
|
|
|
|