Files
vmall/openspec/changes/catalog-i18n-currency/tasks.md
T

23 lines
862 B
Markdown

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