mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-26 05:45:30 +02:00
Added an TME data provider
This commit is contained in:
parent
0cb46039dd
commit
f9fdae9de9
7 changed files with 397 additions and 1 deletions
|
@ -33,6 +33,7 @@ class PartDetailDTO extends SearchResultDTO
|
|||
string $provider_id,
|
||||
string $name,
|
||||
string $description,
|
||||
?string $category = null,
|
||||
?string $manufacturer = null,
|
||||
?string $mpn = null,
|
||||
?string $preview_image_url = null,
|
||||
|
@ -46,12 +47,15 @@ class PartDetailDTO extends SearchResultDTO
|
|||
public readonly ?array $parameters = null,
|
||||
/** @var PurchaseInfoDTO[]|null */
|
||||
public readonly ?array $vendor_infos = null,
|
||||
/** The mass of the product in grams */
|
||||
public readonly ?float $mass = null,
|
||||
) {
|
||||
parent::__construct(
|
||||
provider_key: $provider_key,
|
||||
provider_id: $provider_id,
|
||||
name: $name,
|
||||
description: $description,
|
||||
category: $category,
|
||||
manufacturer: $manufacturer,
|
||||
mpn: $mpn,
|
||||
preview_image_url: $preview_image_url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue