app/src/plugins/liteyuki_plugin_npm/permission.py

8 lines
206 B
Python
Raw Normal View History

2024-03-22 13:39:01 +08:00
# 插件权限管理器对api调用进行hook限制防止插件滥用api
from src.utils.data import LiteModel
class PermissionAllow(LiteModel):
plugin_name: str
api_name: str
allow: bool