package com.casic.missiles.dto.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Description: 通知公告请求实体
 * @Author: wangpeng
 * @Date: 2022/12/30 14:32
 */
@ApiModel
@Data
public class NoticeAddRequest {

    @ApiModelProperty(value = "主键id（列表接口参数）", dataType = "Long")
    @TableId("id")
    private Long id;

    /**
     * 通知公告编号
     */
    @ApiModelProperty(value = "通知公告编号", dataType = "String")
    @TableField("notice_no")
    private String noticeNo;

    /**
     * 通知公告标题
     */
    @ApiModelProperty(value = "通知公告标题", dataType = "String")
    @NotBlank(message = "标题不能为空")
    @TableField("notice_title")
    private String noticeTitle;

    /**
     * 发布人
     */
    @ApiModelProperty(value = "发布人", dataType = "String")
    @NotBlank(message = "发布人不能为空")
    @TableField("notice_publisher")
    private String noticePublisher;

    /**
     * 发布单位
     */
    @ApiModelProperty(value = "发布单位", dataType = "String")
    @TableField("notice_company")
    private String noticeCompany;

    /**
     * 发布时间
     */
    @ApiModelProperty(value = "发布时间", dataType = "String")
    @TableField("notice_time")
    private String noticeTime;

    /**
     * 内容简述
     */
    @ApiModelProperty(value = "内容简述", dataType = "String")
    @TableField("notice_sketch")
    private String noticeSketch;

    /**
     * 发布内容
     */
    @ApiModelProperty(value = "发布内容", dataType = "String")
    @NotBlank(message = "发布内容不能为空")
    @TableField("notice_content")
    private String noticeContent;

    /**
     * minio存储文件名
     */
    @ApiModelProperty(value = "上传文件返回名称", dataType = "String")
    @TableField("minio_file_name")
    private String minioFileName;

}
