AtUserProvider.dart 31 KB

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