1
This commit is contained in:
@@ -1,37 +1,37 @@
|
||||
import http from "@/utils/http";
|
||||
class ModelServer {
|
||||
async interface(row) {
|
||||
let res = await window.framework.http.post("/sys_model/interface", row);
|
||||
let res = await http.post("/sys_model/interface", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async all() {
|
||||
let res = await window.framework.http.get("/sys_model/all", {});
|
||||
let res = await http.get("/sys_model/all", {});
|
||||
return res;
|
||||
}
|
||||
|
||||
async detail(row) {
|
||||
let res = await window.framework.http.get("/sys_model/detail", row);
|
||||
let res = await http.get("/sys_model/detail", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async regenerate(row) {
|
||||
let res = await window.framework.http.post("/sys_model/regenerate", row);
|
||||
let res = await http.post("/sys_model/regenerate", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async add(row) {
|
||||
let res = await window.framework.http.post("/sys_model/add", row);
|
||||
let res = await http.post("/sys_model/add", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async edit(row) {
|
||||
let res = await window.framework.http.post("/sys_model/edit", row);
|
||||
let res = await http.post("/sys_model/edit", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async del(row) {
|
||||
let res = await window.framework.http.post("/sys_model/del", row);
|
||||
let res = await http.post("/sys_model/del", row);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user