all repos

onasty @ c5b3657

a one-time notes service

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

Smirnov Oleksandr Smirnov Oleksandr
ss2316544@gmail.com
feat: reset password (#110)..., 1 year ago
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
}