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.NotNull;

/**
 * @author otto
 */

@Data
@ApiModel("评论更新对象")
public class PmsJournalsUpdateVo {

    /** 评论ID */
    @NotNull
    @ApiModelProperty(value = "评论ID")
    private Long id;
    /** 评论内容 */
    @ApiModelProperty(value = "评论内容")
    private String notes;
    /** 评论内容 */
    @ApiModelProperty(value = "用户标识数组")
    private String[] receivers_login;

    /**
     * 附件标识列表
     */
    @ApiModelProperty(value = "附件标识列表")
    private String attachment_identifiers;


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