点击收藏的主题,会在这理显示
暂时不考虑附件的问题,先把主题标题,用户信息展示出来,附件部分,先固定图片
接口地址:
/api/favorites.v2
返回示例
{"Code": 0,"Message": "接口调用成功","Data": {"pageData": [{"thread": {"pid": 23,"type": 3,"categoryId": 1,"title": "测试v3接口的数据格式11111111", // 主题标题"price": "0.00","attachmentPrice": "0.00","postCount": 0,"viewCount": 8,"rewardedCount": 0,"paidCount": 0,"address": "","location": "","createdAt": "2021-06-07 15:09:26","diffCreatedAt": "4小时前","isRedPacket": 0,"extension": null},"user": {"pid": 1,"userName": "demo","avatar": "","threadCount": 0,"followCount": 0,"fansCount": 0,"likedCount": 0,"questionCount": 0,"joinedAt": "2021-06-07 14:45:29"}},{"thread": {"pid": 2,"type": 0,"categoryId": 1,"title": "测试v3接口的数据格式2222222222","price": "0.00","attachmentPrice": "0.00","postCount": 0,"viewCount": 1,"rewardedCount": 0,"paidCount": 0,"address": "","location": "","createdAt": "2021-06-07 15:08:07","diffCreatedAt": "4小时前","isRedPacket": 1,"extension": null},"user": {"pid": 1,"userName": "demo","avatar": "","threadCount": 0,"followCount": 0,"fansCount": 0,"likedCount": 0,"questionCount": 0,"joinedAt": "2021-06-07 14:45:29"}}],"currentPage": 1,"perPage": 10,"firstPageUrl": "https://demo.qkaifa.com/api/favorites.v2?page=1","nextPageUrl": "https://demo.qkaifa.com/api/favorites.v2?page=2","prePageUrl": "https://demo.qkaifa.com/api/favorites.v2?page=1","pageLength": 2,"totalCount": 2,"totalPage": 1},"RequestId": "137855da-b4ff-4437-b59f-cb07305bb441","RequestTime": "2021-06-07 20:11:04"}
示意图:
