feat: add backend rule group and permission support
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
"""规则配置页聚合服务接口。"""
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
from fastapi_modules.fastapi_leaudit.domian.vo.ruleConfigVo import RuleConfigPackVO
|
||||
|
||||
|
||||
class IRuleConfigService(ABC):
|
||||
"""规则配置页聚合服务接口。"""
|
||||
|
||||
@abstractmethod
|
||||
async def ListPacks(self) -> list[RuleConfigPackVO]:
|
||||
"""列出规则配置页所需的全部 pack。"""
|
||||
...
|
||||
|
||||
@abstractmethod
|
||||
async def GetPack(self, PackId: int) -> RuleConfigPackVO:
|
||||
"""获取单个规则配置 pack。"""
|
||||
...
|
||||
Reference in New Issue
Block a user