mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-12 13:43:49 +08:00
v1.1.0
This commit is contained in:
28
smart-admin-web/src/api/peony.js
Normal file
28
smart-admin-web/src/api/peony.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';
|
||||
|
||||
export const peonyApi = {
|
||||
// 添加牡丹花 @author 卓大
|
||||
addPeony: (data) => {
|
||||
return postAxios('/peony/add', data);
|
||||
},
|
||||
// 分页查询牡丹花 @author 卓大
|
||||
queryPeony: (data) => {
|
||||
return postAxios('/peony/page/query', data);
|
||||
},
|
||||
// 批量删除牡丹花 @author 卓大
|
||||
batchDeletePeony: (idList) => {
|
||||
return postAxios('/peony/deleteByIds', idList);
|
||||
},
|
||||
// 修改牡丹花 @author 卓大
|
||||
updatePeony: (data) => {
|
||||
return postAxios('/peony/update',data);
|
||||
},
|
||||
// 导出全部 @author 卓大
|
||||
exportAll:(data)=>{
|
||||
return postDownloadAxios('/peony/export/all',data);
|
||||
},
|
||||
// 批量导出 @author 卓大
|
||||
batchExport: (idList) => {
|
||||
return postDownloadAxios('/peony/export/batch', idList);
|
||||
},
|
||||
};
|
||||
@@ -29,7 +29,7 @@ export const taskApi = {
|
||||
return getAxios(`/quartz/task/resume/${taskId}`);
|
||||
},
|
||||
// 删除任务
|
||||
deleteTasks: (taskId) => {
|
||||
deleteTask: (taskId) => {
|
||||
return getAxios(`/quartz/task/delete/${taskId}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user