all repos

onasty @ e4abd99

a one-time notes service

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

Smirnov Oleksandr Smirnov Oleksandr
ss2316544@gmail.com
feat: /me (#132)..., 12 months 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 OAuthRedirect struct {
34
	URL   string
35
	State string
36
}
37
38
type Tokens struct {
39
	Access  string
40
	Refresh string
41
}
42
43
type UserInfo struct {
44
	Email     string
45
	CreatedAt time.Time
46
}