文档
测试

标签列表-获取标签分类列表

POST
{{host}}/tags/getNode

请求头

参数名
类型
描述
必填
token
String
token登录认证
必填

响应参数

参数名
类型
描述
必填
code
string
示例:200
必填
result
object
数据字典
必填
goodsId
int
示例:158
必填
goodsName
string
示例:儿童餐椅
必填
arrTags
array
数据列表
必填
createTime
string
示例:2020-10-09 17:01:32
必填
createBy
string
示例:testzst
必填
updateTime
string
示例:2020-10-13 11:10:46
必填
updateBy
string
示例:testzst
必填
id
int
示例:11
必填
parentId
int
示例:9
必填
classify1Id
int
示例:3
必填
classify2Id
int
示例:8
必填
classify3Id
int
示例:9
必填
name
string
示例:010101叶子2
必填
level
int
示例:4
必填
hasSelf
int
示例:0
必填
sort
int
示例:1000
必填
hasValid
int
示例:0
必填
memberNum
object
示例:null
必填
goodsNum
object
示例:null
必填
goodsNameStr
object
示例:null
必填
createTime
object
示例:null
必填
tagsNameStr
object
示例:null
必填
tagsIdStr
object
示例:null
必填
success
boolean
示例:true
必填
timestamp
string
示例:2020-10-13 13:42:39
必填

说明 / 示例

**说明** 此接口返回Tree型标签结构, 显示叶子节点信息需调用getLeag接口 **返回示例** ```json { "code": "200", "result": [ { "id": 3, "name": "一级分类01", "parentId": 0, "sort": 1000, "level": 1, "hasSelf": 0, "memberNum": 0, "hasGoods": false, "hasValid": true, "goodsNum": 0, "goodsNameStr": null, "child": [ { "id": 8, "name": "0101", "parentId": 3, "sort": 1000, "level": 2, "hasSelf": 0, "memberNum": 0, "hasGoods": false, "hasValid": true, "goodsNum": 0, "goodsNameStr": null, "child": [ { "id": 9, "name": "010101", "parentId": 8, "sort": 1000, "level": 3, "hasSelf": 0, "memberNum": 0, "hasGoods": false, "hasValid": true, "goodsNum": 0, "goodsNameStr": null, "child": null }, { "id": 12, "name": "010102", "parentId": 8, "sort": 1000, "level": 3, "hasSelf": 0, "memberNum": 0, "hasGoods": false, "hasValid": true, "goodsNum": 0, "goodsNameStr": null, "child": null } ] } ] }, { "id": 4, "name": "02", "parentId": 0, "sort": 1000, "level": 1, "hasSelf": 0, "memberNum": 0, "hasGoods": false, "hasValid": true, "goodsNum": 0, "goodsNameStr": null, "child": null }, { "id": 5, "name": "03", "parentId": 0, "sort": 1000, "level": 1, "hasSelf": 0, "memberNum": 0, "hasGoods": false, "hasValid": true, "goodsNum": 0, "goodsNameStr": null, "child": null } ], "success": true, "timestamp": "2020-10-12 14:44:05" } ``` **result说明** |参数名|类型|说明| |-|-|-| |id| Long| 分类ID | |parentId| Long| 上级分类ID | |name| String| 分类名称 | |level| Integer| 所属等级 | |hasSelf| Integer| 是否自定义 0:否 1:是 | |sort| Integer| 排序字段 | |hasValid| boolean| 是否有效 | |hasGoods| boolean| 是否关联商品 | |memberNum| Long| 标签关联人数(标签列表有效) | |goodsNum| Long| 标签关联商品数(标签列表有效) | |goodsNameStr| String| 关联商品名称集合(标签列表有效) eg: xx,yy,zz |