onasty/internal/dtos/note.go (view raw)
Smirnov Oleksandr
Smirnov Oleksandr
ss2316544@gmail.com refactor: fix annoyances (#97)..., 1 year ago
ss2316544@gmail.com refactor: fix annoyances (#97)..., 1 year ago
| 1 | package dtos |
| 2 | |
| 3 | import ( |
| 4 | "time" |
| 5 | |
| 6 | "github.com/gofrs/uuid/v5" |
| 7 | ) |
| 8 | |
| 9 | type NoteSlug = string |
| 10 | |
| 11 | type GetNote struct { |
| 12 | Content string |
| 13 | ReadAt time.Time |
| 14 | CreatedAt time.Time |
| 15 | ExpiresAt time.Time |
| 16 | } |
| 17 | |
| 18 | type CreateNote struct { |
| 19 | Content string |
| 20 | UserID uuid.UUID |
| 21 | Slug NoteSlug |
| 22 | BurnBeforeExpiration bool |
| 23 | Password string |
| 24 | CreatedAt time.Time |
| 25 | ExpiresAt time.Time |
| 26 | } |