From 8a04d5ba11d136de4d9e5e44e355c2498a88fab6 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 30 Nov 2026 10:26:59 +0800 Subject: [PATCH] refactor: update BatchDeleteInstance data handling in ChatUserSerializer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1080671@tapd-45245355 --user=王孝刚 [AI接口测试] v3 批量删除对话用户接口恒 500(serializer 无 data 即调用 is_valid) https://www.tapd.cn/45245355/s/2178261 --- apps/system_manage/views/system_chat_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/system_manage/views/system_chat_user.py b/apps/system_manage/views/system_chat_user.py index fe373c34827..8a90c580915 100644 --- a/apps/system_manage/views/system_chat_user.py +++ b/apps/system_manage/views/system_chat_user.py @@ -191,7 +191,7 @@ class BatchDelete(APIView): get_operation_object=lambda r, k: get_batch_delete_user_operation_object(r.data.get("ids", [])), ) def post(self, request: Request): - return result.success(ChatUserSerializer.BatchDeleteInstance({"ids": request.data}).batch_delete()) + return result.success(ChatUserSerializer.BatchDeleteInstance(data={"ids": request.data}).batch_delete()) class BatchAddGroup(APIView): authentication_classes = [TokenAuth]