aboutsummaryrefslogtreecommitdiff
path: root/api/internal/models/preferences.go
diff options
context:
space:
mode:
authorZach Berwaldt <zberwaldt@tutamail.com>2024-03-15 18:49:43 -0400
committerZach Berwaldt <zberwaldt@tutamail.com>2024-03-15 18:49:43 -0400
commit9cae9c1d2a0b4f7fa72f3075541b9ffafe1a7275 (patch)
tree960fa4f96a1328861a06d97180da8601af6855da /api/internal/models/preferences.go
parent8fab2d03bce82e4dee798ebffb1e93c557f62a4b (diff)
Add routes for preference, clean up and add types
Diffstat (limited to 'api/internal/models/preferences.go')
-rw-r--r--api/internal/models/preferences.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/api/internal/models/preferences.go b/api/internal/models/preferences.go
index cbbd47c..8022099 100644
--- a/api/internal/models/preferences.go
+++ b/api/internal/models/preferences.go
@@ -1,14 +1,14 @@
1package models 1package models
2 2
3type Preference struct { 3type Preference struct {
4 ID int64 `json:"-"` 4 ID int64 `json:"id"`
5 Color string `json:"color"` 5 Color string `json:"color"`
6 UserID int64 `json:"-"` 6 UserID int64 `json:"user_id"`
7 Size Size `json:"size"` 7 SizeID int64 `json:"size_id"`
8} 8}
9 9
10type Size struct { 10type Size struct {
11 ID int64 `json:"-"` 11 ID int64 `json:"id"`
12 Size int64 `json:"size"` 12 Size int64 `json:"size"`
13 Unit string `json:"unit"` 13 Unit string `json:"unit"`
14} 14}