package cn.bunny.entity.system.board;

import cn.bunny.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 文章板块信息
 * </p>
 *
 * @author Bunny
 * @since 2024-05-19
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("forum_board")
@ApiModel(value = "ForumBoard对象", description = "文章板块信息")
public class ForumBoard extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("父级板块ID")
    private Long parentId;

    @ApiModelProperty("板块名")
    private String boardName;

    @ApiModelProperty("封面")
    private String cover;

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

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

    @ApiModelProperty("0:只允许管理员发帖 1:任何人可以发帖")
    private Boolean postType;
}
