fdgg
This commit is contained in:
@@ -389,7 +389,7 @@ class Personlist(APIView):
|
||||
department_dict.append({
|
||||
'id': user.id,
|
||||
"name": user.username, # 修改为 name,与前端期望的字段名一致
|
||||
"username": user.username, # 同时保留 username 字段以兼容
|
||||
"department": user.username, # 同时保留 username 字段以兼容
|
||||
})
|
||||
return Response({'message': '展示成功',"total":total,'data':department_dict, 'code': 0}, status=status.HTTP_200_OK)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user