feat: three nuxt frontends, demo seed, rounding + money-exponent + rate-cast fixes, archived specs
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user