mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-05 11:46:40 +08:00
29 lines
880 B
JavaScript
29 lines
880 B
JavaScript
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);
|
|
},
|
|
};
|