Browse Source

Merge pull request '补充了实体元数据的改动.' (#12) from bug_Model into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_GAAS_GFrame_BACKEND/pulls/12
Reviewed-by: louwenzhi <wenzhi.lou@le-it.com.cn>
pull/13/head
weichenglei 4 years ago
parent
commit
cfbdde37b7
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      grmi/Entity.go

+ 3
- 2
grmi/Entity.go View File

@ -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}
}

Loading…
Cancel
Save