苏州瑞玛APS项目web后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
464 B

  1. package grmi
  2. type Entity struct {
  3. TableName string
  4. BuildCursor func() interface{}
  5. Indicator interface{}
  6. FieldMapping map[string]Field
  7. PresetKeys []string
  8. UpdatingMembers []string
  9. }
  10. func NewEntity(tableName string, buildCursor func() interface{}, fieldMapping map[string]Field, presetKeys []string, updatingMembers []string) Entity {
  11. return Entity{tableName, buildCursor, buildCursor(), fieldMapping, presetKeys, updatingMembers}
  12. }