add getter for Model.typeName
This commit is contained in:
parent
26101760cc
commit
95bfdf7863
5
model.go
5
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user