mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 08:39:59 +08:00
feat✨: webui新增数据库api
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
from typing import List
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from utils.models import CommonSql
|
||||
|
||||
|
||||
class SqlText(BaseModel):
|
||||
"""
|
||||
sql语句
|
||||
"""
|
||||
|
||||
sql: str
|
||||
|
||||
|
||||
class SqlModel(BaseModel):
|
||||
|
||||
name: str
|
||||
"""插件中文名称"""
|
||||
plugin_name: str
|
||||
"""插件名称"""
|
||||
sql_list: List[CommonSql]
|
||||
"""插件列表"""
|
||||
Reference in New Issue
Block a user