泽光通讯报价小程序

个人创业项目


查询一级分类接口

[TOC]

简要描述
  • 查询一级分类接口
请求URL
  • http://43.143.236.188:9090/phoneclass/findFirstClass?id=04&token=1651
请求方式
  • POST
参数
参数名 必选 类型 说明
token string 登录用户凭证
id string 一级菜单id
返回示例
  {
    "state": 0,
    "message": null,
    "data": {
        "phoneclassTwoVoList": [
            {
                "twoId": "04001",
                "twoName": "iPhone14",
                "twoSort": "1",
                "twoParentId": "04"
            },
            {
                "twoId": "04002",
                "twoName": "iPhone13",
                "twoSort": "1",
                "twoParentId": "04"
            }
        ],
        "phoneclassThreeVoList": [
            {
                "threeId": "04001001",
                "threeName": "iPhone14 128G",
                "threeSort": "1",
                "threeCreateTime": 1668167788000,
                "threeMemory": null,
                "threeParentId": "04001",
                "phoneclassList": [
                    {
                        "id": "0400100101",
                        "name": "iPhone14 128G 午夜色",
                        "parentId": "04001001",
                        "catLevel": "4",
                        "sort": "1",
                        "upDown": "0",
                        "status": "1",
                        "createTime": 1668167821000,
                        "price": 5335,
                        "memory": "128G",
                        "colour": "午夜色",
                        "phoneclassList": null
                    },
                    {
                        "id": "0400100102",
                        "name": "iPhone14 128G 星光色",
                        "parentId": "04001001",
                        "catLevel": "4",
                        "sort": "1",
                        "upDown": "2",
                        "status": "1",
                        "createTime": 1668167915000,
                        "price": 5335,
                        "memory": "128G",
                        "colour": "星光色",
                        "phoneclassList": null
                    }
                ]
            }
        ],
        "phoneclassOneVoList": [
            {
                "oneId": "01",
                "oneSort": "1",
                "oneName": "任天堂"
            },
            {
                "oneId": "02",
                "oneSort": "2",
                "oneName": "索尼"
            },
            {
                "oneId": "03",
                "oneSort": "3",
                "oneName": "微软"
            },
            {
                "oneId": "04",
                "oneSort": "4",
                "oneName": "苹果"
            }
        ]
    }
}
返回参数说明
参数名 类型 说明
state int 请求状态值:成功为0,失败为1
message String 返回消息
data T 返回值:成功为1,失败为0
phoneclassOneVoList List 一级分类
oneId String 一级分类id
oneSort String 一级分类排序
oneName String 一级分类名称
phoneclassTwoVoList List 二级分类
twoId String 二级分类id
twoName String 二级分类名称
twoSort String 二级分类排序
phoneclassThreeVoList List 三级分类
threeId String 三级分类id
threeName String 三级分类名称
threeSort String 三级分类排序
threeCreateTime String 新增时间
threeMemory String 类型内存
phoneclassList List 四级分类
id String 四级分类id
name String 四级分类名称
price String 价格
memory String 类型内存
colour String 颜色类型
upDown String 涨跌 0跌1平2涨
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML