Documentation ¶
Index ¶
- type ShopService
- func (s *ShopService) Create(shop *models.Shop) (*models.Shop, error)
- func (s *ShopService) GetAllShops() ([]*models.Shop, error)
- func (s *ShopService) GetShopByID(id int32) (*models.Shop, error)
- func (s *ShopService) GetShopByOwnerID(id int32) ([]*models.Shop, error)
- func (s *ShopService) GetShopByOwnerId(ctx context.Context, in *proto.ShopByOwnerId) (*proto.AllShop, error)
- func (s *ShopService) GetShopDetails(shopId int32, ctx context.Context) (*models.ShopDetails, error)
- func (s *ShopService) GetShopProductsByShopId(ctx context.Context, in *proto.ReqShopProducts) (*proto.ShopProducts, error)
- func (s *ShopService) GetShopProduts(shopId int) ([]*models.Product, error)
- func (s *ShopService) GetUser(ctx context.Context, in *proto.ReqUser) (*proto.ResUser, error)
- func (s *ShopService) StartGrpcShopServer()
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) 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) StartGrpcShopServer ¶
func (s *ShopService) StartGrpcShopServer()
Click to show internal directories.
Click to hide internal directories.