package com.yeshi.buwan.domain.uservideo;
|
|
import com.yeshi.buwan.util.StringUtil;
|
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: CollectionVideoV2
|
* @description: 视频收藏
|
* @date 2022/3/8 18:41
|
*/
|
@Document(collection = "collectionVideo")
|
public class CollectionVideoV2 {
|
|
@Id
|
private String id;
|
@Indexed
|
private String loginUid;
|
@Indexed
|
private String videoId;
|
@Indexed
|
private Date createTime;
|
|
|
public static String createId(String loginUid, String videoId) {
|
return StringUtil.Md5(loginUid + "#" + videoId);
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public String getLoginUid() {
|
return loginUid;
|
}
|
|
public void setLoginUid(String loginUid) {
|
this.loginUid = loginUid;
|
}
|
|
public String getVideoId() {
|
return videoId;
|
}
|
|
public void setVideoId(String videoId) {
|
this.videoId = videoId;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
}
|