feat:添加按照点赞数的feed流

This commit is contained in:
Leon
2025-12-16 14:02:17 +08:00
parent ead7153cc4
commit 0915e13e8f
6 changed files with 93 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
"info": {
"name": "FeedSystem Feed API",
"_postman_id": "4c2fd555-b880-4b14-8023-55a944936352",
"description": "Feed endpoints without embedded scripts.",
"description": "Feed endpoints.\n\nPagination:\n- /feed/listLatest: copy response.next_time into feedLatestTime\n- /feed/listLikesCount: copy response.next_likes_count_before into feedLikesCountBefore",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
@@ -21,11 +21,28 @@
"path": ["feed", "listLatest"]
}
}
},
{
"name": "List Feed By Likes Count",
"request": {
"method": "POST",
"header": [{ "key": "Content-Type", "value": "application/json" }],
"body": {
"mode": "raw",
"raw": "{\n \"limit\": {{feedLimit}},\n \"likes_count\": {{feedLikesCountBefore}}\n}"
},
"url": {
"raw": "{{host}}/feed/listLikesCount",
"host": ["{{host}}"],
"path": ["feed", "listLikesCount"]
}
}
}
],
"variable": [
{ "key": "host", "value": "http://localhost:8080" },
{ "key": "feedLimit", "value": "10" },
{ "key": "feedLatestTime", "value": "0" }
{ "key": "feedLatestTime", "value": "0" },
{ "key": "feedLikesCountBefore", "value": "0" }
]
}