GET 取得当前运行资源库的详细信息,你可以透过这个功能快速取得 所有文件夹所有智能文件夹所有标签群组快速访问 等信息。

范例代码:

  1. var requestOptions = {
  2. method: 'GET',
  3. redirect: 'follow'
  4. };
  5. fetch("http://localhost:41595/api/library/info", 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. "folders": [
  5. {
  6. "id": "32455218-9e79-61ca-7e1d-034c0ed9f33b",
  7. "name": "海报设计",
  8. "description": "",
  9. "children": [
  10. {
  11. "id": "c89b30aa-b951-080c-0139-c2ea3f1aa549",
  12. "name": "电影海报2",
  13. "description": "",
  14. "children": [],
  15. "modificationTime": 1487586529221,
  16. "tags": [],
  17. "iconColor": "orange",
  18. "password": "",
  19. "passwordTips": "",
  20. "coverId": "850b5be2-73be-5ab5-d96b-d16d1c4baef4",
  21. "orderBy": "MANUAL",
  22. "sortIncrease": true
  23. }
  24. ],
  25. "modificationTime": 1487586362385,
  26. "tags": [],
  27. "iconColor": "red",
  28. "password": "",
  29. "passwordTips": "",
  30. "coverId": "a387c5d6-5c27-4f1e-96d1-af7ae0256887",
  31. "orderBy": "MANUAL",
  32. "sortIncrease": true
  33. },
  34. {
  35. "id": "2589f314-4973-e688-7ae0-9ea59949fdca",
  36. "name": "名片设计",
  37. "description": "",
  38. "children": [],
  39. "modificationTime": 1494390324202,
  40. "tags": [
  41. "名片"
  42. ],
  43. "iconColor": "yellow",
  44. "password": "",
  45. "passwordTips": "",
  46. "coverId": "9948622c-1734-cd31-cf64-af5284675b29"
  47. },
  48. {
  49. "id": "f912f591-000b-2be0-0bf4-e01229a36737",
  50. "name": "工业风设计",
  51. "description": "",
  52. "children": [],
  53. "modificationTime": 1494396692476,
  54. "tags": [
  55. "工业风",
  56. "Loft",
  57. "室内设计"
  58. ],
  59. "iconColor": "green",
  60. "password": "",
  61. "passwordTips": "",
  62. "coverId": "d18dad7d-6904-5e4d-1481-9335d675e66b",
  63. "orderBy": "MANUAL",
  64. "sortIncrease": true
  65. },
  66. {
  67. "id": "1b31d97a-3a4a-eaf8-4fa3-06701952055e",
  68. "name": "城市艺术",
  69. "description": "",
  70. "children": [],
  71. "modificationTime": 1494390919034,
  72. "tags": [
  73. "Urban Art",
  74. "街头艺术"
  75. ],
  76. "iconColor": "aqua",
  77. "password": "",
  78. "passwordTips": ""
  79. },
  80. {
  81. "id": "046678f7-b671-940b-4bf8-e7496a0e08b5",
  82. "name": "工业设计",
  83. "description": "",
  84. "children": [],
  85. "modificationTime": 1494394412374,
  86. "tags": [],
  87. "iconColor": "blue",
  88. "password": "",
  89. "passwordTips": "",
  90. "coverId": "7cb9cf92-55e2-d94e-bbcd-e51471abace3"
  91. },
  92. {
  93. "id": "d0cb83e6-d5ce-b7b1-0d3d-51966a979870",
  94. "name": "建筑设计",
  95. "description": "",
  96. "children": [],
  97. "modificationTime": 1494395202363,
  98. "tags": [],
  99. "iconColor": "purple",
  100. "password": "",
  101. "passwordTips": "",
  102. "coverId": "8acdd268-f7e8-26c0-d514-7bf85e11b2d3",
  103. "orderBy": "NAME",
  104. "sortIncrease": true
  105. },
  106. {
  107. "id": "JMMYPFRJEOWBE",
  108. "name": "广告设计",
  109. "description": "",
  110. "children": [],
  111. "modificationTime": 1538196878863,
  112. "tags": [],
  113. "iconColor": "pink",
  114. "password": "",
  115. "passwordTips": "",
  116. "orderBy": "MANUAL",
  117. "sortIncrease": true
  118. },
  119. {
  120. "id": "ecd7e099-956a-4c39-8cb7-c1ca3bbe165a",
  121. "name": "封面设计",
  122. "description": "",
  123. "children": [],
  124. "modificationTime": 1524732016241,
  125. "tags": [],
  126. "password": "dHA2dTRjbDY=",
  127. "passwordTips": "my name"
  128. },
  129. {
  130. "id": "b2c109cc-d748-0056-f667-27c1d03d9b3a",
  131. "name": "插画设计",
  132. "description": "",
  133. "children": [
  134. {
  135. "id": "JTFIUSP4MVTZC",
  136. "name": "未分类",
  137. "description": "",
  138. "children": [],
  139. "modificationTime": 1552984468168,
  140. "tags": [],
  141. "icon": "graph",
  142. "password": "",
  143. "passwordTips": "",
  144. "coverId": "JSM0JZYBVPZNF",
  145. "orderBy": "MANUAL",
  146. "sortIncrease": true
  147. },
  148. {
  149. "id": "K7ZNYYMVH1X2B",
  150. "name": "插画 - Avatar 大头照",
  151. "description": "",
  152. "children": [],
  153. "modificationTime": 1584677336791,
  154. "tags": [],
  155. "icon": "graph",
  156. "password": "",
  157. "passwordTips": "",
  158. "orderBy": "MANUAL",
  159. "sortIncrease": true
  160. },
  161. {
  162. "id": "9e3614ef-ce1d-ac93-af02-12ae1a595b87",
  163. "name": "插画 - Lucas Wakamatsu",
  164. "description": "",
  165. "children": [],
  166. "modificationTime": 1514532502842,
  167. "tags": [],
  168. "icon": "graph",
  169. "password": "",
  170. "passwordTips": "",
  171. "coverId": "da3054fd-94ee-1b2e-6ec5-bb9802f5c7a1",
  172. "orderBy": "MANUAL",
  173. "sortIncrease": true
  174. },
  175. {
  176. "id": "fd95a640-55f9-ff15-54e0-155043e44348",
  177. "name": "插画 - 界面设计插画",
  178. "description": "",
  179. "children": [],
  180. "modificationTime": 1514530884438,
  181. "tags": [
  182. "肌理插画"
  183. ],
  184. "icon": "graph",
  185. "password": "",
  186. "passwordTips": "",
  187. "coverId": "JSDGCG1TQ2A2V",
  188. "orderBy": "MANUAL",
  189. "sortIncrease": true
  190. },
  191. {
  192. "id": "5830a048-a19d-0af1-86ba-55723891b7a0",
  193. "name": "插画 - MBE 风格",
  194. "description": "",
  195. "children": [],
  196. "modificationTime": 1514530555940,
  197. "tags": [],
  198. "icon": "graph",
  199. "password": "",
  200. "passwordTips": "",
  201. "coverId": "6d568f4b-be09-80ac-8989-fe6c1562f5f6"
  202. },
  203. {
  204. "id": "JPWGXRBUZ722T",
  205. "name": "插画 - 稀奇古怪",
  206. "description": "",
  207. "children": [],
  208. "modificationTime": 1545302042778,
  209. "tags": [],
  210. "icon": "graph",
  211. "password": "",
  212. "passwordTips": "",
  213. "coverId": "JPCI284T29QVM"
  214. },
  215. {
  216. "id": "JVCGQNEBZCQWZ",
  217. "name": "插画 - 图标",
  218. "description": "",
  219. "children": [],
  220. "modificationTime": 1557153081587,
  221. "tags": [],
  222. "icon": "graph",
  223. "password": "",
  224. "passwordTips": "",
  225. "orderBy": "MANUAL",
  226. "sortIncrease": true
  227. }
  228. ],
  229. "modificationTime": 1514532718237,
  230. "tags": [],
  231. "icon": "graph",
  232. "password": "",
  233. "passwordTips": "",
  234. "coverId": "JS4CPCMWSQ4NT"
  235. }
  236. ],
  237. "smartFolders": [
  238. {
  239. "id": "JQQAV9CA71QSZ",
  240. "icon": "calendar-week",
  241. "name": "最近一周",
  242. "description": "",
  243. "modificationTime": 1542962230621,
  244. "conditions": [
  245. {
  246. "match": "OR",
  247. "rules": [
  248. {
  249. "method": "within",
  250. "property": "createTime",
  251. "value": [
  252. 7
  253. ]
  254. }
  255. ]
  256. }
  257. ],
  258. "orderBy": "FILESIZE",
  259. "sortIncrease": true
  260. },
  261. {
  262. "id": "b2ece90b-3692-4f85-a2c5-4b39b8c10206",
  263. "icon": "calendar-month",
  264. "name": "最近 30 天",
  265. "description": "",
  266. "modificationTime": 1542998358475,
  267. "conditions": [
  268. {
  269. "match": "OR",
  270. "rules": [
  271. {
  272. "method": "within",
  273. "property": "createTime",
  274. "value": [
  275. 30
  276. ]
  277. }
  278. ]
  279. }
  280. ]
  281. },
  282. {
  283. "id": "7de0bdb8-3124-add7-4a1f-b51f126aa738",
  284. "name": "红色海报",
  285. "description": "",
  286. "modificationTime": 1564766432167,
  287. "conditions": [
  288. {
  289. "$$hashKey": "object:7456",
  290. "match": "AND",
  291. "rules": [
  292. {
  293. "$$hashKey": "object:7462",
  294. "method": "intersection",
  295. "property": "tags",
  296. "value": [
  297. "Poster"
  298. ]
  299. },
  300. {
  301. "$$hashKey": "object:7463",
  302. "method": "similar",
  303. "property": "color",
  304. "value": "#ff2600"
  305. }
  306. ]
  307. }
  308. ]
  309. },
  310. {
  311. "id": "JN03O08107BI0",
  312. "name": "蓝色海报",
  313. "description": "",
  314. "modificationTime": 1517283297754,
  315. "conditions": [
  316. {
  317. "match": "AND",
  318. "rules": [
  319. {
  320. "method": "intersection",
  321. "property": "tags",
  322. "value": [
  323. "Poster"
  324. ]
  325. },
  326. {
  327. "method": "similar",
  328. "property": "color",
  329. "value": "#0096ff"
  330. }
  331. ]
  332. }
  333. ],
  334. "orderBy": "RATING",
  335. "sortIncrease": false
  336. }
  337. ],
  338. "quickAccess": [
  339. {
  340. "type": "smartFolder",
  341. "id": "7de0bdb8-3124-add7-4a1f-b51f126aa738"
  342. }
  343. ],
  344. "tagsGroups": [
  345. {
  346. "id": "c549d2a8-c187-c612-617f-83fcef4976a2",
  347. "name": "地区",
  348. "tags": [
  349. "厨房"
  350. ],
  351. "color": "yellow"
  352. },
  353. {
  354. "id": "549c0c05-414f-b114-4832-578e77d937ab",
  355. "name": "电影名称",
  356. "tags": [
  357. "Justas Galaburda2",
  358. "勇敢传说",
  359. "Macbeth",
  360. "美国队长",
  361. "死者",
  362. "蚁侠",
  363. "沒有的標籤"
  364. ],
  365. "color": "red"
  366. },
  367. {
  368. "id": "1293781293891211321",
  369. "name": "风格",
  370. "tags": [
  371. "工业风",
  372. "Loft",
  373. "扁平风格",
  374. "Banner"
  375. ]
  376. },
  377. {
  378. "id": "129378129389128391",
  379. "name": "设计师",
  380. "tags": [
  381. "安藤忠雄"
  382. ]
  383. },
  384. {
  385. "id": "02b1fcc3-c337-899d-ddec-c2aa88a0e518",
  386. "name": "颜色",
  387. "tags": [
  388. "黑色",
  389. "黃色",
  390. "橘色",
  391. "紫色",
  392. "藍色",
  393. "綠色"
  394. ]
  395. }
  396. ],
  397. "modificationTime": 1592461625783,
  398. "applicationVersion": "1.11.0"
  399. }
  400. }