This commit is contained in:
张成
2025-11-21 16:53:49 +08:00
commit 8309808835
286 changed files with 32656 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
import http from '@/libs/http';
class <%=fileName%>ClServer {
async all(param) {
let res= await http.get('/<%=modelName%>/all', param);
return res;
}
async page(row) {
let res= await http.post('/<%=modelName%>/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/<%=modelName%>/export", row);
return res;
}
async add(row) {
let res= await http.post('/<%=modelName%>/add', row);
return res;
}
async edit(row) {
let res= await http.post('/<%=modelName%>/edit', row);
return res;
}
async del(row) {
let res= await http.post('/<%=modelName%>/del', row);
return res;
}
}
const <%=fileName%>Server = new <%=fileName%>ClServer();
export default <%=fileName%>Server;