Changing type of fields
This commit is contained in:
@@ -7,13 +7,13 @@ import (
|
|||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO: Replace Usr with all the fields from User, except Password and other sensitive fields
|
|
||||||
type UserProfile struct {
|
type UserProfile struct {
|
||||||
UserId uuid.UUID `json:"user_id"`
|
UserId uuid.UUID `json:"user_id"`
|
||||||
PhoneNumber string `json:"phone_number"`
|
PhoneNumber string `json:"phone_number"`
|
||||||
Username string `json:"username"`
|
Username string `json:"username"`
|
||||||
Firstname string `json:"firstname"`
|
Firstname *string `json:"firstname,omitempty"`
|
||||||
Lastname string `json:"lastname"`
|
Lastname *string `json:"lastname,omitempty"`
|
||||||
Created time.Time `json:"created"`
|
Created time.Time `json:"created"`
|
||||||
LastLogin *time.Time `json:"last_login,omitempty"`
|
LastLogin *time.Time `json:"last_login,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user