package com.example.demo.model;

/**
 * 任务模板实体模型。
 * <p>
 * 对应数据库表 T_TASK_TEMPLATE，存储任务生成的模板定义。
 * 模板包含目标类型匹配规则、任务逻辑定义等内容。
 * </p>
 */
public class TaskTemplate {

    /** 模板唯一标识，全局唯一ID */
    private String templateId;

    /** 适用目标类型，关联目标分类 */
    private int targetType;

    /** 模板内容XML，存储任务逻辑定义 */
    private String contentXml;

    /** 版本号，如 V1.0 */
    private String version;

    /** 启用状态：是否启用该模板 */
    private boolean active;

    /** 模板名称 */
    private String templateName;

    /** 模板描述 */
    private String description;

    public TaskTemplate() {
    }

    public TaskTemplate(String templateId, int targetType, String contentXml,
                        String version, boolean active, String templateName, String description) {
        this.templateId = templateId;
        this.targetType = targetType;
        this.contentXml = contentXml;
        this.version = version;
        this.active = active;
        this.templateName = templateName;
        this.description = description;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public int getTargetType() {
        return targetType;
    }

    public void setTargetType(int targetType) {
        this.targetType = targetType;
    }

    public String getContentXml() {
        return contentXml;
    }

    public void setContentXml(String contentXml) {
        this.contentXml = contentXml;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
