all repos

onasty @ 7170bfe

a one-time notes service

onasty/internal/dtos/user.go (view raw)

Smirnov Oleksandr Smirnov Oleksandr
ss2316544@gmail.com
refactor: remove `username` (#112)..., 1 year ago
1
package dtos
2
3
import (
4
	"time"
5
)
6
7
type SignUp struct {
8
	Email       string
9
	Password    string
10
	CreatedAt   time.Time
11
	LastLoginAt time.Time
12
}
13
14
type SignIn struct {
15
	Email    string
16
	Password string
17
}
18
19
type ChangeUserPassword struct {
20
	CurrentPassword string
21
	NewPassword     string
22
}
23
24
type RequestResetPassword struct {
25
	Email string
26
}
27
28
type ResetPassword struct {
29
	Token       string
30
	NewPassword string
31
}
32
33
type Tokens struct {
34
	Access  string
35
	Refresh string
36
}