package jnpf.model.app;

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

import java.io.Serializable;

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

    private static final long serialVersionUID = 1L;

    @Schema(description = "鉴定ID")
    private String id;

    @Schema(description = "鉴定模板信息")
    private TrainingIdentifyTemplateEntity template;

    @Schema(description = "鉴定项数量")
    private Long optionNumber;

    @Schema(description = "未鉴定时已鉴定人数")
    private Long peopleNumber;

    @Schema(description = "鉴定结果")
    private IdentifyResult identifyResult;

    @Data
    @Accessors(chain = true)
    public static class IdentifyResult extends TrainingIdentifyUserEntity {

        @Schema(description = "通过数量")
        private Long passNumber;

        @Schema(description = "通过率")
        private Long passRatio;

        @Schema(description = "未通过数量")
        private Long failNumber;

        @Schema(description = "未通过率")
        private Long failRatio;

        @Schema(description ="用户头像")
        private String headIcon;
    }

}