web-humas-fe/services/user-levels/user-levels-service.ts

27 lines
608 B
TypeScript
Raw Permalink Normal View History

2024-04-23 05:17:21 +00:00
import { httpGet, httpPost } from "../http-config/http-base-services";
export async function getAllUserLevels(data: any) {
const headers = {
"content-type": "application/json",
};
return await httpGet(`user-levels`, headers,);
}
export async function getAccountById(id: string) {
const headers = {
"content-type": "application/json",
};
return await httpGet(`user-account/findById/${id}`, headers);
}
export async function createUserLevels(request: any) {
const headers = {
"content-type": "application/json",
};
return await httpPost(`user-levels`, headers, request);
}