GAAS GFrame项目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

package grmi
type Entity struct {
TableName string
BuildCursor func() interface{}
Indicator interface{}
FieldMapping map[string]Field
PresetKeys []string
UpdatingMembers []string
}
func NewEntity(tableName string, buildCursor func() interface{}, fieldMapping map[string]Field, presetKeys []string, updatingMembers []string) Entity {
return Entity{tableName, buildCursor, buildCursor(), fieldMapping, presetKeys, updatingMembers}
}