百度云放盘第三方登录

This commit is contained in:
simple321vip
2022-07-17 10:00:32 +08:00
parent 39b417b6d3
commit 69e05f61a3
11 changed files with 43 additions and 39 deletions
+8 -8
View File
@@ -6,14 +6,14 @@ const headers = {
const listAll = () => {
return request({
url: '/api/v1/author/blog/list',
url: '/auth/api/v1/author/blog/list',
method: 'GET'
})
}
const updateBtName = (data: Object) => {
return request({
url: '/api/v1/author/blog_type',
url: '/auth/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: '/api/v1/author/blog_type',
url: '/auth/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: '/api/v1/author/blog_type',
url: '/auth/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: '/api/v1/author/blog/content/' + id,
url: '/auth/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: '/api/v1/author/blog/content',
url: '/auth/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: '/api/v1/author/blog/content',
url: '/auth/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: '/api/v1/author/blog/' + bid,
url: '/auth/api/v1/author/blog/' + bid,
method: 'DELETE',
headers: headers,
})