feat: add hot inspiration flow API methods
Add 3 API methods following existing patterns: - getHotInspirationFlowBatchApi() for batch fetching 4 categories - getHotInspirationFlowApi(type) for single category refresh - getHotInspirationFlowMoreApi(type, cursor, limit) for pagination Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
19bfce1b65
commit
25fc03497f
@ -881,3 +881,31 @@ export function getEarningsSummaryApi() {
|
|||||||
method: 'GET'
|
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 }
|
||||||
|
})
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user