圈子发现的页面,UI重新进行调整过,接口也有调整。

    数据返回为二级数组

    一级数据为左侧的分类,二级数据,则为对应的分类下的圈子,不需要考虑分页,显示所有即可。

    请求地址:GET
    /api/circles.v2

    返回数据:

    1. {
    2. "Code": 0,
    3. "Message": "接口调用成功",
    4. "Data": [
    5. {
    6. "name": "小区",
    7. "circle": [
    8. {
    9. "pid": 1,
    10. "name": "我的小区",
    11. "description": "我的小区",
    12. "icon": "https://docs.qkaifa.com/circle.jpg",
    13. "sort": 0,
    14. "userCount": 1,
    15. "property": 0,
    16. "threadCount": 8,
    17. "isFollowed": 0
    18. }
    19. ]
    20. },
    21. {
    22. "name": "旅行",
    23. "circle": [
    24. {
    25. "pid": 2,
    26. "name": "环游世界",
    27. "description": "默认分类",
    28. "icon": "https://docs.qkaifa.com/circle.jpg",
    29. "sort": 0,
    30. "userCount": 1,
    31. "property": 0,
    32. "threadCount": 8,
    33. "isFollowed": 0
    34. },
    35. {
    36. "pid": 3,
    37. "name": "周边游",
    38. "description": "默认分类",
    39. "icon": "https://docs.qkaifa.com/circle.jpg",
    40. "sort": 0,
    41. "userCount": 1,
    42. "property": 0,
    43. "threadCount": 8,
    44. "isFollowed": 0
    45. }
    46. ]
    47. }
    48. ],
    49. "RequestId": "d44bdd81-258d-4a8c-baa2-626b85f2724a",
    50. "RequestTime": "2021-05-24 12:04:03"
    51. }

    示意图:
    image.png