From 35bf2fb77b8c77b8ef30b706d119d94414f2a9d9 Mon Sep 17 00:00:00 2001 From: allanwei Date: Fri, 19 Mar 2021 10:10:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E4=BA=86=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E5=85=83=E6=95=B0=E6=8D=AE=E7=9A=84=E6=94=B9=E5=8A=A8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- grmi/Entity.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/grmi/Entity.go b/grmi/Entity.go index 868269f..b87f7c2 100644 --- a/grmi/Entity.go +++ b/grmi/Entity.go @@ -5,8 +5,9 @@ type Entity struct { BuildCursor func() interface{} Indicator interface{} FieldMapping map[string]Field + PresetKeys []string } -func NewEntity(tableName string, buildCursor func() interface{}, fieldMapping map[string]Field) Entity { - return Entity{tableName, buildCursor, buildCursor(), fieldMapping} +func NewEntity(tableName string, buildCursor func() interface{}, fieldMapping map[string]Field, presetKeys []string) Entity { + return Entity{tableName, buildCursor, buildCursor(), fieldMapping, presetKeys} }