feat: backend MVP (auth/rbac, catalog, orders, fulfillment, invoices) + specs + scaffolds

This commit is contained in:
Chengdong Zhang
2026-09-17 12:43:22 +08:00
commit dc9fd31c5e
96 changed files with 17550 additions and 0 deletions
@@ -0,0 +1,22 @@
# 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