From ac9373fd6f0db53c983d87c4790cb627e82759e9 Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期二, 25 二月 2025 17:25:39 +0800 Subject: [PATCH] merge --- app/models/dialog_model.py | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/app/models/dialog_model.py b/app/models/dialog_model.py index 6751937..2abb060 100644 --- a/app/models/dialog_model.py +++ b/app/models/dialog_model.py @@ -19,10 +19,11 @@ name = Column(String(255)) # 鍚嶇О description = Column(Text) # 璇存槑 icon = Column(Text, default="intelligentFrame1") # 鍥炬爣 - status = Column(String(1), default="1") # 鐘舵�� + status = Column(String(1), default="0") # 鐘舵�� dialog_type = Column(String(1)) # 骞冲彴 # agent_id = Column(String(36)) mode = Column(String(36)) + parameters = Column(Text) def get_id(self): return str(self.id) @@ -49,7 +50,7 @@ create_date = Column(DateTime) # 鍒涘缓鏃堕棿 create_time = Column(BigInteger) update_date = Column(DateTime) # 鏇存柊鏃堕棿 - update_time = Column(BigInteger) + update_time = Column(BigInteger, index=True) tenant_id = Column(Integer) # 鍒涘缓浜� dialog_id = Column(String(32)) name = Column(String(255)) # 鍚嶇О @@ -80,4 +81,14 @@ class dialogDataUpdate(BaseModel): id: str - status: Optional[str] = "1" \ No newline at end of file + status: Optional[str] = "1" + icon: Optional[str] = "" + + +class dialogList(BaseModel): + current: Optional[int] = 1 + pageSize: Optional[int] = 10 + keyword: Optional[str] = "" + label: Optional[list] = [] + status: Optional[str] = "" + mode: Optional[str] = "" \ No newline at end of file -- Gitblit v1.8.0