|
@@ -47,7 +47,9 @@ func (ucCtrl *UserChatController) NewChat() {
|
|
|
CreatedTime: time.Now(),
|
|
|
ChatTitle: req.ChatTitle,
|
|
|
}
|
|
|
- err = session.CreateChatSession()
|
|
|
+ var chatResp = new(llm_http.UserChatResp)
|
|
|
+ chatResp.ChatTitle = req.ChatTitle
|
|
|
+ chatResp.ChatId, err = session.CreateChatSession()
|
|
|
if err != nil {
|
|
|
br.Msg = "创建失败"
|
|
|
br.ErrMsg = "创建失败,Err:" + err.Error()
|
|
@@ -59,6 +61,7 @@ func (ucCtrl *UserChatController) NewChat() {
|
|
|
Content: req.ChatTitle,
|
|
|
SendTime: time.Now().Format(utils.FormatDateTime),
|
|
|
})
|
|
|
+ br.Data = chatResp
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
br.Msg = "创建成功"
|