package com.qingyun.service.domain.bo;

import com.qingyun.service.domain.ContractReviewTask;
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_review_task
 *
 * @author jianlu
 * @date 2025-07-15
 */
@Data
@AutoMapper(target = ContractReviewTask.class, reverseConvertGenerate = false)
public class ContractReviewTaskBo {

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

    /**
     * 规则要素模板ID
     */
    @NotNull(message = "规则要素模板ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long templateId;

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

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

    /**
     * 合同名称 模糊查询
     */
    @NotBlank(message = "合同名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contractName;

}
