package com.ruoyi.common.core.utils;

public class ConvertOtherTypeUtil {
    /**
     * 根据接口类型代码获取对应的类型名称
     * @param typeCode 接口类型代码 (1, 2, 3...)
     * @return 接口类型名称，如果未找到返回 "unknown"
     */
    public static String getInterfaceTypeName(int typeCode) {
        switch (typeCode) {
            case 1: return "other";
            case 2: return "regular1822";
            case 3: return "hdh1822";
            case 4: return "ddnX25";
            case 5: return "rfc877x25";
            case 6: return "ethernetCsmacd";
            case 7: return "iso88023Csmacd";
            case 8: return "iso88024TokenBus";
            case 9: return "iso88025TokenRing";
            case 10: return "iso88026Man";
            case 11: return "starLan";
            case 12: return "proteon10Mbit";
            case 13: return "proteon80Mbit";
            case 14: return "hyperchannel";
            case 15: return "fddi";
            case 16: return "lapb";
            case 17: return "sdlc";
            case 18: return "ds1";
            case 19: return "e1";
            case 20: return "basicISDN";
            case 21: return "primaryISDN";
            case 22: return "propPointToPointSerial";
            case 23: return "ppp";
            case 24: return "softwareLoopback";
            case 25: return "eon";
            case 26: return "ethernet3Mbit";
            case 27: return "nsip";
            case 28: return "slip";
            case 29: return "ultra";
            case 30: return "ds3";
            case 31: return "sip";
            case 32: return "frameRelay";
            case 33: return "rs232";
            case 34: return "para";
            case 35: return "arcnet";
            case 36: return "arcnetPlus";
            case 37: return "atm";
            case 38: return "miox25";
            case 39: return "sonet";
            case 40: return "x25ple";
            case 41: return "iso88022llc";
            case 42: return "localTalk";
            case 43: return "smdsDxi";
            case 44: return "frameRelayService";
            case 45: return "v35";
            case 46: return "hssi";
            case 47: return "hippi";
            case 48: return "modem";
            case 49: return "aal5";
            case 50: return "sonetPath";
            case 51: return "sonetVT";
            case 52: return "smdsIcip";
            case 53: return "propVirtual";
            case 54: return "propMultiplexor";
            case 55: return "ieee80212";
            case 56: return "fibreChannel";
            case 57: return "hippiInterface";
            case 58: return "frameRelayInterconnect";
            case 59: return "aflane8023";
            case 60: return "aflane8025";
            case 61: return "cctEmul";
            case 62: return "fastEther";
            case 63: return "isdn";
            case 64: return "v11";
            case 65: return "v36";
            case 66: return "g703at64k";
            case 67: return "g703at2mb";
            case 68: return "qllc";
            case 69: return "fastEtherFX";
            case 70: return "channel";
            case 71: return "ieee80211";
            case 72: return "ibm370parChan";
            case 73: return "escon";
            case 74: return "dlsw";
            case 75: return "isdns";
            case 76: return "isdnu";
            case 77: return "lapd";
            case 78: return "ipSwitch";
            case 79: return "rsrb";
            case 80: return "atmLogical";
            case 81: return "ds0";
            case 82: return "ds0Bundle";
            case 83: return "bsc";
            case 84: return "async";
            case 85: return "cnr";
            case 86: return "iso88025Dtr";
            case 87: return "eplrs";
            case 88: return "arap";
            case 89: return "propCnls";
            case 90: return "hostPad";
            case 91: return "termPad";
            case 92: return "frameRelayMPI";
            case 93: return "x213";
            case 94: return "adsl";
            case 95: return "radsl";
            case 96: return "sdsl";
            case 97: return "vdsl";
            case 98: return "iso88025CRFPInt";
            case 99: return "myrinet";
            case 100: return "voiceEM";
            case 101: return "voiceFXO";
            case 102: return "voiceFXS";
            case 103: return "voiceEncap";
            case 104: return "voiceOverIp";
            case 105: return "atmDxi";
            case 106: return "atmFuni";
            case 107: return "atmIma";
            case 108: return "pppMultilinkBundle";
            case 109: return "ipOverCdlc";
            case 110: return "ipOverClaw";
            case 111: return "stackToStack";
            case 112: return "virtualIpAddress";
            case 113: return "mpc";
            case 114: return "ipOverAtm";
            case 115: return "iso88025Fiber";
            case 116: return "tdlc";
            case 117: return "gigabitEthernet";
            case 118: return "hdlc";
            case 119: return "lapf";
            case 120: return "v37";
            case 121: return "x25mlp";
            case 122: return "x25huntGroup";
            case 123: return "trasnpHdlc";
            case 124: return "interleave";
            case 125: return "fast";
            case 126: return "ip";
            case 127: return "docsCableMaclayer";
            case 128: return "docsCableDownstream";
            case 129: return "docsCableUpstream";
            case 130: return "a12MppSwitch";
            case 131: return "tunnel";
            case 132: return "coffee";
            case 133: return "ces";
            case 134: return "atmSubInterface";
            case 135: return "l2vlan";
            case 136: return "l3ipvlan";
            case 137: return "l3ipxvlan";
            case 138: return "digitalPowerline";
            case 139: return "mediaMailOverIp";
            case 140: return "dtm";
            case 141: return "dcn";
            case 142: return "ipForward";
            case 143: return "msdsl";
            case 144: return "ieee1394";
            case 145: return "if-gsn";
            case 146: return "dvbRccMacLayer";
            case 147: return "dvbRccDownstream";
            case 148: return "dvbRccUpstream";
            case 149: return "atmVirtual";
            case 150: return "mplsTunnel";
            case 151: return "srp";
            case 152: return "voiceOverAtm";
            case 153: return "voiceOverFrameRelay";
            case 154: return "idsl";
            case 155: return "compositeLink";
            case 156: return "ss7SigLink";
            case 157: return "propWirelessP2P";
            case 158: return "frForward";
            case 159: return "rfc1483";
            case 160: return "usb";
            case 161: return "ieee8023adLag";
            case 162: return "bgppolicyaccounting";
            case 163: return "frf16MfrBundle";
            case 164: return "h323Gatekeeper";
            case 165: return "h323Proxy";
            case 166: return "mpls";
            case 167: return "mfSigLink";
            case 168: return "hdsl2";
            case 169: return "shdsl";
            case 170: return "ds1FDL";
            case 171: return "pos";
            case 172: return "dvbAsiIn";
            case 173: return "dvbAsiOut";
            case 174: return "plc";
            case 175: return "nfas";
            case 176: return "tr008";
            case 177: return "gr303RDT";
            case 178: return "gr303IDT";
            case 179: return "isup";
            case 180: return "propDocsWirelessMaclayer";
            case 181: return "propDocsWirelessDownstream";
            case 182: return "propDocsWirelessUpstream";
            case 183: return "hiperlan2";
            case 184: return "propBWAp2Mp";
            case 185: return "sonetOverheadChannel";
            case 186: return "digitalWrapperOverheadChannel";
            case 187: return "aal2";
            case 188: return "radioMAC";
            case 189: return "atmRadio";
            case 190: return "imt";
            case 191: return "mvl";
            case 192: return "reachDSL";
            case 193: return "frDlciEndPt";
            case 194: return "atmVciEndPt";
            case 195: return "opticalChannel";
            case 196: return "opticalTransport";
            case 197: return "propAtm";
            case 198: return "voiceOverCable";
            case 199: return "infiniband";
            case 200: return "teLink";
            case 201: return "q2931";
            case 202: return "virtualTg";
            case 203: return "sipTg";
            case 204: return "sipSig";
            case 205: return "docsCableUpstreamChannel";
            case 206: return "econet";
            case 207: return "pon155";
            case 208: return "pon622";
            case 209: return "bridge";
            case 210: return "linegroup";
            case 211: return "voiceEMFGD";
            case 212: return "voiceFGDEANA";
            case 213: return "voiceDID";
            case 214: return "mpegTransport";
            case 215: return "sixToFour";
            case 216: return "gtp";
            case 217: return "pdnEtherLoop1";
            case 218: return "pdnEtherLoop2";
            case 219: return "opticalChannelGroup";
            case 220: return "homepna";
            case 221: return "gfp";
            case 222: return "ciscoISLvlan";
            case 223: return "actelisMetaLOOP";
            case 224: return "fcipLink";
            case 225: return "rpr";
            case 226: return "qam";
            default: return "unknown";
        }
    }
}
