...
|
...
|
@@ -2,6 +2,22 @@ package domain |
|
|
|
|
|
import "time"
|
|
|
|
|
|
// 订单类型
|
|
|
const (
|
|
|
ORDER_TYPE_ACTUAL = iota + 1 //实际订单
|
|
|
ORDER_TYPE_INTENTION // 意向订单
|
|
|
)
|
|
|
|
|
|
// 订单状态
|
|
|
const (
|
|
|
ORDER_STATUS_SHIPPED = iota + 1 // 已发货
|
|
|
ORDER_STATUS_TRANSIT // 待收货
|
|
|
ORDER_STATUS_RECEIVED // 已收货
|
|
|
ORDER_STATUS_RETURNED // 已退货
|
|
|
ORDER_STATUS_CANCELED // 已取消
|
|
|
ORDER_STATUS_CLOSED // 已关闭
|
|
|
)
|
|
|
|
|
|
// 订单实体
|
|
|
type Order struct {
|
|
|
// 订单id
|
...
|
...
|
|