package com.ruoyi.post.controller.resp;

import com.ruoyi.vo.UserInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * @author liwenlong
 * @date 2023/4/17 14:26
 */
@Data
public class PostCommentPageResp {

    @ApiModelProperty(value = "租户号")
    private Long id;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "用户类型")
    private Integer userType;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "上级用户类型")
    private Integer parentUserType;

    @ApiModelProperty(value = "上级用户id")
    private Long parentUserId;

    @ApiModelProperty(value = "上级评论id")
    private Long parentId;

    @ApiModelProperty(value = "用户信息")
    private UserInfo userInfo;

    @ApiModelProperty(value = "上级用户用户昵称")
    private UserInfo parentUserInfo;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "图片")
    private String image;

    @ApiModelProperty("顶级评论id")
    private Long topId;

    @ApiModelProperty(value = "点赞数")
    private Integer likeNum;

    @ApiModelProperty(value = "评论数")
    private Integer commentNum;

    @ApiModelProperty(value = "是否点赞 1 没有 2 点赞")
    private Integer isLike;

    @ApiModelProperty(value = "是否自己 1 不是 2 是自己")
    private Integer isSelf;

    @ApiModelProperty(value = "是否精选评论 1 不是 2 是")
    private Integer isSelectedComment;

    @ApiModelProperty(value = "二级评论")
    private List<PostCommentPageResp> childrenList;
}
