文档
测试

标签列表-获取标签信息

POST
{{host}}/tags/getLeaf

请求头

参数名
类型
描述
必填
token
String
token登录认证
必填
hasValid
Integer
空的时候查询全部 0: 查询有效节点 1:查询无效节点
必填

请求参数

参数名
类型
描述
必填
rootTagsId
Long
父节点ID(可空); 为空时,查询全部叶子节点
必填
hasValid
Integer
是否可用 0:可用 1:不可用 空:查全部
必填
hasGoods
Integer
是否关联商品 0:关联 1:未关联 空:查全部
必填
tagsName
String
标签名称(模糊查询)
必填
current
Integer
当前页数
必填
size
Integer
一页条数 (默认10条)
必填

响应参数

参数名
类型
描述
必填
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
必填

说明 / 示例

**说明** 当tagsId为一级标签时, 显示下边所有的叶子节点(不包括有子节点的节点) **返回示例** ```json { "code": "200", "result": { "records": [ { "id": 10, "name": "010101叶子1", "parentId": 9, "sort": 1000, "level": 4, "hasSelf": 0, "memberNum": 0, "hasGoods": false, "hasValid": true, "goodsNum": 0, "goodsNameStr": null, "child": null }, { "id": 11, "name": "010101叶子2", "parentId": 9, "sort": 1000, "level": 4, "hasSelf": 0, "memberNum": 1, "hasGoods": true, "hasValid": true, "goodsNum": 2, "goodsNameStr": "儿童餐椅,酸奶", "child": null }, { "id": 13, "name": "010102叶子1", "parentId": 12, "sort": 1000, "level": 4, "hasSelf": 0, "memberNum": 0, "hasGoods": false, "hasValid": true, "goodsNum": 0, "goodsNameStr": null, "child": null }, { "id": 14, "name": "010102叶子2", "parentId": 12, "sort": 1000, "level": 4, "hasSelf": 0, "memberNum": 0, "hasGoods": false, "hasValid": true, "goodsNum": 0, "goodsNameStr": null, "child": null }, { "id": 15, "name": "010102叶子3", "parentId": 12, "sort": 1000, "level": 4, "hasSelf": 0, "memberNum": 6, "hasGoods": true, "hasValid": true, "goodsNum": 3, "goodsNameStr": "退热贴,儿童餐椅,浴帽", "child": null } ], "total": 5, "size": 10, "current": 1, "orders": [], "searchCount": true, "pages": 1 }, "success": true, "timestamp": "2020-10-13 14:55:46" } ``` **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 |