package com.ruoyi.basic.domain.model;

import lombok.Data;

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

/**
 * 问卷完整信息VO
 */
@Data
public class QuestionnaireVO  implements Serializable {
    private Long surveyId;              // 问卷ID
    private String title;               // 问卷标题
    private String description;         // 问卷说明
    private List<ConstitutionVO> constitutions;  // 体质列表（含题目）

    @Data
    public static class ConstitutionVO  implements Serializable{   // 必须是 static
        private Long constitutionId;
        private String name;
        private String alias;
        private String description;
        private Integer sortOrder;
        private List<QuestionVO> questions;
    }

    @Data
    public static class QuestionVO  implements Serializable{
        private Long questionId;
        private Integer serialNumber;
        private String content;
        private Integer fullScore;
        private List<OptionVO> options;
    }

    @Data
    public static class OptionVO  implements Serializable{
        private Long optionId;
        private String optionText;
        private Integer score;
        private Integer sortOrder;
    }
}

