From f81e4eaa47e3c3889982126ff11233948f61f427 Mon Sep 17 00:00:00 2001 From: Nikolai Papin Date: Mon, 1 Sep 2025 18:47:30 +0300 Subject: [PATCH] feat: NewWishListService constructor implemented --- backend/internal/services/wishlist.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/backend/internal/services/wishlist.go b/backend/internal/services/wishlist.go index 4b44ba3..e4060ba 100644 --- a/backend/internal/services/wishlist.go +++ b/backend/internal/services/wishlist.go @@ -52,9 +52,13 @@ type WishListService interface { GetWishesByWishListGuidPaginated(cinfo dto.ClientInfo, guid string, amount int, page int, sorting enums.Sorting, sortOrder enums.SortOrder) (*[]dto.WishDto, error) } -func NewWishListService(_log *zap.Logger, _dbctx database.DbContext, _redis *redis.Client) WishListService { - // XXX: fill this in - return wishListServiceImpl{} +func NewWishListService(_log *zap.Logger, _dbctx database.DbContext, _redis *redis.Client, _s3 S3Service) WishListService { + return wishListServiceImpl{ + log: _log, + dbctx: _dbctx, + redis: _redis, + s3: _s3, + } } func (w wishListServiceImpl) CreateWish(cinfo dto.ClientInfo, object dto.NewWishDto) (*dto.WishDto, error) {