package com.ruoyi.file.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.Getter;
import lombok.Setter;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 下载记录对象 download_record
 *
 * @author liangwen
 * @date 2025-09-12
 */
@Setter
@Getter
public class DownloadRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录id */
    private Long recordId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    @Excel(name = "文件名称")
    private String fileNames;

    /** 下载时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "下载时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date downloadTime;

    /** 下载IP地址 */
    @Excel(name = "下载IP地址")
    private String ipaddr;

    /** 下载地点 */
    @Excel(name = "下载地点")
    private String location;

    /** 浏览器类型 */
    @Excel(name = "浏览器类型")
    private String browser;

    /** 操作系统 */
    @Excel(name = "操作系统")
    private String os;

    /** 下载记录明细信息 */
    private List<DownloadRecordItem> downloadRecordItemList;

    /** 用户昵称 */
    private String nickName;

}
