package cn.meowrain.aioj.backend.aiservice.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 代码解释请求 DTO
 */
@Data
@Schema(description = "代码解释请求")
public class ExplainCodeReqDTO {

    @NotBlank(message = "代码不能为空")
    @Schema(description = "代码内容", requiredMode = Schema.RequiredMode.REQUIRED)
    private String code;

    @NotBlank(message = "编程语言不能为空")
    @Schema(description = "编程语言", requiredMode = Schema.RequiredMode.REQUIRED, example = "python")
    private String language;

    @Schema(description = "详细程度", example = "normal", allowableValues = {"brief", "normal", "detailed"})
    private String detailLevel = "normal";
}
