package com.ssj.bean.weixin.story.bean;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.ssj.bean.common.framework.core.domain.BaseEntity;


/** 
 * @author  ZhangCaibao 
 * @version 2018年3月20日 下午5:25:55 
 * 类说明 打卡获取的勋章
 */
@Entity
@Table(name = "tb_story_task_medal")
public class StoryTaskMedal  extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2132650307191249440L;
	 /**
     * 古诗主题ID
     */
	private String storyId;
	/**
	 * 第几天获取的
	 */
	private Integer daysNum;
	/**
	 * 勋章名称
	 */
	private String name;
	/**
	 * 勋章图片地址
	 */
	private String img;
	
	
	/**
	 * 用户ID
	 */
	private String userId;
	/**
	 * 创建时间
	 */
	private Date createTime;
	
	public StoryTaskMedal(){};
	public StoryTaskMedal(String storyId ,String userId,Integer daysNum){
		this.storyId = storyId;
		this.userId = userId;
		this.daysNum = daysNum;
		this.createTime= new Date();
	};
	public StoryTaskMedal(String storyId ,String userId,Integer daysNum,String name,String img){
		this.storyId = storyId;
		this.userId = userId;
		this.daysNum = daysNum;
		this.name = name;
		this.img = img;
		this.createTime= new Date();
	};
	public String getStoryId() {
		return storyId;
	}
	public void setStoryId(String storyId) {
		this.storyId = storyId;
	}
	public Integer getDaysNum() {
		return daysNum;
	}
	public void setDaysNum(Integer daysNum) {
		this.daysNum = daysNum;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	
	
	

}
