/*
 *      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.bank.message.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springblade.core.mp.base.BaseEntity;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 信息發佈实体类
 *
 * @author BladeX
 * @since 2021-08-13
 */
@Data
@TableName("zh_message")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Message对象", description = "信息發佈")
public class Message extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 標題
	*/
		@ApiModelProperty(value = "標題")
		private String title;
	/**
	* 內文
	*/
		@ApiModelProperty(value = "內文")
		private String content;
	/**
	* 附件
	*/
		@ApiModelProperty(value = "附件")
		private String file;
	/**
	* 查閱部門
	*/
		@ApiModelProperty(value = "查閱部門")
		private String deptId;
		private Long personId;
	/**
	* 審批人
	*/
		@ApiModelProperty(value = "審批人")
		private String personName;
	/**
	* 審批時間
	*/
		@ApiModelProperty(value = "審批時間")
		@DateTimeFormat(
			pattern = "yyyy-MM-dd HH:mm:ss"
		)
		@JsonFormat(
			pattern = "yyyy-MM-dd HH:mm:ss"
		)
		private Date approveTime;
	/**
	* 節點
	*/
		@ApiModelProperty(value = "節點")
		private Integer process;
	/**
	* 是否已完成
	*/
		@ApiModelProperty(value = "是否已完成")
		private Integer isCompleted;

	/**
	 * 附件域名
	 */
	@ApiModelProperty(value = "附件域名")
	private String domain;
	/**
	 * 附件名称
	 */
	@ApiModelProperty(value = "附件名称")
	private String name;
	/**
	 * 附件原名
	 */
	@ApiModelProperty(value = "附件原名")
	private String originalName;
	/**
	 * 附件拓展名
	 */
	@ApiModelProperty(value = "附件拓展名")
	private String extension;
	/**
	 * 附件大小
	 */
	@ApiModelProperty(value = "附件大小")
	private Long attachSize;

	/**
	 * 通知類型
	 */
	@ApiModelProperty(value = "通知類型")
	private String type;

	/**
	 * 查閱角色
	 */
	@ApiModelProperty(value = "查閱角色")
	private String roleId;

	/**
	 *
	 */
	@ApiModelProperty(value = "")
	private String targetIds;


}
