All Downloads are FREE. Search and download functionalities are using the official Maven repository.

matrix.boot.common.dto.UploadResultDto Maven / Gradle / Ivy

There is a newer version: 2.1.11
Show newest version
package matrix.boot.common.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 上传结果
 * @author wangcheng
 */
@Data
@Accessors(chain = true)
public class UploadResultDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 字段名称
     */
    private String fieldName;

    /**
     * 文件名称
     */
    private String fileName;

    /**
     * 系统生成的文件名称
     */
    private String sysFileName;

    /**
     * 是否成功
     */
    private boolean success = false;

    /**
     * 消息信息
     */
    private String message;

    public UploadResultDto(String fieldName, String fileName, String sysFileName) {
        this.fieldName = fieldName;
        this.fileName = fileName;
        this.sysFileName = sysFileName;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy