llm-survey/backend/src/main/java/ltd/qubit/survey/model/Question.java

51 lines
744 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package ltd.qubit.survey.model;
import java.time.Instant;
import java.util.Map;
import lombok.Data;
/**
* 问题实体类
*/
@Data
public class Question {
/**
* 问题ID
*/
private Long id;
/**
* 问题序号
*/
private Integer number;
/**
* 问题内容
*/
private String content;
/**
* 问题类型(单选、多选、文本)
*/
private QuestionType type;
/**
* 是否必答
*/
private Boolean isRequired;
/**
* 跳转逻辑JSON格式
*/
private Map<String, Integer> next;
/**
* 是否是最后一题
*/
private Boolean isLast;
/**
* 创建时间
*/
private Instant createdAt;
}