更新数字人创作页面功能
- 修改 `ExecutionFlowItem` 接口,将 `flowId` 字段重命名为 `Id`,以提高一致性。 - 新增 `getExecutionDetail` 函数,用于获取执行详情,增强工作流管理能力。 - 更新树节点处理逻辑,使用 `workflowId` 替代 `flowId`,确保数据一致性。 - 优化模型配置页面,动态显示访问类型,提升用户体验。
This commit is contained in:
@@ -76,7 +76,7 @@ export interface ExecutionItem {
|
||||
|
||||
export interface ExecutionFlowItem {
|
||||
flowName: string;
|
||||
flowId?: number | string;
|
||||
Id?: number | string;
|
||||
sessionId?: string;
|
||||
items: ExecutionItem[];
|
||||
}
|
||||
@@ -228,6 +228,15 @@ export function getWorkflowDetail(id: string, requestOptions?: RequestOptions) {
|
||||
}) as Promise<WorkflowDetailResponse>;
|
||||
}
|
||||
|
||||
export function getExecutionDetail(id: string, requestOptions?: RequestOptions) {
|
||||
return request({
|
||||
url: '/ai-agent/flow/execution/get',
|
||||
method: 'get',
|
||||
params: { id },
|
||||
requestOptions,
|
||||
}) as Promise<WorkflowDetailResponse>;
|
||||
}
|
||||
|
||||
export function updateWorkflow(data: { id: string; flowName: string; description: string; flowContent: any }, requestOptions?: RequestOptions) {
|
||||
return request({
|
||||
url: '/ai-agent/flow/user/update',
|
||||
|
||||
Reference in New Issue
Block a user