change role

This commit is contained in:
2026-04-08 22:36:49 +07:00
parent 30a2286f52
commit c5cf156338
6 changed files with 47 additions and 16 deletions

View File

@@ -11,7 +11,7 @@ export const apiGetListUser = async (payload: getUserDto) => {
export const apiChangeRole = async (id: string, payload: any) => {
const response = await api.patch(API.Admin.CHANGE_ROLE(id), payload);
console.log("Response từ API sau khi đổi role:", response);
// console.log("Response từ API sau khi đổi role:", response);
return response?.data;
};
export const apiDeleteUser = async (id: string) => {