Compare commits

..

1 Commits

Author SHA1 Message Date
eb7d9bee0c Added DTOs for RefhreshToken action 2025-10-20 21:21:40 +02:00
2 changed files with 7 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ type AuthLoginResponseDTO struct {
} }
type AuthRefreshTokenRequestDTO struct { type AuthRefreshTokenRequestDTO struct {
AccessToken string `json:"access_token"` AccessToken string `json:"token"`
} }
type AuthRefreshTokenResponseDTO struct { type AuthRefreshTokenResponseDTO struct {

View File

@@ -3,12 +3,12 @@ package identity
import "time" import "time"
type User struct { type User struct {
ID int `db:"id" json:"id"` ID int `json:"id"`
Email string `db:"email" json:"email"` Email string `json:"email"`
Username string `db:"username" json:"username"` Username string `json:"username"`
Password string `db:"password" json:"password"` Password string `json:"password"`
CreatedAt time.Time `db:"created_at" json:"created_at"` CreateDate time.Time `json:"create_date"`
ModifiedAt time.Time `db:"modified_at" json:"modified_at"` // FIXME: zero-value issue ModifyDate time.Time `json:"modify_date"` // FIXME: zero-value issue
} }
// var TestUser = &User{ // var TestUser = &User{