Interface processing method and device, equipment and storage medium

By analyzing back-end applications and full-link monitoring technology, the cumbersome and low accuracy problems of manually finding and cleaning up abandoned interfaces in medium and large projects are solved, and efficiency and accuracy are improved.

CN120492272APending Publication Date: 2025-08-15AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510648576.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

In medium and large projects, the process of manually finding and cleaning up abandoned interfaces is cumbersome and the accuracy cannot be guaranteed, and it takes up a lot of development time.

Method used

By parsing the backend application, determine the backend interface in the code file, and use full-link monitoring technology to match the effective interface, obtain the interfaces used during the monitoring cycle, and identify and delete the abandoned interface.

Benefits of technology

It realizes efficient and accurate identification and cleaning of abandoned interfaces without manual statistics and code analysis, reducing development time and manual errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120492272A_ABST
    Figure CN120492272A_ABST
Patent Text Reader

Abstract

The invention discloses an interface processing method and device, equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: determining a code file containing a back-end interface by analyzing a back-end application program; an effective interface is determined through a full-link monitoring technology, a matching result is obtained by matching an interface path of a back-end interface in the code file with an interface path of the effective interface, the effective interface is a back-end interface used in a monitoring period of full-link monitoring, and the effective interface is a back-end interface used in a monitoring period of full-link monitoring. The matching result comprises a waste interface and the effective interface; and deleting the interface according to the matching result. According to the technical scheme provided by the embodiment of the invention, the problems that the screening work is tedious, the accuracy cannot be guaranteed and a large amount of development time is occupied due to the fact that waste interfaces are manually and sequentially searched and cleaned are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for processing an interface. Background Art

[0002] A server-side interface, also known as a back-end interface, is an interface used for data interaction and communication within a software system or service. This interface enables interaction between client applications (such as web browsers or mobile applications) and server-side software.

[0003] In actual project development, with rapid feature iterations, especially in medium- to large-scale projects, a large number of deprecated interfaces are often left behind during the iteration process. These deprecated interfaces are not actually used in the business code, but still exist in the code base, which can cause problems. Therefore, cleaning up deprecated interfaces is a critical task in software development, especially for medium- to large-scale projects. Currently, developers usually need to search for the interface name in the code editor, analyze the interface usage in the business code, and then determine whether the interface needs to be deleted.

[0004] In medium and large projects, there may be hundreds or even thousands of interfaces. The above-mentioned manual search and cleaning method is obviously a tedious and time-consuming task, and the accuracy of manual screening cannot be guaranteed. Summary of the Invention

[0005] The present invention provides a method, device, equipment and storage medium for processing interfaces to solve the problems of uncertainty in accuracy and low efficiency in screening discarded interfaces.

[0006] In a first aspect, the present invention provides a method for processing an interface, comprising:

[0007] Determine the code file containing the backend interface by parsing the backend application;

[0008] Determine a valid interface using full-link monitoring technology, and obtain a matching result by matching the interface path of the backend interface in the code file with the interface path of the valid interface, wherein the valid interface is a backend interface that has been used within a monitoring period of full-link monitoring, and the matching result includes an abandoned interface and the valid interface;

[0009] The interface is deleted according to the matching result.

[0010] In a second aspect, the present invention provides a device for processing an interface, comprising:

[0011] A parsing module, used to determine the code file containing the backend interface by parsing the backend application;

[0012] A matching module, configured to determine a valid interface through full-link monitoring technology, and obtain a matching result by matching the interface path of the backend interface in the code file with the interface path of the valid interface, wherein the valid interface is a backend interface that has been used within a monitoring period of full-link monitoring, and the matching result includes an abandoned interface and the valid interface;

[0013] The interface deletion module is used to delete the interface according to the matching result.

[0014] In a third aspect, the present invention provides an electronic device, comprising:

[0015] at least one processor;

[0016] and a memory communicatively coupled to the at least one processor;

[0017] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the method for processing an interface of the first aspect mentioned above.

[0018] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer instructions, which are used to enable a processor to implement the method of processing an interface according to the first aspect when executed.

[0019] The interface processing solution provided by the present invention can obtain files containing back-end external interfaces in the code by parsing the back-end application program, without the need for manual statistics. By utilizing the full-link monitoring of the access, the interfaces in use can be accurately and truly obtained. There is no need for manual log and code analysis. By matching the back-end external interface with the interface in use, the abandoned back-end interface can be obtained, which solves the problem in the prior art that developers have to manually search and clean up abandoned interfaces in sequence, resulting in cumbersome screening work, unguaranteed accuracy, and a large amount of development time.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1This is a flowchart of a method for processing an interface provided according to a first embodiment of the present invention;

[0023] Figure 2 This is a flowchart of a method for processing an interface provided according to a second embodiment of the present invention;

[0024] Figure 3 1 is a schematic structural diagram of a device for processing an interface according to a third embodiment of the present invention;

[0025] Figure 4 It is a structural diagram of an electronic device provided according to the fourth embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first," "second," and the like in the specification and claims of the present invention and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than that illustrated or described herein. In the description of the present invention, unless otherwise specified, "plurality" refers to two or more. "And / or" describes an association relationship between associated objects, indicating that three relationships can exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or device.

[0028] The backend generally refers to the non-user interactive portion of a software system or service, and can be understood as the part that runs on the server. The backend is primarily responsible for data storage, computation, and logic processing, as well as interaction with other systems.

[0029] Full-link monitoring is a performance analysis tool for distributed systems, primarily used to monitor and manage the operation of the entire system. It helps us quickly locate and resolve various system failures. The main goal of full-link monitoring is to provide a comprehensive and in-depth view of the system's operating status, covering all aspects of the system, such as the processing of user requests, the call relationships between services, and the execution of database queries.

[0030] Example 1

[0031] Figure 1 A flowchart of a method for processing an interface is provided for embodiment 1 of the present invention. This embodiment is applicable to the case of processing a discarded interface. The method can be executed by a device for processing an interface. The device for processing an interface can be implemented in the form of hardware and / or software. The device for processing an interface can be configured in an electronic device. The electronic device can be composed of two or more physical entities or one physical entity.

[0032] like Figure 1 As shown, the method for processing an interface provided by the first embodiment of the present invention specifically includes the following steps:

[0033] S101. Determine a code file containing a backend interface by parsing a backend application.

[0034] In this embodiment, each backend application can be traversed and parsed first to obtain a code file containing a backend interface. A global object can be created in advance to store the backend interface. The backend interface can be understood as a server interface.

[0035] S102. Determine the valid interface through full-link monitoring technology, and obtain a matching result by matching the interface path of the backend interface in the code file and the interface path of the valid interface, wherein the valid interface is the backend interface that has been used within the monitoring cycle of the full-link monitoring, and the matching result includes the discarded interface and the valid interface.

[0036] In this embodiment, full-link monitoring can be pre-configured in the current system. Based on the data obtained from the full-link monitoring, the back-end interface that has been used within the monitoring period of the full-link monitoring, that is, the valid interface, can be determined. Among them, the preset time period is the monitoring period of the full-link monitoring. For example, if the monitoring period of the full-link monitoring is seven days, it means that the full-link monitoring data is updated every seven days. Then match the back-end interface and the valid interface in the code file to obtain a matching result. In the back-end interface of the code file, the one that successfully matches is the valid interface, and the one that fails to match is the discarded interface.

[0037] S103: Delete the interface according to the matching result.

[0038] In this embodiment, interfaces can be deleted from the discarded interfaces in the matching results based on the matching results. For example, the discarded interfaces in the matching results can be directly deleted, or the matching results can be stored in an Excel file, and the discarded interfaces can be deleted based on the patterns and trends of the matching results within a set period of time.

[0039] The method for processing interfaces provided by an embodiment of the present invention can obtain files containing backend external interfaces in the code by parsing backend applications, without the need for manual statistics. By utilizing the full-link monitoring of access, the interfaces in use can be accurately and truly obtained. There is no need for manual log and code analysis. By matching the backend external interface and the interface in use, the abandoned backend interface can be obtained, which solves the problem in the prior art that developers manually search and clean up abandoned interfaces in sequence, resulting in cumbersome screening work, unguaranteed accuracy, and a large amount of development time.

[0040] Optionally, the matching result is obtained by matching the interface path of the backend interface in the code file and the interface path of the effective interface, including: fully matching or partially matching the interface path of the backend interface in the code file and the interface path of the effective interface to obtain a matching result.

[0041] Specifically, before obtaining a matching result by matching the interface path of the backend interface in the code file with the interface path of the effective interface, the matching method of the backend interface in the code file and the effective interface can be pre-configured in the configuration file. By reading the configuration file, the matching method of the two can be determined.

[0042] For example, if the interface path of the backend interface in the code file is / test / path1 and the matching method is full match, it will successfully match the valid interface with the interface path / test / path1. If the interface path of the backend interface in the code file is / test / path2 and the matching method is partial match, it will successfully match the valid interface with the interface path / test / path2 or / path2.

[0043] Optionally, before obtaining the matching result by matching the interface path of the back-end interface in the code file and the interface path of the valid interface, it also includes: storing the file path of the code file in a first array; and determining the interface path of the back-end interface of the back-end application by traversing the first array.

[0044] Specifically, the file path of the code file can be stored in the first array. Each element in the array can be accessed by the array name and the subscript of the element in the array. The subscript of the element is usually an integer starting from 0, which is used to identify the position of each element in the array. By traversing the first array, the back-end interface in the code file can be quickly and orderly extracted. The advantage of this setting is that it provides an efficient way to store and process large amounts of similar data.

[0045] Optionally, the method is applied to a system storing the back-end application code, where the back-end application includes a back-end application developed using a back-end development framework.

[0046] Example 2

[0047] Figure 2 This is a flow chart of a method for processing interfaces provided in the second embodiment of the present invention. The technical solution of the embodiment of the present invention is further optimized on the basis of the above-mentioned optional technical solutions, and provides a specific method for processing discarded interfaces.

[0048] Optionally, before determining the code file containing the back-end interface by parsing the back-end application, it also includes: creating a configuration file containing the back-end program root directory; wherein, determining the code file containing the back-end interface by parsing the back-end application includes: determining the code file containing the back-end interface by recursively querying the back-end application corresponding to the back-end program root directory in the configuration file.

[0049] Optionally, determining the effective interface through full-link monitoring technology includes: using the full-link monitored interface to obtain interface usage records, and determining the effective interface by parsing the interface usage records, wherein the full-link monitored interface is stored in a configuration file.

[0050] Optionally, before obtaining the matching result by matching the interface path of the back-end interface in the code file and the interface path of the effective interface, it also includes: storing the interface path of the effective interface in a second array; obtaining the interface path of the effective interface in the second array at every preset time interval, wherein the preset time is greater than the time corresponding to the monitoring period of the full-link monitoring.

[0051] like Figure 2 As shown, a method for processing an interface provided by a second embodiment of the present invention is applied to a system storing the backend application code, wherein the backend application includes a backend application developed by a backend development framework, and specifically includes the following steps:

[0052] S201. Determine a code file containing a backend interface by recursively querying a backend application program corresponding to a backend program root directory in a configuration file.

[0053] Among them, the configuration file contains the backend program root directory.

[0054] Specifically, recursive queries can be used to find the required information in complex data structures. Recursive queries are often used to find whether a node or path exists in complex structures such as tree structures or graph structures.

[0055] S202: Store the file path of the code file in a first array; and determine the interface path of the backend interface of the backend application by traversing the first array.

[0056] S203: Obtain interface usage records using the interface monitored by the entire link, and determine the valid interface by parsing the interface usage records.

[0057] The interface for full-link monitoring is stored in a configuration file.

[0058] Specifically, you can first obtain the full-link monitoring interface address from the configuration file, and then call the full-link monitoring interface to obtain a JSON message containing the interface usage record, including (project ID, request time period, and request permissions, etc.). By filtering the interface usage record, you can get the valid interface.

[0059] S204: Store the interface path of the valid interface into a second array.

[0060] S205: Obtain the interface paths of the valid interfaces in the second array at intervals of a preset duration.

[0061] Among them, the preset duration is greater than the duration corresponding to the monitoring cycle of the full-link monitoring.

[0062] For example, if the monitoring period of the full-link monitoring is seven days and the preset duration is ten days, the interface paths of the valid interfaces for the seven days can be stored in the second array first. Then, after the monitoring data of the full-link monitoring is updated, the interface paths of the valid interfaces for the next three days can be stored in the second array. Finally, by reading the second array, the interface paths of the valid interfaces can be obtained.

[0063] S206: Perform a full or partial match on the interface path of the backend interface in the code file and the interface path of the valid interface to obtain a matching result.

[0064] Specifically, the discarded interfaces in the matching result can be understood as elements in the difference set of the first array and the second array.

[0065] S207: Delete the interface according to the matching result.

[0066] The method for processing interfaces provided by an embodiment of the present invention is to check for abandoned interfaces in back-end applications developed with a back-end development framework. Without manual intervention, the back-end interfaces in the back-end project code can be determined. Without manual intervention, the back-end interfaces that have been used recently can be correctly and truly obtained. Through comparison, the back-end interfaces in use and the abandoned back-end interfaces can be determined efficiently and accurately.

[0067] Example 3

[0068] Figure 3 This is a schematic diagram of a device for processing an interface according to the third embodiment of the present invention. Figure 3 As shown, the device includes: a parsing module 301, a matching module 302 and an interface deletion module 303, wherein:

[0069] A parsing module, used to determine the code file containing the backend interface by parsing the backend application;

[0070] A matching module, configured to determine a valid interface through full-link monitoring technology, and obtain a matching result by matching the interface path of the backend interface in the code file with the interface path of the valid interface, wherein the valid interface is a backend interface that has been used within a monitoring period of full-link monitoring, and the matching result includes an abandoned interface and the valid interface;

[0071] The interface deletion module is used to delete the interface according to the matching result.

[0072] The device for processing interfaces provided by an embodiment of the present invention can obtain files containing backend external interfaces in the code by parsing backend applications, without the need for manual statistics. By utilizing the full-link monitoring of access, it can accurately and truly obtain the interfaces in use, without the need for manual log and code analysis. By matching the backend external interface and the interface in use, the abandoned backend interface can be obtained, which solves the problem in the prior art that developers manually search and clean up abandoned interfaces in sequence, resulting in cumbersome screening work, unguaranteed accuracy, and a large amount of development time.

[0073] Optionally, the device further includes:

[0074] A file creation module, configured to create a configuration file containing a backend program root directory before determining the code file containing the backend interface by parsing the backend application;

[0075] The parsing module is specifically used to determine the code file containing the backend interface by recursively querying the backend application corresponding to the backend program root directory in the configuration file.

[0076] Optional matching modules include:

[0077] An effective interface determination unit is used to obtain an interface usage record using the interface of the full-link monitoring, and determine the effective interface by parsing the interface usage record, wherein the interface of the full-link monitoring is stored in a configuration file.

[0078] Optionally, the device further includes:

[0079] A first storage module is configured to store the interface path of the valid interface in a second array before obtaining a matching result by matching the interface path of the backend interface in the code file with the interface path of the valid interface;

[0080] The interface acquisition module is used to obtain the interface path of the valid interface in the second array at intervals of a preset duration, wherein the preset duration is greater than the duration corresponding to the monitoring period of the full-link monitoring.

[0081] Optional matching modules include:

[0082] The matching unit is used to perform full or partial matching on the interface path of the backend interface in the code file and the interface path of the effective interface to obtain a matching result.

[0083] Optionally, the device further includes:

[0084] A second storage module is configured to store the file path of the code file in a first array before obtaining a matching result by matching the interface path of the backend interface in the code file with the interface path of the valid interface;

[0085] The interface determination module is configured to determine the interface path of the backend interface of the backend application by traversing the first array.

[0086] Optionally, the method is applied to a system storing the back-end application code, where the back-end application includes a back-end application developed using a back-end development framework.

[0087] The device for processing an interface provided by an embodiment of the present invention can execute the method for processing an interface provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0088] Example 4

[0089] Figure 4A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0090] like Figure 4 As shown, the electronic device 40 includes at least one processor 41 and a memory, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., which is communicatively connected to the at least one processor 41. The memory stores a computer program that can be executed by the at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 into the random access memory (RAM) 43. Various programs and data required for the operation of the electronic device 40 can also be stored in the RAM 43. The processor 41, ROM 42, and RAM 43 are connected to each other via a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0091] Multiple components in the electronic device 40 are connected to the I / O interface 45, including an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a magnetic disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0092] The processor 41 may be any general-purpose and / or specialized processing component with processing and computing capabilities. Examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors for running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 41 executes the various methods and processes described above, such as the method for processing interfaces.

[0093] In some embodiments, the method for processing an interface may be implemented as a computer program that is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the method for processing an interface described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to perform the method for processing an interface by any other appropriate means (e.g., by means of firmware).

[0094] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip (SOC) systems, complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0095] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0096] The computer device provided above can be used to execute the method for processing the interface provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0097] Example 5

[0098] In the context of the present invention, a computer-readable storage medium may be a tangible medium having computer-executable instructions for executing, when executed by a computer processor, a method for processing an interface, the method comprising:

[0099] Determine the code file containing the backend interface by parsing the backend application;

[0100] Determine a valid interface using full-link monitoring technology, and obtain a matching result by matching the interface path of the backend interface in the code file with the interface path of the valid interface, wherein the valid interface is a backend interface that has been used within a monitoring period of full-link monitoring, and the matching result includes an abandoned interface and the valid interface;

[0101] The interface is deleted according to the matching result.

[0102] In the context of the present invention, computer-readable storage medium can be a tangible medium that can contain or store a computer program for use with an instruction execution system, device or equipment or used in conjunction with an instruction execution system, device or equipment. Computer-readable storage medium can include but is not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage medium can be a machine-readable signal medium. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0103] The computer device provided above can be used to execute the method for processing the interface provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0104] It is worth noting that in the embodiment of the above-mentioned device for processing the interface, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0105] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for processing an interface, characterized in that: include: Determine the code file containing the backend interface by parsing the backend application; Determine a valid interface using full-link monitoring technology, and obtain a matching result by matching the interface path of the backend interface in the code file with the interface path of the valid interface, wherein the valid interface is a backend interface that has been used within a monitoring period of full-link monitoring, and the matching result includes an abandoned interface and the valid interface; The interface is deleted according to the matching result.

2. The method according to claim 1, characterized in that Before determining the code file containing the backend interface by parsing the backend application, the method further includes: Create a configuration file containing the backend program root directory; The step of determining the code file containing the backend interface by parsing the backend application includes: The code file containing the back-end interface is determined by recursively querying the back-end application program corresponding to the back-end program root directory in the configuration file.

3. The method according to claim 1 or 2, characterized in that Determining the effective interface through full-link monitoring technology includes: The interface usage record is obtained by using the interface of the full-link monitoring, and the valid interface is determined by parsing the interface usage record, wherein the interface of the full-link monitoring is stored in the configuration file.

4. The method according to claim 3, characterized in that Before obtaining a matching result by matching the interface path of the backend interface in the code file with the interface path of the valid interface, the method further includes: Storing the interface path of the valid interface in a second array; The interface paths of the valid interfaces in the second array are obtained at intervals of a preset duration, wherein the preset duration is greater than the duration corresponding to the monitoring period of the full-link monitoring.

5. The method according to claim 1, characterized in that The matching result is obtained by matching the interface path of the backend interface in the code file with the interface path of the valid interface, including: Perform a full match or a partial match on the interface path of the backend interface in the code file and the interface path of the valid interface to obtain a matching result.

6. The method according to claim 2, characterized in that Before obtaining a matching result by matching the interface path of the backend interface in the code file with the interface path of the valid interface, the method further includes: Storing the file path of the code file in a first array; The interface path of the backend interface of the backend application is determined by traversing the first array.

7. The method according to claim 1, characterized in that Applicable to a system storing the back-end application code, the back-end application includes a back-end application developed by a back-end development framework.

8. A device for processing an interface, characterized in that: include: A parsing module, used to determine the code file containing the backend interface by parsing the backend application; A matching module, configured to determine a valid interface through full-link monitoring technology, and obtain a matching result by matching the interface path of the backend interface in the code file with the interface path of the valid interface, wherein the valid interface is a backend interface that has been used within a monitoring period of full-link monitoring, and the matching result includes an abandoned interface and the valid interface; The interface deletion module is used to delete the interface according to the matching result.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the method for processing an interface according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for processing an interface according to any one of claims 1 to 7 when the computer instructions are executed.