AtUserProvider.dart 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037
  1. import 'package:collection/collection.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:lpinyin/lpinyin.dart';
  4. class AtUserProvider with ChangeNotifier {
  5. int curTop = 0;
  6. double appBtmHeight = 40;
  7. bool ifStick = true;
  8. AppBar appBar = AppBar();
  9. double appHeight = 0;
  10. List<Key> keys = <Key>[];
  11. ScrollController controller = ScrollController();
  12. List<Contact> contacts = <Contact>[];
  13. List<Map<String, dynamic>> dataMap = <Map<String, dynamic>>[];
  14. late Map<dynamic, List<dynamic>> result;
  15. List<String> groupList = [];
  16. AtUserProvider() {
  17. appHeight = appBar.preferredSize.height;
  18. for (var item in data) {
  19. contacts.add(Contact(
  20. avatarUrl: item["avatar_url"].toString(),
  21. userName: item["name"].toString(),
  22. desc: item["headline"].toString()));
  23. String startText = item["name"].toString();
  24. if (startText == "") {
  25. startText = " ";
  26. } else {
  27. startText = startText[0];
  28. }
  29. if (RegExp("^[\u4e00-\u9fa5]").firstMatch(startText) != null) {
  30. contacts.last.groupCode =
  31. PinyinHelper.getShortPinyin(startText)[0].toLowerCase();
  32. } else if (RegExp("^[a-zA-Z]").firstMatch(startText) != null) {
  33. contacts.last.groupCode = startText.toLowerCase();
  34. } else {
  35. contacts.last.groupCode = "#";
  36. }
  37. groupList.add(contacts.last.groupCode);
  38. dataMap.add(Contact.toMap(contacts.last));
  39. }
  40. groupList = groupList.toSet().toList();
  41. groupList.sort((a, b) => a.toString().compareTo(b.toString()));
  42. dataMap.sort((a, b) =>
  43. a["groupCode"].toString().compareTo(b["groupCode"].toString()));
  44. result = groupBy(dataMap, (o) => o["groupCode"]);
  45. // print(result);
  46. print('done');
  47. }
  48. setIfStick(stick) {
  49. ifStick = stick;
  50. notifyListeners();
  51. }
  52. }
  53. class ContactResult {
  54. String key = "";
  55. List<dynamic> value = [];
  56. }
  57. class Contact {
  58. String avatarUrl = "";
  59. String userName = "";
  60. String desc = "";
  61. String groupCode = "";
  62. static Map<String, dynamic> toMap(Contact item) {
  63. return {
  64. "avatarUrl": item.avatarUrl,
  65. "userName": item.userName,
  66. "desc": item.desc,
  67. "groupCode": item.groupCode
  68. };
  69. }
  70. Contact(
  71. {required this.avatarUrl, required this.desc, required this.userName});
  72. }
  73. List data = [
  74. {
  75. "id": "2149cbd6f1fbd070ff9045e648764ab6",
  76. "url_token": "ji-yi-85-34",
  77. "name": "记忆",
  78. "use_default_avatar": false,
  79. "avatar_url":
  80. "https://pic1.zhimg.com/v2-0aa271fdadb3130a549af500c4d4569a_is.jpg",
  81. "avatar_url_template":
  82. "https://pic1.zhimg.com/v2-0aa271fdadb3130a549af500c4d4569a_{size}.jpg",
  83. "is_org": false,
  84. "type": "people",
  85. "url": "https://www.zhihu.com/people/ji-yi-85-34",
  86. "user_type": "people",
  87. "headline": "",
  88. "gender": -1,
  89. "is_advertiser": false,
  90. "vip_info": {"is_vip": false, "rename_days": "60"},
  91. "badge": [],
  92. "is_following": false,
  93. "is_followed": true,
  94. "follower_count": 0,
  95. "answer_count": 0,
  96. "articles_count": 0
  97. },
  98. {
  99. "id": "04d44e85c074c4b22775375886576303",
  100. "url_token": "leyls-50",
  101. "name": "Leyls",
  102. "use_default_avatar": false,
  103. "avatar_url":
  104. "https://pic2.zhimg.com/v2-d2f3715564b0b40a8dafbfdec3803f97_is.jpg",
  105. "avatar_url_template":
  106. "https://pic2.zhimg.com/v2-d2f3715564b0b40a8dafbfdec3803f97_{size}.jpg",
  107. "is_org": false,
  108. "type": "people",
  109. "url": "https://www.zhihu.com/people/leyls-50",
  110. "user_type": "people",
  111. "headline": "",
  112. "gender": -1,
  113. "is_advertiser": false,
  114. "vip_info": {"is_vip": false, "rename_days": "60"},
  115. "badge": [],
  116. "is_following": false,
  117. "is_followed": true,
  118. "follower_count": 0,
  119. "answer_count": 0,
  120. "articles_count": 0
  121. },
  122. {
  123. "id": "8fbf538ae273714fc51df3e845edb22b",
  124. "url_token": "yong-hu-6198445175",
  125. "name": "用户6198445175",
  126. "use_default_avatar": true,
  127. "avatar_url": "https://pic4.zhimg.com/da8e974dc_is.jpg",
  128. "avatar_url_template": "https://pic4.zhimg.com/da8e974dc_{size}.jpg",
  129. "is_org": false,
  130. "type": "people",
  131. "url": "https://www.zhihu.com/people/yong-hu-6198445175",
  132. "user_type": "people",
  133. "headline": "",
  134. "gender": -1,
  135. "is_advertiser": false,
  136. "vip_info": {"is_vip": false, "rename_days": "60"},
  137. "badge": [],
  138. "is_following": false,
  139. "is_followed": true,
  140. "follower_count": 0,
  141. "answer_count": 0,
  142. "articles_count": 0
  143. },
  144. {
  145. "id": "a91ae701e3a5907caa2e9b391aa2ffed",
  146. "url_token": "maybe-15-63",
  147. "name": "Maybe",
  148. "use_default_avatar": false,
  149. "avatar_url":
  150. "https://pic4.zhimg.com/v2-0edac6fcc7bf69f6da105fe63268b84c_is.jpg",
  151. "avatar_url_template":
  152. "https://pic4.zhimg.com/v2-0edac6fcc7bf69f6da105fe63268b84c_{size}.jpg",
  153. "is_org": false,
  154. "type": "people",
  155. "url": "https://www.zhihu.com/people/maybe-15-63",
  156. "user_type": "people",
  157. "headline": "",
  158. "gender": -1,
  159. "is_advertiser": false,
  160. "vip_info": {"is_vip": false, "rename_days": "60"},
  161. "badge": [],
  162. "is_following": false,
  163. "is_followed": true,
  164. "follower_count": 0,
  165. "answer_count": 0,
  166. "articles_count": 0
  167. },
  168. {
  169. "id": "ea9806c42cc0b02f5f2bd059777724fd",
  170. "url_token": "du-ji-57-59-74",
  171. "name": "嘟唧",
  172. "use_default_avatar": false,
  173. "avatar_url":
  174. "https://pic2.zhimg.com/v2-bd46162e4c96d4046ec27a7cf48536cb_is.jpg",
  175. "avatar_url_template":
  176. "https://pic2.zhimg.com/v2-bd46162e4c96d4046ec27a7cf48536cb_{size}.jpg",
  177. "is_org": false,
  178. "type": "people",
  179. "url": "https://www.zhihu.com/people/du-ji-57-59-74",
  180. "user_type": "people",
  181. "headline": "",
  182. "gender": -1,
  183. "is_advertiser": false,
  184. "vip_info": {"is_vip": false, "rename_days": "60"},
  185. "badge": [],
  186. "is_following": false,
  187. "is_followed": true,
  188. "follower_count": 0,
  189. "answer_count": 0,
  190. "articles_count": 0
  191. },
  192. {
  193. "id": "62f34d1e4fb40d0d5b908aa35bb95459",
  194. "url_token": "she-yu-79-9",
  195. "name": "舍予",
  196. "use_default_avatar": false,
  197. "avatar_url":
  198. "https://pic1.zhimg.com/v2-f8c95bf6807a3773eb5679aae2892960_is.jpg",
  199. "avatar_url_template":
  200. "https://pic1.zhimg.com/v2-f8c95bf6807a3773eb5679aae2892960_{size}.jpg",
  201. "is_org": false,
  202. "type": "people",
  203. "url": "https://www.zhihu.com/people/she-yu-79-9",
  204. "user_type": "people",
  205. "headline": "",
  206. "gender": -1,
  207. "is_advertiser": false,
  208. "vip_info": {"is_vip": false, "rename_days": "60"},
  209. "badge": [],
  210. "is_following": false,
  211. "is_followed": true,
  212. "follower_count": 0,
  213. "answer_count": 0,
  214. "articles_count": 0
  215. },
  216. {
  217. "id": "294db0cf83ea2625c09e098a3bcb0d5f",
  218. "url_token": "govern-89-70",
  219. "name": "govern",
  220. "use_default_avatar": false,
  221. "avatar_url":
  222. "https://pic4.zhimg.com/v2-5f8e42cfb17988e013b9bf76153da7be_is.jpg",
  223. "avatar_url_template":
  224. "https://pic4.zhimg.com/v2-5f8e42cfb17988e013b9bf76153da7be_{size}.jpg",
  225. "is_org": false,
  226. "type": "people",
  227. "url": "https://www.zhihu.com/people/govern-89-70",
  228. "user_type": "people",
  229. "headline": "",
  230. "gender": -1,
  231. "is_advertiser": false,
  232. "vip_info": {"is_vip": false, "rename_days": "60"},
  233. "badge": [],
  234. "is_following": false,
  235. "is_followed": true,
  236. "follower_count": 0,
  237. "answer_count": 0,
  238. "articles_count": 0
  239. },
  240. {
  241. "id": "7d54c9819b6cec2a47518e37be7e0dfa",
  242. "url_token": "melody-48-78",
  243. "name": "melody",
  244. "use_default_avatar": false,
  245. "avatar_url":
  246. "https://pic4.zhimg.com/v2-8824912d536a4c3185ed0a33453b87c0_is.jpg",
  247. "avatar_url_template":
  248. "https://pic4.zhimg.com/v2-8824912d536a4c3185ed0a33453b87c0_{size}.jpg",
  249. "is_org": false,
  250. "type": "people",
  251. "url": "https://www.zhihu.com/people/melody-48-78",
  252. "user_type": "people",
  253. "headline": "",
  254. "gender": -1,
  255. "is_advertiser": false,
  256. "vip_info": {"is_vip": false, "rename_days": "60"},
  257. "badge": [],
  258. "is_following": false,
  259. "is_followed": true,
  260. "follower_count": 0,
  261. "answer_count": 0,
  262. "articles_count": 0
  263. },
  264. {
  265. "id": "017090d3fbbcba60b16f2e28ff6a78c2",
  266. "url_token": "na-4jia-ha-will",
  267. "name": "那4家哈will",
  268. "use_default_avatar": true,
  269. "avatar_url": "https://pic4.zhimg.com/da8e974dc_is.jpg",
  270. "avatar_url_template": "https://pic4.zhimg.com/da8e974dc_{size}.jpg",
  271. "is_org": false,
  272. "type": "people",
  273. "url": "https://www.zhihu.com/people/na-4jia-ha-will",
  274. "user_type": "people",
  275. "headline": "",
  276. "gender": -1,
  277. "is_advertiser": false,
  278. "vip_info": {"is_vip": false, "rename_days": "60"},
  279. "badge": [],
  280. "is_following": false,
  281. "is_followed": true,
  282. "follower_count": 0,
  283. "answer_count": 0,
  284. "articles_count": 0
  285. },
  286. {
  287. "id": "8e88f077f33d1c9a368a2829293214c8",
  288. "url_token": "susu-35-99",
  289. "name": "susu",
  290. "use_default_avatar": false,
  291. "avatar_url":
  292. "https://pic1.zhimg.com/v2-0246f15a0edea34ad0fa426cef107cca_is.jpg",
  293. "avatar_url_template":
  294. "https://pic1.zhimg.com/v2-0246f15a0edea34ad0fa426cef107cca_{size}.jpg",
  295. "is_org": false,
  296. "type": "people",
  297. "url": "https://www.zhihu.com/people/susu-35-99",
  298. "user_type": "people",
  299. "headline": "",
  300. "gender": -1,
  301. "is_advertiser": false,
  302. "vip_info": {"is_vip": false, "rename_days": "60"},
  303. "badge": [],
  304. "is_following": false,
  305. "is_followed": true,
  306. "follower_count": 0,
  307. "answer_count": 0,
  308. "articles_count": 0
  309. },
  310. {
  311. "id": "bcb3809c512bc3f5ce266790a2d69eb9",
  312. "url_token": "an-an-zai-zhe-li",
  313. "name": "安安在这里",
  314. "use_default_avatar": false,
  315. "avatar_url":
  316. "https://pic3.zhimg.com/v2-e76b43292c40d3888d55644c75cb1a9d_is.jpg",
  317. "avatar_url_template":
  318. "https://pic3.zhimg.com/v2-e76b43292c40d3888d55644c75cb1a9d_{size}.jpg",
  319. "is_org": false,
  320. "type": "people",
  321. "url": "https://www.zhihu.com/people/an-an-zai-zhe-li",
  322. "user_type": "people",
  323. "headline": "",
  324. "gender": -1,
  325. "is_advertiser": false,
  326. "vip_info": {"is_vip": false, "rename_days": "60"},
  327. "badge": [],
  328. "is_following": false,
  329. "is_followed": true,
  330. "follower_count": 0,
  331. "answer_count": 0,
  332. "articles_count": 0
  333. },
  334. {
  335. "id": "2780e8e9169704de47fdaca88747cfbe",
  336. "url_token": "xuan-yun-51-6",
  337. "name": "轩云",
  338. "use_default_avatar": false,
  339. "avatar_url":
  340. "https://pic2.zhimg.com/v2-d2070c612f4a50a2e080361bba9d228a_is.jpg",
  341. "avatar_url_template":
  342. "https://pic2.zhimg.com/v2-d2070c612f4a50a2e080361bba9d228a_{size}.jpg",
  343. "is_org": false,
  344. "type": "people",
  345. "url": "https://www.zhihu.com/people/xuan-yun-51-6",
  346. "user_type": "people",
  347. "headline": "",
  348. "gender": -1,
  349. "is_advertiser": false,
  350. "vip_info": {"is_vip": false, "rename_days": "60"},
  351. "badge": [],
  352. "is_following": false,
  353. "is_followed": true,
  354. "follower_count": 0,
  355. "answer_count": 0,
  356. "articles_count": 0
  357. },
  358. {
  359. "id": "13b23e127a897838fa372bcb33a83fa1",
  360. "url_token": "wei-feng-qing-yu-99",
  361. "name": "微风清雨",
  362. "use_default_avatar": false,
  363. "avatar_url":
  364. "https://pic4.zhimg.com/v2-f60459b992aa3df8ecf313db0451c48c_is.jpg",
  365. "avatar_url_template":
  366. "https://pic4.zhimg.com/v2-f60459b992aa3df8ecf313db0451c48c_{size}.jpg",
  367. "is_org": false,
  368. "type": "people",
  369. "url": "https://www.zhihu.com/people/wei-feng-qing-yu-99",
  370. "user_type": "people",
  371. "headline": "",
  372. "gender": -1,
  373. "is_advertiser": false,
  374. "vip_info": {"is_vip": false, "rename_days": "60"},
  375. "badge": [],
  376. "is_following": false,
  377. "is_followed": true,
  378. "follower_count": 0,
  379. "answer_count": 0,
  380. "articles_count": 0
  381. },
  382. {
  383. "id": "0f8bc9f18b249c7d214582dc40a81800",
  384. "url_token": "present-2-45",
  385. "name": "PRESENT",
  386. "use_default_avatar": false,
  387. "avatar_url":
  388. "https://pic2.zhimg.com/v2-ab4e823f1d9610dc2eff629948cdfea6_is.jpg",
  389. "avatar_url_template":
  390. "https://pic2.zhimg.com/v2-ab4e823f1d9610dc2eff629948cdfea6_{size}.jpg",
  391. "is_org": false,
  392. "type": "people",
  393. "url": "https://www.zhihu.com/people/present-2-45",
  394. "user_type": "people",
  395. "headline": "",
  396. "gender": -1,
  397. "is_advertiser": false,
  398. "vip_info": {"is_vip": false, "rename_days": "60"},
  399. "badge": [],
  400. "is_following": false,
  401. "is_followed": true,
  402. "follower_count": 0,
  403. "answer_count": 1,
  404. "articles_count": 0
  405. },
  406. {
  407. "id": "dff166d133b4a3ce4967871873b95403",
  408. "url_token": "yu-xi-4-89",
  409. "name": "玉璽",
  410. "use_default_avatar": true,
  411. "avatar_url": "https://pic4.zhimg.com/da8e974dc_is.jpg",
  412. "avatar_url_template": "https://pic4.zhimg.com/da8e974dc_{size}.jpg",
  413. "is_org": false,
  414. "type": "people",
  415. "url": "https://www.zhihu.com/people/yu-xi-4-89",
  416. "user_type": "people",
  417. "headline": "",
  418. "gender": -1,
  419. "is_advertiser": false,
  420. "vip_info": {"is_vip": false, "rename_days": "60"},
  421. "badge": [],
  422. "is_following": false,
  423. "is_followed": true,
  424. "follower_count": 0,
  425. "answer_count": 0,
  426. "articles_count": 0
  427. },
  428. {
  429. "id": "6775f0f8abefef670cd748fd4bdc98fb",
  430. "url_token": "a-bai-7-98",
  431. "name": "阿白",
  432. "use_default_avatar": false,
  433. "avatar_url":
  434. "https://pic1.zhimg.com/v2-b8977fa6273c7030bc1e3543feb8a357_is.jpg",
  435. "avatar_url_template":
  436. "https://pic1.zhimg.com/v2-b8977fa6273c7030bc1e3543feb8a357_{size}.jpg",
  437. "is_org": false,
  438. "type": "people",
  439. "url": "https://www.zhihu.com/people/a-bai-7-98",
  440. "user_type": "people",
  441. "headline": "",
  442. "gender": -1,
  443. "is_advertiser": false,
  444. "vip_info": {"is_vip": false, "rename_days": "60"},
  445. "badge": [],
  446. "is_following": false,
  447. "is_followed": true,
  448. "follower_count": 1,
  449. "answer_count": 0,
  450. "articles_count": 0
  451. },
  452. {
  453. "id": "a3e583a3cf456e911e7744b4bc5ffe1e",
  454. "url_token": "wan-ju-gong-han",
  455. "name": "玩具工厂",
  456. "use_default_avatar": false,
  457. "avatar_url":
  458. "https://pic1.zhimg.com/v2-e68a91273a85aad4d8710cfc31e4d3fa_is.jpg",
  459. "avatar_url_template":
  460. "https://pic1.zhimg.com/v2-e68a91273a85aad4d8710cfc31e4d3fa_{size}.jpg",
  461. "is_org": false,
  462. "type": "people",
  463. "url": "https://www.zhihu.com/people/wan-ju-gong-han",
  464. "user_type": "people",
  465. "headline": "",
  466. "gender": -1,
  467. "is_advertiser": false,
  468. "vip_info": {"is_vip": false, "rename_days": "60"},
  469. "badge": [],
  470. "is_following": false,
  471. "is_followed": true,
  472. "follower_count": 0,
  473. "answer_count": 0,
  474. "articles_count": 1
  475. },
  476. {
  477. "id": "df8c74471ab4a3bccabee02404850b1f",
  478. "url_token": "a-jun-82-48-57",
  479. "name": "阿军",
  480. "use_default_avatar": false,
  481. "avatar_url":
  482. "https://pic4.zhimg.com/v2-5a90429e867a3fe4357524434580c635_is.jpg",
  483. "avatar_url_template":
  484. "https://pic4.zhimg.com/v2-5a90429e867a3fe4357524434580c635_{size}.jpg",
  485. "is_org": false,
  486. "type": "people",
  487. "url": "https://www.zhihu.com/people/a-jun-82-48-57",
  488. "user_type": "people",
  489. "headline": "",
  490. "gender": -1,
  491. "is_advertiser": false,
  492. "vip_info": {"is_vip": false, "rename_days": "60"},
  493. "badge": [],
  494. "is_following": false,
  495. "is_followed": true,
  496. "follower_count": 0,
  497. "answer_count": 0,
  498. "articles_count": 0
  499. },
  500. {
  501. "id": "b8bfdb6901403ff5d7ab490c6ccddff0",
  502. "url_token": "a-qiang-15-57-64",
  503. "name": "阿强",
  504. "use_default_avatar": false,
  505. "avatar_url":
  506. "https://pic2.zhimg.com/v2-774b0897493093bd0814aec5e4360657_is.jpg",
  507. "avatar_url_template":
  508. "https://pic2.zhimg.com/v2-774b0897493093bd0814aec5e4360657_{size}.jpg",
  509. "is_org": false,
  510. "type": "people",
  511. "url": "https://www.zhihu.com/people/a-qiang-15-57-64",
  512. "user_type": "people",
  513. "headline": "",
  514. "gender": -1,
  515. "is_advertiser": false,
  516. "vip_info": {"is_vip": false, "rename_days": "60"},
  517. "badge": [],
  518. "is_following": false,
  519. "is_followed": true,
  520. "follower_count": 0,
  521. "answer_count": 0,
  522. "articles_count": 0
  523. },
  524. {
  525. "id": "607413c4a2a6d90262b9f804a8385d43",
  526. "url_token": "qing-yu-42-55-23",
  527. "name": "轻语",
  528. "use_default_avatar": false,
  529. "avatar_url":
  530. "https://pic3.zhimg.com/v2-74c5a0171ae78c83b7af639ca3947279_is.jpg",
  531. "avatar_url_template":
  532. "https://pic3.zhimg.com/v2-74c5a0171ae78c83b7af639ca3947279_{size}.jpg",
  533. "is_org": false,
  534. "type": "people",
  535. "url": "https://www.zhihu.com/people/qing-yu-42-55-23",
  536. "user_type": "people",
  537. "headline": "",
  538. "gender": -1,
  539. "is_advertiser": false,
  540. "vip_info": {"is_vip": false, "rename_days": "60"},
  541. "badge": [],
  542. "is_following": false,
  543. "is_followed": true,
  544. "follower_count": 0,
  545. "answer_count": 0,
  546. "articles_count": 0
  547. },
  548. {
  549. "id": "00950a23d0691ddfd0522bde60fac94a",
  550. "url_token": "bai-ying-64-30",
  551. "name": "白影",
  552. "use_default_avatar": false,
  553. "avatar_url":
  554. "https://pic3.zhimg.com/v2-c2a2e8a65a8817edc0256c4b8ede334c_is.jpg",
  555. "avatar_url_template":
  556. "https://pic3.zhimg.com/v2-c2a2e8a65a8817edc0256c4b8ede334c_{size}.jpg",
  557. "is_org": false,
  558. "type": "people",
  559. "url": "https://www.zhihu.com/people/bai-ying-64-30",
  560. "user_type": "people",
  561. "headline": "",
  562. "gender": -1,
  563. "is_advertiser": false,
  564. "vip_info": {"is_vip": false, "rename_days": "60"},
  565. "badge": [],
  566. "is_following": false,
  567. "is_followed": true,
  568. "follower_count": 0,
  569. "answer_count": 0,
  570. "articles_count": 0
  571. },
  572. {
  573. "id": "c4bf223e7c7826c717ec5c0c2d4aabfc",
  574. "url_token": "shuang-yue-68-9",
  575. "name": "霜月",
  576. "use_default_avatar": false,
  577. "avatar_url":
  578. "https://pic4.zhimg.com/v2-88be115180f0bd5612b2515e7868fc36_is.jpg",
  579. "avatar_url_template":
  580. "https://pic4.zhimg.com/v2-88be115180f0bd5612b2515e7868fc36_{size}.jpg",
  581. "is_org": false,
  582. "type": "people",
  583. "url": "https://www.zhihu.com/people/shuang-yue-68-9",
  584. "user_type": "people",
  585. "headline": "",
  586. "gender": -1,
  587. "is_advertiser": false,
  588. "vip_info": {"is_vip": false, "rename_days": "60"},
  589. "badge": [],
  590. "is_following": false,
  591. "is_followed": true,
  592. "follower_count": 0,
  593. "answer_count": 0,
  594. "articles_count": 0
  595. },
  596. {
  597. "id": "f476195faf1a5fdf02f59a5c27da15a1",
  598. "url_token": "alisa-9-77-97",
  599. "name": "Alisa",
  600. "use_default_avatar": true,
  601. "avatar_url": "https://pic4.zhimg.com/da8e974dc_is.jpg",
  602. "avatar_url_template": "https://pic4.zhimg.com/da8e974dc_{size}.jpg",
  603. "is_org": false,
  604. "type": "people",
  605. "url": "https://www.zhihu.com/people/alisa-9-77-97",
  606. "user_type": "people",
  607. "headline": "",
  608. "gender": -1,
  609. "is_advertiser": false,
  610. "vip_info": {"is_vip": false, "rename_days": "60"},
  611. "badge": [],
  612. "is_following": false,
  613. "is_followed": true,
  614. "follower_count": 1,
  615. "answer_count": 0,
  616. "articles_count": 0
  617. },
  618. {
  619. "id": "34bd49496536946170d4eae49f86f01f",
  620. "url_token": "irishxy",
  621. "name": "Irishxy",
  622. "use_default_avatar": false,
  623. "avatar_url":
  624. "https://pic3.zhimg.com/v2-349882fdd51865217e50ec786d542257_is.jpg",
  625. "avatar_url_template":
  626. "https://pic3.zhimg.com/v2-349882fdd51865217e50ec786d542257_{size}.jpg",
  627. "is_org": false,
  628. "type": "people",
  629. "url": "https://www.zhihu.com/people/irishxy",
  630. "user_type": "people",
  631. "headline": "典型的巨蟹女",
  632. "gender": 0,
  633. "is_advertiser": false,
  634. "vip_info": {"is_vip": false, "rename_days": "60"},
  635. "badge": [],
  636. "is_following": false,
  637. "is_followed": true,
  638. "follower_count": 1,
  639. "answer_count": 0,
  640. "articles_count": 0
  641. },
  642. {
  643. "id": "517ce235adf85e15d7ed73c3acde0dbb",
  644. "url_token": "xiao-an-ai-huo-guo",
  645. "name": "小安爱火锅",
  646. "use_default_avatar": false,
  647. "avatar_url":
  648. "https://pic2.zhimg.com/v2-a66bf8e0583d29fff640d9cc0f9e7ade_is.jpg",
  649. "avatar_url_template":
  650. "https://pic2.zhimg.com/v2-a66bf8e0583d29fff640d9cc0f9e7ade_{size}.jpg",
  651. "is_org": false,
  652. "type": "people",
  653. "url": "https://www.zhihu.com/people/xiao-an-ai-huo-guo",
  654. "user_type": "people",
  655. "headline": "",
  656. "gender": -1,
  657. "is_advertiser": false,
  658. "vip_info": {"is_vip": false, "rename_days": "60"},
  659. "badge": [],
  660. "is_following": false,
  661. "is_followed": true,
  662. "follower_count": 0,
  663. "answer_count": 0,
  664. "articles_count": 0
  665. },
  666. {
  667. "id": "a3c97c84d22422ffc8b88b2c15a06d0d",
  668. "url_token": "hong-yi-xie",
  669. "name": "弘毅",
  670. "use_default_avatar": false,
  671. "avatar_url":
  672. "https://pic3.zhimg.com/68ffeee3c2f46f0ff97cfc82ddaced39_is.jpg",
  673. "avatar_url_template":
  674. "https://pic3.zhimg.com/68ffeee3c2f46f0ff97cfc82ddaced39_{size}.jpg",
  675. "is_org": false,
  676. "type": "people",
  677. "url": "https://www.zhihu.com/people/hong-yi-xie",
  678. "user_type": "people",
  679. "headline": "铜钱",
  680. "gender": 1,
  681. "is_advertiser": false,
  682. "vip_info": {"is_vip": false, "rename_days": "60"},
  683. "badge": [],
  684. "is_following": false,
  685. "is_followed": true,
  686. "follower_count": 10,
  687. "answer_count": 10,
  688. "articles_count": 0
  689. },
  690. {
  691. "id": "17617844a030a1bb13563fcba08ac0bc",
  692. "url_token": "gst-62",
  693. "name": "GST",
  694. "use_default_avatar": false,
  695. "avatar_url":
  696. "https://pic3.zhimg.com/78cd328bd22026ad7e5c95b34a484ef8_is.jpg",
  697. "avatar_url_template":
  698. "https://pic3.zhimg.com/78cd328bd22026ad7e5c95b34a484ef8_{size}.jpg",
  699. "is_org": false,
  700. "type": "people",
  701. "url": "https://www.zhihu.com/people/gst-62",
  702. "user_type": "people",
  703. "headline": "",
  704. "gender": -1,
  705. "is_advertiser": false,
  706. "vip_info": {"is_vip": false, "rename_days": "60"},
  707. "badge": [],
  708. "is_following": false,
  709. "is_followed": true,
  710. "follower_count": 10,
  711. "answer_count": 32,
  712. "articles_count": 0
  713. },
  714. {
  715. "id": "28085a8fd28550cf00f47f7115ac035e",
  716. "url_token": "lanlan-15-96",
  717. "name": "Lanlan",
  718. "use_default_avatar": false,
  719. "avatar_url":
  720. "https://pic3.zhimg.com/v2-743e61568785289cf402f3565334c58b_is.jpg",
  721. "avatar_url_template":
  722. "https://pic3.zhimg.com/v2-743e61568785289cf402f3565334c58b_{size}.jpg",
  723. "is_org": false,
  724. "type": "people",
  725. "url": "https://www.zhihu.com/people/lanlan-15-96",
  726. "user_type": "people",
  727. "headline": "",
  728. "gender": -1,
  729. "is_advertiser": false,
  730. "vip_info": {"is_vip": false, "rename_days": "60"},
  731. "badge": [],
  732. "is_following": false,
  733. "is_followed": true,
  734. "follower_count": 0,
  735. "answer_count": 0,
  736. "articles_count": 0
  737. },
  738. {
  739. "id": "201a7add349e2b16d68deb13bed81a30",
  740. "url_token": "ran-shao-de-tu-shu-guan",
  741. "name": "燃烧的图书馆",
  742. "use_default_avatar": false,
  743. "avatar_url":
  744. "https://pic4.zhimg.com/f45ffc0805e61bf4295c8422f4cdd169_is.jpg",
  745. "avatar_url_template":
  746. "https://pic4.zhimg.com/f45ffc0805e61bf4295c8422f4cdd169_{size}.jpg",
  747. "is_org": false,
  748. "type": "people",
  749. "url": "https://www.zhihu.com/people/ran-shao-de-tu-shu-guan",
  750. "user_type": "people",
  751. "headline": "自动化",
  752. "gender": 1,
  753. "is_advertiser": false,
  754. "vip_info": {"is_vip": false, "rename_days": "60"},
  755. "badge": [],
  756. "is_following": false,
  757. "is_followed": true,
  758. "follower_count": 0,
  759. "answer_count": 0,
  760. "articles_count": 0
  761. },
  762. {
  763. "id": "80aad13efe63c02263387fb9bc52729f",
  764. "url_token": "qi-miao-zhong-de-ji-yi-80-1",
  765. "name": "七秒钟的记忆",
  766. "use_default_avatar": false,
  767. "avatar_url":
  768. "https://pic4.zhimg.com/v2-f33d1a1fee3bd54c0d44fc0aa8522cd2_is.jpg",
  769. "avatar_url_template":
  770. "https://pic4.zhimg.com/v2-f33d1a1fee3bd54c0d44fc0aa8522cd2_{size}.jpg",
  771. "is_org": false,
  772. "type": "people",
  773. "url": "https://www.zhihu.com/people/qi-miao-zhong-de-ji-yi-80-1",
  774. "user_type": "people",
  775. "headline": "",
  776. "gender": -1,
  777. "is_advertiser": false,
  778. "vip_info": {"is_vip": false, "rename_days": "60"},
  779. "badge": [],
  780. "is_following": false,
  781. "is_followed": true,
  782. "follower_count": 0,
  783. "answer_count": 0,
  784. "articles_count": 0
  785. },
  786. {
  787. "id": "064db3bd2bb39e8c8b707f729ae7756d",
  788. "url_token": "jia-kai-6-30",
  789. "name": "加凯",
  790. "use_default_avatar": false,
  791. "avatar_url":
  792. "https://pic1.zhimg.com/v2-a9bcb9a806731b87414d1aea4669b099_is.jpg",
  793. "avatar_url_template":
  794. "https://pic1.zhimg.com/v2-a9bcb9a806731b87414d1aea4669b099_{size}.jpg",
  795. "is_org": false,
  796. "type": "people",
  797. "url": "https://www.zhihu.com/people/jia-kai-6-30",
  798. "user_type": "people",
  799. "headline": "",
  800. "gender": -1,
  801. "is_advertiser": false,
  802. "vip_info": {"is_vip": false, "rename_days": "60"},
  803. "badge": [],
  804. "is_following": false,
  805. "is_followed": true,
  806. "follower_count": 1,
  807. "answer_count": 0,
  808. "articles_count": 0
  809. },
  810. {
  811. "id": "92c3e7514fb0a5a71c4d23432fe321af",
  812. "url_token": "ihowe",
  813. "name": "haroel",
  814. "use_default_avatar": false,
  815. "avatar_url": "https://pic2.zhimg.com/87cdbc0fb_is.jpg",
  816. "avatar_url_template": "https://pic2.zhimg.com/87cdbc0fb_{size}.jpg",
  817. "is_org": false,
  818. "type": "people",
  819. "url": "https://www.zhihu.com/people/ihowe",
  820. "user_type": "people",
  821. "headline": "Yo~~ listen up here\u0026#39;s a story",
  822. "gender": 1,
  823. "is_advertiser": false,
  824. "vip_info": {"is_vip": false, "rename_days": "60"},
  825. "badge": [],
  826. "is_following": false,
  827. "is_followed": true,
  828. "follower_count": 191,
  829. "answer_count": 359,
  830. "articles_count": 0
  831. },
  832. {
  833. "id": "fc1fa66ab4b9b660806d50dcfd7012aa",
  834. "url_token": "ling-dong-you-feng",
  835. "name": "灵动游峰",
  836. "use_default_avatar": false,
  837. "avatar_url":
  838. "https://pic2.zhimg.com/v2-6d1f871ecf2ebbaef30ef4ab7b96a3d0_is.jpg",
  839. "avatar_url_template":
  840. "https://pic2.zhimg.com/v2-6d1f871ecf2ebbaef30ef4ab7b96a3d0_{size}.jpg",
  841. "is_org": false,
  842. "type": "people",
  843. "url": "https://www.zhihu.com/people/ling-dong-you-feng",
  844. "user_type": "people",
  845. "headline": "小论文和大论文的区别",
  846. "gender": 1,
  847. "is_advertiser": false,
  848. "vip_info": {"is_vip": false, "rename_days": "60"},
  849. "badge": [],
  850. "is_following": false,
  851. "is_followed": true,
  852. "follower_count": 1,
  853. "answer_count": 0,
  854. "articles_count": 0
  855. },
  856. {
  857. "id": "4e6d8d84c9d26c1c8ea2f5afe260247d",
  858. "url_token": "mo-mo-mo-mo-39-75",
  859. "name": "嘿嘿嘿嘿",
  860. "use_default_avatar": true,
  861. "avatar_url": "https://pic4.zhimg.com/da8e974dc_is.jpg",
  862. "avatar_url_template": "https://pic4.zhimg.com/da8e974dc_{size}.jpg",
  863. "is_org": false,
  864. "type": "people",
  865. "url": "https://www.zhihu.com/people/mo-mo-mo-mo-39-75",
  866. "user_type": "people",
  867. "headline": "",
  868. "gender": -1,
  869. "is_advertiser": false,
  870. "vip_info": {"is_vip": false, "rename_days": "60"},
  871. "badge": [],
  872. "is_following": false,
  873. "is_followed": true,
  874. "follower_count": 6,
  875. "answer_count": 0,
  876. "articles_count": 0
  877. },
  878. {
  879. "id": "1b65a94bdf04f8bedc510a000f67a49d",
  880. "url_token": "edward-47-15",
  881. "name": "Edward",
  882. "use_default_avatar": false,
  883. "avatar_url":
  884. "https://pic2.zhimg.com/v2-3b757736ac5b92e8ba0d039569a0b08d_is.jpg",
  885. "avatar_url_template":
  886. "https://pic2.zhimg.com/v2-3b757736ac5b92e8ba0d039569a0b08d_{size}.jpg",
  887. "is_org": false,
  888. "type": "people",
  889. "url": "https://www.zhihu.com/people/edward-47-15",
  890. "user_type": "people",
  891. "headline": "",
  892. "gender": -1,
  893. "is_advertiser": false,
  894. "vip_info": {"is_vip": false, "rename_days": "60"},
  895. "badge": [],
  896. "is_following": false,
  897. "is_followed": true,
  898. "follower_count": 3,
  899. "answer_count": 0,
  900. "articles_count": 0
  901. },
  902. {
  903. "id": "dd441c0dc5047cf97645585e5baae599",
  904. "url_token": "zengchao",
  905. "name": "曾超",
  906. "use_default_avatar": false,
  907. "avatar_url":
  908. "https://pic3.zhimg.com/v2-550a2af4dc30317194950b6a371192f1_is.jpg",
  909. "avatar_url_template":
  910. "https://pic3.zhimg.com/v2-550a2af4dc30317194950b6a371192f1_{size}.jpg",
  911. "is_org": false,
  912. "type": "people",
  913. "url": "https://www.zhihu.com/people/zengchao",
  914. "user_type": "people",
  915. "headline": "企业SaaS行业从业者,企客宝+企搜客产品经理",
  916. "gender": 1,
  917. "is_advertiser": false,
  918. "vip_info": {"is_vip": false, "rename_days": "60"},
  919. "badge": [],
  920. "is_following": false,
  921. "is_followed": true,
  922. "follower_count": 72,
  923. "answer_count": 85,
  924. "articles_count": 0
  925. },
  926. {
  927. "id": "9ab2f6ae276549d9129b4fa67c25e33a",
  928. "url_token": "li-oo",
  929. "name": "李oo",
  930. "use_default_avatar": true,
  931. "avatar_url": "https://pic4.zhimg.com/da8e974dc_is.jpg",
  932. "avatar_url_template": "https://pic4.zhimg.com/da8e974dc_{size}.jpg",
  933. "is_org": false,
  934. "type": "people",
  935. "url": "https://www.zhihu.com/people/li-oo",
  936. "user_type": "people",
  937. "headline": "呵呵",
  938. "gender": 1,
  939. "is_advertiser": false,
  940. "vip_info": {"is_vip": false, "rename_days": "60"},
  941. "badge": [],
  942. "is_following": false,
  943. "is_followed": true,
  944. "follower_count": 11,
  945. "answer_count": 35,
  946. "articles_count": 0
  947. },
  948. {
  949. "id": "ce928cf7539fc6f8360ff5f5baab64ca",
  950. "url_token": "xin-di-de-zi-you",
  951. "name": "心底的自由",
  952. "use_default_avatar": true,
  953. "avatar_url": "https://pic4.zhimg.com/da8e974dc_is.jpg",
  954. "avatar_url_template": "https://pic4.zhimg.com/da8e974dc_{size}.jpg",
  955. "is_org": false,
  956. "type": "people",
  957. "url": "https://www.zhihu.com/people/xin-di-de-zi-you",
  958. "user_type": "people",
  959. "headline": "",
  960. "gender": -1,
  961. "is_advertiser": false,
  962. "vip_info": {"is_vip": false, "rename_days": "60"},
  963. "badge": [],
  964. "is_following": false,
  965. "is_followed": true,
  966. "follower_count": 0,
  967. "answer_count": 0,
  968. "articles_count": 0
  969. },
  970. {
  971. "id": "0e4b7c6a6ae7075d04f46ea3cf8afa22",
  972. "url_token": "huyuguo",
  973. "name": "胡玉国",
  974. "use_default_avatar": false,
  975. "avatar_url":
  976. "https://pic4.zhimg.com/v2-28e61ae8e1f56afd3f4f943155cd1af3_is.jpg",
  977. "avatar_url_template":
  978. "https://pic4.zhimg.com/v2-28e61ae8e1f56afd3f4f943155cd1af3_{size}.jpg",
  979. "is_org": false,
  980. "type": "people",
  981. "url": "https://www.zhihu.com/people/huyuguo",
  982. "user_type": "people",
  983. "headline": "",
  984. "gender": 1,
  985. "is_advertiser": false,
  986. "vip_info": {
  987. "is_vip": true,
  988. "rename_days": "60",
  989. "vip_icon": {
  990. "url":
  991. "https://pic3.zhimg.com/v2-4812630bc27d642f7cafcd6cdeca3d7a_r.png",
  992. "night_mode_url":
  993. "https://pic3.zhimg.com/v2-c9686ff064ea3579730756ac6c289978_r.png"
  994. }
  995. },
  996. "badge": [],
  997. "is_following": false,
  998. "is_followed": true,
  999. "follower_count": 0,
  1000. "answer_count": 1,
  1001. "articles_count": 1
  1002. },
  1003. {
  1004. "id": "7757793cd034b9ef8f654c8ab0a5117a",
  1005. "url_token": "spring-9-46",
  1006. "name": "spring",
  1007. "use_default_avatar": true,
  1008. "avatar_url": "https://pic4.zhimg.com/da8e974dc_is.jpg",
  1009. "avatar_url_template": "https://pic4.zhimg.com/da8e974dc_{size}.jpg",
  1010. "is_org": false,
  1011. "type": "people",
  1012. "url": "https://www.zhihu.com/people/spring-9-46",
  1013. "user_type": "people",
  1014. "headline": "IT工程师",
  1015. "gender": -1,
  1016. "is_advertiser": false,
  1017. "vip_info": {"is_vip": false, "rename_days": "60"},
  1018. "badge": [],
  1019. "is_following": false,
  1020. "is_followed": true,
  1021. "follower_count": 0,
  1022. "answer_count": 0,
  1023. "articles_count": 0
  1024. }
  1025. ];