-
Notifications
You must be signed in to change notification settings - Fork 7
/
mapgoo.paas.event.pb.go
2239 lines (1999 loc) · 74.7 KB
/
mapgoo.paas.event.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: mapgoo.paas.event.proto
package api
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Any from public import github.com/golang/protobuf/ptypes/any/any.proto
type Any = any.Any
//业务类型
type EM_BUSSI_TYPE int32
const (
//默认值
EM_BUSSI_TYPE_EM_BUSSITYPE_DEFAULT EM_BUSSI_TYPE = 0
//用户事件
EM_BUSSI_TYPE_EM_BUSSITYPE_USER EM_BUSSI_TYPE = 1
//设备事件
EM_BUSSI_TYPE_EM_BUSSITYPE_DEVICE EM_BUSSI_TYPE = 2
//卡事件
EM_BUSSI_TYPE_EM_BUSSITYPE_CARD EM_BUSSI_TYPE = 3
)
var EM_BUSSI_TYPE_name = map[int32]string{
0: "EM_BUSSITYPE_DEFAULT",
1: "EM_BUSSITYPE_USER",
2: "EM_BUSSITYPE_DEVICE",
3: "EM_BUSSITYPE_CARD",
}
var EM_BUSSI_TYPE_value = map[string]int32{
"EM_BUSSITYPE_DEFAULT": 0,
"EM_BUSSITYPE_USER": 1,
"EM_BUSSITYPE_DEVICE": 2,
"EM_BUSSITYPE_CARD": 3,
}
func (x EM_BUSSI_TYPE) String() string {
return proto.EnumName(EM_BUSSI_TYPE_name, int32(x))
}
func (EM_BUSSI_TYPE) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_7872585e88629cc5, []int{0}
}
//类型子类
type EM_SUB_TYPE int32
const (
//默认值
EM_SUB_TYPE_EM_SUBTYPE_DEFAULT EM_SUB_TYPE = 0
//app手机、微信公众号关注的注册、注销
EM_SUB_TYPE_EM_SUBTYPE_USERREG EM_SUB_TYPE = 1
//用户绑定、解绑
EM_SUB_TYPE_EM_SUBTYPE_USERBIND EM_SUB_TYPE = 2
//新版添加、卡变更
EM_SUB_TYPE_EM_SUBTYPE_DEVICESELFREG EM_SUB_TYPE = 3
//旧版添加、卡变更
EM_SUB_TYPE_EM_SUBTYPE_DEVICEOLDSELFREG EM_SUB_TYPE = 4
//web设备添加
EM_SUB_TYPE_EM_SUBTYPE_DEVICEADD EM_SUB_TYPE = 5
//web设备删除
EM_SUB_TYPE_EM_SUBTYPE_DEVICEDEL EM_SUB_TYPE = 6
//web设备转移
EM_SUB_TYPE_EM_SUBTYPE_DEVICEMOVE EM_SUB_TYPE = 7
//设备激活
EM_SUB_TYPE_EM_SUBTYPE_DEVICEACTIVATE EM_SUB_TYPE = 8
//设备续费
EM_SUB_TYPE_EM_SUBTYPE_DEVICERENEWALS EM_SUB_TYPE = 9
//设备过期
EM_SUB_TYPE_EM_SUBTYPE_DEVICEEXPIRE EM_SUB_TYPE = 10
//设备上线、离线
EM_SUB_TYPE_EM_SUBTYPE_DEVICEONLINE EM_SUB_TYPE = 11
//行程启动、熄火
EM_SUB_TYPE_EM_SUBTYPE_DEVICETRAVEL EM_SUB_TYPE = 12
//告警开始、结束
EM_SUB_TYPE_EM_SUBTYPE_DEVICEALARM EM_SUB_TYPE = 13
//行政区域变更
EM_SUB_TYPE_EM_SUBTYPE_DEVICEREGION EM_SUB_TYPE = 14
//直播开始、结束
EM_SUB_TYPE_EM_SUBTYPE_DEVICELIVE EM_SUB_TYPE = 15
//视频上报和图片上报
EM_SUB_TYPE_EM_SUBTYPE_DEVICEMEDIA EM_SUB_TYPE = 16
//人脸识别结果
EM_SUB_TYPE_EM_SUBTYPE_DEVICERECOGNITION EM_SUB_TYPE = 17
//acc状态变更
EM_SUB_TYPE_EM_SUBTYPE_DEVICEACCSTATUS EM_SUB_TYPE = 18
//卡实名
EM_SUB_TYPE_EM_SUBTYPE_SIMREALNAME EM_SUB_TYPE = 19
//卡续费
EM_SUB_TYPE_EM_SUBTYPE_SIMRENEWALS EM_SUB_TYPE = 20
//卡调档(删除)
EM_SUB_TYPE_EM_SUBTYPE_SIMUPDATEMEAL EM_SUB_TYPE = 21
//机卡分离
EM_SUB_TYPE_EM_SUBTYPE_SIMSEPARATEDEVICE EM_SUB_TYPE = 22
//卡变更
EM_SUB_TYPE_EM_SUBTYPE_SIMMODIFY EM_SUB_TYPE = 23
)
var EM_SUB_TYPE_name = map[int32]string{
0: "EM_SUBTYPE_DEFAULT",
1: "EM_SUBTYPE_USERREG",
2: "EM_SUBTYPE_USERBIND",
3: "EM_SUBTYPE_DEVICESELFREG",
4: "EM_SUBTYPE_DEVICEOLDSELFREG",
5: "EM_SUBTYPE_DEVICEADD",
6: "EM_SUBTYPE_DEVICEDEL",
7: "EM_SUBTYPE_DEVICEMOVE",
8: "EM_SUBTYPE_DEVICEACTIVATE",
9: "EM_SUBTYPE_DEVICERENEWALS",
10: "EM_SUBTYPE_DEVICEEXPIRE",
11: "EM_SUBTYPE_DEVICEONLINE",
12: "EM_SUBTYPE_DEVICETRAVEL",
13: "EM_SUBTYPE_DEVICEALARM",
14: "EM_SUBTYPE_DEVICEREGION",
15: "EM_SUBTYPE_DEVICELIVE",
16: "EM_SUBTYPE_DEVICEMEDIA",
17: "EM_SUBTYPE_DEVICERECOGNITION",
18: "EM_SUBTYPE_DEVICEACCSTATUS",
19: "EM_SUBTYPE_SIMREALNAME",
20: "EM_SUBTYPE_SIMRENEWALS",
21: "EM_SUBTYPE_SIMUPDATEMEAL",
22: "EM_SUBTYPE_SIMSEPARATEDEVICE",
23: "EM_SUBTYPE_SIMMODIFY",
}
var EM_SUB_TYPE_value = map[string]int32{
"EM_SUBTYPE_DEFAULT": 0,
"EM_SUBTYPE_USERREG": 1,
"EM_SUBTYPE_USERBIND": 2,
"EM_SUBTYPE_DEVICESELFREG": 3,
"EM_SUBTYPE_DEVICEOLDSELFREG": 4,
"EM_SUBTYPE_DEVICEADD": 5,
"EM_SUBTYPE_DEVICEDEL": 6,
"EM_SUBTYPE_DEVICEMOVE": 7,
"EM_SUBTYPE_DEVICEACTIVATE": 8,
"EM_SUBTYPE_DEVICERENEWALS": 9,
"EM_SUBTYPE_DEVICEEXPIRE": 10,
"EM_SUBTYPE_DEVICEONLINE": 11,
"EM_SUBTYPE_DEVICETRAVEL": 12,
"EM_SUBTYPE_DEVICEALARM": 13,
"EM_SUBTYPE_DEVICEREGION": 14,
"EM_SUBTYPE_DEVICELIVE": 15,
"EM_SUBTYPE_DEVICEMEDIA": 16,
"EM_SUBTYPE_DEVICERECOGNITION": 17,
"EM_SUBTYPE_DEVICEACCSTATUS": 18,
"EM_SUBTYPE_SIMREALNAME": 19,
"EM_SUBTYPE_SIMRENEWALS": 20,
"EM_SUBTYPE_SIMUPDATEMEAL": 21,
"EM_SUBTYPE_SIMSEPARATEDEVICE": 22,
"EM_SUBTYPE_SIMMODIFY": 23,
}
func (x EM_SUB_TYPE) String() string {
return proto.EnumName(EM_SUB_TYPE_name, int32(x))
}
func (EM_SUB_TYPE) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_7872585e88629cc5, []int{1}
}
//请求数据
type EventReq struct {
//流水号
Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
//时间戳
Time uint64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
//业务类型
BussiType EM_BUSSI_TYPE `protobuf:"varint,3,opt,name=bussi_type,json=bussiType,proto3,enum=mapgoo.event.EM_BUSSI_TYPE" json:"bussi_type,omitempty"`
//类型子类
SubType EM_SUB_TYPE `protobuf:"varint,4,opt,name=sub_type,json=subType,proto3,enum=mapgoo.event.EM_SUB_TYPE" json:"sub_type,omitempty"`
//事件数据
Details *any.Any `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EventReq) Reset() { *m = EventReq{} }
func (m *EventReq) String() string { return proto.CompactTextString(m) }
func (*EventReq) ProtoMessage() {}
func (*EventReq) Descriptor() ([]byte, []int) {
return fileDescriptor_7872585e88629cc5, []int{0}
}
func (m *EventReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EventReq.Unmarshal(m, b)
}
func (m *EventReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EventReq.Marshal(b, m, deterministic)
}
func (m *EventReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventReq.Merge(m, src)
}
func (m *EventReq) XXX_Size() int {
return xxx_messageInfo_EventReq.Size(m)
}
func (m *EventReq) XXX_DiscardUnknown() {
xxx_messageInfo_EventReq.DiscardUnknown(m)
}
var xxx_messageInfo_EventReq proto.InternalMessageInfo
func (m *EventReq) GetSequence() uint64 {
if m != nil {
return m.Sequence
}
return 0
}
func (m *EventReq) GetTime() uint64 {
if m != nil {
return m.Time
}
return 0
}
func (m *EventReq) GetBussiType() EM_BUSSI_TYPE {
if m != nil {
return m.BussiType
}
return EM_BUSSI_TYPE_EM_BUSSITYPE_DEFAULT
}
func (m *EventReq) GetSubType() EM_SUB_TYPE {
if m != nil {
return m.SubType
}
return EM_SUB_TYPE_EM_SUBTYPE_DEFAULT
}
func (m *EventReq) GetDetails() *any.Any {
if m != nil {
return m.Details
}
return nil
}
//一、用户事件
//1.用户注册、注销
//app手机、微信公众号关注的注册、注销
type UserRegEvent struct {
//注册类型
RegisterType uint32 `protobuf:"varint,1,opt,name=register_type,json=registerType,proto3" json:"register_type,omitempty"`
//用户ID
UserId uint32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
//用户
UserName uint32 `protobuf:"varint,3,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
//应用ID
AppId string `protobuf:"bytes,4,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
//app名称
AppName string `protobuf:"bytes,5,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
//微信唯一ID
UnionId string `protobuf:"bytes,6,opt,name=union_id,json=unionId,proto3" json:"union_id,omitempty"`
//手机号
Mobile string `protobuf:"bytes,7,opt,name=mobile,proto3" json:"mobile,omitempty"`
//app版本
AppVersion string `protobuf:"bytes,8,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
//app用户id
AndroidUserId string `protobuf:"bytes,9,opt,name=android_user_id,json=androidUserId,proto3" json:"android_user_id,omitempty"`
//类型(0:注销,1:注册)
OperType uint32 `protobuf:"varint,10,opt,name=oper_type,json=operType,proto3" json:"oper_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UserRegEvent) Reset() { *m = UserRegEvent{} }
func (m *UserRegEvent) String() string { return proto.CompactTextString(m) }
func (*UserRegEvent) ProtoMessage() {}
func (*UserRegEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_7872585e88629cc5, []int{1}
}
func (m *UserRegEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UserRegEvent.Unmarshal(m, b)
}
func (m *UserRegEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UserRegEvent.Marshal(b, m, deterministic)
}
func (m *UserRegEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_UserRegEvent.Merge(m, src)
}
func (m *UserRegEvent) XXX_Size() int {
return xxx_messageInfo_UserRegEvent.Size(m)
}
func (m *UserRegEvent) XXX_DiscardUnknown() {
xxx_messageInfo_UserRegEvent.DiscardUnknown(m)
}
var xxx_messageInfo_UserRegEvent proto.InternalMessageInfo
func (m *UserRegEvent) GetRegisterType() uint32 {
if m != nil {
return m.RegisterType
}
return 0
}
func (m *UserRegEvent) GetUserId() uint32 {
if m != nil {
return m.UserId
}
return 0
}
func (m *UserRegEvent) GetUserName() uint32 {
if m != nil {
return m.UserName
}
return 0
}
func (m *UserRegEvent) GetAppId() string {
if m != nil {
return m.AppId
}
return ""
}
func (m *UserRegEvent) GetAppName() string {
if m != nil {
return m.AppName
}
return ""
}
func (m *UserRegEvent) GetUnionId() string {
if m != nil {
return m.UnionId
}
return ""
}
func (m *UserRegEvent) GetMobile() string {
if m != nil {
return m.Mobile
}
return ""
}
func (m *UserRegEvent) GetAppVersion() string {
if m != nil {
return m.AppVersion
}
return ""
}
func (m *UserRegEvent) GetAndroidUserId() string {
if m != nil {
return m.AndroidUserId
}
return ""
}
func (m *UserRegEvent) GetOperType() uint32 {
if m != nil {
return m.OperType
}
return 0
}
//2.用户绑定相关
//用户绑定、解绑
type UserBindEvent struct {
//是否管理员
IsAdmin bool `protobuf:"varint,1,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
//用户ID
UserId uint32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
//设备ID
ObjectId uint32 `protobuf:"varint,3,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
//设备imei
Imei string `protobuf:"bytes,4,opt,name=imei,proto3" json:"imei,omitempty"`
//sim卡号
Iccid string `protobuf:"bytes,5,opt,name=iccid,proto3" json:"iccid,omitempty"`
//类型(0:解绑,1:绑定)
OperType string `protobuf:"bytes,6,opt,name=oper_type,json=operType,proto3" json:"oper_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UserBindEvent) Reset() { *m = UserBindEvent{} }
func (m *UserBindEvent) String() string { return proto.CompactTextString(m) }
func (*UserBindEvent) ProtoMessage() {}
func (*UserBindEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_7872585e88629cc5, []int{2}
}
func (m *UserBindEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UserBindEvent.Unmarshal(m, b)
}
func (m *UserBindEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UserBindEvent.Marshal(b, m, deterministic)
}
func (m *UserBindEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_UserBindEvent.Merge(m, src)
}
func (m *UserBindEvent) XXX_Size() int {
return xxx_messageInfo_UserBindEvent.Size(m)
}
func (m *UserBindEvent) XXX_DiscardUnknown() {
xxx_messageInfo_UserBindEvent.DiscardUnknown(m)
}
var xxx_messageInfo_UserBindEvent proto.InternalMessageInfo
func (m *UserBindEvent) GetIsAdmin() bool {
if m != nil {
return m.IsAdmin
}
return false
}
func (m *UserBindEvent) GetUserId() uint32 {
if m != nil {
return m.UserId
}
return 0
}
func (m *UserBindEvent) GetObjectId() uint32 {
if m != nil {
return m.ObjectId
}
return 0
}
func (m *UserBindEvent) GetImei() string {
if m != nil {
return m.Imei
}
return ""
}
func (m *UserBindEvent) GetIccid() string {
if m != nil {
return m.Iccid
}
return ""
}
func (m *UserBindEvent) GetOperType() string {
if m != nil {
return m.OperType
}
return ""
}
//二、设备事件
//1.设备自注册
//新版添加、卡变更
type DeviceSelfRegisterEvent struct {
//设备id和imei
DeviceId *DeviceId `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
//用户ID
HoldId string `protobuf:"bytes,2,opt,name=hold_id,json=holdId,proto3" json:"hold_id,omitempty"`
//终端类型ID
MdtTypeId string `protobuf:"bytes,3,opt,name=mdt_type_id,json=mdtTypeId,proto3" json:"mdt_type_id,omitempty"`
//IMEI号
Imei string `protobuf:"bytes,4,opt,name=imei,proto3" json:"imei,omitempty"`
//设备apk版本号
ApkVersion string `protobuf:"bytes,5,opt,name=apk_version,json=apkVersion,proto3" json:"apk_version,omitempty"`
//sim卡号
Iccid string `protobuf:"bytes,6,opt,name=iccid,proto3" json:"iccid,omitempty"`
//原IMEI号
OrginalImei string `protobuf:"bytes,7,opt,name=orginal_imei,json=orginalImei,proto3" json:"orginal_imei,omitempty"`
//apk产品类型
AppKey string `protobuf:"bytes,8,opt,name=app_key,json=appKey,proto3" json:"app_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeviceSelfRegisterEvent) Reset() { *m = DeviceSelfRegisterEvent{} }
func (m *DeviceSelfRegisterEvent) String() string { return proto.CompactTextString(m) }
func (*DeviceSelfRegisterEvent) ProtoMessage() {}
func (*DeviceSelfRegisterEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_7872585e88629cc5, []int{3}
}
func (m *DeviceSelfRegisterEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceSelfRegisterEvent.Unmarshal(m, b)
}
func (m *DeviceSelfRegisterEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceSelfRegisterEvent.Marshal(b, m, deterministic)
}
func (m *DeviceSelfRegisterEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceSelfRegisterEvent.Merge(m, src)
}
func (m *DeviceSelfRegisterEvent) XXX_Size() int {
return xxx_messageInfo_DeviceSelfRegisterEvent.Size(m)
}
func (m *DeviceSelfRegisterEvent) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceSelfRegisterEvent.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceSelfRegisterEvent proto.InternalMessageInfo
func (m *DeviceSelfRegisterEvent) GetDeviceId() *DeviceId {
if m != nil {
return m.DeviceId
}
return nil
}
func (m *DeviceSelfRegisterEvent) GetHoldId() string {
if m != nil {
return m.HoldId
}
return ""
}
func (m *DeviceSelfRegisterEvent) GetMdtTypeId() string {
if m != nil {
return m.MdtTypeId
}
return ""
}
func (m *DeviceSelfRegisterEvent) GetImei() string {
if m != nil {
return m.Imei
}
return ""
}
func (m *DeviceSelfRegisterEvent) GetApkVersion() string {
if m != nil {
return m.ApkVersion
}
return ""
}
func (m *DeviceSelfRegisterEvent) GetIccid() string {
if m != nil {
return m.Iccid
}
return ""
}
func (m *DeviceSelfRegisterEvent) GetOrginalImei() string {
if m != nil {
return m.OrginalImei
}
return ""
}
func (m *DeviceSelfRegisterEvent) GetAppKey() string {
if m != nil {
return m.AppKey
}
return ""
}
//旧版添加、卡变更
type DeviceOldSelfRegisterEvent struct {
//设备id和imei
DeviceId *DeviceId `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
//用户ID
HoldId uint32 `protobuf:"varint,2,opt,name=hold_id,json=holdId,proto3" json:"hold_id,omitempty"`
//终端类型ID
MdtTypeId uint32 `protobuf:"varint,3,opt,name=mdt_type_id,json=mdtTypeId,proto3" json:"mdt_type_id,omitempty"`
//设备apk版本号
ApkVersion string `protobuf:"bytes,4,opt,name=apk_version,json=apkVersion,proto3" json:"apk_version,omitempty"`
//sim卡号
Sim string `protobuf:"bytes,5,opt,name=sim,proto3" json:"sim,omitempty"`
//是否变更
IsModify uint32 `protobuf:"varint,6,opt,name=is_modify,json=isModify,proto3" json:"is_modify,omitempty"`
//原IMEI号,不带其他字符
OriginalImei string `protobuf:"bytes,7,opt,name=original_imei,json=originalImei,proto3" json:"original_imei,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeviceOldSelfRegisterEvent) Reset() { *m = DeviceOldSelfRegisterEvent{} }
func (m *DeviceOldSelfRegisterEvent) String() string { return proto.CompactTextString(m) }
func (*DeviceOldSelfRegisterEvent) ProtoMessage() {}
func (*DeviceOldSelfRegisterEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_7872585e88629cc5, []int{4}
}
func (m *DeviceOldSelfRegisterEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceOldSelfRegisterEvent.Unmarshal(m, b)
}
func (m *DeviceOldSelfRegisterEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceOldSelfRegisterEvent.Marshal(b, m, deterministic)
}
func (m *DeviceOldSelfRegisterEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceOldSelfRegisterEvent.Merge(m, src)
}
func (m *DeviceOldSelfRegisterEvent) XXX_Size() int {
return xxx_messageInfo_DeviceOldSelfRegisterEvent.Size(m)
}
func (m *DeviceOldSelfRegisterEvent) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceOldSelfRegisterEvent.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceOldSelfRegisterEvent proto.InternalMessageInfo
func (m *DeviceOldSelfRegisterEvent) GetDeviceId() *DeviceId {
if m != nil {
return m.DeviceId
}
return nil
}
func (m *DeviceOldSelfRegisterEvent) GetHoldId() uint32 {
if m != nil {
return m.HoldId
}
return 0
}
func (m *DeviceOldSelfRegisterEvent) GetMdtTypeId() uint32 {
if m != nil {
return m.MdtTypeId
}
return 0
}
func (m *DeviceOldSelfRegisterEvent) GetApkVersion() string {
if m != nil {
return m.ApkVersion
}
return ""
}
func (m *DeviceOldSelfRegisterEvent) GetSim() string {
if m != nil {
return m.Sim
}
return ""
}
func (m *DeviceOldSelfRegisterEvent) GetIsModify() uint32 {
if m != nil {
return m.IsModify
}
return 0
}
func (m *DeviceOldSelfRegisterEvent) GetOriginalImei() string {
if m != nil {
return m.OriginalImei
}
return ""
}
//2.设备
//web设备添加
type DeviceAddEvent struct {
//设备id和imei
DeviceId *DeviceId `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
//终端类型ID
MdtTypeId uint32 `protobuf:"varint,2,opt,name=mdt_type_id,json=mdtTypeId,proto3" json:"mdt_type_id,omitempty"`
//sim卡号
Sim string `protobuf:"bytes,3,opt,name=sim,proto3" json:"sim,omitempty"`
//设备名称
ObjName string `protobuf:"bytes,4,opt,name=obj_name,json=objName,proto3" json:"obj_name,omitempty"`
//用户ID
Holdid uint32 `protobuf:"varint,5,opt,name=holdid,proto3" json:"holdid,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeviceAddEvent) Reset() { *m = DeviceAddEvent{} }
func (m *DeviceAddEvent) String() string { return proto.CompactTextString(m) }
func (*DeviceAddEvent) ProtoMessage() {}
func (*DeviceAddEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_7872585e88629cc5, []int{5}
}
func (m *DeviceAddEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceAddEvent.Unmarshal(m, b)
}
func (m *DeviceAddEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceAddEvent.Marshal(b, m, deterministic)
}
func (m *DeviceAddEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceAddEvent.Merge(m, src)
}
func (m *DeviceAddEvent) XXX_Size() int {
return xxx_messageInfo_DeviceAddEvent.Size(m)
}
func (m *DeviceAddEvent) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceAddEvent.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceAddEvent proto.InternalMessageInfo
func (m *DeviceAddEvent) GetDeviceId() *DeviceId {
if m != nil {
return m.DeviceId
}
return nil
}
func (m *DeviceAddEvent) GetMdtTypeId() uint32 {
if m != nil {
return m.MdtTypeId
}
return 0
}
func (m *DeviceAddEvent) GetSim() string {
if m != nil {
return m.Sim
}
return ""
}
func (m *DeviceAddEvent) GetObjName() string {
if m != nil {
return m.ObjName
}
return ""
}
func (m *DeviceAddEvent) GetHoldid() uint32 {
if m != nil {
return m.Holdid
}
return 0
}
//web设备删除
type DeviceDelEvent struct {
//设备id和imei
DeviceId *DeviceId `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeviceDelEvent) Reset() { *m = DeviceDelEvent{} }
func (m *DeviceDelEvent) String() string { return proto.CompactTextString(m) }
func (*DeviceDelEvent) ProtoMessage() {}
func (*DeviceDelEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_7872585e88629cc5, []int{6}
}
func (m *DeviceDelEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceDelEvent.Unmarshal(m, b)
}
func (m *DeviceDelEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceDelEvent.Marshal(b, m, deterministic)
}
func (m *DeviceDelEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceDelEvent.Merge(m, src)
}
func (m *DeviceDelEvent) XXX_Size() int {
return xxx_messageInfo_DeviceDelEvent.Size(m)
}
func (m *DeviceDelEvent) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceDelEvent.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceDelEvent proto.InternalMessageInfo
func (m *DeviceDelEvent) GetDeviceId() *DeviceId {
if m != nil {
return m.DeviceId
}
return nil
}
//web设备转移(objectid统一改为base库中的DeviceId)
type DeviceMoveEvent struct {
//设备id和imei
DeviceId *DeviceId `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
//新用户ID
NewHoldId uint32 `protobuf:"varint,2,opt,name=new_hold_id,json=newHoldId,proto3" json:"new_hold_id,omitempty"`
//旧用户ID
OldHoldId uint32 `protobuf:"varint,3,opt,name=old_hold_id,json=oldHoldId,proto3" json:"old_hold_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeviceMoveEvent) Reset() { *m = DeviceMoveEvent{} }
func (m *DeviceMoveEvent) String() string { return proto.CompactTextString(m) }
func (*DeviceMoveEvent) ProtoMessage() {}
func (*DeviceMoveEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_7872585e88629cc5, []int{7}
}
func (m *DeviceMoveEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceMoveEvent.Unmarshal(m, b)
}
func (m *DeviceMoveEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceMoveEvent.Marshal(b, m, deterministic)
}
func (m *DeviceMoveEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceMoveEvent.Merge(m, src)
}
func (m *DeviceMoveEvent) XXX_Size() int {
return xxx_messageInfo_DeviceMoveEvent.Size(m)
}
func (m *DeviceMoveEvent) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceMoveEvent.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceMoveEvent proto.InternalMessageInfo
func (m *DeviceMoveEvent) GetDeviceId() *DeviceId {
if m != nil {
return m.DeviceId
}
return nil
}
func (m *DeviceMoveEvent) GetNewHoldId() uint32 {
if m != nil {
return m.NewHoldId
}
return 0
}
func (m *DeviceMoveEvent) GetOldHoldId() uint32 {
if m != nil {
return m.OldHoldId
}
return 0
}
//设备激活
type DeviceActivateEvent struct {
//设备id和imei
DeviceId *DeviceId `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
//用户id
Uid uint32 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeviceActivateEvent) Reset() { *m = DeviceActivateEvent{} }
func (m *DeviceActivateEvent) String() string { return proto.CompactTextString(m) }
func (*DeviceActivateEvent) ProtoMessage() {}
func (*DeviceActivateEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_7872585e88629cc5, []int{8}
}
func (m *DeviceActivateEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceActivateEvent.Unmarshal(m, b)
}
func (m *DeviceActivateEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceActivateEvent.Marshal(b, m, deterministic)
}
func (m *DeviceActivateEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceActivateEvent.Merge(m, src)
}
func (m *DeviceActivateEvent) XXX_Size() int {
return xxx_messageInfo_DeviceActivateEvent.Size(m)
}
func (m *DeviceActivateEvent) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceActivateEvent.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceActivateEvent proto.InternalMessageInfo
func (m *DeviceActivateEvent) GetDeviceId() *DeviceId {
if m != nil {
return m.DeviceId
}
return nil
}
func (m *DeviceActivateEvent) GetUid() uint32 {
if m != nil {
return m.Uid
}
return 0
}
//设备续费
type DeviceRenewalsEvent struct {
//设备id和imei
DeviceId *DeviceId `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
//续费周期:year 台年,month 台月,day 台天,long 终身
Period string `protobuf:"bytes,2,opt,name=period,proto3" json:"period,omitempty"`
//数量,代表 n年/n月/n天,终身就1个,不用多想了
Times uint32 `protobuf:"varint,3,opt,name=times,proto3" json:"times,omitempty"`
//计费规则,1按续费当天开始计费,2按过期日期开始计费(针对过期设备)
BillingRule uint32 `protobuf:"varint,4,opt,name=billing_rule,json=billingRule,proto3" json:"billing_rule,omitempty"`
//交易单号
CustomerBillNo string `protobuf:"bytes,5,opt,name=customer_bill_no,json=customerBillNo,proto3" json:"customer_bill_no,omitempty"`
//商户
Merchant string `protobuf:"bytes,6,opt,name=merchant,proto3" json:"merchant,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeviceRenewalsEvent) Reset() { *m = DeviceRenewalsEvent{} }
func (m *DeviceRenewalsEvent) String() string { return proto.CompactTextString(m) }
func (*DeviceRenewalsEvent) ProtoMessage() {}
func (*DeviceRenewalsEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_7872585e88629cc5, []int{9}
}
func (m *DeviceRenewalsEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceRenewalsEvent.Unmarshal(m, b)
}
func (m *DeviceRenewalsEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceRenewalsEvent.Marshal(b, m, deterministic)
}
func (m *DeviceRenewalsEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceRenewalsEvent.Merge(m, src)
}
func (m *DeviceRenewalsEvent) XXX_Size() int {
return xxx_messageInfo_DeviceRenewalsEvent.Size(m)
}
func (m *DeviceRenewalsEvent) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceRenewalsEvent.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceRenewalsEvent proto.InternalMessageInfo
func (m *DeviceRenewalsEvent) GetDeviceId() *DeviceId {
if m != nil {
return m.DeviceId
}
return nil
}
func (m *DeviceRenewalsEvent) GetPeriod() string {
if m != nil {
return m.Period
}
return ""
}
func (m *DeviceRenewalsEvent) GetTimes() uint32 {
if m != nil {
return m.Times
}
return 0
}
func (m *DeviceRenewalsEvent) GetBillingRule() uint32 {
if m != nil {
return m.BillingRule
}
return 0
}
func (m *DeviceRenewalsEvent) GetCustomerBillNo() string {
if m != nil {
return m.CustomerBillNo
}
return ""
}
func (m *DeviceRenewalsEvent) GetMerchant() string {
if m != nil {
return m.Merchant
}
return ""
}
//设备过期
type DeviceExpireEvent struct {
//设备id和imei
DeviceId *DeviceId `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
//服务过期时间
ExpireTime string `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeviceExpireEvent) Reset() { *m = DeviceExpireEvent{} }
func (m *DeviceExpireEvent) String() string { return proto.CompactTextString(m) }
func (*DeviceExpireEvent) ProtoMessage() {}
func (*DeviceExpireEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_7872585e88629cc5, []int{10}
}
func (m *DeviceExpireEvent) XXX_Unmarshal(b []byte) error {