mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-26 07:05:05 +08:00
8 lines
211 B
Python
8 lines
211 B
Python
# 插件权限管理器,对api调用进行hook限制,防止插件滥用api
|
||
from liteyuki.utils.data import LiteModel
|
||
|
||
|
||
class PermissionAllow(LiteModel):
|
||
plugin_name: str
|
||
api_name: str
|
||
allow: bool |