简介

商城分类列表

接口地址

/api/v1/store/categories

请求参数

名称 必须 描述
timestamp 当前时间戳
sign 签名结果,签名算法介绍请点击这里

返回结果

名称 描述
id 分类ID
pid 分类父级ID
name 分类名称
description 分类描述
created_at 创建时间
child 子分类集合

 返回示例

{
    "result": [
        {
            "id": 1,
            "pid": 0,
            "name": "潮流数码",
            "description": "潮流数码",
            "created_at": "2021-08-23 16:56:06",
            "child": []
        },
        {
            "id": 2,
            "pid": 0,
            "name": "生活百货",
            "description": "",
            "created_at": "2021-10-30 15:33:43",
            "child": [{
                    "id": 18,
                    "pid": 1,
                    "name": "便民查询",
                    "description": null,
                    "created_at": "2021-11-20 22:33:11",
                    "updated_at": "2021-11-20 22:33:11",
                    "child": []
                },
                {
                    "id": 19,
                    "pid": 1,
                    "name": "身体健康",
                    "description": null,
                    "created_at": "2021-11-20 22:33:40",
                    "updated_at": "2021-11-20 22:33:40",
                    "child": []
                }]
        }
    ],
    "msg": "返回成功",
    "code": 200
}