summaryrefslogtreecommitdiff
path: root/app/domain/identifiable.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-24 00:08:00 -0600
committermo khan <mo@mokhan.ca>2025-05-24 00:08:00 -0600
commita8e47145f93f07740d751be37d450599b26b2fc8 (patch)
tree3d8fdd7f7fcbda853cf1f42b4a5d96df57c3d71d /app/domain/identifiable.go
parent1ab4de8ec28d4fdd46cd9b3e246eea4a85ca6b6c (diff)
feat: create middleware to check if user has permission
Diffstat (limited to 'app/domain/identifiable.go')
-rw-r--r--app/domain/identifiable.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/domain/identifiable.go b/app/domain/identifiable.go
new file mode 100644
index 0000000..8fbc1e4
--- /dev/null
+++ b/app/domain/identifiable.go
@@ -0,0 +1,7 @@
+package domain
+
+type Identifiable interface {
+ GetID() ID
+ SetID(id ID) error
+ ToGID() string
+}