From 20cac09f9d6f407a68e242603884eb7f2c6d0603 Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 1 Apr 2026 13:04:47 +0200 Subject: [PATCH] Add SetNotInCatalog --- models/utils/abstracts.go | 4 +++- models/utils/interfaces.go | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/models/utils/abstracts.go b/models/utils/abstracts.go index 28e43a6..d9603e1 100755 --- a/models/utils/abstracts.go +++ b/models/utils/abstracts.go @@ -47,7 +47,9 @@ type AbstractObject struct { func (ri *AbstractObject) GetAccessor(request *tools.APIRequest) Accessor { return nil } - +func (r *AbstractObject) SetNotInCatalog(ok bool) { + r.NotInCatalog = ok +} func (r *AbstractObject) IsNotInCatalog() bool { return r.NotInCatalog } diff --git a/models/utils/interfaces.go b/models/utils/interfaces.go index 170a0c2..6c22382 100755 --- a/models/utils/interfaces.go +++ b/models/utils/interfaces.go @@ -18,6 +18,7 @@ type ShallowDBObject interface { // DBObject is an interface that defines the basic methods for a DBObject type DBObject interface { GenerateID() + SetNotInCatalog(bool) IsNotInCatalog() bool SetID(id string) GetID() string