点击收藏的主题,会在这理显示

    暂时不考虑附件的问题,先把主题标题,用户信息展示出来,附件部分,先固定图片

    接口地址:
    /api/favorites.v2

    返回示例

    1. {
    2. "Code": 0,
    3. "Message": "接口调用成功",
    4. "Data": {
    5. "pageData": [
    6. {
    7. "thread": {
    8. "pid": 23,
    9. "type": 3,
    10. "categoryId": 1,
    11. "title": "测试v3接口的数据格式11111111", // 主题标题
    12. "price": "0.00",
    13. "attachmentPrice": "0.00",
    14. "postCount": 0,
    15. "viewCount": 8,
    16. "rewardedCount": 0,
    17. "paidCount": 0,
    18. "address": "",
    19. "location": "",
    20. "createdAt": "2021-06-07 15:09:26",
    21. "diffCreatedAt": "4小时前",
    22. "isRedPacket": 0,
    23. "extension": null
    24. },
    25. "user": {
    26. "pid": 1,
    27. "userName": "demo",
    28. "avatar": "",
    29. "threadCount": 0,
    30. "followCount": 0,
    31. "fansCount": 0,
    32. "likedCount": 0,
    33. "questionCount": 0,
    34. "joinedAt": "2021-06-07 14:45:29"
    35. }
    36. },
    37. {
    38. "thread": {
    39. "pid": 2,
    40. "type": 0,
    41. "categoryId": 1,
    42. "title": "测试v3接口的数据格式2222222222",
    43. "price": "0.00",
    44. "attachmentPrice": "0.00",
    45. "postCount": 0,
    46. "viewCount": 1,
    47. "rewardedCount": 0,
    48. "paidCount": 0,
    49. "address": "",
    50. "location": "",
    51. "createdAt": "2021-06-07 15:08:07",
    52. "diffCreatedAt": "4小时前",
    53. "isRedPacket": 1,
    54. "extension": null
    55. },
    56. "user": {
    57. "pid": 1,
    58. "userName": "demo",
    59. "avatar": "",
    60. "threadCount": 0,
    61. "followCount": 0,
    62. "fansCount": 0,
    63. "likedCount": 0,
    64. "questionCount": 0,
    65. "joinedAt": "2021-06-07 14:45:29"
    66. }
    67. }
    68. ],
    69. "currentPage": 1,
    70. "perPage": 10,
    71. "firstPageUrl": "https://demo.qkaifa.com/api/favorites.v2?page=1",
    72. "nextPageUrl": "https://demo.qkaifa.com/api/favorites.v2?page=2",
    73. "prePageUrl": "https://demo.qkaifa.com/api/favorites.v2?page=1",
    74. "pageLength": 2,
    75. "totalCount": 2,
    76. "totalPage": 1
    77. },
    78. "RequestId": "137855da-b4ff-4437-b59f-cb07305bb441",
    79. "RequestTime": "2021-06-07 20:11:04"
    80. }

    示意图:
    image.png