namespace HoneyBox.Admin.Models.OperationLog;

/// <summary>
/// 操作日志记录请求
/// </summary>
public class OperationLogRequest
{
    /// <summary>
    /// 管理员ID
    /// </summary>
    public long? AdminUserId { get; set; }

    /// <summary>
    /// 用户名
    /// </summary>
    public string? Username { get; set; }

    /// <summary>
    /// 模块
    /// </summary>
    public string? Module { get; set; }

    /// <summary>
    /// 操作
    /// </summary>
    public string? Action { get; set; }

    /// <summary>
    /// 请求方法
    /// </summary>
    public string? Method { get; set; }

    /// <summary>
    /// 请求URL
    /// </summary>
    public string? Url { get; set; }

    /// <summary>
    /// IP地址
    /// </summary>
    public string? Ip { get; set; }

    /// <summary>
    /// 请求数据
    /// </summary>
    public string? RequestData { get; set; }

    /// <summary>
    /// 响应数据
    /// </summary>
    public string? ResponseData { get; set; }

    /// <summary>
    /// 状态：0失败 1成功
    /// </summary>
    public byte Status { get; set; }

    /// <summary>
    /// 错误信息
    /// </summary>
    public string? ErrorMsg { get; set; }

    /// <summary>
    /// 执行时长（毫秒）
    /// </summary>
    public int Duration { get; set; }
}
