package com.microservices.pms.project.domain.vo;

import com.microservices.common.core.utils.bean.BeanUtils;
import com.microservices.pms.product.domain.PmsProductRequirementTag;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 产品需求标记对象 pms_product_requirement_tag
 *
 * @author otto
 * @date 2023-10-10
 */
@Data
@ApiModel("测试用例标记搜索对象")
public class PmsProjectTestcaseTagSearchVo {
    /**
     * 标记名称
     */
    @ApiModelProperty(value = "标记名称")
    private String tagName;

    /**
     * 关联企业ID
     */
    @ApiModelProperty(value = "关联企业ID", required = true)
    @NotNull
    private Long pmsEnterpriseId;

    public PmsProductRequirementTag toPmsProductRequirementTag() {
        PmsProductRequirementTag target = new PmsProductRequirementTag();
        BeanUtils.copyProperties(this, target);
        return target;
    }
}
