@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user