CN116938739A - Data processing method, device, equipment and storage medium - Google Patents

Data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116938739A
CN116938739A CN202310896926.2A CN202310896926A CN116938739A CN 116938739 A CN116938739 A CN 116938739A CN 202310896926 A CN202310896926 A CN 202310896926A CN 116938739 A CN116938739 A CN 116938739A
Authority
CN
China
Prior art keywords
interface
target
return
network model
end display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310896926.2A
Other languages
Chinese (zh)
Inventor
薛鹏鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Unicom Digital Technology Co Ltd
Unicom Cloud Data Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Unicom Digital Technology Co Ltd
Unicom Cloud Data Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd, Unicom Digital Technology Co Ltd, Unicom Cloud Data Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202310896926.2A priority Critical patent/CN116938739A/en
Publication of CN116938739A publication Critical patent/CN116938739A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]

Abstract

According to the data processing method, the device, the equipment and the storage medium, through determining the interface to be adapted, the interface to be adapted represents the interface with changed attribute information after the first network model is changed into the second network model, and when the triggering of the target page is detected, the encapsulation module is called to send a network request to the interface server and acquire the return information corresponding to the target interface; the target page is a page for calling the target interface, the target front end display code is adapted according to the return information and the interface to be adapted, the target front end display code is the front end display code corresponding to the target interface, the return information of the target interface is obtained when the target page is accessed, and whether the front end display code needs to be adapted or not is judged based on the return information, and repeated searching and replacing for a plurality of interfaces are not needed manually, so that the problem of low efficiency is solved.

Description

Data processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method, apparatus, device, and storage medium.
Background
With the development of services, the number of tenants increases gradually, and the network is required to provide the capability of isolating a large number of tenants. The original VLAN (Virtual Local Area Network ) network model cannot bear a huge amount of tenants, so the VXLAN (Virtual eXtential LAN, virtual extensible local area network) network model capable of accommodating the huge amount of tenants needs to be used.
As the network model adjusts, the parameters and return values of the interface may change, at which point the front end code needs to be adjusted to fit. For example, when the network model is changed, the parameters and the return values corresponding to the VLAN network model in the front-end display code need to be replaced with the parameters and the return values corresponding to the VXLAN network model, respectively. For example, it is necessary to replace the networkId with vpclid and replace the return value corresponding to the networkId with the return value corresponding to vpclid. In the prior art, the position of the calling interface is found manually, and parameters and return values are replaced one by one in a replacement searching mode. When there are a plurality of interfaces, the above-described operation steps need to be repeatedly performed, and when there are a plurality of products involved, the above-described steps need to be repeatedly performed for each interface on each product.
The method has the problem of low efficiency when the front-end display code is changed.
Disclosure of Invention
The application provides a data processing method, a device, equipment and a storage medium, which are used for solving the problem of lower efficiency when a front-end display code is changed in the prior art.
In a first aspect, the present application provides a data processing method, the method comprising:
determining an interface to be adapted; the interface to be adapted represents an interface with attribute information changed after the first network model is changed into the second network model;
when the triggering of the target page is detected, the encapsulation module is called to send a network request to the interface server and acquire return information corresponding to the target interface; the target page is a page for calling the target interface;
adapting the target front end display code according to the return information and the interface to be adapted; the target front end display code is a front end display code corresponding to the target interface.
Optionally, the calling the encapsulation module to send a network request to the interface server and obtain the return information corresponding to the target interface includes:
determining address information of the target interface;
and calling the encapsulation module according to the address information of the target interface to acquire the return information corresponding to the target interface.
Optionally, the adapting the target front end display code according to the return information and the interface to be adapted includes:
judging whether the address information of the target interface exists in an address array or not; the address array stores address information of each interface to be adapted;
if so, determining whether to adapt the target front-end display code according to the returned information and the attribute information corresponding to the interface to be adapted;
and if the target front-end display code does not exist, determining that the target front-end display code is not adapted.
Optionally, the return information includes a return name; determining whether to adapt the target front end display code according to the returned information and the attribute information corresponding to the interface to be adapted, including:
judging whether the return name does not belong to the parameter corresponding to the target interface in the first network model and belongs to the parameter corresponding to the target interface in the second network model according to any return name;
if yes, adapting the target front end display code;
if not, determining that the target front end display code is not adapted.
Optionally, the return information further includes a return value corresponding to the return name; adapting the target front end presentation code, comprising:
determining a first parameter corresponding to the return name in the parameters corresponding to the first network model by the target interface;
and assigning the return value to the first parameter.
Optionally, the method further comprises:
and after the return value is assigned to the first parameter or the target front-end display code is not adapted, returning the return value to the target front-end display code so as to display the page.
Optionally, the first network model is a VLAN network model; the second network model is a VXLAN network model.
In a second aspect, the present application provides a data processing apparatus, the apparatus comprising:
the determining module is used for determining an interface to be adapted; the interface to be adapted represents an interface with changed attribute information after the first network model is changed into the second network model;
the calling module is used for calling the packaging module to send a network request to the interface server and acquire return information corresponding to the target interface when the target page is detected to be triggered; the target page is a page for calling the target interface;
the adaptation module is used for adapting the target front-end display code according to the return information and the interface to be adapted; the target front end display code is a front end display code corresponding to the target interface.
In a third aspect, the present application provides an electronic device comprising: at least one processor and memory;
the memory stores computer-executable instructions;
at least one processor executes computer-executable instructions stored in a memory, causing the at least one processor to perform the method as in any one of the first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, implement a method as in any of the first aspects.
In a fifth aspect, the application provides a computer program product comprising a computer program which, when executed by a processor, implements the method of any of the first aspects.
The application provides a data processing method, a device, equipment and a storage medium, wherein an interface to be adapted is determined; the interface to be adapted represents an interface with changed attribute information after the first network model is changed into the second network model, and when the triggering of the target page is detected, the encapsulation module is called to send a network request to the interface server and acquire return information corresponding to the target interface; the target page is a page for calling the target interface; adapting the target front end display code according to the return information and the interface to be adapted; the target front end display code is the front end display code corresponding to the target interface, and when the target page is accessed, the return information of the target interface is obtained, and whether the front end display code needs to be adapted or not is judged based on the return information, so that repeated searching and replacing of a plurality of interfaces are not needed, and the problem of low efficiency is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is an application scenario diagram of a data processing method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a data processing method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating another data processing method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application.
When the network model is adjusted, the parameters and return values of the interface may change, at which point the front end code needs to be adjusted to fit. The prior art is generally where all call interfaces are found, replacing the parameters and return values that were originally used one by one. For each interface, it is necessary to find all places where the interface is called, and to find parameters that need replacement and replace. When there are multiple interfaces and multiple products, the above steps need to be repeated multiple times, which has a problem of low efficiency. For example, when the network model is changed, there are 20 interfaces involved, and when 7 products exist, it is necessary to process 140 interfaces separately, which is inefficient. Here, the product refers to some products provided by the cloud service and using a network model, such as a load balancer.
The problems of the method are as follows: each interface needs to be processed independently, when a plurality of interfaces exist, the interfaces need to be searched and replaced repeatedly, so when the arrangement period is relatively tension, the interfaces needing to be modified and products are more, the existing method has larger workload and takes longer time.
Based on the above problems, as shown in fig. 1, a processing layer is added between the interface server and the page, and the processing layer sends a request to the interface server to acquire the return information of the target interface when the user accesses the target page, and judges whether the front-end display code needs to be adapted based on the return information, so that the problem of lower efficiency is solved without manually repeatedly searching and replacing a plurality of interfaces, repeated work is reduced, and the front-end display code can be automatically adapted when the target page is triggered.
Fig. 2 is a flowchart of a data processing method according to an embodiment of the present application, where the method includes steps S201 to S203:
step S201, determining an interface to be adapted; the interface to be adapted represents an interface whose attribute information changes when the first network model is changed to the second network model.
When the network model is changed, part of attribute information of part of interfaces is changed, and the interfaces are the interfaces to be adapted. The attribute information may refer to parameters and corresponding return values that invoke the interface to be adapted.
For example, for a VPC list interface, when the network model is changed from the first network model VLAN network model to the second network model VXLAN network model, since the parameters corresponding to the interface under the VLAN network model include networkId, networkName and networkCidr, when the parameters corresponding to the interface under the VXLAN network model include vpclid (corresponding to the parameter networkId), vpcName (corresponding to the parameter networkName), vpcncidr (corresponding to the parameter networkCidr), and when the interface is invoked, the return value corresponding to the networkId and the return value corresponding to vpcnid are also different, the return value corresponding to the networkName and the return value corresponding to vpcnaddr are also different. Therefore, the VPC list interface is the interface to be adapted.
Conversely, when the network model changes, if each parameter and the corresponding return value of an interface do not change, the interface is not the interface to be adapted.
Therefore, for one interface, each parameter and corresponding return value of the interface under the first network model are obtained, each parameter and corresponding return value of the interface under the second network model are obtained, and when the parameters and corresponding return values representing the same content under the two network models are different, the interface is determined to be the interface to be adapted.
Optionally, the first network model is a VLAN network model; the second network model is a VXLAN network model.
The first network model and the second network model can be determined according to service requirements, when the number of tenants increases, the network is required to provide the capability of isolating massive tenants, and the network model is required to be changed from the VLAN network model to the VXLAN network model so as to meet the service requirements.
Step S202, when the triggering of the target page is detected, a packaging module is called to send a network request to an interface server and acquire return information corresponding to the target interface; and the target page is a page for calling the target interface.
The target page is a page needing to call the target interface, that is, the display of the target page needs to be realized based on the returned result of the target interface.
When the target page is detected to be triggered, the encapsulation module can be directly called to acquire the return information of the target interface. The encapsulation module may be implemented, for example, by encapsulating a method, fetchApi. The encapsulation module is used for initiating a network request to the interface server when any interface is called, so that the interface server can return the return information corresponding to the target interface when receiving the network request.
For example, the encapsulation module may be invoked according to the name of the target interface or address information of the target interface.
Step 203, adapting the target front end display code according to the return information and the interface to be adapted; the target front end display code is a front end display code corresponding to the target interface.
The return information is used for indicating various parameters and return values which are actually adopted by the target interface currently, so that whether the target front-end display code needs to be adapted can be determined according to the return information.
Specifically, whether the target interface is an interface to be adapted can be determined according to the return information, and the interface to be adapted is an interface 1, an interface 2 and an interface 3, if the target interface is an interface 4, it can be determined that the interface is not the interface to be adapted, and then adaptation of a corresponding target front end display code is not required.
When the network model changes, parameters and return values of the interface to be adapted may not change immediately, i.e. there is a certain validity period. In the prior art, if parameters and return values in front-end display codes corresponding to interfaces to be adapted are replaced directly by searching for replacement, there may be a problem of error. For example, the network model is changed from the first network model to the second network model, but the second network model is not yet validated, and when the VPC list interface, which is an interface to be adapted, is called, the call is made based on the parameters corresponding to the first network model. Therefore, if the parameter and the return value corresponding to the interface to be adapted are replaced, an error occurs.
Based on the above problems, after determining that the target interface is the interface to be adapted, the application respectively compares the returned information with the attribute information of the interface to be adapted under the first network model and the attribute information under the second network model, thereby determining whether the adaptation of the target front-end display code is required. If the returned information is consistent with the attribute information of the interface to be adapted under the first network model, the front-end display code does not need to be adapted.
According to the data processing method, the interface to be adapted is determined, the interface to be adapted represents the interface with changed attribute information after the first network model is changed into the second network model, and when the target page is detected to be triggered, the encapsulation module is called to send a network request to the interface server and acquire return information corresponding to the target interface; the target page is a page for calling the target interface, the target front end display code is adapted according to the return information and the interface to be adapted, the target front end display code is the front end display code corresponding to the target interface, the return information of the target interface is obtained when the target page is accessed, and whether the front end display code needs to be adapted or not is judged based on the return information, and repeated searching and replacing for a plurality of interfaces are not needed manually, so that the problem of low efficiency is solved.
Fig. 3 is a flow chart of another data processing method according to an embodiment of the present application, as shown in fig. 3, the method includes:
step S301, determining an interface to be adapted; the interface to be adapted represents an interface whose attribute information changes when the first network model is changed to the second network model.
The step S301 may refer to the step S201 in the embodiment shown in fig. 2, and will not be described herein.
Step S302, when the target page is detected to be triggered, determining the address information of the target interface.
When the target page is triggered, determining a target interface corresponding to the target page, and determining address information corresponding to the target interface according to the target interface. For example, the correspondence between the target interface and the corresponding address information may be stored in advance, so that when the target page is detected to be triggered, the address information of the target interface may be directly obtained.
Step S303, calling the encapsulation module according to the address information of the target interface to acquire the return information corresponding to the target interface.
When the encapsulation module is called, the address information of the target interface can be input into the encapsulation module, so that the interface server can distinguish the target interface from other interfaces, and return information corresponding to the target interface can be accurately acquired from the interface server.
Step S304, judging whether the address information of the target interface exists in an address array; and the address array stores address information of each interface to be adapted.
When determining whether to adapt the target front-end presentation code, it may be determined whether the target interface is an interface to be adapted. Specifically, the address information of the interface to be adapted may be obtained in advance, and the address information of the interface to be adapted is stored in the address array. For example, if the interfaces to be adapted are the interfaces 1, 2 and 3, the address information 1 corresponding to the interface 1, the address information 2 corresponding to the interface 2 and the address information 3 corresponding to the interface 3 may be stored in the address array.
When determining whether the target interface is an interface to be adapted, the address information of the target interface can be directly compared with the address information in the address array, that is, whether the address information of the target interface exists in the address array is judged, so that whether the target interface is the interface to be adapted is determined according to the judging result.
Whether the target interface is an interface to be adapted is determined based on the comparison of the address information, the additional information such as the interface name of the target interface is not required to be acquired, the address information has uniqueness, and whether the target interface is the interface to be adapted can be accurately determined.
Step S305, if yes, determining whether to adapt the target front end display code according to the return information and the attribute information corresponding to the interface to be adapted.
When the address information of the target interface exists in the address array, the interface can be determined to be the interface to be adapted. When the target interface is determined to be the interface to be adapted, it is further determined whether the second network model is effective after the first network model is changed to the second network model. Specifically, the judgment can be performed according to the returned information and the attribute information corresponding to the interface to be adapted.
Step S306, if not, determining not to adapt the target front end display code.
When the address information of the target interface does not exist in the address array, it can be determined that the interface is not an interface to be adapted, so that the adaptation of the display code of the front end of the target is not required.
By determining whether the target interface is an interface to be adapted, a portion of the interfaces may be filtered, thereby improving efficiency.
Optionally, the return information includes a return name; determining whether to adapt the target front end display code according to the returned information and the attribute information corresponding to the interface to be adapted, including:
judging whether the return name does not belong to the parameter corresponding to the target interface in the first network model and belongs to the parameter corresponding to the target interface in the second network model according to any return name; if yes, adapting the target front end display code; if not, determining that the target front end display code is not adapted.
The return information includes a return name, and the essence of the return name is each parameter currently corresponding to the target interface. For example, when the target interface is a VPC list interface, if the second network model is not yet validated, the return name includes networkId, networkName, networkCidr, and the like, which indicates that code adaptation is not required to be displayed on the target front end; if the second network model has been validated, the return names include vpcId, vpcName and vpcCidr, etc., indicating that code adaptation is required to be exposed to the target front end. Therefore, according to the return name corresponding to the target interface, whether the second network model is effective or not can be determined, so that whether the target front-end display code is adapted or not is determined.
Specifically, after the return name is obtained, if the return name does not belong to the parameters (networkId, networkName, networkCidr, etc.) corresponding to the first network model by the target interface and belongs to the parameters (vpcId, vpcName, vpcccidr, etc.) corresponding to the second network model by the target interface, it indicates that the second network model is already in effect, and code adaptation needs to be displayed on the front end of the target. Otherwise, the second network model is not validated, and code adaptation is not required to be displayed on the front end of the target.
By comparing the returned name with the parameters corresponding to the first network model of the target interface and the parameters corresponding to the second network model of the target interface, whether the second network model is effective or not can be determined, and therefore the problem that the adaptation error is caused by the fact that the adaptation is carried out on the display code of the front end of the target on the premise that the second network model is not effective is avoided.
Optionally, the return information further includes a return value corresponding to the return name; adapting the target front end presentation code, comprising:
determining a first parameter corresponding to the return name in the parameters corresponding to the first network model by the target interface; and assigning the return value to the first parameter.
When the target front-end display code is adapted, the return value can be directly replaced without modifying the front-end display code. For example, when the target interface is a VPC list interface and when the name vpclid is returned, it may be determined by the above method that the target front-end presentation code needs to be adapted.
When the target front-end display code is adapted, because parameters corresponding to the first network model, such as networkId, are also adopted in the front-end display code, and generally, the front-end code has not only a first parameter, such as networkId, but also a larger modification amount if the first parameters in the target front-end display code are modified one by one. In order to solve the above problems, the application directly assigns the received return value to the corresponding first parameter, so that the adaptation to the network model can be realized without modifying the target front-end display code.
Specifically, before assignment, it is required to determine a first parameter corresponding to a return name of the parameters corresponding to the first network model, where the first parameter corresponds to the target interface. The return name and the return value in the return information are stored in the form of key value pairs, and then the return name and the return value have a corresponding relationship. For example, the return message has a return name vpcId and a return value of a specific ID. Therefore, it may be determined that the parameter corresponding to the vpcId in the parameters corresponding to the first network model of the target interface is the networkId, and the parameter is the first parameter. For a target interface, a corresponding relation table of parameters corresponding to the first network model and parameters corresponding to the second network model may be stored in advance, for example, a networkId corresponds to vpcId, a networkName corresponds to vpcName, a networkCidr corresponds to vpcCidr, and the first parameter may be determined by searching the corresponding relation table according to a return name.
And after the first parameter is determined, directly assigning the return value to the first parameter, so that the front-end display code can display the page according to the received return value.
By the method, the front page can be correctly displayed on the premise that the front display code is not modified, and the method has the advantages of small modification amount and high efficiency.
Optionally, the method further comprises:
and after the return value is assigned to the first parameter or the target front-end display code is not adapted, returning the return value to the target front-end display code so as to display the page.
After reassigning the first parameter, a return value is also required to be returned to the target front-end display code to display the page. Or when the target front-end display code is not matched, directly returning the return value to the target front-end display code so as to display the page.
According to the application, a layer is added between the page and the interface server, and judgment can be performed according to the return information corresponding to the target interface sent by the interface server so as to determine whether to adapt the front-end display code corresponding to the target interface, when the target page is triggered, the adaptation of the front-end display code of the target can be realized, the interfaces to be adapted do not need to be searched one by one and called in places, and omission of modification can be avoided.
Fig. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application, where the apparatus 40 includes:
a determining module 401, configured to determine an interface to be adapted; the interface to be adapted represents an interface with changed attribute information after the first network model is changed into the second network model;
a calling module 402, configured to, when detecting that the target page is triggered, call the encapsulation module to send a network request to the interface server and obtain return information corresponding to the target interface; the target page is a page for calling the target interface;
an adapting module 403, configured to adapt a target front end display code according to the return information and the interface to be adapted; the target front end display code is a front end display code corresponding to the target interface.
Optionally, the calling module 402 is specifically configured to:
determining address information of the target interface;
and calling the encapsulation module according to the address information of the target interface to acquire the return information corresponding to the target interface.
Optionally, the adapting module 403 is specifically configured to:
judging whether the address information of the target interface exists in an address array or not; the address array stores address information of each interface to be adapted;
if so, determining whether to adapt the target front-end display code according to the returned information and the attribute information corresponding to the interface to be adapted;
and if the target front-end display code does not exist, determining that the target front-end display code is not adapted.
Optionally, when determining whether to adapt the target front end display code according to the return information and the attribute information corresponding to the interface to be adapted, the adapting module 403 is specifically configured to:
judging whether the return name does not belong to the parameter corresponding to the target interface in the first network model and belongs to the parameter corresponding to the target interface in the second network model according to any return name;
if yes, adapting the target front end display code;
if not, determining that the target front end display code is not adapted.
Optionally, the return information further includes a return value corresponding to the return name; the adaptation module 403 is specifically configured to, when adapting the target front-end display code:
determining a first parameter corresponding to the return name in the parameters corresponding to the first network model by the target interface;
and assigning the return value to the first parameter.
Optionally, the device further comprises a return module, specifically configured to:
and after the return value is assigned to the first parameter or the target front-end display code is not adapted, returning the return value to the target front-end display code so as to display the page.
Optionally, the first network model is a VLAN network model; the second network model is a VXLAN network model.
The data processing device provided by the embodiment of the present application can implement the data processing method of the embodiment shown in fig. 2 and fig. 3, and its implementation principle and technical effects are similar, and are not repeated here.
Fig. 5 is a schematic hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 5, the electronic device provided in this embodiment includes: at least one processor 501 and a memory 502. The processor 501 and the memory 502 are connected by a bus 503.
In a specific implementation, at least one processor 501 executes computer-executable instructions stored in a memory 502, so that at least one processor 501 performs the method in the above-described method embodiments.
The specific implementation process of the processor 501 may refer to the above-mentioned method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
In the embodiment shown in fig. 5, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise high speed RAM memory or may further comprise non-volatile storage NVM, such as at least one disk memory.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or to one type of bus.
The embodiment of the application also provides a computer readable storage medium, wherein computer execution instructions are stored in the computer readable storage medium, and when the processor executes the computer execution instructions, the method of the method embodiment is realized.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the method of the above method embodiments.
The computer readable storage medium described above may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. A readable storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). The processor and the readable storage medium may reside as discrete components in a device.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A method of data processing, the method comprising:
determining an interface to be adapted; the interface to be adapted represents an interface with changed attribute information after the first network model is changed into the second network model;
when the triggering of the target page is detected, the encapsulation module is called to send a network request to the interface server and acquire return information corresponding to the target interface; the target page is a page for calling the target interface;
adapting the target front end display code according to the return information and the interface to be adapted; the target front end display code is a front end display code corresponding to the target interface.
2. The method of claim 1, wherein invoking the encapsulation module to send a network request to the interface server and obtain return information corresponding to the target interface comprises:
determining address information of the target interface;
and calling the encapsulation module according to the address information of the target interface to acquire the return information corresponding to the target interface.
3. The method of claim 1, wherein adapting a target front-end presentation code according to the return information and the interface to be adapted comprises:
judging whether the address information of the target interface exists in an address array or not; the address array stores address information of each interface to be adapted;
if so, determining whether to adapt the target front-end display code according to the returned information and the attribute information corresponding to the interface to be adapted;
and if the target front-end display code does not exist, determining that the target front-end display code is not adapted.
4. A method according to claim 3, wherein the return information comprises a return name; determining whether to adapt the target front end display code according to the returned information and the attribute information corresponding to the interface to be adapted, including:
judging whether the return name does not belong to the parameter corresponding to the target interface in the first network model and belongs to the parameter corresponding to the target interface in the second network model according to any return name;
if yes, adapting the target front end display code;
if not, determining that the target front end display code is not adapted.
5. The method of claim 4, wherein the return information further comprises a return value corresponding to the return name; adapting the target front end presentation code, comprising:
determining a first parameter corresponding to the return name in the parameters corresponding to the first network model by the target interface;
and assigning the return value to the first parameter.
6. The method of claim 5, wherein the method further comprises:
and after the return value is assigned to the first parameter or the target front-end display code is not adapted, returning the return value to the target front-end display code so as to display the page.
7. The method of any one of claims 1-6, wherein the first network model is a VLAN network model; the second network model is a VXLAN network model.
8. A data processing apparatus, the apparatus comprising:
the determining module is used for determining an interface to be adapted; the interface to be adapted represents an interface with changed attribute information after the first network model is changed into the second network model;
the calling module is used for calling the packaging module to send a network request to the interface server and acquire return information corresponding to the target interface when the target page is detected to be triggered; the target page is a page for calling the target interface;
the adaptation module is used for adapting the target front-end display code according to the return information and the interface to be adapted; the target front end display code is a front end display code corresponding to the target interface.
9. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory causes the at least one processor to perform the method of any one of claims 1 to 7.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor implement the method of any of claims 1 to 7.
CN202310896926.2A 2023-07-20 2023-07-20 Data processing method, device, equipment and storage medium Pending CN116938739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310896926.2A CN116938739A (en) 2023-07-20 2023-07-20 Data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310896926.2A CN116938739A (en) 2023-07-20 2023-07-20 Data processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116938739A true CN116938739A (en) 2023-10-24

Family

ID=88387412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310896926.2A Pending CN116938739A (en) 2023-07-20 2023-07-20 Data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116938739A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117576545A (en) * 2024-01-16 2024-02-20 成都同步新创科技股份有限公司 Multi-algorithm full-matching access adapter access method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117576545A (en) * 2024-01-16 2024-02-20 成都同步新创科技股份有限公司 Multi-algorithm full-matching access adapter access method
CN117576545B (en) * 2024-01-16 2024-04-05 成都同步新创科技股份有限公司 Multi-algorithm full-matching access adapter access method

Similar Documents

Publication Publication Date Title
CN108427705B (en) Electronic device, distributed system log query method and storage medium
CN108462760B (en) Electronic device, automatic cluster access domain name generation method and storage medium
CN110765001B (en) Modularized automatic test method and device for application system
CN116938739A (en) Data processing method, device, equipment and storage medium
CN111638873A (en) Program code generation method and device, computer equipment and storage medium
CN113448756B (en) Inter-process communication system and method and computing device
CN114095567A (en) Data access request processing method and device, computer equipment and medium
CN110851987B (en) Method, apparatus and storage medium for predicting calculated duration based on acceleration ratio
CN109032693B (en) Method and device for loading display information, electronic equipment and readable storage medium
CN108647102B (en) Service request processing method and device of heterogeneous system and electronic equipment
CN113377381A (en) Method and device for distributing small program package, electronic equipment and medium
CN109194703B (en) Processing method of communication load between cloud platform hosts, electronic device and medium
CN111352610A (en) Interface return value modification method and device, electronic equipment and storage medium
CN115955384A (en) Error code returning method, device and system
CN113590352A (en) Data calling method, device, equipment and readable storage medium
CN112612530B (en) Class query method and device
CN113961366A (en) Kernel function calling method of operating system and computer equipment
CN112100058A (en) Interface specification detection method and device
CN108255417B (en) Data access method, electronic device and readable storage medium
CN115221146B (en) Method and device for deleting key value in Redis
CN112988592B (en) Code detection method, device, equipment and storage medium
CN111382351B (en) Soft telephone resource sharing method, electronic device and computer readable storage medium
CN111984341B (en) Project monitoring method and device, electronic equipment and storage medium
CN114490044A (en) Component sharing method, device, equipment and medium
CN114490752A (en) Data acquisition method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination