/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.martial.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.time.LocalDateTime;

/**
 * 信息发布实体类
 *
 * @author BladeX
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("martial_info_publish")
@Schema(description = "信息发布")
public class MartialInfoPublish extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 赛事ID(NULL表示全局)
	 */
	@Schema(description = "赛事ID")
	private Long competitionId;

	/**
	 * 标题
	 */
	@Schema(description = "标题")
	private String title;

	/**
	 * 信息类型(1-通知,2-公告,3-重要)
	 */
	@Schema(description = "信息类型")
	private Integer infoType;

	/**
	 * 内容
	 */
	@Schema(description = "内容")
	private String content;

	/**
	 * 图片(JSON数组)
	 */
	@Schema(description = "图片")
	private String images;

	/**
	 * 附件(JSON)
	 */
	@Schema(description = "附件")
	private String attachments;

	/**
	 * 发布时间
	 */
	@Schema(description = "发布时间")
	private LocalDateTime publishTime;

	/**
	 * 发布人姓名
	 */
	@Schema(description = "发布人姓名")
	private String publisherName;

	/**
	 * 是否已发布(0-未发布,1-已发布)
	 */
	@Schema(description = "是否已发布")
	private Integer isPublished;

	/**
	 * 阅读次数
	 */
	@Schema(description = "阅读次数")
	private Integer viewCount;

	/**
	 * 排序
	 */
	@Schema(description = "排序")
	private Integer sortOrder;

}
