diff options
| author | Leonardo Bishop <me@leonardobishop.net> | 2025-09-17 18:13:30 +0100 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.net> | 2025-09-17 18:13:30 +0100 |
| commit | 39a926cd521806aedc298ddd671d1a118794fcec (patch) | |
| tree | a38908af8c91e01b2acec112b871c951e1bf6c1b /api/dto/entry.go | |
| parent | 1b7c07d9bbfb7984536a3aeade0f543251f1a666 (diff) | |
Add endpoints for web extension
Diffstat (limited to 'api/dto/entry.go')
| -rw-r--r-- | api/dto/entry.go | 14 |
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"` } |
