package com.microservices.pms.product.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 PmsProductRequirementTagUpdateVo
{
    /** 标记标识 */
    @ApiModelProperty(value = "标记标识", required = true)
    @NotNull
    private Long id;
    /** 标记名称 */
    @ApiModelProperty(value = "标记名称")
    @NotNull
    private String tagName;

    /**
     * 颜色
     */
    @ApiModelProperty(value = "颜色")
    private String color;

    /**
     * 标记描述
     */
    @ApiModelProperty(value = "标记描述")
    private String description;

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