def METHOD_NAME(request):
    """获取审计日志列表"""
    limit = int(request.POST.get("limit", 0))
    offset = int(request.POST.get("offset", 0))
    limit = offset + limit
    limit = limit if limit else None
    search = request.POST.get("search", "")
    action = request.POST.get("action", "")
    start_date = request.POST.get("start_date")
    end_date = request.POST.get("end_date")
    filter_dict = dict()
    if start_date and end_date:
        end_date = datetime.datetime.strptime(
            end_date, "%Y-%m-%d"
        ) + datetime.timedelta(days=1)
        filter_dict["action_time__range"] = (start_date, end_date)
    if action:
        filter_dict["action"] = action
    audit_log_obj = AuditEntry.objects.filter(**filter_dict)
    if search:
        audit_log_obj = audit_log_obj.filter(
            Q(user_name__icontains=search)
            | Q(action__icontains=search)
            | Q(extra_info__icontains=search)
        )
    audit_log_count = audit_log_obj.count()
    audit_log_list = audit_log_obj.order_by("-action_time")[offset:limit].values(
        "user_id", "user_name", "user_display", "action", "extra_info", "action_time"
    )
    # QuerySet 序列化
    rows = [row for row in audit_log_list]
    result = {"total": audit_log_count, "rows": rows}
    # 返回查询结果
    return HttpResponse(
        json.dumps(result, cls=ExtendJSONEncoder, bigint_as_string=True),
        content_type="application/json",
    )