package org.xyzh.api.log.dto;

import com.alibaba.fastjson2.JSONObject;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.xyzh.common.dto.BaseDTO;

/**
 * @description    系统日志DTO
 * @filename    TbSysLogDTO.java
 * @author    yslg
 * @copyright yslg
 * @since 2025-11-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "系统日志DTO")
public class TbSysLogDTO extends BaseDTO {
    private static final long serialVersionUID = 1L;

    @Schema(description = "日志ID")
    private String logId;

    @Schema(description = "日志类型")
    private Integer type;

    @Schema(description = "日志级别")
    private String level;

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

    @Schema(description = "IP地址")
    private String ipAddress;

    @Schema(description = "IP来源")
    private String ip_source;

    @Schema(description = "浏览器")
    private String browser;

    @Schema(description = "操作系统")
    private String os;

    @Schema(description = "日志消息")
    private String message;

    @Schema(description = "日志数据")
    private JSONObject data;
}