项目/AI生成链路合并
This commit is contained in:
@@ -348,8 +348,9 @@ export async function deleteIndustryConfig(id: string): Promise<void> {
|
||||
await api.delete(`/admin/industry-configs/${id}`);
|
||||
}
|
||||
|
||||
export async function getVideoEngines(): Promise<any[]> {
|
||||
return api.get('/admin/video-engines');
|
||||
export async function getVideoEngines(options?: { includeDeleted?: boolean }): Promise<any[]> {
|
||||
const query = options?.includeDeleted ? '?include_deleted=true' : '';
|
||||
return api.get(`/admin/video-engines${query}`);
|
||||
}
|
||||
|
||||
export async function saveVideoEngine(engine: any): Promise<any> {
|
||||
@@ -361,8 +362,9 @@ export async function deleteVideoEngine(id: string): Promise<void> {
|
||||
await api.delete(`/admin/video-engines/${id}`);
|
||||
}
|
||||
|
||||
export async function getImageEngines(): Promise<any[]> {
|
||||
return api.get('/admin/image-engines');
|
||||
export async function getImageEngines(options?: { includeDeleted?: boolean }): Promise<any[]> {
|
||||
const query = options?.includeDeleted ? '?include_deleted=true' : '';
|
||||
return api.get(`/admin/image-engines${query}`);
|
||||
}
|
||||
|
||||
export async function saveImageEngine(engine: any): Promise<any> {
|
||||
|
||||
Reference in New Issue
Block a user