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