This commit is contained in:
mr
2025-01-14 08:17:22 +01:00
parent a0f436b3e1
commit 1c32cd2d12
4 changed files with 17 additions and 1 deletions

View File

@@ -35,6 +35,10 @@ type AbstractResource[T ResourceInstanceITF] struct {
Instances []T `json:"instances,omitempty" bson:"instances,omitempty"` // Bill is the bill of the resource // Bill is the bill of the resource
}
func (r *AbstractResource[T]) Transform() utils.DBObject {
return r
}
func (r *AbstractResource[T]) StoreDraftDefault() {
r.IsDraft = true
}