From 81334ff160875799e6b9e5ab4564caa862f11f17 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期一, 19 八月 2019 18:56:53 +0800
Subject: [PATCH] DbPersonCompCache
---
.idea/workspace.xml | 148 +++++++++-------
es.proto | 7
es.pb.go | 383 +++++++++++++++++++++++++++++++++++++----
3 files changed, 432 insertions(+), 106 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 868b2e6..16474de 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -3,7 +3,7 @@
<component name="ChangeListManager">
<list default="true" id="becdd117-1021-4e06-af58-0f70d982f4ee" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/protomsg.proto" beforeDir="false" afterPath="$PROJECT_DIR$/protomsg.proto" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/es.proto" beforeDir="false" afterPath="$PROJECT_DIR$/es.proto" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
@@ -25,23 +25,33 @@
</usages-collector>
<usages-collector id="statistics.file.extensions.edit">
<counts>
- <entry key="proto" value="108" />
+ <entry key="proto" value="250" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
- <entry key="PROTO" value="108" />
+ <entry key="PROTO" value="250" />
+ </counts>
+ </usages-collector>
+ <usages-collector id="statistics.lifecycle.project">
+ <counts>
+ <entry key="project.closed" value="2" />
+ <entry key="project.open.time.1" value="1" />
+ <entry key="project.open.time.11" value="1" />
+ <entry key="project.open.time.2" value="1" />
+ <entry key="project.open.time.23" value="1" />
+ <entry key="project.opened" value="4" />
</counts>
</usages-collector>
</session>
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
- <file pinned="false" current-in-tab="true">
+ <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/protomsg.proto">
<provider selected="true" editor-type-id="text-editor">
- <state relative-caret-position="369">
- <caret line="268" column="26" lean-forward="true" selection-start-line="268" selection-start-column="26" selection-end-line="268" selection-end-column="26" />
+ <state relative-caret-position="5947">
+ <caret line="313" column="27" selection-start-line="313" selection-start-column="8" selection-end-line="313" selection-end-column="27" />
</state>
</provider>
</entry>
@@ -72,8 +82,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/protomsg.pb.go">
<provider selected="true" editor-type-id="text-editor">
- <state relative-caret-position="22781">
- <caret line="1206" column="5" selection-start-line="1206" selection-start-column="5" selection-end-line="1206" selection-end-column="5" />
+ <state relative-caret-position="41515">
+ <caret line="2192" column="13" selection-start-line="2192" selection-start-column="13" selection-end-line="2192" selection-end-column="13" />
<folding>
<element signature="e#96#237#0" expanded="true" />
</folding>
@@ -84,8 +94,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/commsg.proto">
<provider selected="true" editor-type-id="text-editor">
- <state relative-caret-position="58">
- <caret line="8" column="1" lean-forward="true" selection-start-line="8" selection-start-column="1" selection-end-line="8" selection-end-column="1" />
+ <state relative-caret-position="152">
+ <caret line="8" column="1" selection-start-line="8" selection-start-column="1" selection-end-line="8" selection-end-column="1" />
</state>
</provider>
</entry>
@@ -111,11 +121,11 @@
</provider>
</entry>
</file>
- <file pinned="false" current-in-tab="false">
+ <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/es.proto">
<provider selected="true" editor-type-id="text-editor">
- <state relative-caret-position="152">
- <caret line="8" column="27" lean-forward="true" selection-start-line="8" selection-start-column="27" selection-end-line="8" selection-end-column="27" />
+ <state relative-caret-position="285">
+ <caret line="15" column="24" selection-start-line="15" selection-start-column="24" selection-end-line="15" selection-end-column="24" />
</state>
</provider>
</entry>
@@ -128,6 +138,9 @@
<find>float</find>
<find>EsPersonCacheChange</find>
<find>SdkRule</find>
+ <find>enum</find>
+ <find>sdkCompareR</find>
+ <find>SdkCompareEach</find>
</findStrings>
</component>
<component name="GOROOT" path="D:\Go" />
@@ -140,6 +153,7 @@
<option value="$PROJECT_DIR$/sysset.proto" />
<option value="$PROJECT_DIR$/videoperson.proto" />
<option value="$PROJECT_DIR$/protomsg.proto" />
+ <option value="$PROJECT_DIR$/es.proto" />
</list>
</option>
</component>
@@ -159,17 +173,18 @@
</list>
</option>
</component>
- <component name="ProjectFrameBounds" extendedState="6">
- <option name="x" value="260" />
- <option name="y" value="80" />
- <option name="width" value="1400" />
- <option name="height" value="1000" />
+ <component name="ProjectFrameBounds">
+ <option name="x" value="107" />
+ <option name="y" value="68" />
+ <option name="width" value="1678" />
+ <option name="height" value="1052" />
</component>
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
+ <pane id="Scope" />
<pane id="PackagesPane" />
<pane id="ProjectPane">
<subPane>
@@ -182,12 +197,12 @@
<select />
</subPane>
</pane>
- <pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
+ <property name="aspect.path.notification.shown" value="true" />
<property name="go.gopath.indexing.explicitly.defined" value="true" />
<property name="go.import.settings.migrated" value="true" />
<property name="go.sdk.automatically.set" value="true" />
@@ -212,25 +227,29 @@
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
- <changelist id="cbd86148-99ce-4009-9644-ee9b56784bc0" name="Default Changelist" comment="" />
+ <changelist id="becdd117-1021-4e06-af58-0f70d982f4ee" name="Default Changelist" comment="" />
<created>1563790157452</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1563790157452</updated>
<workItem from="1563790158906" duration="685000" />
<workItem from="1563933935696" duration="7991000" />
- <workItem from="1564104352978" duration="13628000" />
+ <workItem from="1564104352978" duration="17732000" />
+ <workItem from="1564968876353" duration="2244000" />
+ <workItem from="1565313761365" duration="597000" />
+ <workItem from="1565337974976" duration="1231000" />
+ <workItem from="1565955759598" duration="3111000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
- <option name="totallyTimeSpent" value="20980000" />
+ <option name="totallyTimeSpent" value="32267000" />
</component>
<component name="ToolWindowManager">
- <frame x="119" y="44" width="1678" height="1052" extended-state="0" />
+ <frame x="107" y="68" width="1678" height="1052" extended-state="0" />
<editor active="true" />
<layout>
- <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.29728058" />
+ <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.31211373" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Image Layers" order="2" />
<window_info id="Designer" order="3" />
@@ -245,7 +264,7 @@
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
- <window_info anchor="bottom" id="Terminal" order="8" visible="true" weight="0.33146697" />
+ <window_info active="true" anchor="bottom" id="Terminal" order="8" visible="true" weight="0.43784994" />
<window_info anchor="bottom" id="Event Log" order="9" side_tool="true" />
<window_info anchor="bottom" id="Version Control" order="10" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
@@ -262,14 +281,48 @@
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
+ <component name="VcsContentAnnotationSettings">
+ <option name="myLimit" value="2678400000" />
+ </component>
<component name="editorHistoryManager">
+ <entry file="file://$PROJECT_DIR$/sdk.proto">
+ <provider selected="true" editor-type-id="text-editor">
+ <state relative-caret-position="1311">
+ <caret line="69" column="25" selection-start-line="69" selection-start-column="25" selection-end-line="69" selection-end-column="25" />
+ </state>
+ </provider>
+ </entry>
+ <entry file="file://$PROJECT_DIR$/base.proto">
+ <provider selected="true" editor-type-id="text-editor">
+ <state relative-caret-position="76">
+ <caret line="4" column="8" selection-start-line="4" selection-start-column="8" selection-end-line="4" selection-end-column="8" />
+ </state>
+ </provider>
+ </entry>
+ <entry file="file://$PROJECT_DIR$/.gitignore">
+ <provider selected="true" editor-type-id="text-editor" />
+ </entry>
+ <entry file="file://$PROJECT_DIR$/videoperson.proto">
+ <provider selected="true" editor-type-id="text-editor">
+ <state relative-caret-position="399">
+ <caret line="21" column="13" selection-start-line="21" selection-start-column="13" selection-end-line="21" selection-end-column="13" />
+ </state>
+ </provider>
+ </entry>
<entry file="file://$PROJECT_DIR$/protomsg.pb.go">
<provider selected="true" editor-type-id="text-editor">
- <state relative-caret-position="22781">
- <caret line="1206" column="5" selection-start-line="1206" selection-start-column="5" selection-end-line="1206" selection-end-column="5" />
+ <state relative-caret-position="41515">
+ <caret line="2192" column="13" selection-start-line="2192" selection-start-column="13" selection-end-line="2192" selection-end-column="13" />
<folding>
<element signature="e#96#237#0" expanded="true" />
</folding>
+ </state>
+ </provider>
+ </entry>
+ <entry file="file://$PROJECT_DIR$/commsg.proto">
+ <provider selected="true" editor-type-id="text-editor">
+ <state relative-caret-position="152">
+ <caret line="8" column="1" selection-start-line="8" selection-start-column="1" selection-end-line="8" selection-end-column="1" />
</state>
</provider>
</entry>
@@ -290,48 +343,17 @@
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/videoperson.proto">
+ <entry file="file://$PROJECT_DIR$/protomsg.proto">
<provider selected="true" editor-type-id="text-editor">
- <state relative-caret-position="399">
- <caret line="21" column="13" selection-start-line="21" selection-start-column="13" selection-end-line="21" selection-end-column="13" />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/sdk.proto">
- <provider selected="true" editor-type-id="text-editor">
- <state relative-caret-position="1311">
- <caret line="69" column="25" selection-start-line="69" selection-start-column="25" selection-end-line="69" selection-end-column="25" />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/.gitignore">
- <provider selected="true" editor-type-id="text-editor" />
- </entry>
- <entry file="file://$PROJECT_DIR$/base.proto">
- <provider selected="true" editor-type-id="text-editor">
- <state relative-caret-position="76">
- <caret line="4" column="8" selection-start-line="4" selection-start-column="8" selection-end-line="4" selection-end-column="8" />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/commsg.proto">
- <provider selected="true" editor-type-id="text-editor">
- <state relative-caret-position="58">
- <caret line="8" column="1" lean-forward="true" selection-start-line="8" selection-start-column="1" selection-end-line="8" selection-end-column="1" />
+ <state relative-caret-position="5947">
+ <caret line="313" column="27" selection-start-line="313" selection-start-column="8" selection-end-line="313" selection-end-column="27" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/es.proto">
<provider selected="true" editor-type-id="text-editor">
- <state relative-caret-position="152">
- <caret line="8" column="27" lean-forward="true" selection-start-line="8" selection-start-column="27" selection-end-line="8" selection-end-column="27" />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/protomsg.proto">
- <provider selected="true" editor-type-id="text-editor">
- <state relative-caret-position="369">
- <caret line="268" column="26" lean-forward="true" selection-start-line="268" selection-start-column="26" selection-end-line="268" selection-end-column="26" />
+ <state relative-caret-position="285">
+ <caret line="15" column="24" selection-start-line="15" selection-start-column="24" selection-end-line="15" selection-end-column="24" />
</state>
</provider>
</entry>
diff --git a/es.pb.go b/es.pb.go
index 32bf8f8..5e62ff0 100644
--- a/es.pb.go
+++ b/es.pb.go
@@ -9,6 +9,7 @@
proto "github.com/gogo/protobuf/proto"
io "io"
math "math"
+ math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
@@ -90,6 +91,74 @@
return 0
}
+type DbPersonCompCache struct {
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+ TableId string `protobuf:"bytes,2,opt,name=tableId,proto3" json:"tableId,omitempty"`
+ FaceFeature string `protobuf:"bytes,3,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"`
+ Enable int32 `protobuf:"varint,4,opt,name=enable,proto3" json:"enable,omitempty"`
+}
+
+func (m *DbPersonCompCache) Reset() { *m = DbPersonCompCache{} }
+func (m *DbPersonCompCache) String() string { return proto.CompactTextString(m) }
+func (*DbPersonCompCache) ProtoMessage() {}
+func (*DbPersonCompCache) Descriptor() ([]byte, []int) {
+ return fileDescriptor_718db5c20d0f3738, []int{1}
+}
+func (m *DbPersonCompCache) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *DbPersonCompCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_DbPersonCompCache.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalTo(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *DbPersonCompCache) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_DbPersonCompCache.Merge(m, src)
+}
+func (m *DbPersonCompCache) XXX_Size() int {
+ return m.Size()
+}
+func (m *DbPersonCompCache) XXX_DiscardUnknown() {
+ xxx_messageInfo_DbPersonCompCache.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_DbPersonCompCache proto.InternalMessageInfo
+
+func (m *DbPersonCompCache) GetId() string {
+ if m != nil {
+ return m.Id
+ }
+ return ""
+}
+
+func (m *DbPersonCompCache) GetTableId() string {
+ if m != nil {
+ return m.TableId
+ }
+ return ""
+}
+
+func (m *DbPersonCompCache) GetFaceFeature() string {
+ if m != nil {
+ return m.FaceFeature
+ }
+ return ""
+}
+
+func (m *DbPersonCompCache) GetEnable() int32 {
+ if m != nil {
+ return m.Enable
+ }
+ return 0
+}
+
type Dbperson struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
TableId string `protobuf:"bytes,2,opt,name=tableId,proto3" json:"tableId,omitempty"`
@@ -114,7 +183,7 @@
func (m *Dbperson) String() string { return proto.CompactTextString(m) }
func (*Dbperson) ProtoMessage() {}
func (*Dbperson) Descriptor() ([]byte, []int) {
- return fileDescriptor_718db5c20d0f3738, []int{1}
+ return fileDescriptor_718db5c20d0f3738, []int{2}
}
func (m *Dbperson) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -284,7 +353,7 @@
func (m *Dbtable) String() string { return proto.CompactTextString(m) }
func (*Dbtable) ProtoMessage() {}
func (*Dbtable) Descriptor() ([]byte, []int) {
- return fileDescriptor_718db5c20d0f3738, []int{2}
+ return fileDescriptor_718db5c20d0f3738, []int{3}
}
func (m *Dbtable) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -420,6 +489,7 @@
func init() {
proto.RegisterType((*Esinfo)(nil), "protomsg.Esinfo")
+ proto.RegisterType((*DbPersonCompCache)(nil), "protomsg.DbPersonCompCache")
proto.RegisterType((*Dbperson)(nil), "protomsg.Dbperson")
proto.RegisterType((*Dbtable)(nil), "protomsg.Dbtable")
}
@@ -427,39 +497,40 @@
func init() { proto.RegisterFile("es.proto", fileDescriptor_718db5c20d0f3738) }
var fileDescriptor_718db5c20d0f3738 = []byte{
- // 500 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x41, 0x8e, 0xd3, 0x30,
- 0x14, 0x86, 0x9b, 0x86, 0x69, 0x13, 0x77, 0x3a, 0x0c, 0x5e, 0x20, 0x0b, 0x8d, 0xa2, 0xaa, 0x62,
- 0xd1, 0x15, 0x1b, 0x6e, 0x30, 0x94, 0x91, 0x2a, 0xa1, 0x11, 0x6a, 0x87, 0x03, 0x38, 0xf1, 0x9b,
- 0xc1, 0x52, 0x12, 0x47, 0x76, 0x5a, 0xda, 0x5b, 0x70, 0x13, 0xae, 0xc1, 0x72, 0x96, 0x2c, 0x58,
- 0xa0, 0xf6, 0x22, 0xc8, 0xcf, 0x49, 0x93, 0x0c, 0xa2, 0xb0, 0x6a, 0xff, 0xff, 0xb7, 0xdf, 0x7b,
- 0x7d, 0x9f, 0x55, 0x12, 0x80, 0x79, 0x53, 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0xb7,
+ 0xcd, 0x4b, 0xf6, 0x6d, 0x17, 0x38, 0x4f, 0xbb, 0xc0, 0xf9, 0xb9, 0x0b, 0x9c, 0x2f, 0xfb, 0xe0,
+ 0xe8, 0x69, 0x1f, 0x1c, 0x7d, 0xdf, 0x07, 0x47, 0x51, 0x8f, 0xde, 0x53, 0x1f, 0x7e, 0x05, 0x00,
+ 0x00, 0xff, 0xff, 0x2e, 0x51, 0xfb, 0x32, 0xba, 0x04, 0x00, 0x00,
}
func (m *Esinfo) Marshal() (dAtA []byte, err error) {
@@ -500,6 +571,47 @@
i++
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CompareScore))))
i += 4
+ }
+ return i, nil
+}
+
+func (m *DbPersonCompCache) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalTo(dAtA)
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *DbPersonCompCache) MarshalTo(dAtA []byte) (int, error) {
+ var i int
+ _ = i
+ var l int
+ _ = l
+ if len(m.Id) > 0 {
+ dAtA[i] = 0xa
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(len(m.Id)))
+ i += copy(dAtA[i:], m.Id)
+ }
+ if len(m.TableId) > 0 {
+ dAtA[i] = 0x12
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(len(m.TableId)))
+ i += copy(dAtA[i:], m.TableId)
+ }
+ if len(m.FaceFeature) > 0 {
+ dAtA[i] = 0x1a
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(len(m.FaceFeature)))
+ i += copy(dAtA[i:], m.FaceFeature)
+ }
+ if m.Enable != 0 {
+ dAtA[i] = 0x20
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(m.Enable))
}
return i, nil
}
@@ -765,6 +877,30 @@
return n
}
+func (m *DbPersonCompCache) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Id)
+ if l > 0 {
+ n += 1 + l + sovEs(uint64(l))
+ }
+ l = len(m.TableId)
+ if l > 0 {
+ n += 1 + l + sovEs(uint64(l))
+ }
+ l = len(m.FaceFeature)
+ if l > 0 {
+ n += 1 + l + sovEs(uint64(l))
+ }
+ if m.Enable != 0 {
+ n += 1 + sovEs(uint64(m.Enable))
+ }
+ return n
+}
+
func (m *Dbperson) Size() (n int) {
if m == nil {
return 0
@@ -908,14 +1044,7 @@
}
func sovEs(x uint64) (n int) {
- for {
- n++
- x >>= 7
- if x == 0 {
- break
- }
- }
- return n
+ return (math_bits.Len64(x|1) + 6) / 7
}
func sozEs(x uint64) (n int) {
return sovEs(uint64((x << 1) ^ uint64((int64(x) >> 63))))
@@ -1080,6 +1209,174 @@
}
return nil
}
+func (m *DbPersonCompCache) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: DbPersonCompCache: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: DbPersonCompCache: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Id = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.TableId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FaceFeature", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.FaceFeature = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType)
+ }
+ m.Enable = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Enable |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := skipEs(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthEs
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthEs
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
func (m *Dbperson) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
diff --git a/es.proto b/es.proto
index 01ad276..c7642a0 100644
--- a/es.proto
+++ b/es.proto
@@ -9,6 +9,13 @@
float compareScore =4;
}
+message DbPersonCompCache {
+ string id =1;
+ string tableId =2;
+ string faceFeature =3;
+ int32 enable =4;
+}
+
message Dbperson{
string id =1;
string tableId =2;
--
Gitblit v1.8.0