package com.ruoyi.post.controller.resp;

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

import java.util.Date;

/**
 * @author liwenlong
 * @date 2023/4/17 17:30
 */
@Data
public class PostPageResp {

    @ApiModelProperty(value = "帖子id")
    private Long id;

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

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

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


    @ApiModelProperty("封面图")
    private String coverImage;

    @ApiModelProperty("视频路径（一个）")
    private String videoUrl;

    @ApiModelProperty(value = "标题")
    private String title;

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

    @ApiModelProperty(value = "分享数量")
    private Integer shareNum;

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

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

    @ApiModelProperty(value = "收藏数量")
    private Integer collectNum;

    @ApiModelProperty(value = "浏览量")
    private Integer browseNum;

    @ApiModelProperty(value = "审核状态 1 待审核 2 同意 3失败")
    private Integer result;

    @ApiModelProperty(value = "失败原因")
    private String reason;

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

    @ApiModelProperty(value = "是否收藏 1没有 2收藏")
    private Integer isCollect;

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

    @ApiModelProperty("地址")
    private String address;

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

    @ApiModelProperty("精选评论")
    private SelectedComment selectedComment;

    @ApiModelProperty("是否推荐 1否 2是")
    private Integer isRecommend;

    @ApiModelProperty("推荐排序")
    private Integer sort;

    @ApiModelProperty("精彩评论id")
    private Long commentId;

    @ApiModelProperty("描述")
    private String describes;

}
