diff options
| author | zhanghongqing <[email protected]> | 2022-08-09 16:54:16 +0800 |
|---|---|---|
| committer | zhanghongqing <[email protected]> | 2022-08-09 16:54:16 +0800 |
| commit | b3fa11d4b1b5a68d7b04fde5eb6cfbda557927eb (patch) | |
| tree | a49d344e49fc427fbf4cf00aa4963c4d04cd98a4 /src/main/java/com/mesasoft/cn/entity/Download.java | |
| parent | d8a2be0d094ac9ba2d47c81ebf03b3fe6e34a078 (diff) | |
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; + } +} |
