Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a25d947c3 | |||
| 1b91bb7e4d | |||
| fc0130e573 |
@@ -6,7 +6,15 @@ type AuthLoginRequestDTO struct {
|
||||
}
|
||||
|
||||
type AuthLoginResponseDTO struct {
|
||||
Token string `json:"jwt_token"`
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
||||
type AuthRefreshTokenRequestDTO struct {
|
||||
AccessToken string `json:"access_token"`
|
||||
}
|
||||
|
||||
type AuthRefreshTokenResponseDTO struct {
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
||||
type AuthRegisterRequestDTO struct {
|
||||
|
||||
@@ -3,12 +3,12 @@ package identity
|
||||
import "time"
|
||||
|
||||
type User struct {
|
||||
ID int `json:"id"`
|
||||
Email string `json:"email"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
CreateDate time.Time `json:"create_date"`
|
||||
ModifyDate time.Time `json:"modify_date"` // FIXME: zero-value issue
|
||||
ID int `db:"id" json:"id"`
|
||||
Email string `db:"email" json:"email"`
|
||||
Username string `db:"username" json:"username"`
|
||||
Password string `db:"password" json:"password"`
|
||||
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
||||
ModifiedAt time.Time `db:"modified_at" json:"modified_at"` // FIXME: zero-value issue
|
||||
}
|
||||
|
||||
// var TestUser = &User{
|
||||
|
||||
Reference in New Issue
Block a user