feat: move user dto outside

This commit is contained in:
2025-06-04 12:46:24 +02:00
parent 81659181e4
commit c6998f33e1
3 changed files with 43 additions and 29 deletions

19
internal/types/user.go Normal file
View File

@ -0,0 +1,19 @@
package types
import (
"time"
"github.com/google/uuid"
)
type UserDTO struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
FullName string `json:"full_name"`
IsAdmin bool `json:"is_admin"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
LastLogin *time.Time `json:"last_login"`
PhoneNumber *string `json:"phone_number"`
ProfilePicture *string `json:"profile_picture"`
}