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

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 评论功能对象 pms_journals
 * 
 * @author otto
 * @date 2023-11-01
 */
@Data
@ApiModel("评论查询对象")
public class PmsJournalsSearchVo
{

    /** 评论对象ID */
    @NotNull
    @ApiModelProperty(value = "评论对象ID")
    private Long journalized_id;

    /** 评论对象类型 */
    @NotBlank
    @ApiModelProperty(value = "评论对象类型（产品需求：productRequirement, 测试单执行用例：projectTestsheetCases）")
    private String journalized_type;



    public PmsJournals toPmsJournals(){
        PmsJournals target = new PmsJournals();
        BeanUtils.copyProperties(this, target);
        return target;
    }
}
