services

package
v0.0.0-...-10548b9 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 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 UserService

type UserService struct {
	proto.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(userRepository *repositories.UserRepository) *UserService

func (*UserService) CreateUser

func (u *UserService) CreateUser(user *models.User) (*models.User, error)

func (*UserService) GetAllUser

func (u *UserService) GetAllUser() ([]*models.User, error)

func (*UserService) GetShopByOwnerId

func (u *UserService) GetShopByOwnerId(ctx context.Context, in *proto.ShopByOwnerId) (*proto.AllShop, error)

func (*UserService) GetUser

func (u *UserService) GetUser(ctx context.Context, in *proto.ReqUser) (*proto.ResUser, error)

func (*UserService) GetUserById

func (u *UserService) GetUserById(userId int32) (*models.User, error)

func (*UserService) GetUserShopDetails

func (u *UserService) GetUserShopDetails(userId int) ([]*models.Shop, error)

func (*UserService) StartGrpcUserService

func (u *UserService) StartGrpcUserService()

Jump to

Keyboard shortcuts

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