mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-11 03:33:48 +08:00
feat: allow to view chat message in manager console
This commit is contained in:
@@ -176,7 +176,7 @@ func (h *UserHandler) Remove(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
// 删除聊天历史记录
|
||||
res = h.db.Where("user_id = ?", id).Delete(&model.HistoryMessage{})
|
||||
res = h.db.Where("user_id = ?", id).Delete(&model.ChatMessage{})
|
||||
if res.Error != nil {
|
||||
tx.Rollback()
|
||||
resp.ERROR(c, "删除失败")
|
||||
|
||||
Reference in New Issue
Block a user