package com.yeshi.fanli.entity.dynamic;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
import java.util.List;
|
|
import org.springframework.data.annotation.Id;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
import org.springframework.data.mongodb.core.mapping.Field;
|
|
import com.google.gson.annotations.Expose;
|
import com.yeshi.fanli.entity.bus.activity.ActivityUser;
|
|
@Document(collection = "wxmpDynamicInfo")
|
public class WXMPDynamicInfo implements Serializable {
|
|
public final static int SOURCE_NYH = 11;// 内优惠
|
public final static int SOURCE_OWN = 20;// 自有编辑
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@Expose
|
@Field("id")
|
private String id;
|
|
// 发布用户
|
@Expose
|
@Field("user")
|
private ActivityUser user;
|
// 图片内容
|
@Expose
|
@Field("imgs")
|
private List<GoodsPicture> imgs;
|
|
// 文案
|
@Expose
|
@Field("content")
|
private String content;
|
|
// 来源
|
@Field("source")
|
private Integer source;
|
|
// 分享次数
|
@Field("shareCount")
|
private Integer shareCount;
|
|
// 分享赚的资金
|
@Expose
|
@Field("shareMoney")
|
private BigDecimal shareMoney;
|
|
// 创建时间
|
@Expose
|
@Field("createTime")
|
private Date createTime;
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public ActivityUser getUser() {
|
return user;
|
}
|
|
public void setUser(ActivityUser user) {
|
this.user = user;
|
}
|
|
public List<GoodsPicture> getImgs() {
|
return imgs;
|
}
|
|
public void setImgs(List<GoodsPicture> imgs) {
|
this.imgs = imgs;
|
}
|
|
public String getContent() {
|
return content;
|
}
|
|
public void setContent(String content) {
|
this.content = content;
|
}
|
|
public Integer getSource() {
|
return source;
|
}
|
|
public void setSource(Integer source) {
|
this.source = source;
|
}
|
|
public Integer getShareCount() {
|
return shareCount;
|
}
|
|
public void setShareCount(Integer shareCount) {
|
this.shareCount = shareCount;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public BigDecimal getShareMoney() {
|
return shareMoney;
|
}
|
|
public void setShareMoney(BigDecimal shareMoney) {
|
this.shareMoney = shareMoney;
|
}
|
|
}
|