add getter for Model.typeName

This commit is contained in:
parent 26101760cc
commit 95bfdf7863
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

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