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

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

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CreateQuestionOptionRequest {
    
    @NotBlank(message = "选项文本不能为空")
    @Size(max = 500, message = "选项文本长度不能超过500字符")
    @JsonProperty("text")
    private String text;
    
    @NotBlank(message = "选项值不能为空")
    @Size(max = 100, message = "选项值长度不能超过100字符")
    @JsonProperty("value")
    private String value;
    
    @JsonProperty("sort")
    private Integer sort = 0;
}