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

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

import javax.validation.constraints.NotNull;

/**
 * 测试用例步骤管理对象 pms_project_testcase_step
 *
 * @author otto
 * @date 2023-11-22
 */
@Data
@ApiModel("测试用例步骤输入对象")
public class PmsProjectTestcaseStepInputVo {
    /**
     * 步骤ID
     */
    @ApiModelProperty(value = "步骤ID")
    private Long id;

    /**
     * 步骤编号
     */
    @ApiModelProperty(value = "步骤编号")
    @NotNull
    private Long index;

    /**
     * 操作步骤
     */
    @ApiModelProperty(value = "操作步骤")
    private String content;

    /**
     * 预期结果
     */
    @ApiModelProperty(value = "预期结果")
    private String expectedResult;

    public PmsProjectTestcaseStep toPmsProjectTestcaseStep() {
        PmsProjectTestcaseStep target = new PmsProjectTestcaseStep();
        BeanUtils.copyProperties(this, target);
        return target;
    }
}
