Skip to content

Commit

Permalink
add more response params
Browse files Browse the repository at this point in the history
  • Loading branch information
doneill committed Dec 9, 2023
1 parent cf08e9c commit ddb189e
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions api/apiuser.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ import (

type UserResponse struct {
Data struct {
Username string `json:"username"`
Email string `json:"email"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
ID string `json:"id"`
Pin string `json:"pin"`
Subject struct {
Username string `json:"username"`
Email string `json:"email"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Role string `json:"role"`
IsStaff bool `json:"is_staff"`
IsSuperUser bool `json:"is_superuser"`
DateJoined string `json:"date_joined"`
ID string `json:"id"`
IsActive bool `json:"is_active"`
LastLogin string `json:"last_login"`
Pin string `json:"pin"`
Subject struct {
ID string `json:"id"`
} `json:"subject"`
} `json:"data"`
Expand Down

0 comments on commit ddb189e

Please sign in to comment.