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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 代码分析结果 DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "代码分析结果")
public class CodeAnalysisRespDTO {

    @Schema(description = "发现的问题")
    private List<String> issues;

    @Schema(description = "改进建议")
    private List<String> suggestions;

    @Schema(description = "复杂度评分 (0-100)")
    private Integer complexityScore;

    @Schema(description = "性能评分 (0-100)")
    private Integer performanceScore;

    @Schema(description = "可读性评分 (0-100)")
    private Integer readabilityScore;

    @Schema(description = "时间复杂度")
    private String timeComplexity;

    @Schema(description = "空间复杂度")
    private String spaceComplexity;

    @Schema(description = "最佳实践建议")
    private List<String> bestPractices;
}
