package com.qingyun.service.domain.bo;

import com.qingyun.service.domain.ContractCompareTask;
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.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 对比任务业务对象 contract_compare_task
 *
 * @author jianlu
 * @date 2025-07-11
 */
@Data
@AutoMapper(target = ContractCompareTask.class, reverseConvertGenerate = false)
public class ContractCompareTaskBo {


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

    /**
     * 对比规则
     */
    //@NotBlank(message = "对比规则不能为空", groups = { AddGroup.class, EditGroup.class })
    private String compareRule;

    /**
     * 第一份文件地址
     */
    @NotBlank(message = "第一份合同地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String firstContractUrl;

    /**
     * 第一份合同名称
     */
    @NotBlank(message = "第一份合同名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String firstContractName;

    /**
     * 第二份合同地址
     */
    @NotBlank(message = "第二份合同地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String secondContractUrl;

    /**
     * 第二份合同名称
     */
    @NotBlank(message = "第二份合同名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String secondContractName;
}
