package com.tongran.rocketmq.domain;

import com.tongran.common.core.annotation.Excel;
import com.tongran.common.core.web.domain.BaseEntity;
import com.tongran.rocketmq.domain.vo.RmPppoeConfigSubVo;
import lombok.Data;

import java.math.BigDecimal;

/**
 * PPPoE配置子表对象 rm_pppoe_config_sub
 * 
 * @author tongran
 * @date 2025-12-29
 */
@Data
public class RmPppoeConfigSub extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 序号 */
    @Excel(name = "序号")
    private Long serialNumber;

    /** VLANID */
    @Excel(name = "VLANID")
    private Long vlanId;

    /** IPv4地址 */
    @Excel(name = "IPv4地址")
    private String ipv4Address;

    /** IPv4掩码位数 */
    @Excel(name = "IPv4掩码位数")
    private Long ipv4MaskBits;

    /** IPv4网关 */
    @Excel(name = "IPv4网关")
    private String ipv4Gateway;
    /** 状态(0未连通，1连通） */
    private String status;
    /** 虚拟网卡连通状态 */
    private String virStatus;
    /** 上报带宽 */
    private BigDecimal bandwidthResult;
    /** MAC地址 */
    private String macAddress;
    /** 客户端id */
    private String clientId;
    /** 接口名称 */
    private String interfaceName;
    /** 网卡创建时间 */
    private Long netCreateTime;
    /** 网卡运行时间 */
    private String netRunTime;
    /** 接收带宽(bit) */
    private String inSpeed;

    /** 发送带宽(bit) */
    private String outSpeed;
    /** 总接收带宽 */
    private String totalInSpeed;

    /** 总发送带宽 */
    private String totalOutSpeed;

    public RmPppoeConfigSubVo toVo() {
        RmPppoeConfigSubVo vo = new RmPppoeConfigSubVo();
        vo.setSerialNumber(this.serialNumber);
        vo.setVlanId(this.vlanId);
        vo.setIpv4Address(this.ipv4Address);
        vo.setIpv4MaskBits(this.ipv4MaskBits);
        vo.setIpv4Gateway(this.ipv4Gateway);
        return vo;
    }

}
