package com.ruoyi.post.frequency.posreport.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.post.frequency.post.entity.Post;
import com.ruoyi.vo.UserInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 论坛举报对象 t_post_report
 * 
 * @author liwenlong
 * @date 2023-10-26
 */
@Data
@Accessors(chain = true)
@TableName("t_post_report")
public class PostReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;


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

    @ApiModelProperty("删除状态 1 正常 2 删除 3 禁用")
    private Integer delFlag;

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

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

    @ApiModelProperty("论坛id")
    @Excel(name = "论坛id")
    private Long postId;

    @ApiModelProperty("举报原因")
    @Excel(name = "举报原因")
    private String reason;

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

    @ApiModelProperty("图片")
    @Excel(name = "图片")
    private String images;

    @ApiModelProperty("处理结果 1 未处理 2 已处理 3拒绝处理")
    @Excel(name = "处理结果 1 未处理 2 已处理 3拒绝处理")
    private Integer result;

    @ApiModelProperty("用户信息")
    @TableField(exist = false)
    private UserInfo userInfo;

    @ApiModelProperty("帖子信息")
    @TableField(exist = false)
    private Post post;

    @ApiModelProperty("开始时间")
    @TableField(exist = false)
    private Date beginTime;

    @ApiModelProperty("结束时间")
    @TableField(exist = false)
    private Date endTime;


}
