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