新增便签ruoyi-note模块
This commit is contained in:
53
ruoyi-ui/src/api/note/content.js
Normal file
53
ruoyi-ui/src/api/note/content.js
Normal file
@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询文章内容列表
|
||||
export function listContent(query) {
|
||||
return request({
|
||||
url: '/note/content/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询文章内容详细
|
||||
export function getContent(noteId) {
|
||||
return request({
|
||||
url: '/note/content/' + noteId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增文章内容
|
||||
export function addContent(data) {
|
||||
return request({
|
||||
url: '/note/content',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改文章内容
|
||||
export function updateContent(data) {
|
||||
return request({
|
||||
url: '/note/content',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除文章内容
|
||||
export function delContent(noteId) {
|
||||
return request({
|
||||
url: '/note/content/' + noteId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出文章内容
|
||||
export function exportContent(query) {
|
||||
return request({
|
||||
url: '/note/content/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
53
ruoyi-ui/src/api/note/note.js
Normal file
53
ruoyi-ui/src/api/note/note.js
Normal file
@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询便签管理列表
|
||||
export function listNote(query) {
|
||||
return request({
|
||||
url: '/note/note/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询便签管理详细
|
||||
export function getNote(noteId) {
|
||||
return request({
|
||||
url: '/note/note/' + noteId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增便签管理
|
||||
export function addNote(data) {
|
||||
return request({
|
||||
url: '/note/note',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改便签管理
|
||||
export function updateNote(data) {
|
||||
return request({
|
||||
url: '/note/note',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除便签管理
|
||||
export function delNote(noteId) {
|
||||
return request({
|
||||
url: '/note/note/' + noteId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出便签管理
|
||||
export function exportNote(query) {
|
||||
return request({
|
||||
url: '/note/note/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
53
ruoyi-ui/src/api/note/tag.js
Normal file
53
ruoyi-ui/src/api/note/tag.js
Normal file
@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询便签标签列表
|
||||
export function listTag(query) {
|
||||
return request({
|
||||
url: '/note/tag/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询便签标签详细
|
||||
export function getTag(id) {
|
||||
return request({
|
||||
url: '/note/tag/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增便签标签
|
||||
export function addTag(data) {
|
||||
return request({
|
||||
url: '/note/tag',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改便签标签
|
||||
export function updateTag(data) {
|
||||
return request({
|
||||
url: '/note/tag',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除便签标签
|
||||
export function delTag(id) {
|
||||
return request({
|
||||
url: '/note/tag/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出便签标签
|
||||
export function exportTag(query) {
|
||||
return request({
|
||||
url: '/note/tag/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user