upd: member

Deskripsi:
- load member
- search member
- filter member
- active member
- tambah member

nb: blm bisa upload gambar

No Issues
This commit is contained in:
amel
2025-05-02 17:36:18 +08:00
parent 3379ea736c
commit be56495383
12 changed files with 616 additions and 169 deletions

View File

@@ -112,4 +112,19 @@ export const apiEditPosition = async (data: { user: string, name: string, idGrou
.catch(error => {
console.error('Error:', error);
});
};
export const apiGetUser = async ({ user, active, search, group }: { user: string, active: string, search: string, group?: string }) => {
const response = await api.get(`mobile/user?user=${user}&active=${active}&group=${group}&search=${search}`);
return response.data;
};
export const apiCreateUser = async (data: FormData) => {
const response = await api.post('/mobile/user', data, {
headers: {
'Content-Type': 'multipart/form-data',
},
})
return response.data;
};