| 123456789101112131415161718192021222324252627282930313233 |
- # coding=utf-8
- """
- @project: MaxKB
- @Author:虎虎
- @file: Trigger.py
- @date:2026/1/14 18:45
- @desc:
- """
- from abc import ABC, abstractmethod
- class BaseTrigger(ABC):
- """
- 触发器抽象
- """
- @abstractmethod
- def support(self, trigger, **kwargs):
- pass
- @abstractmethod
- def deploy(self, trigger, **kwargs):
- pass
- @abstractmethod
- def undeploy(self, trigger, **kwargs):
- pass
- @staticmethod
- @abstractmethod
- def execute(trigger, **kwargs):
- pass
|