pnkx-admin-mongo/pnkx-uniapp/api/px/life/todo.js

66 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-01-13 13:29:20 +08:00
import request from '@/utils/request'
// 查询待办事项列表
export function listDo(query) {
return request({
url: '/admin/toDo/list',
method: 'get',
params: query
})
}
// 查询待办事项详细
export function getDo(id) {
return request({
url: '/admin/toDo/' + id,
method: 'get'
})
}
// 新增待办事项
export function addDo(data) {
return request({
url: '/admin/toDo',
method: 'post',
data: data
})
}
// 修改待办事项
export function updateDo(data) {
return request({
url: '/admin/toDo',
method: 'put',
data: data
})
}
// 删除待办事项
export function delDo(id) {
return request({
url: '/admin/toDo/' + id,
method: 'delete'
})
}
// 导出待办事项
export function exportDo(query) {
return request({
url: '/admin/toDo/export',
method: 'get',
params: query
})
}
/**
* 获取标签列表
* @returns {*}
*/
export function getLabelList() {
return request({
url: '/admin/toDo/getLabelList',
method: 'get',
})
}