26 lines
607 B
Java
26 lines
607 B
Java
package com.yunhai.acasyllabu.model.file;
|
|
|
|
import com.yunhai.acasyllabu.entity.UpFile;
|
|
import lombok.Data;
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
/**
|
|
* 附件视图对象(对齐前端 UpFileVo)。
|
|
*/
|
|
@Data
|
|
public class UpFileVo {
|
|
private Integer id;
|
|
private String fileTrueName;
|
|
private String fileName;
|
|
private Integer fileSize;
|
|
private String fileType;
|
|
private Integer topicId;
|
|
private String topicType;
|
|
|
|
public static UpFileVo from(UpFile entity) {
|
|
UpFileVo vo = new UpFileVo();
|
|
BeanUtils.copyProperties(entity, vo);
|
|
return vo;
|
|
}
|
|
}
|