package com.hotwj.platform.reportStatistics.domain.bo;

import com.hotwj.platform.reportStatistics.domain.SysReportTemplate;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 报表模板业务对象 sys_report_template
 *
 * @author shihongwei
 * @date 2024-03-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysReportTemplate.class, reverseConvertGenerate = false)
public class SysReportTemplateBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 模板编码
     */
    @NotBlank(message = "模板编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String templateCode;

    /**
     * 模板名称
     */
    @NotBlank(message = "模板名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String templateName;

    /**
     * 模板内容
     */
    private String content;

    /**
     * 变量元数据
     */
    private Object variablesSchema;

    /**
     * 预览测试数据
     */
    private Object mockData;

    /**
     * 版本号
     */
    private Integer version;

    /**
     * 备注
     */
    private String remark;

    /**
     * 预览时使用的真实业务参数 (Map)
     */
    private Object businessParams;

}
