Add PostgreSQL database option and more booking flow functionalities
This commit is contained in:
@@ -43,14 +43,24 @@ func (bs *Gender) UnmarshalJSON(b []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (g *Gender) ToString() *string {
|
||||
if g == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
res := gendertoString[*g]
|
||||
|
||||
return &res
|
||||
}
|
||||
|
||||
type User struct {
|
||||
ID string `json:"id"`
|
||||
Operator string `json:"operator"`
|
||||
Alias string `json:"alias"`
|
||||
FirstName *string `json:"firstName,omitempty"`
|
||||
LastName *string `json:"lastName,omitempty"`
|
||||
Grade *int64 `json:"grade,omitempty"`
|
||||
Picture *string `json:"picture,omitempty"`
|
||||
Gender *Gender `json:"gender,omitempty"`
|
||||
VerifiedIdentity *bool `json:"verifiedIdentity,omitempty"`
|
||||
FirstName *string `json:"firstName,omitempty" bson:"firstName,omitempty"`
|
||||
LastName *string `json:"lastName,omitempty" bson:"lastName,omitempty"`
|
||||
Grade *int64 `json:"grade,omitempty" bson:"grade,omitempty"`
|
||||
Picture *string `json:"picture,omitempty" bson:"picture,omitempty"`
|
||||
Gender *Gender `json:"gender,omitempty" bson:"gender,omitempty"`
|
||||
VerifiedIdentity *bool `json:"verifiedIdentity,omitempty" bson:"verifiedIdentity,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user