123456789101112131415161718192021222324252627282930313233343536373839404142 |
- ## export const ${moduleVar}Api = {
- // 添加${tableDesc} @author ${author}
- export const add${moduleClass}= (ajax,data) => {
- return ajax.request({
- url: '/${moduleVar}/add',
- data,
- method: 'post'
- });
- }
- // 分页查询${tableDesc} @author ${author}
- export const query${moduleClass}= (ajax,data) => {
- return ajax.request({
- url: '/${moduleVar}/page/query',
- data,
- method: 'post'
- });
- }
- // 批量删除${tableDesc} @author ${author}
- export const batchDelete${moduleClass}= (ajax,idList) => {
- return ajax.request({
- url: '/${moduleVar}/deleteByIds',
- data:idList,
- method: 'post'
- });
- }
- // 修改${tableDesc} @author ${author}
- export const update${moduleClass}= (ajax,data) => {
- return ajax.request({
- url: '/${moduleVar}/update',
- data,
- method: 'post'
- });
- }
- // 导出全部 @author ${author}
- ## export const exportAll:(ajax,data)=>{
- ## return postDownloadAxios('/${moduleVar}/export/all',data);
- ## }
- ## // 批量导出 @author ${author}
- ## export const batchExport: (ajax,idList) => {
- ## return postDownloadAxios('/${moduleVar}/export/batch', idList);
- ## }
- ## };
|