package com.agileboot.domain.collaboration.record.dto;

import cn.hutool.core.bean.BeanUtil;
import com.agileboot.domain.collaboration.record.db.CollaborationFileEntity;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author codex
 */
@NoArgsConstructor
@Data
public class CollaborationFileDTO {

    public CollaborationFileDTO(CollaborationFileEntity entity) {
        if (entity != null) {
            BeanUtil.copyProperties(entity, this);
        }
    }

    private Long fileId;

    private String fileType;

    private String url;

    private String fileName;

    private String newFileName;

    private String originalFilename;

    private Integer sortOrder;

}
