| | |
| | | package com.yeshi.fanli.entity.dynamic;
|
| | |
|
| | | import java.io.Serializable;
|
| | | 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;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoShop;
|
| | | import com.yeshi.fanli.vo.msg.ClientTextStyleVO;
|
| | |
|
| | | @Document(collection = "dynamic_info")
|
| | | public class DynamicInfo implements Serializable{
|
| | |
|
| | | |
| | | /**
|
| | | * |
| | | */
|
| | | private static final long serialVersionUID = 1L;
|
| | | // 分享类型 1:单图分享 、2:4图分享、 3:9图分享 、 4:邀请分享
|
| | | public final static int SHARE_TYPE_ONE = 1;
|
| | | public final static int SHARE_TYPE_FOUR = 2;
|
| | | public final static int SHARE_TYPE_NINE = 3;
|
| | | public final static int SHARE_TYPE_INVITE = 4;
|
| | | |
| | | |
| | | // 图片格式: 一排显示: 0无图 1一张 2两张 3张
|
| | | public final static int SHOW_TYPE_ZERO = 0;
|
| | | public final static int SHOW_TYPE_ONE = 1;
|
| | | public final static int SHOW_TYPE_TWO = 2;
|
| | | public final static int SHOW_TYPE_THREE = 3;
|
| | | |
| | | |
| | | @Id
|
| | | @Expose
|
| | | @Field("id")
|
| | | private String id;
|
| | | // 发布用户
|
| | | @Expose
|
| | | @Field("user")
|
| | | private ActivityUser user;
|
| | | // 发布内容
|
| | | @Expose
|
| | | @Field("title")
|
| | | private List<ClientTextStyleVO> title;
|
| | | // 图片信息
|
| | | @Expose
|
| | | @Field("imgs")
|
| | | private List<GoodsPicture> imgs;
|
| | | // 图片格式: 2-一排2个 1-一排一个 3-一排三个
|
| | | @Expose
|
| | | @Field("showType")
|
| | | private Integer showType;
|
| | | // 分享次数
|
| | | @Expose
|
| | | @Field("shareCount")
|
| | | private Integer shareCount;
|
| | | // 分享类型 1单图分享 、2 多图分享
|
| | | @Expose
|
| | | @Field("shareType")
|
| | | private Integer shareType;
|
| | | // 预计收入
|
| | | @Expose
|
| | | @Field("desc")
|
| | | private ClientTextStyleVO desc;
|
| | | // 店铺信息
|
| | | @Expose
|
| | | @Field("shop")
|
| | | private TaoBaoShop shop;
|
| | | // 前端发布时间
|
| | | @Expose
|
| | | @Field("createTime")
|
| | | private Date createTime;
|
| | | |
| | | // 更新时间
|
| | | @Field("updateTime")
|
| | | private Date updateTime;
|
| | |
|
| | | // 所属类型 1热销 2好货 3好店 4邀请
|
| | | @Field("classId")
|
| | | private Long classId;
|
| | | // 所属类型 1热销 2好货 3好店 4邀请
|
| | | @Field("subclassId")
|
| | | private Long subclassId;
|
| | |
|
| | | // 所属类型 1热销 2好货 3好店 4邀请
|
| | | @Field("daTaoKeId")
|
| | | private Long daTaoKeId;
|
| | | |
| | | |
| | | // 所属类型 人工编辑的动态id
|
| | | @Field("activityId")
|
| | | private Long activityId;
|
| | |
|
| | | // 邀请素材id
|
| | | @Field("inviteMaterialId")
|
| | | private String inviteMaterialId;
|
| | |
|
| | | // 商品 列表
|
| | | @Field("listGoodsBrief")
|
| | | private List<TaoBaoGoodsBrief> listGoodsBrief;
|
| | |
|
| | | |
| | |
|
| | | public String getInviteMaterialId() {
|
| | | return inviteMaterialId;
|
| | | }
|
| | |
|
| | | public void setInviteMaterialId(String inviteMaterialId) {
|
| | | this.inviteMaterialId = inviteMaterialId;
|
| | | }
|
| | |
|
| | | public DynamicInfo() {
|
| | | }
|
| | |
|
| | | public DynamicInfo(String id) {
|
| | | this.id = id;
|
| | | }
|
| | |
|
| | | 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<ClientTextStyleVO> getTitle() {
|
| | | return title;
|
| | | }
|
| | |
|
| | | public void setTitle(List<ClientTextStyleVO> title) {
|
| | | this.title = title;
|
| | | }
|
| | |
|
| | | public List<GoodsPicture> getImgs() {
|
| | | return imgs;
|
| | | }
|
| | |
|
| | | public void setImgs(List<GoodsPicture> imgs) {
|
| | | this.imgs = imgs;
|
| | | }
|
| | |
|
| | | public Integer getShowType() {
|
| | | return showType;
|
| | | }
|
| | |
|
| | | public void setShowType(Integer showType) {
|
| | | this.showType = showType;
|
| | | }
|
| | |
|
| | | public Integer getShareCount() {
|
| | | return shareCount;
|
| | | }
|
| | |
|
| | | public void setShareCount(Integer shareCount) {
|
| | | this.shareCount = shareCount;
|
| | | }
|
| | |
|
| | | public ClientTextStyleVO getDesc() {
|
| | | return desc;
|
| | | }
|
| | |
|
| | | public void setDesc(ClientTextStyleVO desc) {
|
| | | this.desc = desc;
|
| | | }
|
| | |
|
| | | public TaoBaoShop getShop() {
|
| | | return shop;
|
| | | }
|
| | |
|
| | | public void setShop(TaoBaoShop shop) {
|
| | | this.shop = shop;
|
| | | }
|
| | |
|
| | | public Date getCreateTime() {
|
| | | return createTime;
|
| | | }
|
| | |
|
| | | public void setCreateTime(Date createTime) {
|
| | | this.createTime = createTime;
|
| | | }
|
| | |
|
| | |
|
| | | public Integer getShareType() {
|
| | | return shareType;
|
| | | }
|
| | |
|
| | | public void setShareType(Integer shareType) {
|
| | | this.shareType = shareType;
|
| | | }
|
| | |
|
| | | public Long getClassId() {
|
| | | return classId;
|
| | | }
|
| | |
|
| | | public void setClassId(Long classId) {
|
| | | this.classId = classId;
|
| | | }
|
| | |
|
| | | public Long getSubclassId() {
|
| | | return subclassId;
|
| | | }
|
| | |
|
| | | public void setSubclassId(Long subclassId) {
|
| | | this.subclassId = subclassId;
|
| | | }
|
| | |
|
| | | public Long getDaTaoKeId() {
|
| | | return daTaoKeId;
|
| | | }
|
| | |
|
| | | public void setDaTaoKeId(Long daTaoKeId) {
|
| | | this.daTaoKeId = daTaoKeId;
|
| | | }
|
| | |
|
| | | public Long getActivityId() {
|
| | | return activityId;
|
| | | }
|
| | |
|
| | | public void setActivityId(Long activityId) {
|
| | | this.activityId = activityId;
|
| | | }
|
| | |
|
| | | public Date getUpdateTime() {
|
| | | return updateTime;
|
| | | }
|
| | |
|
| | | public void setUpdateTime(Date updateTime) {
|
| | | this.updateTime = updateTime;
|
| | | }
|
| | |
|
| | | public List<TaoBaoGoodsBrief> getListGoodsBrief() {
|
| | | return listGoodsBrief;
|
| | | }
|
| | |
|
| | | public void setListGoodsBrief(List<TaoBaoGoodsBrief> listGoodsBrief) {
|
| | | this.listGoodsBrief = listGoodsBrief;
|
| | | }
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.entity.dynamic; |
| | | |
| | | import java.io.Serializable; |
| | | 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; |
| | | import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief; |
| | | import com.yeshi.common.entity.taobao.TaoBaoShop; |
| | | import com.yeshi.common.vo.ClientTextStyleVO; |
| | | |
| | | @Document(collection = "dynamic_info") |
| | | public class DynamicInfo implements Serializable{ |
| | | |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | // 分享类型 1:单图分享 、2:4图分享、 3:9图分享 、 4:邀请分享 |
| | | public final static int SHARE_TYPE_ONE = 1; |
| | | public final static int SHARE_TYPE_FOUR = 2; |
| | | public final static int SHARE_TYPE_NINE = 3; |
| | | public final static int SHARE_TYPE_INVITE = 4; |
| | | |
| | | |
| | | // 图片格式: 一排显示: 0无图 1一张 2两张 3张 |
| | | public final static int SHOW_TYPE_ZERO = 0; |
| | | public final static int SHOW_TYPE_ONE = 1; |
| | | public final static int SHOW_TYPE_TWO = 2; |
| | | public final static int SHOW_TYPE_THREE = 3; |
| | | |
| | | |
| | | @Id |
| | | @Expose |
| | | @Field("id") |
| | | private String id; |
| | | // 发布用户 |
| | | @Expose |
| | | @Field("user") |
| | | private ActivityUser user; |
| | | // 发布内容 |
| | | @Expose |
| | | @Field("title") |
| | | private List<ClientTextStyleVO> title; |
| | | // 图片信息 |
| | | @Expose |
| | | @Field("imgs") |
| | | private List<GoodsPicture> imgs; |
| | | // 图片格式: 2-一排2个 1-一排一个 3-一排三个 |
| | | @Expose |
| | | @Field("showType") |
| | | private Integer showType; |
| | | // 分享次数 |
| | | @Expose |
| | | @Field("shareCount") |
| | | private Integer shareCount; |
| | | // 分享类型 1单图分享 、2 多图分享 |
| | | @Expose |
| | | @Field("shareType") |
| | | private Integer shareType; |
| | | // 预计收入 |
| | | @Expose |
| | | @Field("desc") |
| | | private ClientTextStyleVO desc; |
| | | // 店铺信息 |
| | | @Expose |
| | | @Field("shop") |
| | | private TaoBaoShop shop; |
| | | // 前端发布时间 |
| | | @Expose |
| | | @Field("createTime") |
| | | private Date createTime; |
| | | |
| | | // 更新时间 |
| | | @Field("updateTime") |
| | | private Date updateTime; |
| | | |
| | | // 所属类型 1热销 2好货 3好店 4邀请 |
| | | @Field("classId") |
| | | private Long classId; |
| | | // 所属类型 1热销 2好货 3好店 4邀请 |
| | | @Field("subclassId") |
| | | private Long subclassId; |
| | | |
| | | // 所属类型 1热销 2好货 3好店 4邀请 |
| | | @Field("daTaoKeId") |
| | | private Long daTaoKeId; |
| | | |
| | | |
| | | // 所属类型 人工编辑的动态id |
| | | @Field("activityId") |
| | | private Long activityId; |
| | | |
| | | // 邀请素材id |
| | | @Field("inviteMaterialId") |
| | | private String inviteMaterialId; |
| | | |
| | | // 商品 列表 |
| | | @Field("listGoodsBrief") |
| | | private List<TaoBaoGoodsBrief> listGoodsBrief; |
| | | |
| | | |
| | | |
| | | public String getInviteMaterialId() { |
| | | return inviteMaterialId; |
| | | } |
| | | |
| | | public void setInviteMaterialId(String inviteMaterialId) { |
| | | this.inviteMaterialId = inviteMaterialId; |
| | | } |
| | | |
| | | public DynamicInfo() { |
| | | } |
| | | |
| | | public DynamicInfo(String id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | 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<ClientTextStyleVO> getTitle() { |
| | | return title; |
| | | } |
| | | |
| | | public void setTitle(List<ClientTextStyleVO> title) { |
| | | this.title = title; |
| | | } |
| | | |
| | | public List<GoodsPicture> getImgs() { |
| | | return imgs; |
| | | } |
| | | |
| | | public void setImgs(List<GoodsPicture> imgs) { |
| | | this.imgs = imgs; |
| | | } |
| | | |
| | | public Integer getShowType() { |
| | | return showType; |
| | | } |
| | | |
| | | public void setShowType(Integer showType) { |
| | | this.showType = showType; |
| | | } |
| | | |
| | | public Integer getShareCount() { |
| | | return shareCount; |
| | | } |
| | | |
| | | public void setShareCount(Integer shareCount) { |
| | | this.shareCount = shareCount; |
| | | } |
| | | |
| | | public ClientTextStyleVO getDesc() { |
| | | return desc; |
| | | } |
| | | |
| | | public void setDesc(ClientTextStyleVO desc) { |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public TaoBaoShop getShop() { |
| | | return shop; |
| | | } |
| | | |
| | | public void setShop(TaoBaoShop shop) { |
| | | this.shop = shop; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | |
| | | public Integer getShareType() { |
| | | return shareType; |
| | | } |
| | | |
| | | public void setShareType(Integer shareType) { |
| | | this.shareType = shareType; |
| | | } |
| | | |
| | | public Long getClassId() { |
| | | return classId; |
| | | } |
| | | |
| | | public void setClassId(Long classId) { |
| | | this.classId = classId; |
| | | } |
| | | |
| | | public Long getSubclassId() { |
| | | return subclassId; |
| | | } |
| | | |
| | | public void setSubclassId(Long subclassId) { |
| | | this.subclassId = subclassId; |
| | | } |
| | | |
| | | public Long getDaTaoKeId() { |
| | | return daTaoKeId; |
| | | } |
| | | |
| | | public void setDaTaoKeId(Long daTaoKeId) { |
| | | this.daTaoKeId = daTaoKeId; |
| | | } |
| | | |
| | | public Long getActivityId() { |
| | | return activityId; |
| | | } |
| | | |
| | | public void setActivityId(Long activityId) { |
| | | this.activityId = activityId; |
| | | } |
| | | |
| | | public Date getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public List<TaoBaoGoodsBrief> getListGoodsBrief() { |
| | | return listGoodsBrief; |
| | | } |
| | | |
| | | public void setListGoodsBrief(List<TaoBaoGoodsBrief> listGoodsBrief) { |
| | | this.listGoodsBrief = listGoodsBrief; |
| | | } |
| | | |
| | | } |