package com.ycwl.basic.integration.questionnaire.dto.answer;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AnswerRequest {
    
    @NotNull(message = "问题ID不能为空")
    @JsonProperty("questionId")
    private Long questionId;
    
    @NotBlank(message = "答案内容不能为空")
    @JsonProperty("answer")
    private String answer;
}