Compare commits

...

2 Commits

Author SHA1 Message Date
2a25d947c3 Fixes in User Entity field names 2025-10-21 12:09:26 +02:00
1b91bb7e4d Added DTOs for RefhreshToken action 2025-10-20 21:22:13 +02:00
2 changed files with 14 additions and 6 deletions

View File

@@ -9,6 +9,14 @@ type AuthLoginResponseDTO struct {
Token string `json:"token"` Token string `json:"token"`
} }
type AuthRefreshTokenRequestDTO struct {
AccessToken string `json:"access_token"`
}
type AuthRefreshTokenResponseDTO struct {
Token string `json:"token"`
}
type AuthRegisterRequestDTO struct { type AuthRegisterRequestDTO struct {
Email string `json:"email"` Email string `json:"email"`
Username string `json:"username"` Username string `json:"username"`

View File

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