update media manage
All checks were successful
Build and Release / release (push) Successful in 29s

This commit is contained in:
2026-04-23 15:52:18 +07:00
parent bf44502a24
commit e273df1ee2
14 changed files with 830 additions and 66 deletions

View File

@@ -116,4 +116,15 @@ export const deleteMedia = async (mediaIds: string[]) => {
}
});
return response?.data;
}
export const deleteMediaById = async (mediaId: string) => {
const response = await api.delete(API.Media.DELETE_MEDIA_BY_ID(mediaId));
return response?.data;
}
export const getMedia = async (payload: any) => {
const response = await api.get(API.Media.GET_MEDIA, {
params: payload,
});
return response?.data;
}