Files
certd/packages/ui/certd-client/src/views/sys/suite/user-suite/api.ts
T

63 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-12-17 10:27:35 +08:00
import { request } from "/src/api/service";
2024-12-23 14:47:27 +08:00
export function createApi() {
2024-12-24 01:12:12 +08:00
const apiPrefix = "/sys/suite/user-suite";
2024-12-23 14:47:27 +08:00
return {
async GetList(query: any) {
return await request({
url: apiPrefix + "/page",
method: "post",
data: query
});
},
async AddObj(obj: any) {
return await request({
url: apiPrefix + "/add",
method: "post",
data: obj
});
},
async UpdateObj(obj: any) {
return await request({
url: apiPrefix + "/update",
method: "post",
data: obj
});
},
async DelObj(id: number) {
return await request({
url: apiPrefix + "/delete",
method: "post",
params: { id }
});
},
async GetObj(id: number) {
return await request({
url: apiPrefix + "/info",
method: "post",
params: { id }
});
},
async ListAll() {
return await request({
url: apiPrefix + "/all",
method: "post"
});
2024-12-24 01:12:12 +08:00
},
async GetSimpleUserByIds(ids: number[]) {
return await request({
url: "/sys/authority/user/getSimpleUserByIds",
method: "post",
data: { ids }
});
2024-12-23 14:47:27 +08:00
}
};
}
export const pipelineGroupApi = createApi();