feat(catalog): add product catalog APIs

This commit is contained in:
lai_hong
2026-09-13 11:17:53 +08:00
parent 63c0013076
commit 59e398fcf9
15 changed files with 655 additions and 68 deletions
+3 -1
View File
@@ -56,7 +56,7 @@
更新当前用户资料。请求体:`{ nickname?: string, avatar?: string }`
## 3. 商品与分类(R1,待实现
## 3. 商品与分类(R1
### GET /api/categories
@@ -75,6 +75,8 @@
仅返回 `status=ON_SALE` 的商品。
响应 `data``{ list: ProductDTO[], total: number, page: number, pageSize: number }`
### GET /api/products/:id
公开接口。返回单个在售商品;不存在返回 404。