mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-04 03:10:01 +08:00
fix web_ui api
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Optional, List, Any
|
||||
from typing import Optional, List, Any, Union
|
||||
from pydantic import BaseModel
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
import nonebot
|
||||
@@ -54,7 +54,7 @@ class PluginSettings(BaseModel):
|
||||
limit_superuser: Optional[bool] # 是否限制超级用户
|
||||
cmd: Optional[str] # cmd别名
|
||||
cost_gold: Optional[int] # 花费金币限制
|
||||
plugin_type: Optional[str] # 帮助类型
|
||||
plugin_type: Optional[List[Union[str, int]]] # 帮助类型
|
||||
|
||||
|
||||
class Plugin(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user