package org.dromara.system.domain.vo;

import lombok.Getter;
import lombok.Setter;
import org.dromara.system.domain.SysScreeningAssessmentQuestion;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.system.domain.bo.SysScreeningAssessmentQuestionBo;

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


/**
 * 题目视图对象 sys_screening_assessment_question
 *
 * @author Lion Li
 * @date 2025-07-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysScreeningAssessmentQuestion.class)
public class SysScreeningAssessmentQuestionVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long questionId;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long configId;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 题型
     */
    @ExcelProperty(value = "题型")
    private String questionType;

    /**
     * 子题型
     */
    private String questionChildType;

    /**
     * 系统参数-other类型：
     */
    private String lastType;

    /**
     * 内容
     */
    @ExcelProperty(value = "内容")
    private String content;

    private List<SysScreeningAssessmentQuestionVo.QuestionAttrVo> contentList;

    /**
     * 是否必填
     */
    private Boolean required;

    /**
     * 横向排列、竖向排列
     */
    private String arrangement;

    /**
     * 累计选项得分、按最高分、按最低分
     */
    private String scoreMethod;

    @Getter
    @Setter
    public static class QuestionAttrVo {
        private Boolean labelFlag;
        private String label;
        private String value;
        private String nameEn;
        private String formType;
        private String score;
        private String img;
        private Boolean allowFillBlank;
        private String matrixFillBlank;
        private String unit;
        private String optionContent;
        private Boolean optionFlag;
    }
}
