commit | 3a7bb97f69f1f44749f82410dd123a3a1d00967a | [log] [tgz] |
---|---|---|
author | Akane1217 <1638427970@qq.com> | Sun Jun 01 01:05:27 2025 +0800 |
committer | Akane1217 <1638427970@qq.com> | Sun Jun 01 01:05:27 2025 +0800 |
tree | 537488246abc421eeecf29443bead60777e4ca55 | |
parent | d1e9f719368ac1bbe7213dfea54e1495b22a876d [diff] [blame] |
个人中心全部,模糊乱序搜索,类型筛选 Change-Id: Id635654fccccaea80bfbf4d1480abd55f7d12046
diff --git a/src/api/helpPost.js b/src/api/helpPost.js index 4813aa3..92d6402 100644 --- a/src/api/helpPost.js +++ b/src/api/helpPost.js
@@ -50,4 +50,11 @@ return api.delete(`/help/posts/${postId}`, { params: { authorId } }); +}; + + +export const searchPosts = (keyword, page = 1, size = 5) => { + return api.get('/help/posts/search', { + params: { keyword, page, size } + }); }; \ No newline at end of file