package org.qinan.safetyeval.client.co;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 文件信息 CO（Client Object - 返回给前端）
 *
 * @author safety-eval
 */
@Data
public class FileInfoCO {

    @ApiModelProperty(value = "文件ID")
    private Integer id;

    @ApiModelProperty(value = "OSS文件访问URL")
    private String url;

    @ApiModelProperty(value = "文件签名URL（带过期时间的临时访问链接）")
    private String presignedUrl;

    @ApiModelProperty(value = "文件大小（字节）")
    private Long size;

    @ApiModelProperty(value = "文件原始名称")
    private String originalFilename;

    @ApiModelProperty(value = "文件扩展名")
    private String ext;

    @ApiModelProperty(value = "文件MIME类型")
    private String contentType;

    @ApiModelProperty(value = "上传者姓名")
    private String creatorName;

    @ApiModelProperty(value = "上传时间")
    private LocalDateTime createdTime;
}
