package com.sptg.device.api.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.sptg.common.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * title: MqConf
 * package: com.sptg.device.api.entity
 * description: 队列配置-实体类
 */
@Setter
@Getter
@TableName(value = "mq_conf")
public class MqConf extends BaseEntity {

    /**
     * 服务器名称
     */
    @TableField(value = "s_name")
    private String name;

    /**
     * 服务器Ip地址
     */
    @TableField(value = "s_host")
    private String host;

    /**
     * 端口号
     */
    @TableField(value = "i_port")
    private Integer port;

    /**
     * 数据库
     */
    @TableField(value = "s_virtual")
    private String virtual;

    /**
     * 用户名
     */
    @TableField(value = "s_user")
    private String user;

    /**
     * 密码
     */
    @TableField(value = "s_password")
    private String password;

    /**
     * 当前连接数
     */
    @TableField(value = "i_threads")
    private Integer threads;

    /**
     * 最大连接数5000
     */
    @TableField(value = "i_max_connections")
    private Integer maxConnections;

    /**
     * 在线状态：{ -1：故障，0：离线，1：在线 }
     */
    @TableField(value = "i_online_status")
    private Integer onLineStatus;

    /**
     * 创建人Id
     */
    @TableField(value = "l_create_account_id")
    private Long createAccountId;

    /**
     * 服务器本地Ip地址
     */
    @TableField(value = "s_localhost")
    private String localhost;

    /**
     * 本地端口号
     */
    @TableField(value = "i_local_port")
    private Integer localPort;

}
