LCW IMPORTER GOSHULDY2

This commit is contained in:
merdan 2023-01-26 15:24:07 +05:00
parent ff7d82bad6
commit 11f5bf96fe
1 changed files with 6 additions and 3 deletions

View File

@ -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
}