From 95bfdf7863184d9520be34276badd6dcb85d040b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Thu, 12 Sep 2024 17:25:01 -0400 Subject: [PATCH] add getter for Model.typeName --- model.go | 5 +++++ 1 file changed, 5 insertions(+) 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 }