Appearance
查询产品分类树 API
| Path | Method | Created At |
|---|---|---|
| /api/products/categories/tree | GET | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|
Response
| Key | Type | Example | Comment |
|---|---|---|---|
| id | int | 1 | 上级ID |
| title | string | 网络设备 | 名称 |
| pid | int | 2 | 上级ID |
| children | array | [] | 子树 |
TypeScript Result Example:
TypeScript
interface Result {
/** 上级ID */
id: number;
/** 名称 */
title: string;
/** 上级ID */
pid: number;
/** 子树 */
children: any;
}