Files
lingji-work-fe/src/api/all/common.ts

31 lines
702 B
TypeScript
Raw Normal View History

2025-06-30 15:35:23 +08:00
/*
* @Author: RenXiaoDong
* @Date: 2025-06-30 14:25:22
*/
import Http from '@/api';
// 获取用户自定义列
export const getCustomColumns = (params = {}) => {
return Http.get('/v1/custom-columns', params);
2025-06-30 15:35:23 +08:00
};
// 保存用户自定义列
export const updateCustomColumns = (params = {}) => {
return Http.put('/v1/custom-columns', params);
2025-06-30 15:35:23 +08:00
};
2025-07-17 15:28:20 +08:00
// 任务中心-分页
export const getTask = (params = {}) => {
return Http.get('/v1/tasks', params);
};
// 任务中心-批量删除
export const deleteBatchTasks = (params = {}) => {
return Http.delete('/v1/tasks', params);
};
// 任务中心-删除
export const deleteTask = (id: string) => {
return Http.delete(`/v1/tasks/${id}`);
};