onenote test环境再修改

This commit is contained in:
simple321vip
2023-02-06 21:08:46 +08:00
parent d07abaa7b5
commit 56fe7dfd05
3 changed files with 90 additions and 69 deletions
+8 -34
View File
@@ -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 }