package jnpf.model.app;

import io.swagger.v3.oas.annotations.media.Schema;
import jnpf.entity.training.TrainingCourseChapterEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 *
 * 课程章节
 *
 * @author yanglei
 * @since 2023-07-22
 */
@Data
@Accessors(chain = true)
public class TrainingCourseChapterVO extends TrainingCourseChapterEntity implements Serializable{

    private static final long serialVersionUID = 1L;

    @Schema(description = "下一章节ID")
    private String nextId;

    @Schema(description = "上一章节ID")
    private String preId;

    @Schema(description = "视频/音频已学时长，图文已学页数")
    private Integer learned;

    @Schema(description = "课程类型（1视频，2音频，3图文）")
    private Integer type;

    @Schema(description = "状态（0学习部分，1已学完，0和2表示未开始， 3未通过） 0用于标识上次学到地方")
    private Integer status;

    @Schema(description = "总章节数")
    private Integer totalNum;

    @Schema(description = "当前章节页数")
    private Long curNum;

    @Schema(description = "课程名称")
    private String courseName;

}