diff options
Diffstat (limited to 'src/main/java/com/mesasoft/cn/entity/Download.java')
| -rw-r--r-- | src/main/java/com/mesasoft/cn/entity/Download.java | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/main/java/com/mesasoft/cn/entity/Download.java b/src/main/java/com/mesasoft/cn/entity/Download.java new file mode 100644 index 0000000..6e13fa9 --- /dev/null +++ b/src/main/java/com/mesasoft/cn/entity/Download.java @@ -0,0 +1,71 @@ +package com.mesasoft.cn.entity; + +import com.mesasoft.cn.util.BeanUtils; + +import java.sql.Timestamp; + +/** + * 下载记录表 + * + * @author pantao + * @since 2018/1/11 + */ +public class Download { + + private long id; + + private Timestamp createTime; + + private int userId; + + private int fileId; + + public Download(int userId, int fileId) { + this.userId = userId; + this.fileId = fileId; + } + + public Download(int id, Timestamp createTime, int userId, int fileId) { + this.id = id; + this.createTime = createTime; + this.userId = userId; + this.fileId = fileId; + } + + @Override + public String toString() { + return BeanUtils.toPrettyJson(this); + } + + public long getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public Timestamp getCreateTime() { + return createTime; + } + + public void setCreateTime(Timestamp createTime) { + this.createTime = createTime; + } + + public int getUserId() { + return userId; + } + + public void setUserId(int userId) { + this.userId = userId; + } + + public int getFileId() { + return fileId; + } + + public void setFileId(int fileId) { + this.fileId = fileId; + } +} |
