diff --git a/model.go b/model.go index 3cd3917..135bd75 100644 --- a/model.go +++ b/model.go @@ -66,6 +66,7 @@ type IModel interface { getIdxs() []*mongo.IndexModel getParsedIdxs() map[string][]InternalIndex serializeToStore() any + getTypeName() string setTypeName(str string) getExists() bool setExists(n bool) @@ -76,6 +77,10 @@ type IModel interface { setSelf(arg interface{}) } +func (m *Model) getTypeName() string { + return m.typeName +} + func (m *Model) setTypeName(str string) { m.typeName = str }