add:历史记录以及搜索发现接口对接

This commit is contained in:
zlong committed 2024-12-12 23:49:30 +08:00
1 parent 668f57d9ca
commit 4e8d5e9262
3 files changed
+57 -20

No files matched your search

+4 -2
View File
@@ -1,5 +1,5 @@
import type { PageResult } from '@/model/base'
import type { Article, ArticleParams, Category, CreateCarousalsRequest } from '@/model/pet-manual'
import type { Article, ArticleParams, Category, CreateCarousalsRequest, Recommends } from '@/model/pet-manual'
import httpClient from '@/api/httpClient'
function getCarousalList() {
@@ -15,10 +15,12 @@ function getSearchRecords() {
return httpClient.get<string[]>('/articles/search-records')
}
function getSearchRecommends() {
return httpClient.get<string[]>('/articles/active-search-recommends')
return httpClient.get<Recommends[]>('/articles/active-search-recommends')
}
export default {
getCarousalList,
getTypeList,
getArticleList,
getSearchRecords,
getSearchRecommends,
}