Added comments to fields
This commit is contained in:
@@ -11,7 +11,9 @@ type User struct {
|
|||||||
PhoneNumber string `json:"phone_number"`
|
PhoneNumber string `json:"phone_number"`
|
||||||
Username string `json:"username"`
|
Username string `json:"username"`
|
||||||
Password string `json:"password"`
|
Password string `json:"password"`
|
||||||
|
// Firstname is a pointer
|
||||||
Firstname *string `json:"first_name,omitempty"`
|
Firstname *string `json:"first_name,omitempty"`
|
||||||
|
// Lastname is a pointer
|
||||||
Lastname *string `json:"last_name,omitempty"`
|
Lastname *string `json:"last_name,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