Add Wildberries product fetching and rate limiting functionality

This commit is contained in:
2025-07-04 13:30:50 +03:00
parent b48421e653
commit dc097c6fc8
67 changed files with 81355 additions and 110 deletions

View File

@@ -10,7 +10,7 @@ import (
)
const getMarketplaceByID = `-- name: GetMarketplaceByID :one
SELECT id, base_marketplace, name, auth_data, warehouse_id FROM marketplaces
SELECT id, base_marketplace, name, auth_data, warehouse_id, auth_data_json FROM marketplaces
WHERE id = $1 LIMIT 1
`
@@ -23,6 +23,7 @@ func (q *Queries) GetMarketplaceByID(ctx context.Context, id int32) (Marketplace
&i.Name,
&i.AuthData,
&i.WarehouseID,
&i.AuthDataJson,
)
return i, err
}