AtUserProvider.dart 31 KB

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