-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.pb.go
1531 lines (1356 loc) · 57.3 KB
/
user.pb.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// 微信小程序接口-用户信息 weixin-miniprogram
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.6.0
// source: wx-miniprogram/user.proto
package wx_miniprogram
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type GetPluginOpenPIdReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // 接口调用凭证,该参数为 URL 参数,非 Body 参数。使用access_token或者authorizer_access_token
Body *GetPluginOpenPIdReq_Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // 通过 wx.pluginLogin 获得的插件用户标志凭证 code,有效时间为5分钟,一个 code 只能获取一次 openpid。
}
func (x *GetPluginOpenPIdReq) Reset() {
*x = GetPluginOpenPIdReq{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetPluginOpenPIdReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPluginOpenPIdReq) ProtoMessage() {}
func (x *GetPluginOpenPIdReq) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPluginOpenPIdReq.ProtoReflect.Descriptor instead.
func (*GetPluginOpenPIdReq) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{0}
}
func (x *GetPluginOpenPIdReq) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *GetPluginOpenPIdReq) GetBody() *GetPluginOpenPIdReq_Body {
if x != nil {
return x.Body
}
return nil
}
type GetPluginOpenPidRes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Errcode int32 `protobuf:"varint,1,opt,name=errcode,proto3" json:"errcode,omitempty"` // 错误码
Errmsg string `protobuf:"bytes,2,opt,name=errmsg,proto3" json:"errmsg,omitempty"` // 错误信息
Openpid string `protobuf:"bytes,3,opt,name=openpid,proto3" json:"openpid,omitempty"` // 插件用户的唯一标识。
}
func (x *GetPluginOpenPidRes) Reset() {
*x = GetPluginOpenPidRes{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetPluginOpenPidRes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPluginOpenPidRes) ProtoMessage() {}
func (x *GetPluginOpenPidRes) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPluginOpenPidRes.ProtoReflect.Descriptor instead.
func (*GetPluginOpenPidRes) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{1}
}
func (x *GetPluginOpenPidRes) GetErrcode() int32 {
if x != nil {
return x.Errcode
}
return 0
}
func (x *GetPluginOpenPidRes) GetErrmsg() string {
if x != nil {
return x.Errmsg
}
return ""
}
func (x *GetPluginOpenPidRes) GetOpenpid() string {
if x != nil {
return x.Openpid
}
return ""
}
type CheckEncryptedDataReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // 接口调用凭证,该参数为 URL 参数,非 Body 参数。使用access_token或者authorizer_access_token
Body *CheckEncryptedDataReq_Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
}
func (x *CheckEncryptedDataReq) Reset() {
*x = CheckEncryptedDataReq{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CheckEncryptedDataReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CheckEncryptedDataReq) ProtoMessage() {}
func (x *CheckEncryptedDataReq) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CheckEncryptedDataReq.ProtoReflect.Descriptor instead.
func (*CheckEncryptedDataReq) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{2}
}
func (x *CheckEncryptedDataReq) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *CheckEncryptedDataReq) GetBody() *CheckEncryptedDataReq_Body {
if x != nil {
return x.Body
}
return nil
}
type CheckEncryptedDataRes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Errcode int32 `protobuf:"varint,1,opt,name=errcode,proto3" json:"errcode,omitempty"` // 错误码
Errmsg string `protobuf:"bytes,2,opt,name=errmsg,proto3" json:"errmsg,omitempty"`
Valid bool `protobuf:"varint,3,opt,name=valid,proto3" json:"valid,omitempty"` // 是否是合法的数据
CreateTime int64 `protobuf:"varint,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 加密数据生成的时间戳
}
func (x *CheckEncryptedDataRes) Reset() {
*x = CheckEncryptedDataRes{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CheckEncryptedDataRes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CheckEncryptedDataRes) ProtoMessage() {}
func (x *CheckEncryptedDataRes) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CheckEncryptedDataRes.ProtoReflect.Descriptor instead.
func (*CheckEncryptedDataRes) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{3}
}
func (x *CheckEncryptedDataRes) GetErrcode() int32 {
if x != nil {
return x.Errcode
}
return 0
}
func (x *CheckEncryptedDataRes) GetErrmsg() string {
if x != nil {
return x.Errmsg
}
return ""
}
func (x *CheckEncryptedDataRes) GetValid() bool {
if x != nil {
return x.Valid
}
return false
}
func (x *CheckEncryptedDataRes) GetCreateTime() int64 {
if x != nil {
return x.CreateTime
}
return 0
}
type GetPaidUnionidReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // 接口调用凭证,该参数为 URL 参数,非 Body 参数。使用access_token或者authorizer_access_token
Openid string `protobuf:"bytes,2,opt,name=openid,proto3" json:"openid,omitempty"` // 支付用户唯一标识
TransactionId string `protobuf:"bytes,3,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // 微信支付订单号
MchId string `protobuf:"bytes,4,opt,name=mch_id,json=mchId,proto3" json:"mch_id,omitempty"` // 微信支付分配的商户号,和商户订单号配合使用
OutTradeNo string `protobuf:"bytes,5,opt,name=out_trade_no,json=outTradeNo,proto3" json:"out_trade_no,omitempty"` // 微信支付商户订单号,和商户号配合使用
}
func (x *GetPaidUnionidReq) Reset() {
*x = GetPaidUnionidReq{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetPaidUnionidReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPaidUnionidReq) ProtoMessage() {}
func (x *GetPaidUnionidReq) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPaidUnionidReq.ProtoReflect.Descriptor instead.
func (*GetPaidUnionidReq) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{4}
}
func (x *GetPaidUnionidReq) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *GetPaidUnionidReq) GetOpenid() string {
if x != nil {
return x.Openid
}
return ""
}
func (x *GetPaidUnionidReq) GetTransactionId() string {
if x != nil {
return x.TransactionId
}
return ""
}
func (x *GetPaidUnionidReq) GetMchId() string {
if x != nil {
return x.MchId
}
return ""
}
func (x *GetPaidUnionidReq) GetOutTradeNo() string {
if x != nil {
return x.OutTradeNo
}
return ""
}
type GetPaidUnionidRes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Errcode int32 `protobuf:"varint,1,opt,name=errcode,proto3" json:"errcode,omitempty"`
Errmsg string `protobuf:"bytes,2,opt,name=errmsg,proto3" json:"errmsg,omitempty"`
Unionid string `protobuf:"bytes,3,opt,name=unionid,proto3" json:"unionid,omitempty"` // 用户唯一标识,调用成功后返回
}
func (x *GetPaidUnionidRes) Reset() {
*x = GetPaidUnionidRes{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetPaidUnionidRes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPaidUnionidRes) ProtoMessage() {}
func (x *GetPaidUnionidRes) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPaidUnionidRes.ProtoReflect.Descriptor instead.
func (*GetPaidUnionidRes) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{5}
}
func (x *GetPaidUnionidRes) GetErrcode() int32 {
if x != nil {
return x.Errcode
}
return 0
}
func (x *GetPaidUnionidRes) GetErrmsg() string {
if x != nil {
return x.Errmsg
}
return ""
}
func (x *GetPaidUnionidRes) GetUnionid() string {
if x != nil {
return x.Unionid
}
return ""
}
type GetUserEncryptKeyReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // 接口调用凭证,该参数为 URL 参数,非 Body 参数。使用access_token或者authorizer_access_token
Body *GetUserEncryptKeyReq_Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
}
func (x *GetUserEncryptKeyReq) Reset() {
*x = GetUserEncryptKeyReq{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetUserEncryptKeyReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUserEncryptKeyReq) ProtoMessage() {}
func (x *GetUserEncryptKeyReq) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetUserEncryptKeyReq.ProtoReflect.Descriptor instead.
func (*GetUserEncryptKeyReq) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{6}
}
func (x *GetUserEncryptKeyReq) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *GetUserEncryptKeyReq) GetBody() *GetUserEncryptKeyReq_Body {
if x != nil {
return x.Body
}
return nil
}
type GetUserEncryptKeyRes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Errcode int32 `protobuf:"varint,1,opt,name=errcode,proto3" json:"errcode,omitempty"`
Errmsg string `protobuf:"bytes,2,opt,name=errmsg,proto3" json:"errmsg,omitempty"`
KeyInfoList []*GetUserEncryptKeyRes_KeyInfo `protobuf:"bytes,3,rep,name=key_info_list,json=keyInfoList,proto3" json:"key_info_list,omitempty"` // 用户最近三次的加密 key 列表
}
func (x *GetUserEncryptKeyRes) Reset() {
*x = GetUserEncryptKeyRes{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetUserEncryptKeyRes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUserEncryptKeyRes) ProtoMessage() {}
func (x *GetUserEncryptKeyRes) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetUserEncryptKeyRes.ProtoReflect.Descriptor instead.
func (*GetUserEncryptKeyRes) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{7}
}
func (x *GetUserEncryptKeyRes) GetErrcode() int32 {
if x != nil {
return x.Errcode
}
return 0
}
func (x *GetUserEncryptKeyRes) GetErrmsg() string {
if x != nil {
return x.Errmsg
}
return ""
}
func (x *GetUserEncryptKeyRes) GetKeyInfoList() []*GetUserEncryptKeyRes_KeyInfo {
if x != nil {
return x.KeyInfoList
}
return nil
}
type GetPhoneNumberReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // 接口调用凭证,该参数为 URL 参数,非 Body 参数。使用access_token或者authorizer_access_token
Body *GetPhoneNumberReq_Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
}
func (x *GetPhoneNumberReq) Reset() {
*x = GetPhoneNumberReq{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetPhoneNumberReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPhoneNumberReq) ProtoMessage() {}
func (x *GetPhoneNumberReq) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPhoneNumberReq.ProtoReflect.Descriptor instead.
func (*GetPhoneNumberReq) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{8}
}
func (x *GetPhoneNumberReq) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *GetPhoneNumberReq) GetBody() *GetPhoneNumberReq_Body {
if x != nil {
return x.Body
}
return nil
}
type GetPhoneNumberRes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Errcode int32 `protobuf:"varint,1,opt,name=errcode,proto3" json:"errcode,omitempty"`
Errmsg string `protobuf:"bytes,2,opt,name=errmsg,proto3" json:"errmsg,omitempty"`
PhoneInfo *GetPhoneNumberRes_PhoneInfo `protobuf:"bytes,3,opt,name=phone_info,json=phoneInfo,proto3" json:"phone_info,omitempty"` // 用户手机号信息
}
func (x *GetPhoneNumberRes) Reset() {
*x = GetPhoneNumberRes{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetPhoneNumberRes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPhoneNumberRes) ProtoMessage() {}
func (x *GetPhoneNumberRes) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPhoneNumberRes.ProtoReflect.Descriptor instead.
func (*GetPhoneNumberRes) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{9}
}
func (x *GetPhoneNumberRes) GetErrcode() int32 {
if x != nil {
return x.Errcode
}
return 0
}
func (x *GetPhoneNumberRes) GetErrmsg() string {
if x != nil {
return x.Errmsg
}
return ""
}
func (x *GetPhoneNumberRes) GetPhoneInfo() *GetPhoneNumberRes_PhoneInfo {
if x != nil {
return x.PhoneInfo
}
return nil
}
type GetPluginOpenPIdReq_Body struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
}
func (x *GetPluginOpenPIdReq_Body) Reset() {
*x = GetPluginOpenPIdReq_Body{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetPluginOpenPIdReq_Body) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPluginOpenPIdReq_Body) ProtoMessage() {}
func (x *GetPluginOpenPIdReq_Body) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPluginOpenPIdReq_Body.ProtoReflect.Descriptor instead.
func (*GetPluginOpenPIdReq_Body) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{0, 0}
}
func (x *GetPluginOpenPIdReq_Body) GetCode() string {
if x != nil {
return x.Code
}
return ""
}
type CheckEncryptedDataReq_Body struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
EncryptedMsgHash string `protobuf:"bytes,1,opt,name=encrypted_msg_hash,json=encryptedMsgHash,proto3" json:"encrypted_msg_hash,omitempty"` // 加密数据的sha256,通过Hex(Base16)编码后的字符串
}
func (x *CheckEncryptedDataReq_Body) Reset() {
*x = CheckEncryptedDataReq_Body{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CheckEncryptedDataReq_Body) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CheckEncryptedDataReq_Body) ProtoMessage() {}
func (x *CheckEncryptedDataReq_Body) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CheckEncryptedDataReq_Body.ProtoReflect.Descriptor instead.
func (*CheckEncryptedDataReq_Body) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{2, 0}
}
func (x *CheckEncryptedDataReq_Body) GetEncryptedMsgHash() string {
if x != nil {
return x.EncryptedMsgHash
}
return ""
}
type GetUserEncryptKeyReq_Body struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Openid string `protobuf:"bytes,1,opt,name=openid,proto3" json:"openid,omitempty"` // 用户的openid
Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // 用 sessionkey 对空字符串签名得到的结果。session_key可通过code2Session接口获得。
SigMethod string `protobuf:"bytes,3,opt,name=sig_method,json=sigMethod,proto3" json:"sig_method,omitempty"` // 签名方法,只支持 hmac_sha256
}
func (x *GetUserEncryptKeyReq_Body) Reset() {
*x = GetUserEncryptKeyReq_Body{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetUserEncryptKeyReq_Body) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUserEncryptKeyReq_Body) ProtoMessage() {}
func (x *GetUserEncryptKeyReq_Body) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetUserEncryptKeyReq_Body.ProtoReflect.Descriptor instead.
func (*GetUserEncryptKeyReq_Body) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{6, 0}
}
func (x *GetUserEncryptKeyReq_Body) GetOpenid() string {
if x != nil {
return x.Openid
}
return ""
}
func (x *GetUserEncryptKeyReq_Body) GetSignature() string {
if x != nil {
return x.Signature
}
return ""
}
func (x *GetUserEncryptKeyReq_Body) GetSigMethod() string {
if x != nil {
return x.SigMethod
}
return ""
}
type GetUserEncryptKeyRes_KeyInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
EncryptKey string `protobuf:"bytes,1,opt,name=encrypt_key,json=encryptKey,proto3" json:"encrypt_key,omitempty"` // 加密key
Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // key的版本号
ExpireIn int64 `protobuf:"varint,3,opt,name=expire_in,json=expireIn,proto3" json:"expire_in,omitempty"` // 剩余有效时间
Iv string `protobuf:"bytes,4,opt,name=iv,proto3" json:"iv,omitempty"` // 加密iv
CreateTime int64 `protobuf:"varint,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 创建 key 的时间戳
}
func (x *GetUserEncryptKeyRes_KeyInfo) Reset() {
*x = GetUserEncryptKeyRes_KeyInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetUserEncryptKeyRes_KeyInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUserEncryptKeyRes_KeyInfo) ProtoMessage() {}
func (x *GetUserEncryptKeyRes_KeyInfo) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetUserEncryptKeyRes_KeyInfo.ProtoReflect.Descriptor instead.
func (*GetUserEncryptKeyRes_KeyInfo) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{7, 0}
}
func (x *GetUserEncryptKeyRes_KeyInfo) GetEncryptKey() string {
if x != nil {
return x.EncryptKey
}
return ""
}
func (x *GetUserEncryptKeyRes_KeyInfo) GetVersion() int64 {
if x != nil {
return x.Version
}
return 0
}
func (x *GetUserEncryptKeyRes_KeyInfo) GetExpireIn() int64 {
if x != nil {
return x.ExpireIn
}
return 0
}
func (x *GetUserEncryptKeyRes_KeyInfo) GetIv() string {
if x != nil {
return x.Iv
}
return ""
}
func (x *GetUserEncryptKeyRes_KeyInfo) GetCreateTime() int64 {
if x != nil {
return x.CreateTime
}
return 0
}
type GetPhoneNumberReq_Body struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // 手机号获取凭证
}
func (x *GetPhoneNumberReq_Body) Reset() {
*x = GetPhoneNumberReq_Body{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetPhoneNumberReq_Body) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPhoneNumberReq_Body) ProtoMessage() {}
func (x *GetPhoneNumberReq_Body) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[14]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPhoneNumberReq_Body.ProtoReflect.Descriptor instead.
func (*GetPhoneNumberReq_Body) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{8, 0}
}
func (x *GetPhoneNumberReq_Body) GetCode() string {
if x != nil {
return x.Code
}
return ""
}
type GetPhoneNumberRes_PhoneInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
PhoneNumber string `protobuf:"bytes,1,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` //用户绑定的手机号(国外手机号会有区号)
PurePhoneNumber string `protobuf:"bytes,2,opt,name=purePhoneNumber,proto3" json:"purePhoneNumber,omitempty"` // 没有区号的手机号
CountryCode string `protobuf:"bytes,3,opt,name=countryCode,proto3" json:"countryCode,omitempty"` // 区号
Watermark *GetPhoneNumberRes_Watermark `protobuf:"bytes,4,opt,name=watermark,proto3" json:"watermark,omitempty"` // 数据水印
}
func (x *GetPhoneNumberRes_PhoneInfo) Reset() {
*x = GetPhoneNumberRes_PhoneInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_wx_miniprogram_user_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetPhoneNumberRes_PhoneInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPhoneNumberRes_PhoneInfo) ProtoMessage() {}
func (x *GetPhoneNumberRes_PhoneInfo) ProtoReflect() protoreflect.Message {
mi := &file_wx_miniprogram_user_proto_msgTypes[15]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPhoneNumberRes_PhoneInfo.ProtoReflect.Descriptor instead.
func (*GetPhoneNumberRes_PhoneInfo) Descriptor() ([]byte, []int) {
return file_wx_miniprogram_user_proto_rawDescGZIP(), []int{9, 0}
}
func (x *GetPhoneNumberRes_PhoneInfo) GetPhoneNumber() string {
if x != nil {
return x.PhoneNumber
}
return ""
}
func (x *GetPhoneNumberRes_PhoneInfo) GetPurePhoneNumber() string {
if x != nil {
return x.PurePhoneNumber
}
return ""
}
func (x *GetPhoneNumberRes_PhoneInfo) GetCountryCode() string {
if x != nil {
return x.CountryCode
}
return ""
}
func (x *GetPhoneNumberRes_PhoneInfo) GetWatermark() *GetPhoneNumberRes_Watermark {
if x != nil {
return x.Watermark
}
return nil
}