树形结构全部分类
GET /app/category/tree(不支持搜索)
| 字段 | 名称 | 类型 | 是否必填 |
| id | 分类id | int | 否 |
| name | 分类名称 | string | 否 |
| image_url | 分类图片 | string | 否 |
| children | 分类下级分类 | array | 否 |
| parent_id | 上级id | int | 否 |
| is_plugin | 是否插件 | int 0系统1插件 | 否 |
| source | 来源 | 127 千禧券分类 |
否 |
{ "code": 0, "data": { "categories": [ { "id": 1, "name": "美妆产品", "image_url": "https://supply-chain-zhongtai.oss-cn-beijing.aliyuncs.com/20211031/1635683622美妆.jpg", "category_url": "http://127.0.0.1:8888/api/category/index?id=1", "products_url": "http://127.0.0.1:8888/api/product/list?category1_id=1", "children": [ { "id": 8, "name": "洗面奶", "image_url": "https://supply-chain-zhongtai.oss-cn-beijing.aliyuncs.com/20211018/1634538987微信图片_20210630172341.jpg", "category_url": "http://127.0.0.1:8888/api/category/index?id=8", "products_url": "http://127.0.0.1:8888/api/product/list?category2_id=8", "children": [ { "id": 62, "name": "111", "image_url": "https://supply-chain-zhongtai.oss-cn-beijing.aliyuncs.com/20211018/1634539003微信图片_20210729145314.gif", "category_url": "http://127.0.0.1:8888/api/category/index?id=62", "products_url": "http://127.0.0.1:8888/api/product/list?category3_id=62", "children": [] }, { "id": 63, "name": "112", "image_url": "http://localhost:8888/uploads/file/3288dce3c8caec8521ea6b9fe095b5be_20210426140358.jpeg", "category_url": "http://127.0.0.1:8888/api/category/index?id=63", "products_url": "http://127.0.0.1:8888/api/product/list?category3_id=63", "children": [] }, { "id": 64, "name": "107", "image_url": "http://localhost:8888/uploads/file/d35a61b9000013707d5b667177309489_20210426140405.jpg", "category_url": "http://127.0.0.1:8888/api/category/index?id=64", "products_url": "http://127.0.0.1:8888/api/product/list?category3_id=64", "children": [] }, { "id": 72, "name": "1015", "category_url": "http://127.0.0.1:8888/api/category/index?id=72", "products_url": "http://127.0.0.1:8888/api/product/list?category3_id=72", "children": [] }, { "id": 75, "name": "1018", "category_url": "http://127.0.0.1:8888/api/category/index?id=75", "products_url": "http://127.0.0.1:8888/api/product/list?category3_id=75", "children": [] }, { "id": 76, "name": "1019", "category_url": "http://127.0.0.1:8888/api/category/index?id=76", "products_url": "http://127.0.0.1:8888/api/product/list?category3_id=76", "children": [] } ] } ] }, "msg": "获取成功"