fix payload
This commit is contained in:
+6
-5
@@ -7,11 +7,12 @@ import (
|
||||
)
|
||||
|
||||
type AccessToken struct {
|
||||
Email string `json:"email"`
|
||||
UsersID string `json:"users_id"`
|
||||
RoleID []int `json:"role_id"`
|
||||
SessionID string `json:"session_id"`
|
||||
Exp int64 `json:"exp"`
|
||||
Email string `json:"email"`
|
||||
UsersID string `json:"users_id"`
|
||||
RoleID *int `json:"role_id,omitempty"`
|
||||
AdditionalRoleID []int `json:"additional_role_id"`
|
||||
SessionID string `json:"session_id"`
|
||||
Exp int64 `json:"exp"`
|
||||
jwt.RegisteredClaims
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package models
|
||||
|
||||
type User struct {
|
||||
UserID string `json:"user_id"`
|
||||
FirstName string `json:"first_name"`
|
||||
MiddleInitial *string `json:"middle_initial"`
|
||||
LastName string `json:"last_name"`
|
||||
Suffix *string `json:"suffix"`
|
||||
OfficeID *int `json:"office_id"`
|
||||
RoleID *int `json:"role_id,omitempty"`
|
||||
Projects *[]ProjectMetadata `json:"projects,omitempty"`
|
||||
EmailAddress string `json:"email_address"`
|
||||
MIS *int `json:"mis"`
|
||||
CAPI *int `json:"capi"`
|
||||
CAWI *int `json:"cawi"`
|
||||
DPS *int `json:"dps"`
|
||||
Sex *string `json:"sex"`
|
||||
OfficeName *string `json:"office_name"`
|
||||
StatusOfEmployment *string `json:"status_of_employment"`
|
||||
UserType *int `json:"user_type"`
|
||||
HomeAddress *string `json:"home_address"`
|
||||
ContactNumber *string `json:"contact_number"`
|
||||
UpdatedBy *string `json:"updated_by"`
|
||||
}
|
||||
|
||||
type ProjectMetadata struct {
|
||||
ProjectID int `json:"project_id"`
|
||||
Alias *string `json:"alias"`
|
||||
RoleID []int `json:"role_id"`
|
||||
OfficeID *int `json:"office_id"`
|
||||
}
|
||||
Reference in New Issue
Block a user