Documentation ¶
Index ¶
- func DBProductToGQLProduct(p *product.Product, db *gorm.DB) (*gql.Product, error)
- func DBReviewToGQLReview(i *review.Review, db *gorm.DB) (*gql.Review, error)
- func DBUserProfileToGQLUserProfile(up *user.UserProfile, u *user.User) (o *gql.UserProfile, err error)
- func DBUserToGQLUser(i *user.User) (o *gql.User, err error)
- func GQLInputUserToDBUser(i *gql.NewUser, update bool) (o *user.User, err error)
- func GQLProductToDBProduct(i *gql.NewProduct, adminId int) (*product.Product, error)
- func GQLReviewToDBReview(i *gql.NewReview, productId int, userId int) (*review.Review, error)
- func GQLUpdateUserProfileToDBUserProfile(i *gql.UpdatedProfile, db *gorm.DB) (*user.UserProfile, error)
- func UpdatedDBUserProfileToGQLUserProfile(up *user.UserProfile, email string) (o *gql.UserProfile, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBProductToGQLProduct ¶
func DBReviewToGQLReview ¶
func DBUserProfileToGQLUserProfile ¶
func DBUserProfileToGQLUserProfile(up *user.UserProfile, u *user.User) (o *gql.UserProfile, err error)
func DBUserToGQLUser ¶
DBUserToGQLUser transforms user db input to gql type
func GQLInputUserToDBUser ¶
GQLInputUserToDBUser transforms user gql input to db model
func GQLProductToDBProduct ¶
func GQLReviewToDBReview ¶
func GQLUpdateUserProfileToDBUserProfile ¶
func GQLUpdateUserProfileToDBUserProfile(i *gql.UpdatedProfile, db *gorm.DB) (*user.UserProfile, error)
func UpdatedDBUserProfileToGQLUserProfile ¶
func UpdatedDBUserProfileToGQLUserProfile(up *user.UserProfile, email string) (o *gql.UserProfile, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.