Files
vmall/openspec/changes/archive/2026-09-17-catalog-i18n-currency/tasks.md
T

23 lines
862 B
Markdown

# Tasks: catalog-i18n-currency
## 1. Schema
- [x] Migration: currencies, categories, products, skus; product status enum
- [x] Seed currencies (USD base, CNY, EUR, JPY) + demo categories (bilingual)
## 2. Currency APIs
- [x] GET /api/currencies (public, enabled only)
- [x] GET /api/currencies/convert?amount_minor&from&to
## 3. Public catalog APIs
- [x] GET /api/products (paged; filters: category_id, q, shop_id; only published)
- [x] GET /api/products/{id_or_slug} (published only, with SKUs)
- [x] GET /api/categories
## 4. Shop-admin catalog APIs
- [x] GET/POST /api/shop/products, PUT /api/shop/products/{id}
- [x] POST /api/shop/products/{id}/publish | /unpublish
- [x] POST /api/shop/products/{id}/skus (upsert by sku_code)
## 5. Tests
- [x] cargo test: publish lifecycle visibility, i18n fields round-trip, currency conversion math, shop isolation