repository

package
v0.0.0-...-77ca5db Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepo

type UserRepo interface {
	CreateUser(c context.Context, user model.UserDetails) (model.UserDetails, error)
	GetUserDetails(c context.Context, id string) (model.UserDetails, error)
	GetAllUsers(c context.Context) ([]model.UserDetails, error)
	GetAllReviews(c context.Context) ([]model.Review, error)
	GetReviewsByID(c context.Context, id string) (model.Review, error)
	ReviewOrder(c context.Context, data model.Review) (model.Review, error)
}

func NewUserRepo

func NewUserRepo(db *gorm.DB) UserRepo

type UserRepoImpl

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

func (*UserRepoImpl) CreateUser

func (a *UserRepoImpl) CreateUser(c context.Context, user model.UserDetails) (res model.UserDetails, err error)

func (*UserRepoImpl) GetAllReviews

func (a *UserRepoImpl) GetAllReviews(c context.Context) (res []model.Review, err error)

func (*UserRepoImpl) GetAllUsers

func (a *UserRepoImpl) GetAllUsers(c context.Context) (res []model.UserDetails, err error)

func (*UserRepoImpl) GetReviewsByID

func (a *UserRepoImpl) GetReviewsByID(c context.Context, id string) (res model.Review, err error)

func (*UserRepoImpl) GetUserDetails

func (a *UserRepoImpl) GetUserDetails(c context.Context, id string) (res model.UserDetails, err error)

func (*UserRepoImpl) ReviewOrder

func (a *UserRepoImpl) ReviewOrder(c context.Context, data model.Review) (res model.Review, err error)

Jump to

Keyboard shortcuts

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