package com.yeshi.fanli.entity.bus.homemodule;
|
|
import java.util.Date;
|
|
import org.yeshi.utils.mybatis.Column;
|
import org.yeshi.utils.mybatis.Table;
|
|
/**
|
* 分享信息
|
*
|
*/
|
@Table("yeshi_ec_common_share_info")
|
public class CommonShareInfo {
|
|
public enum CommonShareInfoEnum {
|
special("专题"), banner("轮播图");
|
private final String desc;
|
|
private CommonShareInfoEnum(String desc) {
|
this.desc = desc;
|
}
|
|
public String getDesc() {
|
return desc;
|
}
|
}
|
|
@Column(name = "csi_id")
|
private Long id;
|
|
// 相关id
|
@Column(name = "csi_pid")
|
private Long pid;
|
|
// 类型
|
@Column(name = "csi_type")
|
private CommonShareInfoEnum type;
|
|
// 是否转链
|
@Column(name = "csi_need_spin")
|
private Boolean needSpin;
|
|
// 评论语
|
@Column(name = "csi_comment")
|
private String comment;
|
|
// 创建时间
|
@Column(name = "csi_createtime")
|
private Date createTime;
|
|
// 更新时间
|
@Column(name = "csi_updatetime")
|
private Date updateTime;
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Long getPid() {
|
return pid;
|
}
|
|
public void setPid(Long pid) {
|
this.pid = pid;
|
}
|
|
public CommonShareInfoEnum getType() {
|
return type;
|
}
|
|
public void setType(CommonShareInfoEnum type) {
|
this.type = type;
|
}
|
|
public Boolean getNeedSpin() {
|
return needSpin;
|
}
|
|
public void setNeedSpin(Boolean needSpin) {
|
this.needSpin = needSpin;
|
}
|
|
public String getComment() {
|
return comment;
|
}
|
|
public void setComment(String comment) {
|
this.comment = comment;
|
}
|
|
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;
|
}
|
|
}
|