fixed
This commit is contained in:
+12
-15
@@ -38,24 +38,21 @@ type UserAttribute struct {
|
|||||||
|
|
||||||
// User represents a system user
|
// User represents a system user
|
||||||
type User struct {
|
type User struct {
|
||||||
UserID string `json:"user_id" db:"user_id"`
|
UserID string `json:"user_id" db:"user_id"`
|
||||||
FirstName string `json:"first_name" db:"first_name"`
|
FirstName string `json:"first_name" db:"first_name"`
|
||||||
MiddleInitial string `json:"middle_initial" db:"middle_initial"`
|
MiddleInitial string `json:"middle_initial" db:"middle_initial"`
|
||||||
LastName string `json:"last_name" db:"last_name"`
|
LastName string `json:"last_name" db:"last_name"`
|
||||||
Suffix string `json:"suffix" db:"suffix"`
|
Suffix string `json:"suffix" db:"suffix"`
|
||||||
EmailAddress string `json:"email_address" db:"email_address"`
|
EmailAddress string `json:"email_address" db:"email_address"`
|
||||||
|
|
||||||
|
HomeAddress string `json:"home_address" db:"home_address"`
|
||||||
|
ContactNumber string `json:"contact_number" db:"contact_number"`
|
||||||
|
|
||||||
|
RoleID int `json:"role_id" db:"role_id"`
|
||||||
|
IsDeleted string `json:"is_deleted" db:"is_deleted"`
|
||||||
|
|
||||||
HomeAddress string `json:"home_address" db:"home_address"`
|
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
||||||
ContactNumber string `json:"contact_number" db:"contact_number"`
|
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
|
||||||
|
|
||||||
RoleID int `json:"role_id" db:"role_id"`
|
|
||||||
IsDeleted string `json:"is_deleted" db:"is_deleted"`
|
|
||||||
|
|
||||||
|
|
||||||
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
|
||||||
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AuthorizationContext holds all context needed for authorization decisions
|
// AuthorizationContext holds all context needed for authorization decisions
|
||||||
|
|||||||
@@ -116,15 +116,12 @@ func GetUserByID(userID string) (*models.User, error) {
|
|||||||
&user.Suffix,
|
&user.Suffix,
|
||||||
&user.EmailAddress,
|
&user.EmailAddress,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
&user.HomeAddress,
|
&user.HomeAddress,
|
||||||
&user.ContactNumber,
|
&user.ContactNumber,
|
||||||
|
|
||||||
&user.RoleID,
|
&user.RoleID,
|
||||||
&user.IsDeleted,
|
&user.IsDeleted,
|
||||||
|
|
||||||
|
|
||||||
&user.CreatedAt,
|
&user.CreatedAt,
|
||||||
&user.UpdatedAt,
|
&user.UpdatedAt,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user