23 lines
635 B
TypeScript
23 lines
635 B
TypeScript
import { httpDeleteInterceptor, httpGetInterceptor, httpPutInterceptor } from "./http-config/http-interceptor-service";
|
|
|
|
export async function deleteUserLevel(id: number) {
|
|
const url = `user-levels/${id}`;
|
|
return await httpDeleteInterceptor(url);
|
|
}
|
|
|
|
export async function updateUserLevel(id: number, data: any) {
|
|
const url = `user-levels/${id}`;
|
|
return httpPutInterceptor(url, data);
|
|
}
|
|
|
|
export async function getUserLevelDetail(id: number) {
|
|
const url = `user-levels/${id}`;
|
|
return httpGetInterceptor(url);
|
|
}
|
|
export async function getTenantList() {
|
|
const url = `clients?limit=1000`;
|
|
return httpGetInterceptor(url);
|
|
}
|
|
|
|
|