Add resolver to update profile

Resolves #12 #11
This commit is contained in:
Lakhan Samani
2021-07-18 09:25:20 +05:30
parent 83b3149c0b
commit 7d17032fc2
14 changed files with 460 additions and 246 deletions

View File

@@ -32,9 +32,14 @@ type SignUpInput struct {
Image *string `json:"image"`
}
type SignUpResponse struct {
Message string `json:"message"`
User *User `json:"user"`
type UpdateProfileInput struct {
OldPassword *string `json:"oldPassword"`
NewPassword *string `json:"newPassword"`
ConfirmNewPassword *string `json:"confirmNewPassword"`
FirstName *string `json:"firstName"`
LastName *string `json:"lastName"`
Image *string `json:"image"`
Email *string `json:"email"`
}
type User struct {
@@ -60,6 +65,6 @@ type VerificationRequest struct {
UpdatedAt *int64 `json:"updatedAt"`
}
type VerifySignupTokenInput struct {
type VerifyEmailInput struct {
Token string `json:"token"`
}