package com.qqchen.deploy.backend.notification.dto.template;

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

import java.util.Map;

/**
 * 模板渲染请求
 *
 * @author qqchen
 * @since 2025-11-12
 */
@Data
@Schema(description = "模板渲染请求")
public class TemplateRenderRequest {

    @Schema(description = "模板内容")
    @NotBlank(message = "模板内容不能为空")
    private String templateContext;

    @Schema(description = "模板参数", example = "{\"projectName\": \"deploy-ease-platform\", \"buildNumber\": 123}")
    private Map<String, Object> params;
}
