package com.playlet.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.playlet.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.playlet.common.annotation.Excel;

/**
 * 文章评论对象 public_detail_comment
 *
 * @author ruoyi
 * @date 2024-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "public_detail_comment")
@ApiModel(value = "公众号文章评论")
public class PublicDetailComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 文章id */
    @Excel(name = "文章id")
    @ApiModelProperty(value = "文章id")
    private Long detailId;

    @TableField(exist = false)
    private String authorAlias;

    @TableField(exist = false)
    private String detailName;

    /** 用户id【playlet_public_user_id】 */
    @Excel(name = "用户id【playlet_public_user_id】")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    @ApiModelProperty(value = "用户昵称")
    private String userName;

    @ApiModelProperty(value = "用户头像")
    private String imgUrl;

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

    /** 点赞数 */
    @Excel(name = "点赞数")
    @ApiModelProperty(value = "点赞数")
    private Long starCount;

    @ApiModelProperty(value = "作者回复记录")
    @TableField(exist = false)
    private PublicCommentResponse commentResponse;

    @TableField(exist = false)
    private String commentResponseContent;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否回复 01.未回复 02.已回复")
    private String isResponse;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否点赞 01.未点赞 02.已点赞")
    private String isStar;

    @ApiModelProperty(value = "置顶状态 01.普通 02.置顶")
    private String topStatus;

}
