diff --git a/src/api/article.js b/src/api/article.js index 378799c..9bda351 100644 --- a/src/api/article.js +++ b/src/api/article.js @@ -346,12 +346,6 @@ export const article = { }); }, - /** - * GET /api/article/:sku/children → { children: [...] } - */ - getChildren(sku) { - return http(`/api/article/${encodeURIComponent(sku)}/children`); - }, /** * POST /api/article/:sku/children @@ -375,12 +369,6 @@ export const article = { ); }, - /** - * GET /api/article/:sku/articlelist → { items: [...] } - */ - getArticlelist(sku) { - return http(`/api/article/${encodeURIComponent(sku)}/articlelist`); - }, /** * PUT /api/article/:sku/articlelist @@ -393,12 +381,6 @@ export const article = { }); }, - /** - * GET /api/article/:sku/optionslist → { options: [...] } - */ - getOptionslist(sku) { - return http(`/api/article/${encodeURIComponent(sku)}/optionslist`); - }, /** * PUT /api/article/:sku/optionslist diff --git a/src/api/attributevalue.js b/src/api/attributevalue.js index bc529cc..73317df 100644 --- a/src/api/attributevalue.js +++ b/src/api/attributevalue.js @@ -1,12 +1,6 @@ import { http } from './http.js'; export const attributevalue = { - /** GET /api/attributename/:attributeId/value → { values: AttributeValue[] } */ - // #region GET /api/attributename/:attributeId/value — listByAttributeId - listByAttributeId(attributeId) { - return http(`/api/attributename/${encodeURIComponent(attributeId)}/value`); - }, - // #endregion /** POST /api/attributename/:attributeId/value → 201 { attributevalue } */ // #region POST /api/attributename/:attributeId/value — create diff --git a/src/api/ledger.js b/src/api/ledger.js index d9ccd63..b5bd340 100644 --- a/src/api/ledger.js +++ b/src/api/ledger.js @@ -29,17 +29,6 @@ export const ledger = { }, // #endregion - /** - * GET /api/ledger/sku/:sku - * Query: ?transaction_type=... - * → 200 { ledger: LedgerEntry[] } - */ - // #region GET /api/ledger/sku/:sku — listBySku - listBySku(sku, transactionType) { - const query = transactionType ? `?transaction_type=${encodeURIComponent(transactionType)}` : ''; - return http(`/api/ledger/sku/${encodeURIComponent(sku)}${query}`); - }, - // #endregion /** * GET /api/ledger diff --git a/src/api/printer.js b/src/api/printer.js index aced695..8cdf341 100644 --- a/src/api/printer.js +++ b/src/api/printer.js @@ -12,13 +12,6 @@ export const printer = { }, // #endregion - /** GET /api/printer/:id → { printer: Printer } */ - // #region GET /api/printer/:id — getById - getById(id) { - return http(`/api/printer/${id}`); - }, - // #endregion - /** * POST /api/printer * Body: { address, type, model, serial, sort, desc } diff --git a/src/api/shipping.js b/src/api/shipping.js index b519c15..b1625e4 100644 --- a/src/api/shipping.js +++ b/src/api/shipping.js @@ -4,11 +4,6 @@ import { http } from './http.js'; * Packages / logistics shipments attached to a shipment manifest. */ export const shipping = { - // #region GET /api/shipment/:id/shipping — listByShipment - listByShipment(shipmentId) { - return http(`/api/shipment/${shipmentId}/shipping`); - }, - // #endregion // #region POST /api/shipment/:id/shipping — create create(shipmentId, body) { diff --git a/src/api/warehouse.js b/src/api/warehouse.js index 79bdc17..e069b66 100644 --- a/src/api/warehouse.js +++ b/src/api/warehouse.js @@ -12,13 +12,6 @@ export const warehouse = { }, // #endregion - /** GET /api/warehouse/:id → { warehouse: Warehouse } */ - // #region GET /api/warehouse/:id — getById - getById(id) { - return http(`/api/warehouse/${id}`); - }, - // #endregion - /** * POST /api/warehouse * Body: { name, sort? } — empty name ⇒ 400 Name required.