
1package main
2
3import (
4 "bytes"
5 "demo/wxpay_brand_utility"
6 "encoding/json"
7 "fmt"
8 "net/http"
9 "net/url"
10 "strings"
11 "time"
12)
13
14func main() {
15
16 config, err := wxpay_brand_utility.CreateBrandConfig(
17 "xxxxxxxx",
18 "1DDE55AD98Exxxxxxxxxx",
19 "/path/to/apiclient_key.pem",
20 "PUB_KEY_ID_xxxxxxxxxxxxx",
21 "/path/to/wxp_pub.pem",
22 )
23 if err != nil {
24 fmt.Println(err)
25 return
26 }
27
28 request := &SendUserProductCouponBundleRequest{
29 ProductCouponId: wxpay_brand_utility.String("1000000014"),
30 StockBundleId: wxpay_brand_utility.String("712315129419284901"),
31 Appid: wxpay_brand_utility.String("wx233544546545989"),
32 Openid: wxpay_brand_utility.String("oh-394z-6CGkNoJrsDLTTUKiAnp4"),
33 SendRequestNo: wxpay_brand_utility.String("MCHCONFIRM202003101234"),
34 }
35
36 response, err := SendUserProductCouponBundle(config, request)
37 if err != nil {
38 fmt.Printf("请求失败: %+v\n", err)
39
40 return
41 }
42
43
44 fmt.Printf("请求成功: %+v\n", response)
45}
46
47func SendUserProductCouponBundle(config *wxpay_brand_utility.BrandConfig, request *SendUserProductCouponBundleRequest) (response *SendUserProductCouponBundleResponse, err error) {
48 const (
49 host = "https://api.mch.weixin.qq.com"
50 method = "POST"
51 path = "/brand/marketing/product-coupon/users/{openid}/coupon-bundles"
52 )
53
54 reqUrl, err := url.Parse(fmt.Sprintf("%s%s", host, path))
55 if err != nil {
56 return nil, err
57 }
58 reqUrl.Path = strings.Replace(reqUrl.Path, "{openid}", url.PathEscape(*request.Openid), -1)
59 reqBody, err := json.Marshal(request)
60 if err != nil {
61 return nil, err
62 }
63 httpRequest, err := http.NewRequest(method, reqUrl.String(), bytes.NewReader(reqBody))
64 if err != nil {
65 return nil, err
66 }
67 httpRequest.Header.Set("Accept", "application/json")
68 httpRequest.Header.Set("Wechatpay-Serial", config.WechatPayPublicKeyId())
69 httpRequest.Header.Set("Content-Type", "application/json")
70 authorization, err := wxpay_brand_utility.BuildAuthorization(config.BrandId(), config.CertificateSerialNo(), config.PrivateKey(), method, reqUrl.RequestURI(), reqBody)
71 if err != nil {
72 return nil, err
73 }
74 httpRequest.Header.Set("Authorization", authorization)
75
76 client := &http.Client{}
77 httpResponse, err := client.Do(httpRequest)
78 if err != nil {
79 return nil, err
80 }
81 respBody, err := wxpay_brand_utility.ExtractResponseBody(httpResponse)
82 if err != nil {
83 return nil, err
84 }
85 if httpResponse.StatusCode >= 200 && httpResponse.StatusCode < 300 {
86
87 err = wxpay_brand_utility.ValidateResponse(
88 config.WechatPayPublicKeyId(),
89 config.WechatPayPublicKey(),
90 &httpResponse.Header,
91 respBody,
92 )
93 if err != nil {
94 return nil, err
95 }
96 response := &SendUserProductCouponBundleResponse{}
97 if err := json.Unmarshal(respBody, response); err != nil {
98 return nil, err
99 }
100
101 return response, nil
102 } else {
103 return nil, wxpay_brand_utility.NewApiException(
104 httpResponse.StatusCode,
105 httpResponse.Header,
106 respBody,
107 )
108 }
109}
110
111type SendUserProductCouponBundleRequest struct {
112 ProductCouponId *string `json:"product_coupon_id,omitempty"`
113 StockBundleId *string `json:"stock_bundle_id,omitempty"`
114 Appid *string `json:"appid,omitempty"`
115 Openid *string `json:"openid,omitempty"`
116 SendRequestNo *string `json:"send_request_no,omitempty"`
117 Attach *string `json:"attach,omitempty"`
118 CouponTagInfo *CouponTagInfo `json:"coupon_tag_info,omitempty"`
119}
120
121func (o *SendUserProductCouponBundleRequest) MarshalJSON() ([]byte, error) {
122 type Alias SendUserProductCouponBundleRequest
123 a := &struct {
124 Openid *string `json:"openid,omitempty"`
125 *Alias
126 }{
127
128 Openid: nil,
129 Alias: (*Alias)(o),
130 }
131 return json.Marshal(a)
132}
133
134type SendUserProductCouponBundleResponse struct {
135 UserCouponBundleId *string `json:"user_coupon_bundle_id,omitempty"`
136 UserProductCouponList []UserProductCouponEntity `json:"user_product_coupon_list,omitempty"`
137}
138
139type CouponTagInfo struct {
140 CouponTagList []UserProductCouponTag `json:"coupon_tag_list,omitempty"`
141 MemberTagInfo *MemberTagInfo `json:"member_tag_info,omitempty"`
142}
143
144type UserProductCouponEntity struct {
145 CouponCode *string `json:"coupon_code,omitempty"`
146 CouponState *UserProductCouponState `json:"coupon_state,omitempty"`
147 ValidBeginTime *time.Time `json:"valid_begin_time,omitempty"`
148 ValidEndTime *time.Time `json:"valid_end_time,omitempty"`
149 ReceiveTime *string `json:"receive_time,omitempty"`
150 SendRequestNo *string `json:"send_request_no,omitempty"`
151 SendChannel *UserProductCouponSendChannel `json:"send_channel,omitempty"`
152 ConfirmRequestNo *string `json:"confirm_request_no,omitempty"`
153 ConfirmTime *time.Time `json:"confirm_time,omitempty"`
154 DeactivateRequestNo *string `json:"deactivate_request_no,omitempty"`
155 DeactivateTime *string `json:"deactivate_time,omitempty"`
156 DeactivateReason *string `json:"deactivate_reason,omitempty"`
157 ProgressiveBundleUsageDetail *CouponUsageDetail `json:"progressive_bundle_usage_detail,omitempty"`
158 UserProductCouponBundleInfo *UserProductCouponBundleInfo `json:"user_product_coupon_bundle_info,omitempty"`
159 ProductCoupon *ProductCouponEntity `json:"product_coupon,omitempty"`
160 Stock *StockEntity `json:"stock,omitempty"`
161 Attach *string `json:"attach,omitempty"`
162 ChannelCustomInfo *string `json:"channel_custom_info,omitempty"`
163 CouponTagInfo *CouponTagInfo `json:"coupon_tag_info,omitempty"`
164}
165
166type UserProductCouponTag string
167
168func (e UserProductCouponTag) Ptr() *UserProductCouponTag {
169 return &e
170}
171
172const (
173 USERPRODUCTCOUPONTAG_MEMBER UserProductCouponTag = "MEMBER"
174 USERPRODUCTCOUPONTAG_MEMBER_ACTIVITY UserProductCouponTag = "MEMBER_ACTIVITY"
175)
176
177type MemberTagInfo struct {
178 MemberCardId *string `json:"member_card_id,omitempty"`
179}
180
181type UserProductCouponState string
182
183func (e UserProductCouponState) Ptr() *UserProductCouponState {
184 return &e
185}
186
187const (
188 USERPRODUCTCOUPONSTATE_CONFIRMING UserProductCouponState = "CONFIRMING"
189 USERPRODUCTCOUPONSTATE_PENDING UserProductCouponState = "PENDING"
190 USERPRODUCTCOUPONSTATE_EFFECTIVE UserProductCouponState = "EFFECTIVE"
191 USERPRODUCTCOUPONSTATE_USED UserProductCouponState = "USED"
192 USERPRODUCTCOUPONSTATE_EXPIRED UserProductCouponState = "EXPIRED"
193 USERPRODUCTCOUPONSTATE_DELETED UserProductCouponState = "DELETED"
194 USERPRODUCTCOUPONSTATE_DEACTIVATED UserProductCouponState = "DEACTIVATED"
195)
196
197type UserProductCouponSendChannel string
198
199func (e UserProductCouponSendChannel) Ptr() *UserProductCouponSendChannel {
200 return &e
201}
202
203const (
204 USERPRODUCTCOUPONSENDCHANNEL_BRAND_MANAGE UserProductCouponSendChannel = "BRAND_MANAGE"
205 USERPRODUCTCOUPONSENDCHANNEL_API UserProductCouponSendChannel = "API"
206 USERPRODUCTCOUPONSENDCHANNEL_RECEIVE_COMPONENT UserProductCouponSendChannel = "RECEIVE_COMPONENT"
207 USERPRODUCTCOUPONSENDCHANNEL_MEMBER UserProductCouponSendChannel = "MEMBER"
208 USERPRODUCTCOUPONSENDCHANNEL_STICKER_GIFT UserProductCouponSendChannel = "STICKER_GIFT"
209)
210
211type CouponUsageDetail struct {
212 UseRequestNo *string `json:"use_request_no,omitempty"`
213 UseTime *time.Time `json:"use_time,omitempty"`
214 ReturnRequestNo *string `json:"return_request_no,omitempty"`
215 ReturnTime *time.Time `json:"return_time,omitempty"`
216 AssociatedOrderInfo *UserProductCouponAssociatedOrderInfo `json:"associated_order_info,omitempty"`
217 AssociatedPayScoreOrderInfo *UserProductCouponAssociatedPayScoreOrderInfo `json:"associated_pay_score_order_info,omitempty"`
218 SavedAmount *int64 `json:"saved_amount,omitempty"`
219 UseProductNoList []string `json:"use_product_no_list,omitempty"`
220}
221
222type UserProductCouponBundleInfo struct {
223 UserCouponBundleId *string `json:"user_coupon_bundle_id,omitempty"`
224 UserCouponBundleIndex *int64 `json:"user_coupon_bundle_index,omitempty"`
225 TotalCount *int64 `json:"total_count,omitempty"`
226 UsedCount *int64 `json:"used_count,omitempty"`
227}
228
229type ProductCouponEntity struct {
230 ProductCouponId *string `json:"product_coupon_id,omitempty"`
231 Scope *ProductCouponScope `json:"scope,omitempty"`
232 Type *ProductCouponType `json:"type,omitempty"`
233 UsageMode *UsageMode `json:"usage_mode,omitempty"`
234 SingleUsageInfo *SingleUsageInfo `json:"single_usage_info,omitempty"`
235 ProgressiveBundleUsageInfo *ProgressiveBundleUsageInfo `json:"progressive_bundle_usage_info,omitempty"`
236 DisplayInfo *ProductCouponDisplayInfo `json:"display_info,omitempty"`
237 OutProductNo *string `json:"out_product_no,omitempty"`
238 State *ProductCouponState `json:"state,omitempty"`
239 DeactivateRequestNo *string `json:"deactivate_request_no,omitempty"`
240 DeactivateTime *string `json:"deactivate_time,omitempty"`
241 DeactivateReason *string `json:"deactivate_reason,omitempty"`
242 ShowAsExchange *bool `json:"show_as_exchange,omitempty"`
243 AvailableProductNoList []string `json:"available_product_no_list,omitempty"`
244 BusinessMode *ProductCouponBusinessMode `json:"business_mode,omitempty"`
245}
246
247type StockEntity struct {
248 ProductCouponId *string `json:"product_coupon_id,omitempty"`
249 StockId *string `json:"stock_id,omitempty"`
250 Remark *string `json:"remark,omitempty"`
251 CouponCodeMode *CouponCodeMode `json:"coupon_code_mode,omitempty"`
252 CouponCodeCountInfo *CouponCodeCountInfo `json:"coupon_code_count_info,omitempty"`
253 StockSendRule *StockSendRule `json:"stock_send_rule,omitempty"`
254 ProgressiveBundleUsageRule *StockUsageRule `json:"progressive_bundle_usage_rule,omitempty"`
255 StockBundleInfo *StockBundleInfo `json:"stock_bundle_info,omitempty"`
256 UsageRuleDisplayInfo *UsageRuleDisplayInfo `json:"usage_rule_display_info,omitempty"`
257 CouponDisplayInfo *CouponDisplayInfo `json:"coupon_display_info,omitempty"`
258 NotifyConfig *NotifyConfig `json:"notify_config,omitempty"`
259 StoreScope *StockStoreScope `json:"store_scope,omitempty"`
260 SentCountInfo *StockSentCountInfo `json:"sent_count_info,omitempty"`
261 State *StockState `json:"state,omitempty"`
262 DeactivateRequestNo *string `json:"deactivate_request_no,omitempty"`
263 DeactivateTime *time.Time `json:"deactivate_time,omitempty"`
264 DeactivateReason *string `json:"deactivate_reason,omitempty"`
265}
266
267type UserProductCouponAssociatedOrderInfo struct {
268 TransactionId *string `json:"transaction_id,omitempty"`
269 OutTradeNo *string `json:"out_trade_no,omitempty"`
270 Mchid *string `json:"mchid,omitempty"`
271 SubMchid *string `json:"sub_mchid,omitempty"`
272}
273
274type UserProductCouponAssociatedPayScoreOrderInfo struct {
275 OrderId *string `json:"order_id,omitempty"`
276 OutOrderNo *string `json:"out_order_no,omitempty"`
277 Mchid *string `json:"mchid,omitempty"`
278 SubMchid *string `json:"sub_mchid,omitempty"`
279}
280
281type ProductCouponScope string
282
283func (e ProductCouponScope) Ptr() *ProductCouponScope {
284 return &e
285}
286
287const (
288 PRODUCTCOUPONSCOPE_ALL ProductCouponScope = "ALL"
289 PRODUCTCOUPONSCOPE_SINGLE ProductCouponScope = "SINGLE"
290 PRODUCTCOUPONSCOPE_CATEGORY ProductCouponScope = "CATEGORY"
291)
292
293type ProductCouponType string
294
295func (e ProductCouponType) Ptr() *ProductCouponType {
296 return &e
297}
298
299const (
300 PRODUCTCOUPONTYPE_NORMAL ProductCouponType = "NORMAL"
301 PRODUCTCOUPONTYPE_DISCOUNT ProductCouponType = "DISCOUNT"
302 PRODUCTCOUPONTYPE_EXCHANGE ProductCouponType = "EXCHANGE"
303)
304
305type UsageMode string
306
307func (e UsageMode) Ptr() *UsageMode {
308 return &e
309}
310
311const (
312 USAGEMODE_SINGLE UsageMode = "SINGLE"
313 USAGEMODE_PROGRESSIVE_BUNDLE UsageMode = "PROGRESSIVE_BUNDLE"
314)
315
316type SingleUsageInfo struct {
317 NormalCoupon *NormalCouponUsageRule `json:"normal_coupon,omitempty"`
318 DiscountCoupon *DiscountCouponUsageRule `json:"discount_coupon,omitempty"`
319}
320
321type ProgressiveBundleUsageInfo struct {
322 Count *int64 `json:"count,omitempty"`
323 IntervalDays *int64 `json:"interval_days,omitempty"`
324}
325
326type ProductCouponDisplayInfo struct {
327 Name *string `json:"name,omitempty"`
328 ImageUrl *string `json:"image_url,omitempty"`
329 BackgroundUrl *string `json:"background_url,omitempty"`
330 DetailImageUrlList []string `json:"detail_image_url_list,omitempty"`
331 OriginalPrice *int64 `json:"original_price,omitempty"`
332 ComboPackageList []ComboPackage `json:"combo_package_list,omitempty"`
333}
334
335type ProductCouponState string
336
337func (e ProductCouponState) Ptr() *ProductCouponState {
338 return &e
339}
340
341const (
342 PRODUCTCOUPONSTATE_AUDITING ProductCouponState = "AUDITING"
343 PRODUCTCOUPONSTATE_EFFECTIVE ProductCouponState = "EFFECTIVE"
344 PRODUCTCOUPONSTATE_DEACTIVATED ProductCouponState = "DEACTIVATED"
345)
346
347type ProductCouponBusinessMode string
348
349func (e ProductCouponBusinessMode) Ptr() *ProductCouponBusinessMode {
350 return &e
351}
352
353const (
354 PRODUCTCOUPONBUSINESSMODE_FREE ProductCouponBusinessMode = "FREE"
355)
356
357type CouponCodeMode string
358
359func (e CouponCodeMode) Ptr() *CouponCodeMode {
360 return &e
361}
362
363const (
364 COUPONCODEMODE_WECHATPAY CouponCodeMode = "WECHATPAY"
365 COUPONCODEMODE_UPLOAD CouponCodeMode = "UPLOAD"
366)
367
368type CouponCodeCountInfo struct {
369 TotalCount *int64 `json:"total_count,omitempty"`
370 AvailableCount *int64 `json:"available_count,omitempty"`
371}
372
373type StockSendRule struct {
374 MaxCount *int64 `json:"max_count,omitempty"`
375 MaxCountPerDay *int64 `json:"max_count_per_day,omitempty"`
376 MaxCountPerUser *int64 `json:"max_count_per_user,omitempty"`
377}
378
379type StockUsageRule struct {
380 CouponAvailablePeriod *CouponAvailablePeriod `json:"coupon_available_period,omitempty"`
381 NormalCoupon *NormalCouponUsageRule `json:"normal_coupon,omitempty"`
382 DiscountCoupon *DiscountCouponUsageRule `json:"discount_coupon,omitempty"`
383 ExchangeCoupon *ExchangeCouponUsageRule `json:"exchange_coupon,omitempty"`
384}
385
386type StockBundleInfo struct {
387 StockBundleId *string `json:"stock_bundle_id,omitempty"`
388 StockBundleIndex *int64 `json:"stock_bundle_index,omitempty"`
389}
390
391type UsageRuleDisplayInfo struct {
392 CouponUsageMethodList []CouponUsageMethod `json:"coupon_usage_method_list,omitempty"`
393 MiniProgramAppid *string `json:"mini_program_appid,omitempty"`
394 MiniProgramPath *string `json:"mini_program_path,omitempty"`
395 AppPath *string `json:"app_path,omitempty"`
396 UsageDescription *string `json:"usage_description,omitempty"`
397 CouponAvailableStoreInfo *CouponAvailableStoreInfo `json:"coupon_available_store_info,omitempty"`
398 AppJumpType *AppJumpType `json:"app_jump_type,omitempty"`
399 PasscodeLink *string `json:"passcode_link,omitempty"`
400}
401
402type CouponDisplayInfo struct {
403 CodeDisplayMode *CouponCodeDisplayMode `json:"code_display_mode,omitempty"`
404 BackgroundColor *string `json:"background_color,omitempty"`
405 EntranceMiniProgram *EntranceMiniProgram `json:"entrance_mini_program,omitempty"`
406 EntranceOfficialAccount *EntranceOfficialAccount `json:"entrance_official_account,omitempty"`
407}
408
409type NotifyConfig struct {
410 NotifyAppid *string `json:"notify_appid,omitempty"`
411}
412
413type StockStoreScope string
414
415func (e StockStoreScope) Ptr() *StockStoreScope {
416 return &e
417}
418
419const (
420 STOCKSTORESCOPE_NONE StockStoreScope = "NONE"
421 STOCKSTORESCOPE_ALL StockStoreScope = "ALL"
422 STOCKSTORESCOPE_SPECIFIC StockStoreScope = "SPECIFIC"
423)
424
425type StockSentCountInfo struct {
426 TotalCount *int64 `json:"total_count,omitempty"`
427 TodayCount *int64 `json:"today_count,omitempty"`
428}
429
430type StockState string
431
432func (e StockState) Ptr() *StockState {
433 return &e
434}
435
436const (
437 STOCKSTATE_AUDITING StockState = "AUDITING"
438 STOCKSTATE_SENDING StockState = "SENDING"
439 STOCKSTATE_PAUSED StockState = "PAUSED"
440 STOCKSTATE_STOPPED StockState = "STOPPED"
441 STOCKSTATE_DEACTIVATED StockState = "DEACTIVATED"
442)
443
444type NormalCouponUsageRule struct {
445 Threshold *int64 `json:"threshold,omitempty"`
446 DiscountAmount *int64 `json:"discount_amount,omitempty"`
447}
448
449type DiscountCouponUsageRule struct {
450 Threshold *int64 `json:"threshold,omitempty"`
451 PercentOff *int64 `json:"percent_off,omitempty"`
452}
453
454type ComboPackage struct {
455 Name *string `json:"name,omitempty"`
456 PickCount *int64 `json:"pick_count,omitempty"`
457 ChoiceList []ComboPackageChoice `json:"choice_list,omitempty"`
458}
459
460type CouponAvailablePeriod struct {
461 AvailableBeginTime *string `json:"available_begin_time,omitempty"`
462 AvailableEndTime *string `json:"available_end_time,omitempty"`
463 AvailableDays *int64 `json:"available_days,omitempty"`
464 WaitDaysAfterReceive *int64 `json:"wait_days_after_receive,omitempty"`
465 WeeklyAvailablePeriod *FixedWeekPeriod `json:"weekly_available_period,omitempty"`
466 IrregularAvailablePeriodList []TimePeriod `json:"irregular_available_period_list,omitempty"`
467 AvailableSeconds *int64 `json:"available_seconds,omitempty"`
468}
469
470type ExchangeCouponUsageRule struct {
471 Threshold *int64 `json:"threshold,omitempty"`
472 ExchangePrice *int64 `json:"exchange_price,omitempty"`
473}
474
475type CouponUsageMethod string
476
477func (e CouponUsageMethod) Ptr() *CouponUsageMethod {
478 return &e
479}
480
481const (
482 COUPONUSAGEMETHOD_OFFLINE CouponUsageMethod = "OFFLINE"
483 COUPONUSAGEMETHOD_MINI_PROGRAM CouponUsageMethod = "MINI_PROGRAM"
484 COUPONUSAGEMETHOD_APP CouponUsageMethod = "APP"
485 COUPONUSAGEMETHOD_PAYMENT_CODE CouponUsageMethod = "PAYMENT_CODE"
486)
487
488type CouponAvailableStoreInfo struct {
489 Description *string `json:"description,omitempty"`
490 MiniProgramAppid *string `json:"mini_program_appid,omitempty"`
491 MiniProgramPath *string `json:"mini_program_path,omitempty"`
492}
493
494type AppJumpType string
495
496func (e AppJumpType) Ptr() *AppJumpType {
497 return &e
498}
499
500const (
501 APPJUMPTYPE_H5 AppJumpType = "H5"
502 APPJUMPTYPE_PASSCODE_LINK AppJumpType = "PASSCODE_LINK"
503 APPJUMPTYPE_USAGE_GUIDE AppJumpType = "USAGE_GUIDE"
504)
505
506type CouponCodeDisplayMode string
507
508func (e CouponCodeDisplayMode) Ptr() *CouponCodeDisplayMode {
509 return &e
510}
511
512const (
513 COUPONCODEDISPLAYMODE_INVISIBLE CouponCodeDisplayMode = "INVISIBLE"
514 COUPONCODEDISPLAYMODE_BARCODE CouponCodeDisplayMode = "BARCODE"
515 COUPONCODEDISPLAYMODE_QRCODE CouponCodeDisplayMode = "QRCODE"
516)
517
518type EntranceMiniProgram struct {
519 Appid *string `json:"appid,omitempty"`
520 Path *string `json:"path,omitempty"`
521 EntranceWording *string `json:"entrance_wording,omitempty"`
522 GuidanceWording *string `json:"guidance_wording,omitempty"`
523}
524
525type EntranceOfficialAccount struct {
526 Appid *string `json:"appid,omitempty"`
527}
528
529type ComboPackageChoice struct {
530 Name *string `json:"name,omitempty"`
531 Price *int64 `json:"price,omitempty"`
532 Count *int64 `json:"count,omitempty"`
533 ImageUrl *string `json:"image_url,omitempty"`
534 MiniProgramAppid *string `json:"mini_program_appid,omitempty"`
535 MiniProgramPath *string `json:"mini_program_path,omitempty"`
536}
537
538type FixedWeekPeriod struct {
539 DayList []WeekEnum `json:"day_list,omitempty"`
540 DayPeriodList []PeriodOfTheDay `json:"day_period_list,omitempty"`
541}
542
543type TimePeriod struct {
544 BeginTime *string `json:"begin_time,omitempty"`
545 EndTime *string `json:"end_time,omitempty"`
546}
547
548type WeekEnum string
549
550func (e WeekEnum) Ptr() *WeekEnum {
551 return &e
552}
553
554const (
555 WEEKENUM_MONDAY WeekEnum = "MONDAY"
556 WEEKENUM_TUESDAY WeekEnum = "TUESDAY"
557 WEEKENUM_WEDNESDAY WeekEnum = "WEDNESDAY"
558 WEEKENUM_THURSDAY WeekEnum = "THURSDAY"
559 WEEKENUM_FRIDAY WeekEnum = "FRIDAY"
560 WEEKENUM_SATURDAY WeekEnum = "SATURDAY"
561 WEEKENUM_SUNDAY WeekEnum = "SUNDAY"
562)
563
564type PeriodOfTheDay struct {
565 BeginTime *int64 `json:"begin_time,omitempty"`
566 EndTime *int64 `json:"end_time,omitempty"`
567}
568