all repos

onasty @ d74a3878064113aa2c096f346d96468bd51c4338

a one-time notes service

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

Olexandr Smirnov Olexandr Smirnov
ss2316544@gmail.com
feat(api): change email (#191)..., 9 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 ResendVerificationEmail struct {
20
	Email string
21
}
22
23
type ChangeUserPassword struct {
24
	CurrentPassword string
25
	NewPassword     string
26
}
27
28
type RequestResetPassword struct {
29
	Email string
30
}
31
32
type ResetPassword struct {
33
	Token       string
34
	NewPassword string
35
}
36
37
type OAuthRedirect struct {
38
	URL   string
39
	State string
40
}
41
42
type Tokens struct {
43
	Access  string
44
	Refresh string
45
}
46
47
type UserInfo struct {
48
	Email        string
49
	CreatedAt    time.Time
50
	LastLoginAt  time.Time
51
	NotesCreated int
52
}
53
54
type ChangeEmail struct {
55
	NewEmail string
56
}