onenote test环境再修改
This commit is contained in:
+8
-34
@@ -7,14 +7,6 @@ const get_categorys = () => {
|
||||
})
|
||||
}
|
||||
|
||||
const get_items = (category_id: string) => {
|
||||
return service({
|
||||
url: '/onenote/api/v1/' + category_id + '/items/',
|
||||
method: 'GET',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
const put_category = (data: Object) => {
|
||||
return service({
|
||||
url: '/onenote/api/v1/category',
|
||||
@@ -23,6 +15,13 @@ const put_category = (data: Object) => {
|
||||
})
|
||||
}
|
||||
|
||||
const get_items = (category_id: string) => {
|
||||
return service({
|
||||
url: '/onenote/api/v1/' + category_id + '/items/',
|
||||
method: 'GET',
|
||||
})
|
||||
}
|
||||
|
||||
const put_item = (data: Object) => {
|
||||
return service({
|
||||
url: '/onenote/api/v1/item',
|
||||
@@ -47,29 +46,4 @@ const delete_item = (data: Object) => {
|
||||
})
|
||||
}
|
||||
|
||||
const update_page = (params: Object) => {
|
||||
return service({
|
||||
url: '/onenote/api/v1/one_note/update_page',
|
||||
method: 'POST',
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
const update_section = (params: Object) => {
|
||||
return service({
|
||||
url: '/onenote/api/v1/one_note/update_section',
|
||||
method: 'POST',
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
const insert_page = (params: Object) => {
|
||||
return service({
|
||||
url: '/onenote/one_note/insert_page',
|
||||
method: 'PUT',
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
export { get_categorys, get_items, update_page, update_section, put_category, put_item, post_item, delete_item, insert_page }
|
||||
export { get_categorys, get_items, put_category, put_item, post_item, delete_item }
|
||||
|
||||
Reference in New Issue
Block a user