1
0

Replaced CObject with a function returning an object

This commit is contained in:
kolaente
2018-10-11 17:53:59 +02:00
parent a612037ee1
commit d8f6a628db
8 changed files with 66 additions and 39 deletions

View File

@ -9,10 +9,13 @@ import (
// WebHandler defines the webhandler object
// This does web stuff, aka returns json etc. Uses CRUDable Methods to get the data
type WebHandler struct {
CObject interface {
models.CRUDable
models.Rights
}
EmptyStruct func() CObject
}
// CObject is the definition of our object, holds the structs
type CObject interface {
models.CRUDable
models.Rights
}
// HandleHTTPError does what it says