package com.cico.nest.lcdp.boot.core.infra.controller.admin.codegen.vo;

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

@Schema(description = "管理后台 - 代码生成预览 Response VO，注意，每个文件都是一个该对象")
@Data
public class CodegenPreviewRespVO {

    @Schema(description = "文件路径", requiredMode = Schema.RequiredMode.REQUIRED, example = "java/com/cico/lcdp/adminserver/modules/system/com.cico.nest.lcdp.controller/test/SysTestDemoController.java")
    private String filePath;

    @Schema(description = "代码", requiredMode = Schema.RequiredMode.REQUIRED, example = "Hello World")
    private String code;

    public CodegenPreviewRespVO setFilePath(String filePath) {
        this.filePath = filePath;
        return this;
    }

    public CodegenPreviewRespVO setCode(String code) {
        this.code = code;
        return this;
    }
}
