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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.microservices.system.api.domain.SimpleGitlinkFileInfo;
import com.microservices.system.api.domain.SimpleGitlinkUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

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

    /** 评论ID */
    @ApiModelProperty(value = "评论ID")
    private Long id;

    /** gitlink用户ID */
    @ApiModelProperty(value = "gitlink用户")
    private SimpleGitlinkUser user;

    /** 评论内容 */
    @ApiModelProperty(value = "评论内容")
    private String notes;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date created_at;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updated_at;

    /** 附件ID列表 */
    @ApiModelProperty(value = "附件列表")
    private List<SimpleGitlinkFileInfo> attachments;

    /** 回复数量 */
    @ApiModelProperty(value = "评论数量")
    private Integer comments_count=0;

    /** 是否详情 */
    @ApiModelProperty(value = "是否详情")
    private Boolean is_journal_detail=false;

}
