mirror of https://github.com/elunez/eladmin
59 lines
989 B
Java
59 lines
989 B
Java
package me.zhengjie.domain;
|
||
|
||
import lombok.Data;
|
||
import org.hibernate.annotations.UpdateTimestamp;
|
||
|
||
import javax.persistence.*;
|
||
import java.io.Serializable;
|
||
import java.sql.Timestamp;
|
||
|
||
/**
|
||
* 上传成功后,存储结果
|
||
* @author Zheng Jie
|
||
* @date 2018-12-31
|
||
*/
|
||
@Data
|
||
@Entity
|
||
@Table(name = "qiniu_content")
|
||
public class QiniuContent implements Serializable {
|
||
|
||
@Id
|
||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||
private Long id;
|
||
|
||
/**
|
||
* 文件名,如qiniu.jpg
|
||
*/
|
||
@Column(name = "name",unique = false)
|
||
private String key;
|
||
|
||
/**
|
||
* 空间名
|
||
*/
|
||
private String bucket;
|
||
|
||
/**
|
||
* 大小
|
||
*/
|
||
private String size;
|
||
|
||
/**
|
||
* 文件地址
|
||
*/
|
||
private String url;
|
||
|
||
private String suffix;
|
||
|
||
/**
|
||
* 空间类型:公开/私有
|
||
*/
|
||
private String type = "公开";
|
||
|
||
/**
|
||
* 更新时间
|
||
*/
|
||
@UpdateTimestamp
|
||
@Column(name = "update_time")
|
||
private Timestamp updateTime;
|
||
}
|