This commit is contained in:
张成
2025-10-09 18:21:05 +08:00
parent ba61c9e45d
commit 6be5f7ed4f
49 changed files with 97 additions and 80 deletions

View File

@@ -1,12 +1,12 @@
import http from '@/utils/http'
class RolePermissionServer {
async getRoles(callback) {
let res = await window.framework.httpget('/SysRolePermission/Query', {})
let res = await window.framework.http.get('/SysRolePermission/Query', {})
return res
}
async getRole(row) {
let res = await window.framework.httpget('/SysRolePermission/QueryByRoleId', row)
let res = await window.framework.http.get('/SysRolePermission/QueryByRoleId', row)
return res
}

View File

@@ -1,7 +1,7 @@
import http from "@/utils/http";
class RoleServer {
async list() {
let res = await window.framework.httpget("/sys_role/index", {});
let res = await window.framework.http.get("/sys_role/index", {});
return res;
}

View File

@@ -1,7 +1,7 @@
import http from "@/utils/http";
class SysAddress {
async index(param) {
let res = await window.framework.httpget("/sys_address/index", param);
let res = await window.framework.http.get("/sys_address/index", param);
return res;
}
}

View File

@@ -1,12 +1,12 @@
import http from "@/utils/http";
class SysModuleServer {
async all() {
let res = await window.framework.httpget("/sys_menu/all", {});
let res = await window.framework.http.get("/sys_menu/all", {});
return res;
}
async list(row) {
let res = await window.framework.httpget("/sys_menu/all", row);
let res = await window.framework.http.get("/sys_menu/all", row);
return res;
}

View File

@@ -1,27 +1,27 @@
import http from "@/utils/http";
class SysLogServe {
async all(param) {
let res = await window.framework.httpget("/sys_log/all", param);
let res = await window.framework.http.get("/sys_log/all", param);
return res;
}
async detail(param) {
let res = await window.framework.httpget("/sys_log/detail", param);
let res = await window.framework.http.get("/sys_log/detail", param);
return res;
}
async delete(param) {
let res = await window.framework.httpget("/sys_log/delete", param);
let res = await window.framework.http.get("/sys_log/delete", param);
return res;
}
async delete_all(param) {
let res = await window.framework.httpget("/sys_log/delete_all", param);
let res = await window.framework.http.get("/sys_log/delete_all", param);
return res;
}
async operates(param) {
let res = await window.framework.httpget("/sys_log/operates", param);
let res = await window.framework.http.get("/sys_log/operates", param);
return res;
}
}

View File

@@ -1,7 +1,7 @@
import http from '@/utils/http';
class systemTypeClServer {
async all(param) {
let res= await window.framework.httpget('/sys_project_type/all', param);
let res= await window.framework.http.get('/sys_project_type/all', param);
return res;
}

View File

@@ -1,7 +1,7 @@
import http from '@/utils/http'
class TableServer {
async getAll(callback) {
return await window.framework.httpget('/table/index', {})
return await window.framework.http.get('/table/index', {})
}
async add(row, callback) {
@@ -19,11 +19,11 @@ class TableServer {
}
async autoApi(id) {
return await window.framework.httpget('/template/api', { id: id })
return await window.framework.http.get('/template/api', { id: id })
}
async autoDb(id) {
return await window.framework.httpget('/template/autoDb', { id: id })
return await window.framework.http.get('/template/autoDb', { id: id })
}
}

View File

@@ -6,7 +6,7 @@ class UserServer {
}
async all() {
let res = await window.framework.httpget("/sys_user/index", {});
let res = await window.framework.http.get("/sys_user/index", {});
return res;
}