商品分类信息

简要描述
  • 用户注册接口
请求URL
  • http://xx.com/api/goods_cate或者http://xx.com/api/goods_cate/index
请求方式
  • GET
返回成功示例
{
    "status": 0,
    "message": "请求商品分类成功!",
    "results": [
        {
            "id": 1,
            "name": "家用电器",
            "pid": 0,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 2,
            "name": "电脑",
            "pid": 0,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 3,
            "name": "图书",
            "pid": 0,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 4,
            "name": "电视",
            "pid": 1,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 5,
            "name": "空调",
            "pid": 1,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 6,
            "name": "洗衣机",
            "pid": 1,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 7,
            "name": "冰箱",
            "pid": 1,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 8,
            "name": "台式主机",
            "pid": 2,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 9,
            "name": "笔记本电脑",
            "pid": 2,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 10,
            "name": "平板电脑",
            "pid": 2,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 11,
            "name": "儿童文学",
            "pid": 3,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 12,
            "name": "科普百科",
            "pid": 3,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 13,
            "name": "散文诗歌",
            "pid": 3,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 14,
            "name": "外国文学",
            "pid": 3,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 15,
            "name": "中国文学",
            "pid": 3,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 16,
            "name": "全面屏电视",
            "pid": 4,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 17,
            "name": "教育电视",
            "pid": 4,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 18,
            "name": "4K电视",
            "pid": 4,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 19,
            "name": "空调挂机",
            "pid": 5,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 20,
            "name": "空调柜机",
            "pid": 5,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 21,
            "name": "中央空调",
            "pid": 5,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 22,
            "name": "滚动洗衣机",
            "pid": 6,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 23,
            "name": "洗烘一体机",
            "pid": 6,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 24,
            "name": "多门",
            "pid": 7,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 25,
            "name": "对开",
            "pid": 7,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        },
        {
            "id": 26,
            "name": "双门",
            "pid": 7,
            "sort_order": null,
            "desc": null,
            "create_time": null,
            "update_time": null,
            "delete_time": null
        }
    ]
}
商品分类添加成功
{
    "status": 0,
    "message": "商品添加成功!",
    "results": {
        "/api/goods_cate/create": "",
        "name": "文具",
        "pid": "",
        "id": "28"
    }
}
参数名 类型 说明
groupid int 用户组id,1:超级管理员;2:普通用户
备注
  • 更多返回错误代码请看首页的错误代码描述
参数
参数名 必选 类型 说明
username string 用户名
password string 密码
name string 昵称