summaryrefslogtreecommitdiffstats
path: root/api/dto
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.net>2025-09-17 18:13:30 +0100
committerLeonardo Bishop <me@leonardobishop.net>2025-09-17 18:13:30 +0100
commit39a926cd521806aedc298ddd671d1a118794fcec (patch)
treea38908af8c91e01b2acec112b871c951e1bf6c1b /api/dto
parent1b7c07d9bbfb7984536a3aeade0f543251f1a666 (diff)
Add endpoints for web extension
Diffstat (limited to 'api/dto')
-rw-r--r--api/dto/entry.go14
1 files changed, 13 insertions, 1 deletions
diff --git a/api/dto/entry.go b/api/dto/entry.go
index 85e39f3..8346b18 100644
--- a/api/dto/entry.go
+++ b/api/dto/entry.go
@@ -5,5 +5,17 @@ type CreateEntryRequest struct {
Kind string `json:"kind"`
Url string `json:"url"`
Description string `json:"description"`
- Token string `json:"token"`
+}
+
+type UpdateEntryRequest struct {
+ Id int64 `json:"id"`
+ Kind string `json:"kind"`
+}
+
+type DeleteEntryRequest struct {
+ Id int64 `json:"id"`
+}
+
+type GetEntryRequest struct {
+ Url string `json:"url"`
}