package cn.iocoder.yudao.module.server.controller.admin.materialdownloadlog.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 资料下载日志新增/修改 Request VO")
@Data
public class MaterialDownloadLogSaveReqVO {

    @Schema(description = "日志id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24484")
    private Long id;

    @Schema(description = "资料ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31572")
    @NotNull(message = "资料ID不能为空")
    private Long materialId;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14821")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "下载时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "下载时间不能为空")
    private LocalDateTime downloadTime;

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

    @Schema(description = "资料名称", example = "赵六")
    private String materialName;

    @Schema(description = "下载用户", example = "芋艿")
    private String userName;

}