diff --git a/repositories/LCWRepository.go b/repositories/LCWRepository.go index 2e60c64..0644af3 100644 --- a/repositories/LCWRepository.go +++ b/repositories/LCWRepository.go @@ -1,6 +1,9 @@ package repositories -import helper "db_service/pkg" +import ( + "db_service/models" + helper "db_service/pkg" +) type LinkParserLCW struct { link string @@ -10,7 +13,7 @@ func NewLinkParserLCW(link string) LinkParserLCW { return LinkParserLCW{link: link} } -func (l LinkParserLCW) ParseLink() (map[string]interface{}, error) { +func (l LinkParserLCW) ParseLink() (*models.Product, error) { helper.Info("link: ", l.link) @@ -22,5 +25,5 @@ func (l LinkParserLCW) ParseLink() (map[string]interface{}, error) { return nil, err } - return product, nil + return &product, nil } \ No newline at end of file