summaryrefslogtreecommitdiff
path: root/app/domain/entity.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/domain/entity.go')
-rw-r--r--app/domain/entity.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/domain/entity.go b/app/domain/entity.go
index 0dc3995..4f3e63b 100644
--- a/app/domain/entity.go
+++ b/app/domain/entity.go
@@ -11,30 +11,30 @@ type Entity interface {
Validate() error
}
-type defaultEntity struct {
+type entity struct {
ID ID `json:"id" jsonapi:"primary,entities"`
}
-func (s *defaultEntity) GetID() ID {
+func (s *entity) GetID() ID {
return s.ID
}
-func (s *defaultEntity) SetID(id ID) error {
+func (s *entity) SetID(id ID) error {
s.ID = id
return nil
}
-func (s *defaultEntity) ToGID() string {
+func (s *entity) ToGID() string {
return "gid://sparkle/Entity/" + s.ID.String()
}
-func (self *defaultEntity) ToObjectReference() *v1.ObjectReference {
+func (self *entity) ToObjectReference() *v1.ObjectReference {
return &v1.ObjectReference{
ObjectType: "entity",
ObjectId: self.ID.String(),
}
}
-func (s *defaultEntity) Validate() error {
+func (s *entity) Validate() error {
return errors.New("method Validate not implemented")
}