package jnpf.model.app;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 *
 * 岗位学习内容
 *
 * @author yanglei
 * @since 2023-07-19
 */
@Data
public class PositionLearningAppListVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "学习内容ID")
    private String id;

    @Schema(description = "学习内容标题")
    private String title;

    @Schema(description = "学习内容列表")
    private List<Source> sourceList;

    @Data
    public static class Source {

        @Schema(description = "类型（1课程，2考试，3鉴定）")
        private Integer type;

        @Schema(description = "课程/考试/鉴定ID")
        private String sourceId;

        @Schema(description = "课程/考试/鉴定名称")
        private String sourceName;

        @Schema(description = "已完成数量")
        private Integer finishNumber;

        @Schema(description = "总数量")
        private Integer totalNumber;
    }
}