"""规则服务接口。""" from abc import ABC, abstractmethod from fastapi_modules.fastapi_leaudit.domian.vo.ruleVo import RuleSetVO, RuleVersionVO class IRuleService(ABC): """规则服务接口。""" @abstractmethod async def ListSets(self) -> list[RuleSetVO]: """列出所有规则集。""" ... @abstractmethod async def GetVersions(self, RuleType: str) -> list[RuleVersionVO]: """获取规则集的所有版本。""" ... @abstractmethod async def Publish(self, RuleType: str, VersionId: int) -> RuleVersionVO: """发布指定版本。""" ...