add:对接卡片接口
This commit is contained in:
1 parent
c096a2c69b
commit
ed3ce8ba53
7 files changed
+156
-90
No files matched your search
+7
-2
@@ -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,
|
||||
}
|
||||
Reference in new issue
Block a user