完善接口,实现对DIFY前端消息流传输的支持
This commit is contained in:
@@ -18,13 +18,13 @@ class conversations:
|
||||
|
||||
return datas
|
||||
|
||||
def get(self,user_id:str,id:str = ''):
|
||||
records = dbManage.query(self._tableName,user_id = user_id,id=id)
|
||||
def get(self, id:str):
|
||||
records = dbManage.query(self._tableName, id=id)
|
||||
if len(records) >0:
|
||||
return records[0]
|
||||
return None
|
||||
|
||||
def add(self,user_id:str,name:str,id:str = ''):
|
||||
def add(self,id:str, user_id:str, name:str):
|
||||
template = BaseConfig.ConversationCfg
|
||||
template['id'] = id
|
||||
template['user_id'] = user_id
|
||||
|
||||
Reference in New Issue
Block a user