add workflow oper

This commit is contained in:
jxxghp
2025-02-17 11:54:11 +08:00
parent 77ae40e3d6
commit 00aee3496c
3 changed files with 56 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
from typing import List
from app.chain import ChainBase
from app.db.workflow_oper import WorkflowOper
from app.schemas import Workflow
@@ -9,6 +10,10 @@ class WorkflowChain(ChainBase):
工作流链
"""
def __init__(self):
super().__init__()
self.workflowoper = WorkflowOper()
def process(self, workflow_id: int) -> bool:
"""
处理工作流