mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-25 00:25:04 +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 |