package com.ruoyi.basic.domain.dto;

import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class AnswerSubmitDTO {
    @NotNull(message = "问卷ID不能为空")
    private Long surveyId;
    private String sessionId;   // 可选，为空时自动生成
    @NotNull(message = "答案列表不能为空")
    private List<AnswerItem> answers;

    @Data
    public static class AnswerItem {
        @NotNull
        private Long questionId;
        @NotNull
        private Long optionId;
    }
}
