文档
测试

商品分类查询

GET
locakhost:8081/goods

接口描述

商品分类查询

请求参数

参数名
类型
描述
必填
show_status
tinyint
用于状态查询 0不显示,1显示
必填
name
char
根据分类商品的姓名查询
必填

响应参数

参数名
类型
描述
必填
code
int
0-成功,其他业务码-失败
必填
msg
String
提示消息
必填
page
存放当前页码,页码展示数,总条数,总页数
必填
currPage
int
当前页码
必填
list
array
存放分类
必填
cat_id
bigint
分类id
必填
name
char(50)
分类名称
必填
parent_cid
bigint
父分类id
必填
cat_level
int
层级 1为1级分类 2为2级分类 3为级分类
必填
show_status
tinyint
0不显示,1显示
必填
sort
int
排序
必填
icon
char
图标地址
必填
pageSize
int
每页展示数
必填
totalCount
int
总条数
必填
totalPage
int
总页数
必填

响应示例

{ "code": 0, "msg": "success", "data": { "totalCount": 0, "pageSize": 10, "totalPage": 0, "currPage": 1, "list": [ { "cat_id": 1, "name": "手机", "parent_cid: 0, "cat_level": 1, "show_status": 0, "sort": 0, "icon": null } ] } }