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 AnalyzeCodeReqDTO {

    @NotBlank(message = "代码不能为空")
    @Schema(description = "代码内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "def hello():\n    print('Hello World')")
    private String code;

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

    @Schema(description = "题目ID", example = "1001")
    private String questionId;

    @Schema(description = "用户ID", example = "user123")
    private String userId;
}
