跳到主内容

读取流程

获取支持分页的流程列表。

参数:current_user (User):当前认证用户。session (Session):数据库会话。settings_service (SettingsService):设置服务。components_only (bool, 可选):是否仅返回组件。默认为 False。

get_all (bool, 可选):是否返回所有流程而不进行分页。默认为 True。 由于与前端的向后兼容性,此字段必须为 True - 版本:1.0.20

folder_id (UUID, 可选):文件夹 ID。默认为 None。params (Params):分页参数。remove_example_flows (bool, 可选):是否移除示例流程。默认为 False。header_flows (bool, 可选):是否仅返回流程的特定头部信息。默认为 False。

返回:list[FlowRead] | Page[FlowRead] | list[FlowHeader] 流程列表或包含流程列表的分页响应或流程头部信息列表。

查询参数
remove_example_flows 移除示例流程
components_only 仅组件
get_all 获取全部
folder_id 文件夹 ID
header_flows 流程头部信息
page 页码

可能值: 1 ≤ 值

size 每页大小

可能值: 1 ≤ 值 ≤ 100

响应
200

成功响应

模式 可选
undefined
422

验证错误

模式 可选
detail 对象数组 可选
loc undefined[]
msg 消息
type 错误类型
Search