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 ShopService

type ShopService struct {
	proto.UnimplementedShopServiceServer
	// contains filtered or unexported fields
}

func NewShopService

func NewShopService(shopRepository *repositories.ShopRepository) *ShopService

func (*ShopService) Create

func (s *ShopService) Create(shop *models.Shop) (*models.Shop, error)

func (*ShopService) GetAllShops

func (s *ShopService) GetAllShops() ([]*models.Shop, error)

func (*ShopService) GetShopByID

func (s *ShopService) GetShopByID(id int32) (*models.Shop, error)

func (*ShopService) GetShopByOwnerID

func (s *ShopService) GetShopByOwnerID(id int32) ([]*models.Shop, error)

func (*ShopService) GetShopByOwnerId

func (s *ShopService) GetShopByOwnerId(ctx context.Context, in *proto.ShopByOwnerId) (*proto.AllShop, error)

func (*ShopService) GetShopDetails

func (s *ShopService) GetShopDetails(shopId int32, ctx context.Context) (*models.ShopDetails, error)

func (*ShopService) GetShopProductsByShopId

func (s *ShopService) GetShopProductsByShopId(ctx context.Context, in *proto.ReqShopProducts) (*proto.ShopProducts, error)

func (*ShopService) GetShopProduts

func (s *ShopService) GetShopProduts(shopId int) ([]*models.Product, error)

func (*ShopService) GetUser

func (s *ShopService) GetUser(ctx context.Context, in *proto.ReqUser) (*proto.ResUser, error)

func (*ShopService) StartGrpcShopServer

func (s *ShopService) StartGrpcShopServer()

Jump to

Keyboard shortcuts

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