535d97a70c
17-table PostgreSQL schema with full Chinese column comments, FastAPI project structure (admin/common/modules), DSL rule files, and schema migration scripts.
25 lines
630 B
Python
25 lines
630 B
Python
"""规则服务接口。"""
|
|
|
|
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:
|
|
"""发布指定版本。"""
|
|
...
|