/*
 *      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.third.doordevice.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;

import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 队列配置表实体类
 *
 * @author BladeX
 * @since 2021-04-27
 */
@Data
@TableName("third_mq_conf")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "MqConf对象", description = "队列配置表")
public class MqConf extends BaseEntity {

	private static final long serialVersionUID = 1L;


	/**
	* 服务器名称
	*/
		@ApiModelProperty(value = "服务器名称")
		private String name;
	/**
	* Ip地址
	*/
		@ApiModelProperty(value = "Ip地址")
		private String host;
	/**
	* 端口号
	*/
		@ApiModelProperty(value = "端口号")
		private Integer port;
	/**
	* 数据库
	*/
		@ApiModelProperty(value = "数据库")
		private String virtual;
	/**
	* 用户名
	*/
		@ApiModelProperty(value = "用户名")
		private String user;
	/**
	* 密码
	*/
		@ApiModelProperty(value = "密码")
		private String password;
	/**
	* 当前连接数
	*/
		@ApiModelProperty(value = "当前连接数")
		private Integer threads;
	/**
	* 最大连接数5000
	*/
		@ApiModelProperty(value = "最大连接数5000")
		private Integer maxConnections;
	/**
	* 在线状态：{ -1：故障，0：离线，1：在线 }
	*/
		@ApiModelProperty(value = "在线状态：{ -1：故障，0：离线，1：在线 }")
		private Integer onlineStatus;
	/**
	* 删除标记：{ -1：已删除，0：正常 }
	*/
		@ApiModelProperty(value = "删除标记：{ -1：已删除，0：正常 }")
		private Integer status;
	/**
	* 创建时间
	*/
		@ApiModelProperty(value = "创建时间")
		private LocalDateTime createDate;
	/**
	* 创建人
	*/
		@ApiModelProperty(value = "创建人")
		private Long createAccountId;
	/**
	* 本地地址
	*/
		@ApiModelProperty(value = "本地地址")
		private String localhost;
	/**
	* 本地端口
	*/
		@ApiModelProperty(value = "本地端口")
		private Integer localPort;

		@TableField(exist = false)
		private String queueName;


}
