Showing
1 changed file
with
19 additions
and
22 deletions
| @@ -18,28 +18,25 @@ id 和 path 直传一个,两个都传,默认以id为准 | @@ -18,28 +18,25 @@ id 和 path 直传一个,两个都传,默认以id为准 | ||
| 18 | 18 | ||
| 19 | ####接口返回值为: | 19 | ####接口返回值为: |
| 20 | ```json | 20 | ```json |
| 21 | -[ | 21 | +返回一级目录: |
| 22 | - { | 22 | +{ |
| 23 | - "id": 1, | 23 | + "catalogList": [ |
| 24 | - "path": 100, | 24 | + { |
| 25 | - "name": "教材" | 25 | + "id": 1867, |
| 26 | - }, | 26 | + "pathFlag": 100, |
| 27 | - { | 27 | + "name": "教材", |
| 28 | - "id": 2, | 28 | + "summary": null, |
| 29 | - "path": 100100, | 29 | + "image":"http://avatars.boxfish.cn/user/-12/figure/1411532427.jpg" |
| 30 | - "name": "七年级上" | 30 | + }, |
| 31 | - }, | 31 | + { |
| 32 | - { | 32 | + "id": 2420, |
| 33 | - "id": 3, | 33 | + "pathFlag": 101, |
| 34 | - "path": 100100100, | 34 | + "name": "文章", |
| 35 | - "name": "Unit 1" | 35 | + "summary": null, |
| 36 | - }, | 36 | + "image":"http://avatars.boxfish.cn/user/-12/figure/1411532427.jpg" |
| 37 | - { | 37 | + } |
| 38 | - "id": 4, | 38 | + ] |
| 39 | - "path": 100100101, | 39 | +} |
| 40 | - "name": "Unit 2" | ||
| 41 | - } | ||
| 42 | -] | ||
| 43 | ``` | 40 | ``` |
| 44 | 41 | ||
| 45 | path是为提供树形结构提供的数据信息,三位数字为一个单位,每个单位固定以100开头,举例来讲: | 42 | path是为提供树形结构提供的数据信息,三位数字为一个单位,每个单位固定以100开头,举例来讲: |
-
Please register or login to post a comment