Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllGender = []Gender{ GenderMale, GenderFamele, GenderNone, }
View Source
var AllIdentificationType = []IdentificationType{ IdentificationTypeV, IdentificationTypeE, IdentificationTypeP, IdentificationTypeJ, }
View Source
var AllRole = []Role{ RoleOwner, RolePayer, RoleOperator, RoleDriver, }
Functions ¶
This section is empty.
Types ¶
type IdentificationType ¶
type IdentificationType string
const ( IdentificationTypeV IdentificationType = "V" IdentificationTypeE IdentificationType = "E" IdentificationTypeP IdentificationType = "P" IdentificationTypeJ IdentificationType = "J" )
func (IdentificationType) IsValid ¶
func (e IdentificationType) IsValid() bool
func (IdentificationType) MarshalGQL ¶
func (e IdentificationType) MarshalGQL(w io.Writer)
func (IdentificationType) String ¶
func (e IdentificationType) String() string
func (*IdentificationType) UnmarshalGQL ¶
func (e *IdentificationType) UnmarshalGQL(v interface{}) error
type User ¶
type User struct { ID int `json:"id"` FullName string `json:"full_name"` Email string `json:"email"` Role Role `json:"role"` Gender Gender `json:"gender"` IdentificationType IdentificationType `json:"identification_type"` IdentificationNumber string `json:"identification_number"` CountryCode string `json:"country_code"` PhoneNumber string `json:"phone_number"` Ocupation string `json:"ocupation"` Weight *float64 `json:"weight,omitempty"` Height *float64 `json:"height,omitempty"` Birthday *time.Time `json:"birthday,omitempty"` ProfileImgURL *string `json:"profile_img_url,omitempty"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `json:"deleted_at,omitempty"` }
The `User` type defines the queryable fields for every user in our data source.
type UserInput ¶
type UserInput struct { FullName string `json:"full_name"` Email string `json:"email"` Password string `json:"password"` Gender Gender `json:"gender"` IdentificationType IdentificationType `json:"identification_type"` IdentificationNumber string `json:"identification_number"` CountryCode string `json:"country_code"` PhoneNumber string `json:"phone_number"` Ocupation string `json:"ocupation"` Weight *float64 `json:"weight,omitempty"` Height *float64 `json:"height,omitempty"` Birthday *time.Time `json:"birthday,omitempty"` ProfileImg *graphql.Upload `json:"profile_img,omitempty"` }
The `UserInput` input type is used to create and update users.
Click to show internal directories.
Click to hide internal directories.