Skip to content

Commit

Permalink
chore:adding-user-assistant-to-user-profile
Browse files Browse the repository at this point in the history
Signed-off-by: VicOsewe <victorineosewe@gmail.com>
  • Loading branch information
victorine.osewe authored and VicOsewe committed Sep 6, 2021
1 parent 864890c commit 5b47aa5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ type UserProfile struct {

// this is the version of the app that the user is currently using : PRO
PROAppVersion *string `json:"proAppVersion,omitempty" firestore:"proAppVersion"`

//Assistant indicates the user assistant
Assistant Assistant `json:"assistant,omitempty" firestore:"assistant"`
}

// UserInfo is a collection of standard profile information for a user.
Expand Down Expand Up @@ -629,3 +632,13 @@ func GetLoggedInUser(ctx context.Context) (*UserInfo, error) {
PhotoURL: user.PhotoURL,
}, nil
}

//Assistant represents the user Assistant(BOWI/BEV)
type Assistant string

const (
//Female ...
Female Assistant = "BEV"
//Male ...
Male Assistant = "BOWI"
)

0 comments on commit 5b47aa5

Please sign in to comment.