add dashboard component
This commit is contained in:
+20
-1
@@ -92,5 +92,24 @@ const sortBlogs = (data: Object, btId: string) => {
|
||||
})
|
||||
}
|
||||
|
||||
const countBlogs = () => {
|
||||
return service({
|
||||
url: '/wiki/api/v1/author/blogs/count',
|
||||
method: 'GET',
|
||||
headers: headers,
|
||||
})
|
||||
}
|
||||
|
||||
export { listAll, updateBtName, putBlogType, removeBlogType, sortBlogTypes, getContent, putBlog, updateContent, deleteContent, sortBlogs }
|
||||
export {
|
||||
listAll,
|
||||
updateBtName,
|
||||
putBlogType,
|
||||
removeBlogType,
|
||||
sortBlogTypes,
|
||||
getContent,
|
||||
putBlog,
|
||||
updateContent,
|
||||
deleteContent,
|
||||
sortBlogs,
|
||||
countBlogs
|
||||
}
|
||||
+9
-1
@@ -49,10 +49,18 @@ const delete_bookmarks = (params: Object) => {
|
||||
})
|
||||
}
|
||||
|
||||
const bookmarks_count = () => {
|
||||
return service({
|
||||
url: '/wiki/api/v1/author/blogs/count',
|
||||
method: 'GET',
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
search_bookmark,
|
||||
put_bookmark,
|
||||
delete_bookmark,
|
||||
delete_bookmarks,
|
||||
update_bookmark
|
||||
update_bookmark,
|
||||
bookmarks_count
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user