This commit is contained in:
simple321vip
2022-07-16 10:23:01 +08:00
parent 3e3db3c904
commit 39b417b6d3
10 changed files with 82 additions and 29 deletions
+8 -8
View File
@@ -6,14 +6,14 @@ const headers = {
const listAll = () => {
return request({
url: '/author/blog/list',
url: '/api/v1/author/blog/list',
method: 'GET'
})
}
const updateBtName = (data: Object) => {
return request({
url: '/author/blog_type',
url: '/api/v1/author/blog_type',
method: 'POST',
headers: headers,
data: data
@@ -22,7 +22,7 @@ const updateBtName = (data: Object) => {
const putBlogType = (data: Object) => {
return request({
url: '/author/blog_type',
url: '/api/v1/author/blog_type',
method: 'PUT',
headers: headers,
data: data
@@ -31,7 +31,7 @@ const putBlogType = (data: Object) => {
const removeBlogType = (data: Object) => {
return request({
url: '/author/blog_type',
url: '/api/v1/author/blog_type',
method: 'DELETE',
headers: headers,
data: data
@@ -40,7 +40,7 @@ const removeBlogType = (data: Object) => {
const getContent = (id: string) => {
return request({
url: '/author/blog/content/' + id,
url: '/api/v1/author/blog/content/' + id,
method: 'GET',
headers: headers,
})
@@ -48,7 +48,7 @@ const getContent = (id: string) => {
const putBlog = (postData: Object) => {
return request({
url: '/author/blog/content',
url: '/api/v1/author/blog/content',
method: 'PUT',
headers: headers,
data: postData
@@ -57,7 +57,7 @@ const putBlog = (postData: Object) => {
const updateContent = (postData: Object) => {
return request({
url: '/author/blog/content',
url: '/api/v1/author/blog/content',
method: 'POST',
headers: headers,
data: postData
@@ -66,7 +66,7 @@ const updateContent = (postData: Object) => {
const deleteContent = (bid: string) => {
return request({
url: '/author/blog/' + bid,
url: '/api/v1/author/blog/' + bid,
method: 'DELETE',
headers: headers,
})