chore: initial commit — leaudit-platform project skeleton
17-table PostgreSQL schema with full Chinese column comments, FastAPI project structure (admin/common/modules), DSL rule files, and schema migration scripts.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
"""规则服务接口。"""
|
||||
|
||||
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:
|
||||
"""发布指定版本。"""
|
||||
...
|
||||
Reference in New Issue
Block a user