kontenhumas-fe/service/tenant.ts

23 lines
635 B
TypeScript
Raw Normal View History

2025-10-06 14:17:48 +00:00
import { httpDeleteInterceptor, httpGetInterceptor, httpPutInterceptor } from "./http-config/http-interceptor-service";
2025-10-05 05:04:09 +00:00
export async function deleteUserLevel(id: number) {
const url = `user-levels/${id}`;
return await httpDeleteInterceptor(url);
2025-10-06 14:17:48 +00:00
}
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);
}
2025-10-06 14:17:48 +00:00