获取全部分类

GET {url} /app/category/getCategory


上级id不传默认返回所有一级分类(仅支持“parent_id”、“name”搜索)

请求:

字段

名称

类型

是否必填

parent_id

上级id

int

name 分类名称 string

source 分类来源(搜索插件分类时使用) int 127:数字权益插件分类

is_plugin 插件分类标识 int  0系统1插件

否(默认0)


返回:

{

“code”: 0,

“data”: {

“list”: [

{

“id”: 1,

“created_at”: null,

“updated_at”: 1635683624,

“name”: “美妆产品”, 分类名称

“sort”: 3,

“level”: 1, 分类层级

“desc”: “”,

“is_display”: 1, 状态 1启用 0关闭

“image”: “https://supply-chain-zhongtai.oss-cn-beijing.aliyuncs.com/20211031/1635683622美妆.jpg”, 分类图片

“icon”: “”,

“hasChildrens”: true,

“url”: “”,

“source”: 0,

“parent_id”: 0, 上级id

“childrens”: null

},

],

“total”: 0,

“page”: 0,

“pageSize”: 0,

“next_url”: “”

},

“msg”: “获取成功”

}

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部