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

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

import javax.validation.constraints.NotNull;

/**
 * 产品模块输入对象
 *
 * @author otto
 * @date 2023-10-10
 */
@Data
@ApiModel("测试用例模块搜索对象")
public class PmsProjectTestsheetModuleSearchVo {

    /**
     * 关联项目ID
     */
    @ApiModelProperty(value = "关联项目ID")
    @NotNull
    private Long pmsProjectId;

    /**
     * 测试单ID
     */
    @ApiModelProperty(value = "测试单ID")
    @NotNull
    private Long projectTestsheetId;

    public PmsProductModule toPmsProductModule() {
        PmsProductModule target = new PmsProductModule();
        BeanUtils.copyProperties(this, target);
        return target;
    }
}
