文档
测试

获取分类✔️

GET
http://192.168.2.46:8000/Pro/GetTreeCategorys

接口描述

获取分类列表

请求头

参数名
类型
描述
必填
Token
string
示例:ba786727-a344-490c-a79d-3806b3dd6b5f
必填

响应参数

参数名
类型
描述
必填
ResultCode
number
示例:200
必填
Message
string
示例:操作成功
必填
Tag
object
数据字典
必填
CategoryId
number
示例:2
必填
CreatedTime
string
示例:2019-12-27 17:45:45
必填
CategoryIdsSequence
object
示例:null
必填
ArticlesIdsSequence
object
示例:null
必填
Items
array
数据列表
必填
CategoryId
number
示例:8
必填
CreatedTime
string
示例:2020-03-31 10:42:25
必填
CategoryIdsSequence
object
示例:null
必填
ArticlesIdsSequence
object
示例:null
必填
Items
array
数据列表
必填
CategoryId
number
示例:13
必填
CreatedTime
string
示例:2020-03-31 10:43:19
必填
CategoryIdsSequence
object
示例:null
必填
ArticlesIdsSequence
object
示例:null
必填
Items
array
数据列表
必填
HasChildren
boolean
示例:false
必填
Level
number
示例:3
必填
ParentId
number
示例:8
必填
Name
string
示例:蔬菜2
必填
Introduction
string
示例:
必填
HasChildren
boolean
示例:true
必填
Level
number
示例:2
必填
ParentId
number
示例:2
必填
Name
string
示例:保鲜类
必填
Introduction
string
示例:
必填
HasChildren
boolean
示例:true
必填
Level
number
示例:1
必填
ParentId
number
示例:0
必填
Name
string
示例:商品分类
必填
Introduction
string
示例:商品分类
必填
TotalRecord
number
示例:0
必填
Success
boolean
示例:true
必填
ResultCode
number
示例:200
必填
Message
string
示例:操作成功
必填
Tag
object
数据字典
必填
CategoryId
number
示例:2
必填
Items
array
数据列表
必填
CategoryId
number
示例:8
必填
Items
array
数据列表
必填
CategoryId
number
示例:13
必填
Items
array
数据列表
必填
ParentId
number
示例:8
必填
Name
string
示例:蔬菜2
必填
Introduction
string
示例:
必填
ParentId
number
示例:2
必填
Name
string
示例:保鲜类
必填
Introduction
string
示例:
必填
ParentId
number
示例:0
必填
Name
string
示例:商品分类
必填
Introduction
string
示例:商品分类
必填
TotalRecord
number
示例:0
必填
Success
boolean
示例:true
必填

说明 / 示例

返回示例: ```language { "ResultCode": 200, "Message": "操作成功", "Tag": { "CategoryId": 2, "Items": [ { "CategoryId": 8, "Items": [ { "CategoryId": 13, "Items": [], "ParentId": 8, "Name": "蔬菜2", "Introduction": "" }, { "CategoryId": 14, "Items": [], "ParentId": 8, "Name": "水果", "Introduction": "" }, { "CategoryId": 15, "Items": [], "ParentId": 8, "Name": "干果", "Introduction": "" }, { "CategoryId": 17, "Items": [], "ParentId": 8, "Name": "其他", "Introduction": "" }, { "CategoryId": 60, "Items": [], "ParentId": 8, "Name": "药品", "Introduction": "" }, { "CategoryId": 127, "Items": [], "ParentId": 8, "Name": "蔬菜-1", "Introduction": "蔬菜-1" } ], "ParentId": 2, "Name": "保鲜类", "Introduction": "" }, { "CategoryId": 9, "Items": [ { "CategoryId": 16, "Items": [], "ParentId": 9, "Name": "其他", "Introduction": "" }, { "CategoryId": 57, "Items": [], "ParentId": 9, "Name": "水果", "Introduction": "" } ], "ParentId": 2, "Name": "常温类", "Introduction": "" }, { "CategoryId": 27, "Items": [ { "CategoryId": 28, "Items": [], "ParentId": 27, "Name": "奶制品", "Introduction": "奶制品" }, { "CategoryId": 29, "Items": [], "ParentId": 27, "Name": "调料类", "Introduction": "所有调料" } ], "ParentId": 2, "Name": "Ocean冷冻类", "Introduction": "" }, { "CategoryId": 73, "Items": [ { "CategoryId": 74, "Items": [], "ParentId": 73, "Name": "其他", "Introduction": "111" } ], "ParentId": 2, "Name": "lili-常温", "Introduction": "" } ], "ParentId": 0, "Name": "商品分类", "Introduction": "商品分类" }, "TotalRecord": 0, "Success": true } ```