u
This commit is contained in:
1 parent
f310336188
commit
5221d1cc91
12 files changed
+280
-166
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import type { DashboardData } from '@/types/post'
|
||||
import type { DashboardData, PostCategory, PostTag } from '@/types/post'
|
||||
import type { AddPostParams, DeletePostParams, Post, PostEditorForm, QueryPostParams, UpdatePostParams, UpdatePostStatusParams } from '@/types/post/editor'
|
||||
import { httpGet, httpPostJson } from '@/request/utils'
|
||||
|
||||
@@ -29,3 +29,10 @@ export function deletePostApi(params: DeletePostParams) {
|
||||
export function getDashboardDataApi() {
|
||||
return httpGet<DashboardData>(`/post/dashboard`)
|
||||
}
|
||||
|
||||
export function getPostTagApi() {
|
||||
return httpGet<PostTag[]>('/post/tag')
|
||||
}
|
||||
export function getPostCategoryApi() {
|
||||
return httpGet<PostCategory[]>('/post/category')
|
||||
}
|
||||
Reference in new issue
Block a user