resolvers

package
v0.0.0-...-c193d7f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangePasswordResponse

type ChangePasswordResponse struct {
	Status bool
	Msg    *string
}

ChangePasswordResponse is the response type

func (*ChangePasswordResponse) Error

func (r *ChangePasswordResponse) Error() *string

Error for ChangePasswordResponse

func (*ChangePasswordResponse) Ok

func (r *ChangePasswordResponse) Ok() bool

Ok for ChangePasswordResponse

type ChangeProfileResponse

type ChangeProfileResponse struct {
	Status bool
	Msg    *string
	User   *UserResponse
}

ChangeProfileResponse is the response type

func (*ChangeProfileResponse) Error

func (r *ChangeProfileResponse) Error() *string

Error for ChangeProfileResponse

func (*ChangeProfileResponse) Ok

func (r *ChangeProfileResponse) Ok() bool

Ok for ChangeProfileResponse

type Claims

type Claims struct {
	Sub   string
	Email string
}

type GetMyProfileResponse

type GetMyProfileResponse struct {
	Status bool
	Msg    *string
	User   *UserResponse
}

GetMyProfileResponse is the response type

func (*GetMyProfileResponse) Error

func (r *GetMyProfileResponse) Error() *string

Error for GetMyProfileResponse

func (*GetMyProfileResponse) Ok

func (r *GetMyProfileResponse) Ok() bool

Ok for GetMyProfileResponse

type Resolvers

type Resolvers struct {
	*db.DB
}

Resolvers including query and mutation

func (*Resolvers) ChangePassword

func (r *Resolvers) ChangePassword(ctx context.Context, args changePasswordMutationArgs) (*ChangePasswordResponse, error)

ChangePassword mutation change password

func (*Resolvers) ChangeProfile

func (r *Resolvers) ChangeProfile(ctx context.Context, args changeProfileMutationArgs) (*ChangeProfileResponse, error)

ChangeProfile mutation change profile

func (*Resolvers) GetMyProfile

func (r *Resolvers) GetMyProfile(ctx context.Context) (*GetMyProfileResponse, error)

GetMyProfile resolver

func (*Resolvers) SignInGoogle

func (r *Resolvers) SignInGoogle(ctx context.Context, args signInGoogleMutationArgs) (*SignInGoogleResponse, error)

SignInGoogle mutation

func (*Resolvers) SignInKakao

func (r *Resolvers) SignInKakao(args signInKakaoMutationArgs) (*SignInKakaoResponse, error)

SignInKakao mutation

type SignInGoogleResponse

type SignInGoogleResponse struct {
	Status bool
	Msg    *string
	Token  *string
}

SignInResponse is the response type

func (*SignInGoogleResponse) Error

func (r *SignInGoogleResponse) Error() *string

Error for SignUpResponse

func (*SignInGoogleResponse) Ok

func (r *SignInGoogleResponse) Ok() bool

Ok for SignUpResponse

type SignInKakaoResponse

type SignInKakaoResponse struct {
	Status bool
	Msg    *string
	Token  *string
}

SignInResponse is the response type

func (*SignInKakaoResponse) Error

func (r *SignInKakaoResponse) Error() *string

Error for SignUpResponse

func (*SignInKakaoResponse) Ok

func (r *SignInKakaoResponse) Ok() bool

Ok for SignUpResponse

type UserResponse

type UserResponse struct {
	// contains filtered or unexported fields
}

UserResponse is the user response type

func (*UserResponse) CreatedAt

func (r *UserResponse) CreatedAt() string

CreatedAt for UserResponse

func (*UserResponse) DeletedAt

func (r *UserResponse) DeletedAt() string

DeletedAt for UserResponse

func (*UserResponse) Email

func (r *UserResponse) Email() string

Email for UserResponse

func (*UserResponse) ID

func (r *UserResponse) ID() graphql.ID

ID for UserResponse

func (*UserResponse) Nickname

func (r *UserResponse) Nickname() *string

Nickame for UserResponse

func (*UserResponse) UpdatedAt

func (r *UserResponse) UpdatedAt() string

UpdatedAt for UserResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL