all repos

onasty @ c2e1526

a one-time notes service

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package dtos

import (
	"time"

	"github.com/gofrs/uuid/v5"
)

type UserDTO struct {
	ID          uuid.UUID
	Username    string
	Email       string
	Password    string
	Activated   bool
	CreatedAt   time.Time
	LastLoginAt time.Time
}

type ResetUserPasswordDTO struct {
	CurrentPassword string
	NewPassword     string
}

type CreateUserDTO struct {
	Username    string
	Email       string
	Password    string
	CreatedAt   time.Time
	LastLoginAt time.Time
}

type SignInDTO struct {
	Email    string
	Password string
}