package com.microservices.pms.project.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.microservices.common.core.utils.bean.BeanUtils;
import com.microservices.common.core.web.domain.BaseEntity;
import com.microservices.pms.project.domain.vo.PmsProjectTestcaseStepDataVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 测试用例步骤管理对象 pms_project_testcase_step
 *
 * @author otto
 * @date 2023-11-22
 */
@Data
@ApiModel("测试用例步骤对象")
public class PmsProjectTestcaseStep extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 测试步骤ID
     */
    private Long id;

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

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

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

    /**
     * 关联测试用例ID
     */
    @ApiModelProperty(value = "关联测试用例ID")
    private Long pmsTestcaseId;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    /**
     * 预留字段1
     */
    @JsonIgnore
    private String reservedField1;

    /**
     * 预留字段2
     */
    @JsonIgnore
    private String reservedField2;


    public PmsProjectTestcaseStepDataVo toPmsProjectTestcaseStepDataVo() {
        PmsProjectTestcaseStepDataVo target = new PmsProjectTestcaseStepDataVo();
        BeanUtils.copyProperties(this, target);
        return target;
    }
}
