GET 取得当前资源库文件夹列表
**

范例代码:

  1. var requestOptions = {
  2. method: 'GET',
  3. redirect: 'follow'
  4. };
  5. fetch("http://localhost:41595/api/folder/list", requestOptions)
  6. .then(response => response.json())
  7. .then(result => console.log(result))
  8. .catch(error => console.log('error', error));

返回结果:

  1. {
  2. "status": "success",
  3. "data": [
  4. {
  5. "id": "JMHB2Y3Y3AA75",
  6. "name": "UI Design",
  7. "description": "",
  8. "children": [],
  9. "modificationTime": 1537854867502,
  10. "tags": [],
  11. "imageCount": 33,
  12. "descendantImageCount": 33,
  13. "pinyin": "UI Design",
  14. "extendTags": []
  15. },
  16. {
  17. "id": "JMHB2Y3Y3AA76",
  18. "name": "Post Design",
  19. "description": "",
  20. "children": [],
  21. "modificationTime": 1487586362384,
  22. "tags": [],
  23. "imageCount": 2800,
  24. "descendantImageCount": 2800,
  25. "pinyin": "Post Design",
  26. "extendTags": []
  27. },
  28. {
  29. "id": "JMHB2Y3Y3AA77",
  30. "name": "Movie Post Design",
  31. "description": "",
  32. "children": [],
  33. "modificationTime": 1487586529221,
  34. "tags": [],
  35. "imageCount": 449,
  36. "descendantImageCount": 449,
  37. "pinyin": "Movie Post Design",
  38. "extendTags": []
  39. },
  40. {
  41. "id": "JMHB2Y3Y3AA78",
  42. "name": "Business Card Design",
  43. "description": "",
  44. "children": [],
  45. "modificationTime": 1494390324202,
  46. "tags": [
  47. "Business Card"
  48. ],
  49. "imageCount": 1236,
  50. "descendantImageCount": 1236,
  51. "pinyin": "Business Card Design",
  52. "extendTags": [
  53. "Business Card"
  54. ]
  55. }
  56. ]
  57. }