def METHOD_NAME(request, project_id):
    """
    @summary: 切换用户默认项目
    """
    UserDefaultProject.objects.update_or_create(
        username=request.user.username, defaults={"default_project_id": project_id}
    )
    ProjectCounter.objects.increase_or_create(username=request.user.username, project_id=project_id)
    return JsonResponse({"result": True, "data": {}, "message": _("用户默认项目切换成功")})