From ad6c105f7a2b6f97322cf84364579bee079f25e2 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 01 八月 2019 20:25:04 +0800
Subject: [PATCH] change table_id to arr

---
 protomsg.proto |    2 
 protomsg.pb.go |   64 +++++++++++++++++++-------------
 2 files changed, 39 insertions(+), 27 deletions(-)

diff --git a/protomsg.pb.go b/protomsg.pb.go
index f5c9b5d..9b614ea 100644
--- a/protomsg.pb.go
+++ b/protomsg.pb.go
@@ -2635,7 +2635,7 @@
 
 type EsPersonCacheChange struct {
 	Type     EsCacheChanged `protobuf:"varint,1,opt,name=type,proto3,enum=protomsg.EsCacheChanged" json:"type,omitempty"`
-	TableId  string         `protobuf:"bytes,2,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
+	TableId  []string       `protobuf:"bytes,2,rep,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
 	PersonId string         `protobuf:"bytes,3,opt,name=person_id,json=personId,proto3" json:"person_id,omitempty"`
 	Feature  string         `protobuf:"bytes,4,opt,name=feature,proto3" json:"feature,omitempty"`
 	Action   DbAction       `protobuf:"varint,5,opt,name=action,proto3,enum=protomsg.DbAction" json:"action,omitempty"`
@@ -2681,11 +2681,11 @@
 	return EsCacheChanged_T_DbTable
 }
 
-func (m *EsPersonCacheChange) GetTableId() string {
+func (m *EsPersonCacheChange) GetTableId() []string {
 	if m != nil {
 		return m.TableId
 	}
-	return ""
+	return nil
 }
 
 func (m *EsPersonCacheChange) GetPersonId() string {
@@ -2750,7 +2750,7 @@
 func init() { proto.RegisterFile("protomsg.proto", fileDescriptor_32de24555f916688) }
 
 var fileDescriptor_32de24555f916688 = []byte{
-	// 2367 bytes of a gzipped FileDescriptorProto
+	// 2369 bytes of a gzipped FileDescriptorProto
 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x58, 0x4b, 0x6f, 0x1c, 0xc7,
 	0xf1, 0xe7, 0xec, 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x4d, 0x04, 0xdb, 0xc4, 0xbc, 0xc3,
+	0x00, 0x06, 0xa7, 0x21, 0x49, 0x74, 0xd9, 0x14, 0x5c, 0xb3, 0x3e, 0x89, 0x2e, 0xe6, 0x3d, 0x76,
+	0x17, 0xa6, 0x15, 0x89, 0x21, 0x39, 0xef, 0x33, 0x17, 0xfa, 0xa7, 0x21, 0x72, 0x07, 0xec, 0x1e,
+	0xdc, 0x29, 0xb7, 0xb3, 0x63, 0xc0, 0x7c, 0xc8, 0x66, 0x00, 0xa7, 0xe1, 0xa9, 0x7d, 0xf6, 0xcf,
+	0x47, 0x46, 0x27, 0x53, 0x24, 0xe7, 0xae, 0xd1, 0xe9, 0x38, 0x95, 0xf2, 0x20, 0x4d, 0xce, 0xe2,
+	0xf5, 0x1c, 0x9e, 0x3c, 0x85, 0x51, 0x79, 0x31, 0xd4, 0x64, 0x91, 0x68, 0xa1, 0xf2, 0xf9, 0x16,
+	0xae, 0x5f, 0xd1, 0x50, 0x3d, 0x77, 0x70, 0x7d, 0x28, 0xa4, 0xc8, 0xc5, 0xbc, 0xf3, 0xe4, 0x39,
+	0xcc, 0xda, 0xae, 0x30, 0x3a, 0x1f, 0x2e, 0xc9, 0x12, 0xf3, 0x2d, 0xa3, 0x95, 0x25, 0x8d, 0x7f,
+	0xe7, 0xce, 0x97, 0xde, 0x5f, 0xdf, 0x6c, 0x3b, 0xdf, 0xbe, 0xd9, 0x76, 0xfe, 0xf1, 0x66, 0xdb,
+	0xf9, 0xfd, 0xdb, 0xed, 0xad, 0x6f, 0xdf, 0x6e, 0x6f, 0xfd, 0xfd, 0xed, 0xf6, 0xd6, 0x72, 0x40,
+	0xf6, 0x7d, 0xf6, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcb, 0xb5, 0x60, 0x5d, 0xfd, 0x16, 0x00,
+	0x00,
 }
 
 func (m *Area) Marshal() (dAtA []byte, err error) {
@@ -4750,10 +4751,19 @@
 		i = encodeVarintProtomsg(dAtA, i, uint64(m.Type))
 	}
 	if len(m.TableId) > 0 {
-		dAtA[i] = 0x12
-		i++
-		i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TableId)))
-		i += copy(dAtA[i:], m.TableId)
+		for _, s := range m.TableId {
+			dAtA[i] = 0x12
+			i++
+			l = len(s)
+			for l >= 1<<7 {
+				dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
+				l >>= 7
+				i++
+			}
+			dAtA[i] = uint8(l)
+			i++
+			i += copy(dAtA[i:], s)
+		}
 	}
 	if len(m.PersonId) > 0 {
 		dAtA[i] = 0x1a
@@ -5764,9 +5774,11 @@
 	if m.Type != 0 {
 		n += 1 + sovProtomsg(uint64(m.Type))
 	}
-	l = len(m.TableId)
-	if l > 0 {
-		n += 1 + l + sovProtomsg(uint64(l))
+	if len(m.TableId) > 0 {
+		for _, s := range m.TableId {
+			l = len(s)
+			n += 1 + l + sovProtomsg(uint64(l))
+		}
 	}
 	l = len(m.PersonId)
 	if l > 0 {
@@ -12500,7 +12512,7 @@
 			if postIndex > l {
 				return io.ErrUnexpectedEOF
 			}
-			m.TableId = string(dAtA[iNdEx:postIndex])
+			m.TableId = append(m.TableId, string(dAtA[iNdEx:postIndex]))
 			iNdEx = postIndex
 		case 3:
 			if wireType != 2 {
diff --git a/protomsg.proto b/protomsg.proto
index 1993742..20b03e6 100644
--- a/protomsg.proto
+++ b/protomsg.proto
@@ -313,7 +313,7 @@
 
 message EsPersonCacheChange {
     EsCacheChanged type = 1;
-    string table_id = 2;//搴曞簱id
+    repeated string table_id = 2;//搴曞簱id
     string person_id = 3;//浜哄憳id
     string feature = 4;//鐗瑰緛鍊糱ase64
     DbAction action = 5;

--
Gitblit v1.8.0