package com.qingyun.service.domain.bo;

import com.qingyun.service.domain.ContractRuleTemplate;
import com.qingyun.common.core.domain.BaseEntity;
import com.qingyun.common.core.validate.AddGroup;
import com.qingyun.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;


/**
 * 规则要素模板业务对象 contract_rule_template
 *
 * @author jianlu
 * @date 2025-07-11
 */
@Data
@AutoMapper(target = ContractRuleTemplate.class, reverseConvertGenerate = false)
public class ContractRuleTemplateBo {

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

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

    /**
     * 审查规则JSON
     */
    @NotBlank(message = "审查规则JSON不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reviewRuleJson;

    /**
     * 审查要素JSON
     */
    @NotBlank(message = "审查要素JSON不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reviewElementJson;

    /**
     * 原始文件地址
     */
    //@NotBlank(message = "原始文件地址不能为空", groups = { AddGroup.class, EditGroup.class })
    //private String originalFileUrl;

    /**
     * 状态 0 启用 1 停用
     */
    private Integer status;
}
