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