マイクロサービス変更に伴うapi修正
This commit is contained in:
+10
-10
@@ -6,7 +6,7 @@ const headers = {
|
||||
|
||||
const listAll = () => {
|
||||
return service({
|
||||
url: '/auth/api/v1/author/blog/list',
|
||||
url: '/wiki/api/v1/author/blog/list',
|
||||
method: 'GET',
|
||||
headers: headers
|
||||
})
|
||||
@@ -14,7 +14,7 @@ const listAll = () => {
|
||||
|
||||
const updateBtName = (data: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/author/blog_type',
|
||||
url: '/wiki/api/v1/author/blog_type',
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
data: data
|
||||
@@ -23,7 +23,7 @@ const updateBtName = (data: Object) => {
|
||||
|
||||
const putBlogType = (data: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/author/blog_type',
|
||||
url: '/wiki/api/v1/author/blog_type',
|
||||
method: 'PUT',
|
||||
headers: headers,
|
||||
data: data
|
||||
@@ -32,7 +32,7 @@ const putBlogType = (data: Object) => {
|
||||
|
||||
const removeBlogType = (data: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/author/blog_type',
|
||||
url: '/wiki/api/v1/author/blog_type',
|
||||
method: 'DELETE',
|
||||
headers: headers,
|
||||
data: data
|
||||
@@ -41,7 +41,7 @@ const removeBlogType = (data: Object) => {
|
||||
|
||||
const sortBlogTypes = (data: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/author/blog_types',
|
||||
url: '/wiki/api/v1/author/blog_types',
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
data: data
|
||||
@@ -50,7 +50,7 @@ const sortBlogTypes = (data: Object) => {
|
||||
|
||||
const getContent = (id: string) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/author/blog/content/' + id,
|
||||
url: '/wiki/api/v1/author/blog/content/' + id,
|
||||
method: 'GET',
|
||||
headers: headers,
|
||||
})
|
||||
@@ -58,7 +58,7 @@ const getContent = (id: string) => {
|
||||
|
||||
const putBlog = (postData: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/author/blog/content',
|
||||
url: '/wiki/api/v1/author/blog/content',
|
||||
method: 'PUT',
|
||||
headers: headers,
|
||||
data: postData
|
||||
@@ -67,7 +67,7 @@ const putBlog = (postData: Object) => {
|
||||
|
||||
const updateContent = (post_data: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/author/blog/content',
|
||||
url: '/wiki/api/v1/author/blog/content',
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
data: post_data
|
||||
@@ -76,7 +76,7 @@ const updateContent = (post_data: Object) => {
|
||||
|
||||
const deleteContent = (bid: string, delete_data: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/author/blog/' + bid,
|
||||
url: '/wiki/api/v1/author/blog/' + bid,
|
||||
method: 'DELETE',
|
||||
headers: headers,
|
||||
data: delete_data
|
||||
@@ -85,7 +85,7 @@ const deleteContent = (bid: string, delete_data: Object) => {
|
||||
|
||||
const sortBlogs = (data: Object, btId: string) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/author/blogs/' + btId,
|
||||
url: '/wiki/api/v1/author/blogs/' + btId,
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
data: data
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@ const headers = {
|
||||
|
||||
const getBlogs = (params: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/reader/blogs',
|
||||
url: '/wiki/api/v1/reader/blogs',
|
||||
method: 'GET',
|
||||
params: params,
|
||||
paramsSerializer: (params) => {
|
||||
@@ -18,7 +18,7 @@ const getBlogs = (params: Object) => {
|
||||
|
||||
const getBtName = () => {
|
||||
return service({
|
||||
url: '/auth/api/v1/reader/blog_type',
|
||||
url: '/wiki/api/v1/reader/blog_type',
|
||||
method: 'GET',
|
||||
headers: headers
|
||||
})
|
||||
@@ -26,7 +26,7 @@ const getBtName = () => {
|
||||
|
||||
const getBlog = (bid: string) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/reader/blog/' + bid,
|
||||
url: '/wiki/api/v1/reader/blog/' + bid,
|
||||
method: 'GET',
|
||||
headers: headers
|
||||
})
|
||||
@@ -34,14 +34,14 @@ const getBlog = (bid: string) => {
|
||||
|
||||
const publishAll = () => {
|
||||
return service({
|
||||
url: '/auth/api/v1/reader/blogs/publish/all',
|
||||
url: '/wiki/api/v1/reader/blogs/publish/all',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
const publish = (bid: string) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/reader/blogs/publish/' + bid,
|
||||
url: '/wiki/api/v1/reader/blogs/publish/' + bid,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
+5
-5
@@ -8,7 +8,7 @@ import Qs from 'qs'
|
||||
*/
|
||||
const search_bookmark = (params: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/bookmark',
|
||||
url: '/bookmark/api/v1/bookmark',
|
||||
method: 'GET',
|
||||
params: params,
|
||||
paramsSerializer: (params) => {
|
||||
@@ -19,7 +19,7 @@ const search_bookmark = (params: Object) => {
|
||||
|
||||
const put_bookmark = (params: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/bookmark/insert',
|
||||
url: '/bookmark/api/v1/bookmark/insert',
|
||||
method: 'PUT',
|
||||
data: params
|
||||
})
|
||||
@@ -27,7 +27,7 @@ const put_bookmark = (params: Object) => {
|
||||
|
||||
const update_bookmark = (params: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/bookmark/update',
|
||||
url: '/bookmark/api/v1/bookmark/update',
|
||||
method: 'POST',
|
||||
data: params
|
||||
})
|
||||
@@ -35,14 +35,14 @@ const update_bookmark = (params: Object) => {
|
||||
|
||||
const delete_bookmark = (query: number) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/bookmark/delete/' + query,
|
||||
url: '/bookmark/api/v1/bookmark/delete/' + query,
|
||||
method: 'DELETE',
|
||||
})
|
||||
}
|
||||
|
||||
const delete_bookmarks = (params: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/bookmark',
|
||||
url: '/bookmark/api/v1/bookmark',
|
||||
method: 'DELETE',
|
||||
headers: {},
|
||||
data: params
|
||||
|
||||
@@ -2,7 +2,7 @@ import { service } from '../utils/request'
|
||||
|
||||
const put_bookmark_type = (params: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/bookmark_type/insert',
|
||||
url: '/bookmark/api/v1/bookmark_type/insert',
|
||||
method: 'PUT',
|
||||
data: params
|
||||
})
|
||||
@@ -10,7 +10,7 @@ const put_bookmark_type = (params: Object) => {
|
||||
|
||||
const get_bookmark_type = () => {
|
||||
return service({
|
||||
url: '/auth/api/v1/bookmark_type',
|
||||
url: '/bookmark/api/v1/bookmark_type',
|
||||
method: 'GET',
|
||||
data: {}
|
||||
})
|
||||
@@ -18,14 +18,14 @@ const get_bookmark_type = () => {
|
||||
|
||||
const delete_bookmark_type = (type_id: string) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/bookmark_type/' + type_id,
|
||||
url: '/bookmark/api/v1/bookmark_type/' + type_id,
|
||||
method: 'DELETE'
|
||||
})
|
||||
}
|
||||
|
||||
const post_bookmark_type = (params: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/bookmark_type',
|
||||
url: '/bookmark/api/v1/bookmark_type',
|
||||
method: 'POST',
|
||||
data: params
|
||||
})
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ const headers = {
|
||||
|
||||
const getAudioInfo = (url: string) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/common/audio-info',
|
||||
url: '/cloud/api/v1/common/audio-info',
|
||||
method: 'GET',
|
||||
params: { url: url },
|
||||
})
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
+5
-5
@@ -2,7 +2,7 @@ import { service } from '../utils/request'
|
||||
|
||||
const get_notes = (params: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/one_note',
|
||||
url: '/onenote/api/v1/one_note',
|
||||
method: 'GET',
|
||||
params: params
|
||||
})
|
||||
@@ -10,7 +10,7 @@ const get_notes = (params: Object) => {
|
||||
|
||||
const update_page = (params: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/one_note/update_page',
|
||||
url: '/onenote/api/v1/one_note/update_page',
|
||||
method: 'POST',
|
||||
data: params
|
||||
})
|
||||
@@ -18,7 +18,7 @@ const update_page = (params: Object) => {
|
||||
|
||||
const update_section = (params: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/one_note/update_section',
|
||||
url: '/onenote/api/v1/one_note/update_section',
|
||||
method: 'POST',
|
||||
data: params
|
||||
})
|
||||
@@ -26,14 +26,14 @@ const update_section = (params: Object) => {
|
||||
|
||||
const insert_section = () => {
|
||||
return service({
|
||||
url: '/auth/api/v1/one_note/insert_section',
|
||||
url: '/onenote/api/v1/one_note/insert_section',
|
||||
method: 'PUT'
|
||||
})
|
||||
}
|
||||
|
||||
const insert_page = (params: Object) => {
|
||||
return service({
|
||||
url: '/auth/one_note/insert_page',
|
||||
url: '/onenote/one_note/insert_page',
|
||||
method: 'PUT',
|
||||
data: params
|
||||
})
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import { service } from '../utils/request'
|
||||
|
||||
const get_stock_data = (data: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/trader',
|
||||
url: '/trader/api/v1/trader',
|
||||
method: 'PUT',
|
||||
data: data
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user