package com.dcs.hnyz.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
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")
@ApiModel(value = "通讯协议管理对象", description = "通讯协议管理对象 communication_protocol")
public class CommunicationProtocol extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

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

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

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

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

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

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

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

}
