feat(catalog): add product catalog APIs
This commit is contained in:
@@ -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。
|
||||
|
||||
Reference in New Issue
Block a user