1
0
forked from bot/app
LiteyukiBot/liteyuki/plugins/liteyuki_npm/permission.py

8 lines
211 B
Python
Raw Normal View History

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