素材云批量删除
This commit is contained in:
@@ -130,5 +130,5 @@ export const api = {
|
||||
post: <T>(path: string, body?: unknown, auth = true, skipAuthRedirect = false) =>
|
||||
apiRequest<T>(path, { method: 'POST', body, auth, skipAuthRedirect }),
|
||||
put: <T>(path: string, body?: unknown, auth = true) => apiRequest<T>(path, { method: 'PUT', body, auth }),
|
||||
delete: <T>(path: string, auth = true) => apiRequest<T>(path, { method: 'DELETE', auth }),
|
||||
delete: <T>(path: string, body?: unknown, auth = true) => apiRequest<T>(path, { method: 'DELETE', body, auth }),
|
||||
};
|
||||
|
||||
@@ -720,4 +720,10 @@ export async function getHomeCaseHeader(): Promise<any> {
|
||||
// 首页素材按钮资源
|
||||
export async function getHomeCaseButton(id: string,limit:number=5): Promise<any> {
|
||||
return api.get(`/home-materials?category_id=${id}&limit_per_category=${limit}&include_empty_categories=false&response_mode=grouped&page=1&page_size=20`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
export async function deleteResourcesMaterial(params:any): Promise<any> {
|
||||
return api.delete(`/generation-ai/history/batch`, params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user