add Groups

This commit is contained in:
mr
2026-01-22 13:38:55 +01:00
parent 1c3b9218f7
commit a4512e4da6
4 changed files with 108 additions and 1 deletions

24
models/group/group.go Normal file
View File

@@ -0,0 +1,24 @@
package group
import (
"cloud.o-forge.io/core/oc-lib/models/utils"
"cloud.o-forge.io/core/oc-lib/tools"
)
// Group is a struct that represents a Group
type Group struct {
utils.AbstractObject
}
func (ao *Group) VerifyAuth(callName string, request *tools.APIRequest) bool {
return true
}
func (d *Group) GetAccessor(request *tools.APIRequest) utils.Accessor {
data := NewAccessor(request) // Create a new instance of the accessor
return data
}
func (r *Group) CanDelete() bool {
return false // only draft order can be deleted
}