整理目录结构

This commit is contained in:
WangHao
2020-09-20 21:16:14 +08:00
parent b1a03bcce1
commit 262fb3611f
18 changed files with 1393 additions and 1807 deletions

View File

@ -0,0 +1,53 @@
import request from '@/utils/request'
// 查询share书签分享列表
export function listShare(query) {
return request({
url: '/note/share/list',
method: 'get',
params: query
})
}
// 查询share书签分享详细
export function getShare(noteId) {
return request({
url: '/note/share/' + noteId,
method: 'get'
})
}
// 新增share书签分享
export function addShare(data) {
return request({
url: '/note/share',
method: 'post',
data: data
})
}
// 修改share书签分享
export function updateShare(data) {
return request({
url: '/note/share',
method: 'put',
data: data
})
}
// 删除share书签分享
export function delShare(noteId) {
return request({
url: '/note/share/' + noteId,
method: 'delete'
})
}
// 导出share书签分享
export function exportShare(query) {
return request({
url: '/note/share/export',
method: 'get',
params: query
})
}

View File

@ -1,6 +1,6 @@
import request from '@/utils/request'
// 查询便签标签列表
// 查询便签标签列表
export function listTag(query) {
return request({
url: '/note/tag/list',
@ -9,15 +9,15 @@ export function listTag(query) {
})
}
// 查询便签标签详细
export function getTag(id) {
// 查询便签标签详细
export function getTag(noteTagId) {
return request({
url: '/note/tag/' + id,
url: '/note/tag/' + noteTagId,
method: 'get'
})
}
// 新增便签标签
// 新增便签标签
export function addTag(data) {
return request({
url: '/note/tag',
@ -26,7 +26,7 @@ export function addTag(data) {
})
}
// 修改便签标签
// 修改便签标签
export function updateTag(data) {
return request({
url: '/note/tag',
@ -35,15 +35,15 @@ export function updateTag(data) {
})
}
// 删除便签标签
export function delTag(id) {
// 删除便签标签
export function delTag(noteTagId) {
return request({
url: '/note/tag/' + id,
url: '/note/tag/' + noteTagId,
method: 'delete'
})
}
// 导出便签标签
// 导出便签标签
export function exportTag(query) {
return request({
url: '/note/tag/export',