-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorderinfo.go
99 lines (80 loc) · 2.35 KB
/
orderinfo.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package model
import "time"
// response
/*
type ClientInfo struct {
ID int `json:"orderId"`
StateID int `json:"stateId"`
Member bool `json:"isMember"`
Name string `json:"reserveName"`
Address string `json:"address"`
Phone string `json:"contact"`
ReserveAt time.Time `json:"reserveDate"`
OrderAt time.Time `json:"orderDate"`
Message string `json:"requestDetail"`
}
type PaymentInfo struct {
Price int `json:"price"`
CouponPrice int `json:"couponPrice"`
CouponName string `json:"couponName"`
}
type OrderSummery struct {
ID int `json:"id"`
DinnerName string `json:"dinnerName"`
CreatedAt time.Time `json:"createTime"`
ReserveAt time.Time `json:"reserveTime"`
Price int `json:"price"`
}
type OrderInfo struct {
ID int `json:"-"`
Price int `json:"price"`
CouponPrice int `json:"couponPrice"`
CouponName string `json:"couponName"`
}
*/
type OrderRequest struct {
Order
Info OrderRequestInfo `json:"orderInfo"`
}
type OrderRequestInfo struct {
OwnerID int `json:"-"`
Name string `json:"reserveName"`
Phone string `json:"call"`
Address string `json:"address"`
Message string `json:"requestDetail"`
ReserveAt string `json:"reserveDate"`
CouponID int `json:"couponId"`
Price int `json:"price"`
}
type AllOrderInfo struct {
ID int `json:"orderId"`
OwnerID int `json:"-"`
StateID int `json:"stateId"`
Name string `json:"reserveName"`
Phone string `json:"contact"`
Address string `json:"address"`
Message string `json:"requestDetail"`
ReserveAt time.Time `json:"reserveDate"`
CreatedAt time.Time `json:"createTime"`
Price int `json:"price"`
CouponPrice int `json:"couponPrice"`
CouponName string `json:"couponName"`
}
type OrderResponse struct {
Order
AllOrderInfoResponse
}
type AllOrderInfoResponse struct {
ID int `json:"orderId"`
OwnerID int `json:"-"`
StateID int `json:"stateId"`
Name string `json:"reserveName"`
Phone string `json:"contact"`
Address string `json:"address"`
Message string `json:"requestDetail"`
ReserveAt string `json:"reserveDate"`
CreatedAt string `json:"createTime"`
Price int `json:"price"`
CouponPrice int `json:"couponPrice"`
CouponName string `json:"couponName"`
}