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

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

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

/**
 * 通用评论基础数据VO
 *
 * @author otto
 * @date 2025-04-30
 */
@Data
@ApiModel("评论数据对象")
public class ZoneJournalsDataVo {

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

    /** 评论用户 */
    @ApiModelProperty(value = "评论用户")
    private SimpleSysUser user;

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

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

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

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

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

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