From e211997a614e3d95d6d62d32ec452f001d8f81b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 23 Oct 2020 15:35:21 +0800 Subject: [PATCH] deliveyr order --- business/model/order.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/business/model/order.go b/business/model/order.go index 2322e3530..7e05dfab2 100644 --- a/business/model/order.go +++ b/business/model/order.go @@ -81,3 +81,20 @@ func (v *Order) TableIndex() [][]string { []string{"UserID"}, } } + +type DeliveryOrder struct { + ModelIDCUL + + VendorWaybillID string `orm:"column(vendor_waybill_id)" json:"vendorWaybillID"` //运单号 + UserID string `orm:"column(user_id);size(48)" json:"userID"` //用户ID + DeliverySendID int `orm:"column(delivery_send_id)" json:"deliverySendID"` //寄件人地址ID + DeliveryReceiveID int `orm:"cloumn(delivery_receive_id)" json:"deliveryReceiveID"` //取件人地址ID(收货人) + Status int `json:"status"` //运单状态 + PayPrice int `json:"payPrice"` //支付金额 + OrderFinishedAt time.Time `json:"orderFinishedAt"` //订单完成时间 + Weight float64 `json:"weight"` //订单重量,单位kg + Vloumn float64 `json:"vloumn"` //订单体积,单位立方cm + Description string `json:"description"` //订单商品描述 + PickUpStartTime time.Time `json:"pickUpStartTime"` //预约取件开始时间 + PickUpEndTime time.Time `json:"pickUpEndTime"` //预约取件结束时间 +}