-
Notifications
You must be signed in to change notification settings - Fork 0
/
value_order.go
57 lines (45 loc) · 1.66 KB
/
value_order.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
* Copyright 2014 @ S1N1 Team.
* name :
* author : jarryliu
* date : 2013-12-05 17:19
* description :
* history :
*/
package shopping
type ValueOrder struct {
Id int `db:"id" pk:"yes" auto:"yes" json:"id"`
OrderNo string `db:"order_no" json:"orderNo"`
MemberId int `db:"member_id" json:"memberId"`
PartnerId int `db:"partner_id" json:"partnerId"`
ShopId int `db:"shop_id" json:"shopId"`
ItemsInfo string `db:"items_info" json:"itemsInfo"`
// 总金额
TotalFee float32 `db:"total_fee" json:"totalFee"`
// 实际金额
Fee float32 `db:"fee" json:"fee"`
// 支付金额
PayFee float32 `db:"pay_fee" json:"payFee"`
//减免金额(包含优惠券金额)
DiscountFee float32 `db:"discount_fee" json:"discountFee"`
//优惠券优惠金额
CouponFee float32 `db:"coupon_fee" json:"couponFee"`
PaymentOpt int `db:"payment_opt" json:"payMethod"`
IsPaid int `db:"is_paid" json:"isPaid"`
// 是否挂起,如遇到无法自动进行的时挂起,来提示人工确认。
IsSuspend int `db:"is_suspend" json:"is_suspend"`
Note string `db:"note" json:"note"`
Remark string `db:"note" json:"remark"`
// 支付时间
PaidTime int64 `db:"paid_time" json:"paidTime"`
DeliverName string `db:"deliver_name" json:"deliverName"`
DeliverPhone string `db:"deliver_phone" json:"deliverPhone"`
DeliverAddress string `db:"deliver_address" json:"deliverAddress"`
DeliverTime int64 `db:"deliver_time" json:"deliverTime"`
CreateTime int64 `db:"create_time" json:"createTime"`
// 订单状态
Status int `db:"status" json:"status"`
UpdateTime int64 `db:"update_time" json:"updateTime"`
// 订单项
Items []*OrderItem `db:"-"`
}