Skip to content

Commit

Permalink
Fix #228: Fix the fields in v1 login as admin response
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Oct 12, 2023
1 parent b2900b5 commit adf2749
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/user/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ type ClientInfo struct {

// Role Role assignment to user
type Role struct {
RoleID int
OrgID string
RoleID int `json:"roleId"`
OrgID string `json:"orgId"`
}
type RoleV2 struct {
RoleID int `json:"roleId"`
Expand All @@ -60,18 +60,18 @@ type RoleV2 struct {
// User data type
type User struct {
ID primitive.ObjectID `bson:"_id,omitempty"`
Name string
IamID string
Email string
Phone string
ImageID string
ImageURL string
LastVisit string //TODO Replace with ISODate()
Client ClientInfo
Orgs []Org
APIKey string
Roles []Role
IncompleteProfile bool
Name string `json:"Name"`
IamID string `json:"IamID"`
Email string `json:"Email"`
Phone string `json:"Phone"`
ImageID string `json:"ImageID"`
ImageURL string `json:"ImageURL"`
LastVisit string `json:"LastVisit"`
Client ClientInfo `json:"Client"`
Orgs []Org `json:"Orgs"`
APIKey string `json:"APIKey"`
Roles []Role `json:"Roles"`
IncompleteProfile bool `json:"IncompleteProfile"`
}

type UserV2 struct {
Expand Down

0 comments on commit adf2749

Please sign in to comment.