package com.lesingle.creation.vo.log;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 日志响应 VO
 */
@Data
@Schema(description = "日志响应")
public class LogVO {

    @Schema(description = "日志 ID")
    private Long id;

    @Schema(description = "租户 ID")
    private Long tenantId;

    @Schema(description = "用户 ID")
    private Long userId;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "操作模块")
    private String module;

    @Schema(description = "操作类型")
    private String action;

    @Schema(description = "操作描述")
    private String content;

    @Schema(description = "请求 IP")
    private String ip;

    @Schema(description = "用户代理")
    private String userAgent;

    @Schema(description = "请求方法")
    private String requestMethod;

    @Schema(description = "请求 URL")
    private String requestUrl;

    @Schema(description = "操作时长 (ms)")
    private Long duration;

    @Schema(description = "操作状态")
    private String status;

    @Schema(description = "错误信息")
    private String errorMessage;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
