feat: allow to view chat message in manager console

This commit is contained in:
RockYang
2024-02-22 17:16:44 +08:00
parent dbcf14b566
commit 5c9b1e8764
23 changed files with 688 additions and 26 deletions

View File

@@ -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, "删除失败")