mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
refactor🎨: 更新webui model
This commit is contained in:
parent
a5bb1f768e
commit
87a39bf033
@ -1,16 +1,37 @@
|
||||
from typing import Any
|
||||
|
||||
from nonebot.adapters.onebot.v11 import Message, MessageEvent
|
||||
from pydantic import BaseModel
|
||||
from typing import Any
|
||||
|
||||
|
||||
class ShopParam(BaseModel):
|
||||
|
||||
|
||||
goods_name: str
|
||||
"""商品名称"""
|
||||
user_id: int
|
||||
"""用户id"""
|
||||
group_id: int
|
||||
"""群聊id"""
|
||||
bot: Any
|
||||
"""bot"""
|
||||
event: MessageEvent
|
||||
num: int # 道具单次使用数量
|
||||
"""event"""
|
||||
num: int
|
||||
"""道具单次使用数量"""
|
||||
message: Message
|
||||
"""message"""
|
||||
text: str
|
||||
send_success_msg: bool = True # 是否发送使用成功信息
|
||||
max_num_limit: int = 1 # 单次使用最大次数
|
||||
"""text"""
|
||||
send_success_msg: bool = True
|
||||
"""是否发送使用成功信息"""
|
||||
max_num_limit: int = 1
|
||||
"""单次使用最大次数"""
|
||||
|
||||
|
||||
class CommonSql(BaseModel):
|
||||
|
||||
sql: str
|
||||
"""sql语句"""
|
||||
remark: str
|
||||
"""备注"""
|
||||
Loading…
Reference in New Issue
Block a user