-
Notifications
You must be signed in to change notification settings - Fork 156
/
requestServiceOrder.go
48 lines (42 loc) · 1.53 KB
/
requestServiceOrder.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
package request
type PostPayment struct {
Name string `json:"name"`
Amount int `json:"amount"`
Description string `json:"description"`
Count int `json:"count"`
}
type PostDiscount struct {
Name string `json:"name"`
Description string `json:"description"`
Count int `json:"count"`
}
type TimeRage struct {
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
StartTimeRemark string `json:"start_time_remark"`
EndTimeRemark string `json:"end_time_remark"`
}
type Location struct {
StartLocation string `json:"start_location"`
EndLocation string `json:"end_location"`
}
type RiskFund struct {
Name string `json:"name"`
Amount int `json:"amount"`
Description string `json:"description"`
}
type RequestServiceOrder struct {
OutOrderNo string `json:"out_order_no"`
Appid string `json:"appid"`
ServiceId string `json:"service_id"`
ServiceIntroduction string `json:"service_introduction"`
PostPayments []PostPayment `json:"post_payments"`
PostDiscounts []PostDiscount `json:"post_discounts"`
TimeRange TimeRage `json:"time_range"`
Location Location `json:"location"`
RiskFund RiskFund `json:"risk_fund"`
Attach string `json:"attach"`
NotifyUrl string `json:"notify_url"`
Openid string `json:"openid"`
NeedUserConfirm bool `json:"need_user_confirm"`
}