diff --git a/frontend/utils/api.js b/frontend/utils/api.js index a8f3c7c..87eac51 100644 --- a/frontend/utils/api.js +++ b/frontend/utils/api.js @@ -880,4 +880,32 @@ export function getEarningsSummaryApi() { url: '/api/v1/assets/me/earnings-summary', method: 'GET' }) +} + +// ==================== 热门灵感瀑布相关接口 ==================== + +// 批量获取热门分类(页面初始化用) +export function getHotInspirationFlowBatchApi() { + return request({ + url: '/api/v1/inspiration-flow/hot/batch', + method: 'GET' + }) +} + +// 单个分类刷新 +export function getHotInspirationFlowApi(type) { + return request({ + url: '/api/v1/inspiration-flow/hot', + method: 'GET', + data: { type } + }) +} + +// 查看更多分页 +export function getHotInspirationFlowMoreApi(type, cursor = '', limit = 20) { + return request({ + url: '/api/v1/inspiration-flow/hot/more', + method: 'GET', + data: { type, cursor, limit } + }) } \ No newline at end of file