package vip.xiaonuo.disk.vo.comment;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

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

@Getter
@Setter
public class UserCommentVo {
    /** 主键id */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id", position = 1)
    private Integer id;

    /** 父级id */
    @ApiModelProperty(value = "父级id", position = 2)
    private Integer pid;

    /** 评论名称 */
    @ApiModelProperty(value = "评论名称", position = 3)
    private String commentName;

    /** 用户id */
    @ApiModelProperty(value = "用户id", position = 4)
    private String userId;

    /** 用户名称 */
    @ApiModelProperty(value = "用户名称", position = 4)
    private String userName;


    /** 评论时间 */
    @ApiModelProperty(value = "评论时间", position = 5)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date commentTime;

    /** 删除1, 未删除 0 */
    @ApiModelProperty(value = "删除1, 未删除 0", position = 6)
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String deleteFlag;

    /** 点赞量 */
    @ApiModelProperty(value = "点赞量", position = 7)
    private Integer giveNum;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间", position = 8)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /** 创建人 */
    @ApiModelProperty(value = "创建人", position = 9)
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    /** 修改时间 */
    @ApiModelProperty(value = "修改时间", position = 10)
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /** 修改人 */
    @ApiModelProperty(value = "修改人", position = 11)
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;


    private Integer childSize;

    /** 孩子评论 */
    private List<UserCommentVo> child;

}
