From 99e1fa2f512212d3ed23f7a57ad326990181f619 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期四, 01 八月 2019 18:58:35 +0800 Subject: [PATCH] change feature to str --- protomsg.pb.go | 48 +++++++++++++++++++++++------------------------- 1 files changed, 23 insertions(+), 25 deletions(-) diff --git a/protomsg.pb.go b/protomsg.pb.go index 87828e4..f5c9b5d 100644 --- a/protomsg.pb.go +++ b/protomsg.pb.go @@ -2637,7 +2637,7 @@ 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"` PersonId string `protobuf:"bytes,3,opt,name=person_id,json=personId,proto3" json:"person_id,omitempty"` - Feature []byte `protobuf:"bytes,4,opt,name=feature,proto3" json:"feature,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"` } @@ -2695,11 +2695,11 @@ return "" } -func (m *EsPersonCacheChange) GetFeature() []byte { +func (m *EsPersonCacheChange) GetFeature() string { if m != nil { return m.Feature } - return nil + return "" } func (m *EsPersonCacheChange) GetAction() DbAction { @@ -2750,7 +2750,7 @@ func init() { proto.RegisterFile("protomsg.proto", fileDescriptor_32de24555f916688) } var fileDescriptor_32de24555f916688 = []byte{ - // 2368 bytes of a gzipped FileDescriptorProto + // 2367 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x58, 0x4b, 0x6f, 0x1c, 0xc7, 0xf1, 0xe7, 0xec, 0x7b, 0x6a, 0x1f, 0x5a, 0xb5, 0xf4, 0xb7, 0xc7, 0xf2, 0x5f, 0x34, 0x35, 0x91, 0x61, 0x42, 0xb0, 0x95, 0x80, 0xd2, 0x29, 0x87, 0x00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x92, 0x73, 0xd7, 0xe8, 0x74, 0x9c, 0x4a, 0x79, 0x90, 0x26, 0x67, 0xf1, 0x7a, 0x0e, + 0x4f, 0x9e, 0xc2, 0xa8, 0xbc, 0x18, 0x6a, 0xb2, 0x48, 0xb4, 0x50, 0xf9, 0x7c, 0x0b, 0xd7, 0xaf, + 0x68, 0xa8, 0x9e, 0x3b, 0xb8, 0x3e, 0x14, 0x52, 0xe4, 0x62, 0xde, 0x79, 0xf2, 0x1c, 0x66, 0x6d, + 0x57, 0x18, 0x9d, 0x0f, 0x97, 0x64, 0x89, 0xf9, 0x96, 0xd1, 0xca, 0x92, 0xc6, 0xbf, 0x73, 0xe7, + 0x4b, 0xef, 0xaf, 0x6f, 0xb6, 0x9d, 0x6f, 0xdf, 0x6c, 0x3b, 0xff, 0x78, 0xb3, 0xed, 0xfc, 0xfe, + 0xed, 0xf6, 0xd6, 0xb7, 0x6f, 0xb7, 0xb7, 0xfe, 0xfe, 0x76, 0x7b, 0x6b, 0x39, 0x20, 0xfb, 0x3e, + 0xfb, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x9d, 0xd5, 0xfd, 0xfd, 0x16, 0x00, 0x00, } func (m *Area) Marshal() (dAtA []byte, err error) { @@ -12538,7 +12538,7 @@ if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Feature", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowProtomsg @@ -12548,25 +12548,23 @@ } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthProtomsg } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthProtomsg } if postIndex > l { return io.ErrUnexpectedEOF } - m.Feature = append(m.Feature[:0], dAtA[iNdEx:postIndex]...) - if m.Feature == nil { - m.Feature = []byte{} - } + m.Feature = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 0 { -- Gitblit v1.8.0