package com.dcs.hnyz.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.dcs.common.annotation.Excel;
import com.dcs.common.core.domain.BaseEntity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 通讯协议管理对象 communication_protocol
 *
 * @author hmy
 * @date 2025-04-27
 */
@Data
@TableName("communication_protocol")
public class CommunicationProtocol extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 协议id
     */
    @TableId(value = "protocol_id")
    private Long protocolId;

    /**
     * 协议名
     */
    @Excel(name = "协议名")
    @TableField(value = "protocol_name")
    private String protocolName;

    /**
     * 协议编码
     */
    @Excel(name = "协议编码")
    @TableField(value = "code")
    private String code;

    /**
     * 协议说明
     */
    @Excel(name = "协议说明")
    @TableField(value = "description")
    private String description;

    /**
     * 网段
     */
    @Excel(name = "网段")
    @TableField(value = "network_segment")
    private String networkSegment;

    /**
     * 默认端口
     */
    @Excel(name = "默认端口")
    @TableField(value = "default_port")
    private String defaultPort;

    /**
     * 启用状态（0-启用,1-禁用）
     */
    @Excel(name = "启用状态", readConverterExp = "0-启用,1-禁用")
    @TableField(value = "status")
    private String status;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableField(value = "del_flag")
    @TableLogic
    private String delFlag;

}
