package org.dromara.work.domain.vo;

import org.dromara.system.domain.vo.SysUserVo;
import org.dromara.work.domain.TpComments;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 评论视图对象 tp_comments
 *
 * @author Maosw
 * @date 2025-04-12
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TpComments.class)
public class TpCommentsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * 作品动态ID
     */
    @ExcelProperty(value = "作品动态ID")
    private Long pictureId;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 被回复用户
     */
    @ExcelProperty(value = "被回复用户")
    private Long toUserId;

    /**
     * 父评论 ID
     */
    @ExcelProperty(value = "父评论 ID")
    private Long parentId;

    /**
     * 评论内容
     */
    @ExcelProperty(value = "评论内容")
    private String content;

    /**
     * 点赞数
     */
    @ExcelProperty(value = "点赞数")
    private Integer num;

    /**
     * 子评论数量
     */
    @ExcelProperty(value = "子评论数量")
    private Integer subset;

    /**
     * 类型  1-作品  2-动态
     */
    @ExcelProperty(value = "类型  1-作品  2-动态")
    private Integer type;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 用户对象
     */
    private SysUserVo user;

    /**
     * 被回复用户对象
     */
    private SysUserVo toUser;


}
