all repos

onasty @ 5d72e79

a one-time notes service

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

Smirnov Oleksandr Smirnov Oleksandr
ss2316544@gmail.com
refactor: dont break code consitency (#23)..., 1 year ago
1
package dtos
2
3
import (
4
	"time"
5
6
	"github.com/gofrs/uuid/v5"
7
)
8
9
type UserDTO struct {
10
	ID          uuid.UUID
11
	Username    string
12
	Email       string
13
	Password    string
14
	Activated   bool
15
	CreatedAt   time.Time
16
	LastLoginAt time.Time
17
}
18
19
type ResetUserPasswordDTO struct {
20
	CurrentPassword string
21
	NewPassword     string
22
}
23
24
type CreateUserDTO struct {
25
	Username    string
26
	Email       string
27
	Password    string
28
	CreatedAt   time.Time
29
	LastLoginAt time.Time
30
}
31
32
type SignInDTO struct {
33
	Email    string
34
	Password string
35
}