This commit is contained in:
xiaojunnuo
2024-09-23 13:23:49 +08:00
parent e0466409d0
commit 8e03e8463f
10 changed files with 86 additions and 56 deletions
@@ -1,7 +1,7 @@
import { request } from "/src/api/service";
const apiPrefix = "/sys/authority/user";
export async function GetList(query: any) {
return request({
return await request({
url: apiPrefix + "/page",
method: "post",
data: query
@@ -9,7 +9,7 @@ export async function GetList(query: any) {
}
export async function AddObj(obj: any) {
return request({
return await request({
url: apiPrefix + "/add",
method: "post",
data: obj
@@ -17,7 +17,7 @@ export async function AddObj(obj: any) {
}
export async function UpdateObj(obj: any) {
return request({
return await request({
url: apiPrefix + "/update",
method: "post",
data: obj
@@ -25,7 +25,7 @@ export async function UpdateObj(obj: any) {
}
export async function DelObj(id: any) {
return request({
return await request({
url: apiPrefix + "/delete",
method: "post",
params: { id }
@@ -33,7 +33,7 @@ export async function DelObj(id: any) {
}
export async function GetObj(id: any) {
return request({
return await request({
url: apiPrefix + "/info",
method: "post",
params: { id }