add:对接卡片接口

This commit is contained in:
zlong committed 2024-12-11 17:54:18 +08:00
1 parent c096a2c69b
commit ed3ce8ba53
7 files changed
+156 -90

No files matched your search

+7 -2
View File
@@ -1,13 +1,18 @@
import type { CreateCarousalsRequest, TypeList } from '@/model/carousals'
import type { PageResult } from '@/model/base'
import type { Article, ArticleParams, Category, CreateCarousalsRequest } from '@/model/pet-manual'
import httpClient from '@/api/httpClient'
function getCarousalList() {
return httpClient.get<CreateCarousalsRequest[]>('/carousals/active-list')
}
function getTypeList() {
return httpClient.get<TypeList[]>('/categories/list')
return httpClient.get<Category[]>('/categories/list')
}
function getArticleList(data: ArticleParams) {
return httpClient.get<PageResult<Article>>('/articles', data)
}
export default {
getCarousalList,
getTypeList,
getArticleList,
}