文档
测试

根据id,获取树形类别

GET
https://api.msk-edu.com/api/kaoshi/getCategoryTreeToSecFloor

接口描述

应用场景:作品的两级分类

请求头

参数名
类型
描述
必填
defaultid
int
【非必填】类型id,缺省值为0
必填

说明 / 示例

{ "status": { "code": 200, "message": "操作成功" }, "data": [ { "id": 1, "title": "素描石膏", "ImgSrc": null, "parentId": 0, "children": [ { "id": 2, "title": "石膏几何体", "ImgSrc": null, "parentId": 1, "children": [], "path": "|0|1|2|" }, { "id": 5, "title": "石膏头像", "ImgSrc": "", "parentId": 1, "children": [], "path": "|0|1|5|" }, { "id": 8, "title": "石膏半身像", "ImgSrc": "", "parentId": 1, "children": [], "path": "|0|1|8|" }, { "id": 11, "title": "其他石膏", "ImgSrc": "", "parentId": 1, "children": [], "path": "|0|1|11|" } ], "path": "|0|1|" }, { "id": 14, "title": "素描静物", "ImgSrc": "", "parentId": 0, "children": [ { "id": 15, "title": "水果类", "ImgSrc": "", "parentId": 14, "children": [], "path": "|0|14|15|" }, { "id": 18, "title": "蔬菜类", "ImgSrc": "", "parentId": 14, "children": [], "path": "|0|14|18|" }, { "id": 21, "title": "文具类", "ImgSrc": "", "parentId": 14, "children": [], "path": "|0|14|21|" }, { "id": 24, "title": "杂物类", "ImgSrc": "", "parentId": 14, "children": [], "path": "|0|14|24|" } ], "path": "|0|14|" }, { "id": 27, "title": "素描头像", "ImgSrc": "", "parentId": 0, "children": [ { "id": 28, "title": "儿童", "ImgSrc": "", "parentId": 27, "children": [], "path": "|0|27|28|" }, { "id": 32, "title": "女青年", "ImgSrc": "", "parentId": 27, "children": [], "path": "|0|27|32|" }, { "id": 37, "title": "男青年", "ImgSrc": "", "parentId": 27, "children": [], "path": "|0|27|37|" }, { "id": 42, "title": "女中年", "ImgSrc": "", "parentId": 27, "children": [], "path": "|0|27|42|" }, { "id": 47, "title": "男中年", "ImgSrc": "", "parentId": 27, "children": [], "path": "|0|27|47|" }, { "id": 52, "title": "女老年", "ImgSrc": "", "parentId": 27, "children": [], "path": "|0|27|52|" } ], "path": "|0|27|" }, { "id": 57, "title": "色彩静物", "ImgSrc": "", "parentId": 0, "children": [ { "id": 58, "title": "水果类", "ImgSrc": "", "parentId": 57, "children": [], "path": "|0|57|58|" }, { "id": 65, "title": "蔬菜类", "ImgSrc": "", "parentId": 57, "children": [], "path": "|0|57|65|" }, { "id": 72, "title": "花卉类", "ImgSrc": "", "parentId": 57, "children": [], "path": "|0|57|72|" }, { "id": 79, "title": "杂物类", "ImgSrc": "", "parentId": 57, "children": [], "path": "|0|57|79|" }, { "id": 86, "title": "文具类", "ImgSrc": "", "parentId": 57, "children": [], "path": "|0|57|86|" }, { "id": 93, "title": "综合类", "ImgSrc": "", "parentId": 57, "children": [], "path": "|0|57|93|" } ], "path": "|0|57|" }, { "id": 100, "title": "色彩场景", "ImgSrc": "", "parentId": 0, "children": [ { "id": 101, "title": "室内场景", "ImgSrc": "", "parentId": 100, "children": [], "path": "|0|100|101|" } ], "path": "|0|100|" }, { "id": 144, "title": "色彩风暴", "ImgSrc": "", "parentId": 0, "children": [ { "id": 145, "title": "城市街景", "ImgSrc": "", "parentId": 144, "children": [], "path": "|0|144|145|" }, { "id": 152, "title": "乡村风景", "ImgSrc": "", "parentId": 144, "children": [], "path": "|0|144|152|" }, { "id": 159, "title": "江南水乡", "ImgSrc": "", "parentId": 144, "children": [], "path": "|0|144|159|" }, { "id": 166, "title": "古镇风景", "ImgSrc": "", "parentId": 144, "children": [], "path": "|0|144|166|" }, { "id": 173, "title": "公园一角", "ImgSrc": "", "parentId": 144, "children": [], "path": "|0|144|173|" }, { "id": 180, "title": "四季风景", "ImgSrc": "", "parentId": 144, "children": [], "path": "|0|144|180|" } ], "path": "|0|144|" }, { "id": 187, "title": "色彩头像", "ImgSrc": "", "parentId": 0, "children": [ { "id": 188, "title": "儿童", "ImgSrc": "", "parentId": 187, "children": [], "path": "|0|187|188|" }, { "id": 192, "title": "女青年", "ImgSrc": "", "parentId": 187, "children": [], "path": "|0|187|192|" }, { "id": 197, "title": "男青年", "ImgSrc": "", "parentId": 187, "children": [], "path": "|0|187|197|" }, { "id": 202, "title": "女中年", "ImgSrc": "", "parentId": 187, "children": [], "path": "|0|187|202|" }, { "id": 207, "title": "男中年", "ImgSrc": "", "parentId": 187, "children": [], "path": "|0|187|207|" }, { "id": 212, "title": "女老年", "ImgSrc": "", "parentId": 187, "children": [], "path": "|0|187|212|" } ], "path": "|0|187|" }, { "id": 217, "title": "速写", "ImgSrc": "", "parentId": 0, "children": [ { "id": 218, "title": "单人速写", "ImgSrc": "", "parentId": 217, "children": [], "path": "|0|217|218|" }, { "id": 222, "title": "双人组合", "ImgSrc": "", "parentId": 217, "children": [], "path": "|0|217|222|" }, { "id": 229, "title": "多人场景", "ImgSrc": "", "parentId": 217, "children": [], "path": "|0|217|229|" }, { "id": 236, "title": "命题速写", "ImgSrc": "", "parentId": 217, "children": [], "path": "|0|217|236|" } ], "path": "|0|217|" } ] }