package com.yeshi.makemoney.app.entity.team;
|
|
import org.springframework.data.annotation.Id;
|
import org.springframework.data.mongodb.core.index.Indexed;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
import java.util.Date;
|
|
/**
|
* @author hxh
|
* @title: UserSpreadImg
|
* @description: 用户分享图素材
|
* @date 2022/4/8 16:42
|
*/
|
@Document(collection = "userSpreadImg")
|
public class UserSpreadImg {
|
@Id
|
private String id;
|
@Indexed
|
private Long uid;
|
private String url;
|
/**
|
* 原图的MD5值
|
**/
|
@Indexed
|
private String sourceMD5;
|
private Date createTime;
|
private Date updateTime;
|
|
public String toId() {
|
return uid + "-" + sourceMD5;
|
}
|
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public Long getUid() {
|
return uid;
|
}
|
|
public void setUid(Long uid) {
|
this.uid = uid;
|
}
|
|
public String getUrl() {
|
return url;
|
}
|
|
public void setUrl(String url) {
|
this.url = url;
|
}
|
|
public String getSourceMD5() {
|
return sourceMD5;
|
}
|
|
public void setSourceMD5(String sourceMD5) {
|
this.sourceMD5 = sourceMD5;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
}
|