...
|
...
|
@@ -342,22 +342,27 @@ func (order *Order) Identify() interface{} { |
|
|
return order.OrderId
|
|
|
}
|
|
|
|
|
|
// 更新订单
|
|
|
func (order *Order) Update(data map[string]interface{}) error {
|
|
|
return order.CurrentStatus.Update(order, data)
|
|
|
}
|
|
|
|
|
|
// 发货
|
|
|
func (order *Order) Checkout() error {
|
|
|
return order.CurrentStatus.Checkout(order)
|
|
|
}
|
|
|
|
|
|
// 退货
|
|
|
func (order *Order) Return() error {
|
|
|
return order.CurrentStatus.Return(order)
|
|
|
}
|
|
|
|
|
|
// 收货
|
|
|
func (order *Order) Receive() error {
|
|
|
return order.CurrentStatus.Receive(order)
|
|
|
}
|
|
|
|
|
|
// 取消订单
|
|
|
func (order *Order) Cancel() error {
|
|
|
return order.CurrentStatus.Cancel(order)
|
|
|
} |
...
|
...
|
|