feat: three nuxt frontends, demo seed, rounding + money-exponent + rate-cast fixes, archived specs

This commit is contained in:
Chengdong Zhang
2026-09-17 13:34:38 +08:00
parent dc9fd31c5e
commit 653f13161a
85 changed files with 4327 additions and 106 deletions
+19
View File
@@ -0,0 +1,19 @@
# frontend-admin Specification
## Purpose
TBD - created by archiving change frontend-apps. Update Purpose after archive.
## Requirements
### Requirement: Platform user and shop management
Platform admins SHALL assign user roles (with shop scope), create shops, and suspend/activate shops. Suspended shops' products MUST NOT be purchasable (enforced by API, reflected in UI).
#### Scenario: assign shop owner
- **WHEN** an admin assigns role shop_owner with a shop to a user
- **THEN** that user can log into shop-admin and manage that shop
### Requirement: Currency management
Platform admins SHALL view currencies and update exchange rates; new rates affect subsequent conversions.
#### Scenario: rate update
- **WHEN** an admin updates CNY rate_to_base
- **THEN** the mall conversion endpoint returns amounts computed with the new rate