onasty/internal/dtos/user.go (view raw)
| 1 | package dtos |
| 2 | |
| 3 | import ( |
| 4 | "time" |
| 5 | ) |
| 6 | |
| 7 | type SignUp struct { |
| 8 | Username string |
| 9 | Email string |
| 10 | Password string |
| 11 | CreatedAt time.Time |
| 12 | LastLoginAt time.Time |
| 13 | } |
| 14 | |
| 15 | type SignIn struct { |
| 16 | Email string |
| 17 | Password string |
| 18 | } |
| 19 | |
| 20 | type ChangeUserPassword struct { |
| 21 | CurrentPassword string |
| 22 | NewPassword string |
| 23 | } |
| 24 | |
| 25 | type RequestResetPassword struct { |
| 26 | Email string |
| 27 | } |
| 28 | |
| 29 | type ResetPassword struct { |
| 30 | Token string |
| 31 | NewPassword string |
| 32 | } |
| 33 | |
| 34 | type Tokens struct { |
| 35 | Access string |
| 36 | Refresh string |
| 37 | } |