-
Notifications
You must be signed in to change notification settings - Fork 0
/
modules.go
174 lines (169 loc) · 7.75 KB
/
modules.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
package main
type Info struct {
UserInfo struct {
Uid string `yaml:"uid"`
Longitude string `yaml:"longitude"`
Latitude string `yaml:"latitude"`
StationId string `yaml:"station_id"`
CityNumber string `yaml:"city_number"`
ApiVersion string `yaml:"api_version"`
AppVersion string `yaml:"app_version"`
AppletSource string `yaml:"applet_source"`
Channel string `yaml:"channel"`
AppClientId string `yaml:"app_client_id"`
SharerUid string `yaml:"sharer_uid"`
Openid string `yaml:"openid"`
H5Source string `yaml:"h_5_source"`
Sid string `yaml:"s_id"`
DeviceToken string `yaml:"device_token"`
}
Headers struct {
CityNumber string `yaml:"ddmc_city_number"`
BuildVersion string `yaml:"ddmc_build_version"`
DeviceId string `yaml:"ddmc_device_id"`
StationId string `yaml:"ddmc_station_id"`
Channel string `yaml:"ddmc_channel"`
OsVersion string `yaml:"ddmc_os_version"`
AppClientId string `yaml:"ddmc_app_client_id"`
Cookie string `yaml:"cookie"`
Ip string `yaml:"ddmc_ip"`
Longitude string `yaml:"ddmc_longitude"`
Latitude string `yaml:"ddmc_latitude"`
ApiVersion string `yaml:"ddmc_api_version"`
Uid string `yaml:"ddmc_uid"`
UserAgent string `yaml:"user_agent"`
Referer string `yaml:"referer"`
}
}
type Cart struct {
CartCount int `json:"cart_count"`
IsPresale int `json:"is_presale"`
OnlyTomorrowProducts []interface{} `json:"only_tomorrow_products"`
FrontPackageType int `json:"front_package_type"`
TotalCount int `json:"total_count"`
GoodsRealMoney string `json:"goods_real_money"`
CanUsedPointNum int `json:"can_used_point_num"`
PackageId int `json:"package_id"`
FrontPackageBgColor string `json:"front_package_bg_color"`
PackageType int `json:"package_type"`
CanUsedBalanceMoney string `json:"can_used_balance_money"`
CanUsedPointMoney string `json:"can_used_point_money"`
IsShareStation int `json:"is_share_station"`
Products []Product `json:"products"`
TotalOriginMoney string `json:"total_origin_money"`
UsedBalanceMoney string `json:"used_balance_money"`
OnlyTodayProducts []interface{} `json:"only_today_products"`
InstantRebateMoney string `json:"instant_rebate_money"`
CouponRebateMoney string `json:"coupon_rebate_money"`
FrontPackageStockColor string `json:"front_package_stock_color"`
FrontPackageText string `json:"front_package_text"`
UsedPointNum int `json:"used_point_num"`
TotalMoney string `json:"total_money"`
TotalRebateMoney string `json:"total_rebate_money"`
UsedPointMoney string `json:"used_point_money"`
}
type Orders struct {
Order struct {
DefaultCoupon struct {
ID string `json:"_id"`
} `json:"default_coupon"`
DefaultFreightCoupon struct {
} `json:"default_freight_coupon"`
DisplayTotalMoney string `json:"display_total_money"`
FreightDiscountMoney interface{} `json:"freight_discount_money"`
FreightMoney string `json:"freight_money"`
Freights []struct {
Freight struct {
DiscountFreightMoney string `json:"discount_freight_money"`
FreightMoney string `json:"freight_money"`
FreightRealMoney string `json:"freight_real_money"`
Remark string `json:"remark"`
Type int `json:"type"`
} `json:"freight"`
PackageId int `json:"package_id"`
} `json:"freights"`
TotalMoney string `json:"total_money"`
} `json:"order"`
}
type Product struct {
ActivityId string `json:"activity_id"`
BuyLimit int `json:"buy_limit"`
CartId string `json:"cart_id"`
CategoryPath string `json:"category_path"`
ConditionsNum string `json:"conditions_num"`
Count int `json:"count"`
DeliveryDateTag string `json:"delivery_date_tag"`
Description string `json:"description"`
Features string `json:"features"`
Id string `json:"id"`
InstantRebateMoney string `json:"instant_rebate_money"`
IsBooking int `json:"is_booking"`
IsBulk int `json:"is_bulk"`
IsGift int `json:"is_gift"`
IsInvoice int `json:"is_invoice"`
IsPresale int `json:"is_presale"`
IsSharedStationProduct int `json:"is_shared_station_product"`
ManageCategoryPath string `json:"manage_category_path"`
NetWeight string `json:"net_weight"`
NetWeightUnit string `json:"net_weight_unit"`
NoSupplementaryPrice string `json:"no_supplementary_price"`
NoSupplementaryTotalPrice string `json:"no_supplementary_total_price"`
OrderSort int `json:"order_sort"`
OriginPrice string `json:"origin_price"`
ParentBatchType int `json:"parent_batch_type"`
ParentId string `json:"parent_id"`
Price string `json:"price"`
PriceType int `json:"price_type"`
ProductName string `json:"product_name"`
ProductType int `json:"product_type"`
PromotionNum int `json:"promotion_num"`
SaleBatches struct {
BatchType int `json:"batch_type"`
} `json:"sale_batches"`
SizePrice string `json:"size_price"`
Sizes []interface{} `json:"sizes"`
SkuActivityId string `json:"sku_activity_id"`
SmallImage string `json:"small_image"`
StorageValueId int `json:"storage_value_id"`
SubList []interface{} `json:"sub_list"`
SupplementaryList []interface{} `json:"supplementary_list"`
TemperatureLayer string `json:"temperature_layer"`
TotalOriginPrice string `json:"total_origin_price"`
TotalPrice string `json:"total_price"`
Type int `json:"type"`
ViewTotalWeight string `json:"view_total_weight"`
TotalMoney string `json:"total_money"`
TotalOriginMoney string `json:"total_origin_money"`
}
type Reserved struct {
AreaLevel int `json:"area_level"`
BusySoonArrivalText string `json:"busy_soon_arrival_text"`
DefaultSelect bool `json:"default_select"`
EtaTraceId string `json:"eta_trace_id"`
IntervalMinute int `json:"interval_minute"`
IsNewRules bool `json:"is_new_rules"`
StationDelayText interface{} `json:"station_delay_text"`
StationId string `json:"station_id"`
Time []struct {
DateStr string `json:"date_str"`
DateStrTimestamp int `json:"date_str_timestamp"`
Day string `json:"day"`
InvalidPrompt interface{} `json:"invalid_prompt"`
IsInvalid bool `json:"is_invalid"`
TimeFullTextTip interface{} `json:"time_full_text_tip"`
Times []struct {
ArrivalTime bool `json:"arrival_time"`
ArrivalTimeMsg string `json:"arrival_time_msg"`
DisableMsg string `json:"disableMsg"`
DisableType int `json:"disableType"`
EndTime string `json:"end_time"`
EndTimestamp int64 `json:"end_timestamp"`
FullFlag bool `json:"fullFlag"`
SelectMsg string `json:"select_msg"`
StartTime string `json:"start_time"`
StartTimestamp int64 `json:"start_timestamp"`
TextMsg string `json:"textMsg"`
Type int `json:"type"`
} `json:"times"`
} `json:"time"`
}