package cn.iocoder.byzs.module.web.controller.admin.questionnaire.vo;

import cn.iocoder.byzs.framework.common.pojo.PageParam;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class WebQuestionnaireVo extends PageParam {
    //问卷id
    private Long qrId;

    //问卷名称
    private String qrName;

    //问卷介绍
    private String qrDetails;

    //问卷排序
    private Integer qrOrder;

    //问卷开始指导语
    private String qrStartInfo;

    //问卷结束指导语
    private String qrEndInfo;

    //问题id集(后期改成问题条数)
    private String qrQuestIds;

    //问题列表
    private List<WebQuestion> questionList;

    @Data
    public static class WebQuestion{
        //问题id
        private Long qId;
        //问题类型
        private String qType;
        //问题内容
        private String qContent;
        //问题内容
        private String qAnalysis;
        //问题内容
        private Integer qOrder;

        //问题选项
        private List<WebQuestOption> questionOptionsList;

        @Data
        public static class WebQuestOption{
            //选项
            private Long oId;
            //选项
            private String oValue;
            //选项内容
            private String oName;
            //分值
            private Double oSorce;
            //是否答案
            private String oIsAnswer;
        }
    }
}
