feat✨: webui新增数据库api

This commit is contained in:
HibiKier
2023-12-31 01:58:26 +08:00
parent 25af1802af
commit c146df3d25
6 changed files with 176 additions and 6 deletions
@@ -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]
"""插件列表"""