package com.cirle.scientific.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "qkj_tqcourse")
@Data
@ApiModel
public class QkjTqcourse implements Serializable {
    private static final long serialVersionUID = 7044978507046631905L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "精品课id")
    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "封面图")
    private String coverImg;

    @ApiModelProperty(value = "价格")
    private Double price = 0d;

    @ApiModelProperty(value = "是否支持积分兑换  0：不支持  1：支持")
    private Integer pointFlag = 0;

    @ApiModelProperty(value = "积分兑换所需积分(如果支持积分兑换此值大于0)")
    private Integer point = 0;

    @ApiModelProperty(value = "总课时")
    private Integer totalClassHours =0;

    @ApiModelProperty(value = "总评价数")
    private Integer totalComments = 0;

    @ApiModelProperty(value = "真实购买人数")
    private Integer vpurchasedMembers = 0;

    @ApiModelProperty(value = "总购买数(显示）")
    private Integer purchasedMembers = 0;

    @ApiModelProperty(value = "详情")
    private String details;

    @ApiModelProperty(value = "分享标题")
    private String shareTitle;

    @ApiModelProperty(value = "分享描述")
    private String shareDesc;

    @ApiModelProperty(value = "分享导图")
    private String sharePic;

    @ApiModelProperty(value = "专区类型，1-普通课程，2-系列专区")
    private Integer zq = 1;

    @ApiModelProperty(value = "'购买后有效时间（单位：天）'")
    private Integer durationValidity;

    @ApiModelProperty(value = "是否在列表显示 0-隐藏  1-显示")
    private Integer isVisiable = 1;

    @ApiModelProperty(value = "详情页封面图")
    private String detailCoverImg;

    @ApiModelProperty(value = "是否置顶 0：否 1：是")
    private Integer topStatus = 0;

    @ApiModelProperty(value = "状态，0-草稿，1-上线， 2-已删除")
    private Integer status = 0;

    @ApiModelProperty(value = "创建者")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "子课标签")
    private String tagIds;

    @ApiModelProperty(value = "是否需要医师认证 0 需要 1 不需要")
    private String isDocAuth = "0";

    @ApiModelProperty(value = "是否需要实名认证 0 需要 1 不需要")
    private String isRealAuth = "=";

    @ApiModelProperty(value = "需要进行的认证的类型 如果没有则不需要 1:以前的医师认证 2：以前的实名认证 3：欧佳龙医师认证 4：欧佳龙实名 5：不需要")
    private Integer attestType = 5;

    @ApiModelProperty(value = "是否对外售卖")
    private Integer isSell = 1;
    @ApiModelProperty(value = "学习人数")
    private Integer studyNum = 0;
    @ApiModelProperty(value = "是否需要问卷调查")
    private Integer questionFlag = 0;
    @ApiModelProperty(value = "是否指定人员课程")
    private Integer isSpecialCourse;
    @ApiModelProperty(value = "提取码")
    private String extractedCode;

    /** 学习时长 */
    @Transient
    private Integer learnTime;

}
