Interface configuration method, interface calling method and equipment

By determining the attribute parameters and return structure in the configuration interface of the data call interface and generating the data call interface, the problem of high cost and long cycle of traditional interface development is solved, and a more efficient interface configuration process is achieved.

CN119473374APending Publication Date: 2025-02-18CHANGCHUN DAYI GAMMA KNIFE TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411319591.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

Traditional interface development costs are high and the cycle is long, requiring professional programming skills and a lot of manual coding, resulting in low development efficiency.

Method used

Provide an interface configuration method, which determines attribute parameters and return structure through the configuration interface of the data calling interface, generates a data calling interface, and simplifies the interface development configuration process.

Benefits of technology

It reduces the difficulty and cost of interface development, improves the efficiency of interface configuration, and reduces the development cycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473374A_ABST
    Figure CN119473374A_ABST
Patent Text Reader

Abstract

The invention provides an interface configuration method, an interface calling method and equipment, relates to the technical field of Internet, and can solve the problems of high development cost and long period of a traditional interface. The method comprises the steps that attribute parameters of a data calling interface and a return structure of the data calling interface are determined on a configuration interface of the data calling interface, and the return structure is used for indicating a data format of data called by the data calling interface; and generating the data calling interface based on the attribute parameter and the return structure of the data calling interface. The interface development difficulty can be reduced, and the interface configuration efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to an interface configuration method, an interface calling method and a device. Background Art

[0002] With the rapid development of medical information technology, modularization and microservice architecture, as important trends in software development, are gradually becoming the mainstream way to design medical applications. As a bridge for communication between different microservices, the design, implementation and maintenance of interfaces directly affect the performance and reliability of the entire medical application software system.

[0003] However, traditional interface development faces many challenges, such as the need for developers to have professional programming skills, a large amount of manual coding work, and inconsistencies in code and comments. There are also problems such as high interface development costs and long development cycles. Summary of the invention

[0004] The present application provides an interface configuration method, an interface calling method and a device, which solve the problems of high cost and long cycle of traditional interface development, can reduce the difficulty of interface development and improve the efficiency of interface configuration.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides an interface configuration method, the method comprising: in a configuration interface of a data call interface, determining attribute parameters of the data call interface and a return structure of the data call interface, the return structure being used to indicate a data format of data called by the data call interface; and generating a data call interface based on the attribute parameters and the return structure of the data call interface.

[0007] In combination with the above-mentioned first aspect, in a possible implementation method, the configuration interface of the data call interface includes: an attribute parameter configuration interface of the data call interface and a return structure configuration interface of the data call interface; the method also includes: in the attribute parameter configuration interface of the data call interface, in response to the user's operation in the attribute parameter configuration interface, determining the attribute parameters of the data call interface; in the return structure configuration interface of the data call interface, in response to the user's operation in the return structure configuration interface, determining the return structure of the data call interface.

[0008] In conjunction with the first aspect above, in a possible implementation, the attribute parameter configuration interface includes an attribute parameter component; the method further includes: in response to a user setting operation on the attribute parameter component in the attribute parameter configuration interface, determining the attribute parameters of the data call interface. In conjunction with the first aspect above, in a possible implementation, the attribute parameters include at least one of the following: interface name, interface address, request type, interface summary, data set name.

[0009] In combination with the above-mentioned first aspect, in a possible implementation method, the return structure configuration interface of the data call interface includes a preset data model corresponding to the preset data, and the preset data model includes multiple data nodes; the method also includes: in response to the user's first operation on multiple data nodes in the return structure configuration interface, determining the target data model; based on the target data model, generating a return structure.

[0010] In combination with the above-mentioned first aspect, in a possible implementation method, after determining the target data model, the method also includes: in response to the user's second operation on the target data model, modifying the target data model name and / or parameters, and / or the names and / or parameters of each node in the target data model, to obtain a modified target data model; based on the target data model, generating a return structure, including: generating a return structure based on the modified target data model.

[0011] In combination with the above-mentioned first aspect, in a possible implementation method, the method also includes: obtaining target data from preset data through a data call interface, the target data being structured data that satisfies the data format defined by the return structure of the data call interface; based on the interface address of the data call interface, storing the target data in a target database.

[0012] In combination with the first aspect above, in a possible implementation manner, the method further includes: configuring a data management interface; and managing calls to the data call interface through the data management interface based on attribute parameters of the data call interface.

[0013] In a second aspect, the present application provides an interface calling method, the method comprising: in response to a data calling instruction, searching for structured data that meets the calling requirements in the target data stored corresponding to the interface address of the data calling interface through the data calling interface; wherein the data calling interface is configured according to the interface configuration method.

[0014] In a third aspect, the present application provides an interface configuration device, which includes: a processing unit; a processing unit, used to determine the attribute parameters of a data call interface and the return structure of the data call interface in the configuration interface of the data call interface, the return structure being used to indicate the data format of the data called by the data call interface; the processing unit is also used to generate a data call interface based on the attribute parameters and return structure of the data call interface.

[0015] In combination with the above-mentioned third aspect, in a possible implementation method, the configuration interface of the data call interface includes: an attribute parameter configuration interface of the data call interface and a return structure configuration interface of the data call interface; a processing unit is specifically used to: in the attribute parameter configuration interface of the data call interface, determine the attribute parameters of the data call interface in response to the user's operation in the attribute parameter configuration interface; in the return structure configuration interface of the data call interface, determine the return structure of the data call interface in response to the user's operation in the return structure configuration interface.

[0016] In conjunction with the third aspect, in a possible implementation, the attribute parameter configuration interface includes an attribute parameter component; and a processing unit, specifically configured to: determine the attribute parameters of the data call interface in response to a user setting operation on the attribute parameter component in the attribute parameter configuration interface. In conjunction with the third aspect, in a possible implementation, the attribute parameters include at least one of the following: interface name, interface address, request type, interface summary, and data set name.

[0017] In combination with the above-mentioned third aspect, in a possible implementation method, the return structure configuration interface of the data call interface includes a preset data model corresponding to the preset data, and the preset data model includes multiple data nodes; a processing unit is specifically used to: determine the target data model in response to the user's first operation on multiple data nodes in the return structure configuration interface; and generate a return structure based on the target data model.

[0018] In combination with the third aspect above, in a possible implementation method, the processing unit is also used to modify the target data model name and / or parameters, and / or the names and / or parameters of each node in the target data model in response to the user's second operation on the target data model, to obtain a modified target data model; the processing unit is specifically used to: generate a return structure based on the modified target data model.

[0019] In combination with the third aspect above, in a possible implementation method, the processing unit is also used to: obtain target data from preset data through a data call interface, the target data is structured data that satisfies the data format defined by the return structure of the data call interface; based on the interface address of the data call interface, store the target data in the target database.

[0020] In combination with the third aspect above, in a possible implementation, the processing unit is further used to: configure the data management interface; and manage the calls to the data calling interface through the data management interface based on the attribute parameters of the data calling interface.

[0021] In a fourth aspect, the present application provides an interface calling device, which includes: a processing unit, and the processing unit is used to respond to a data calling instruction and search for structured data that meets the calling requirements in the target data stored corresponding to the interface address of the data calling interface through a data calling interface; wherein the data calling interface is configured according to the interface configuration method.

[0022] In a fifth aspect, the present application provides an electronic device comprising: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the interface configuration method described in the first aspect and any possible implementation of the first aspect, or the interface calling method described in the second aspect and any possible implementation of the second aspect.

[0023] In a sixth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a terminal, the terminal executes the interface configuration method described in the first aspect and any possible implementation of the first aspect, or the interface calling method described in the second aspect and any possible implementation of the second aspect.

[0024] In the seventh aspect, the present application provides a computer program product comprising instructions, which, when the computer program product runs on a computer, enables the computer to execute the interface configuration method described in the first aspect and any possible implementation of the first aspect, or the interface calling method described in the second aspect and any possible implementation of the second aspect.

[0025] In an eighth aspect, the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the interface configuration method described in the first aspect and any possible implementation of the first aspect, or the interface calling method described in the second aspect and any possible implementation of the second aspect.

[0026] Specifically, the chip provided in the present application also includes a memory for storing computer programs or instructions.

[0027] It should be noted that the above computer instructions may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor of the device, or may be packaged separately from the processor of the device, which is not limited in this application.

[0028] In a ninth aspect, the present application provides an interface configuration system, comprising: a client and a server, wherein the server is used to execute the interface configuration method as described in the first aspect and any possible implementation manner of the first aspect.

[0029] In a tenth aspect, the present application provides an interface calling system, comprising: a client and a server, wherein the server is used to execute the interface calling method described in the second aspect and any possible implementation of the second aspect.

[0030] The descriptions of the third to tenth aspects in the present application may refer to the detailed descriptions of the first and / or second aspects; and the beneficial effects of the descriptions of the third to tenth aspects may refer to the beneficial effect analysis of the first and / or second aspects, which will not be repeated here.

[0031] In this application, the names of the above-mentioned interface configuration device and interface calling device do not limit the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they fall within the scope of the claims of this application and their equivalent technologies.

[0032] These and other aspects of the present application will become more apparent from the following description.

[0033] Based on the above technical solution, the interface configuration method provided by the present application can determine the attribute parameters of the data call interface and the return structure of the data call interface in the configuration interface of the data call interface, and the return structure is used to indicate the data format of the data called by the data call interface. In other words, the attribute parameters of the data call interface and the return interface are configured based on the configuration interface, and then the data call interface is generated based on the attribute parameters and return structure of the data call interface, which solves the problem of high interface development cost and long development cycle caused by the need for developers to have professional programming skills and a lot of manual coding work in traditional interface development and configuration, greatly simplifies the difficulty of interface development and configuration, and improves the efficiency of interface development and configuration.

[0034] In addition, the interface calling method provided by the present application responds to the data calling instruction and generates a data calling interface through the embodiment of the present application to quickly search for structured data that meets the calling requirements in the target data stored corresponding to the interface address of the data calling interface. Compared with the current method of searching for data that meets the requirements from massive data, the above technical solution can quickly search for data that meets the calling requirements based on the data calling interface, thereby improving the efficiency of data calling. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of the architecture of an interface configuration system provided in an embodiment of the present application;

[0036] Figure 2 A schematic diagram of an attribute parameter configuration interface provided in an embodiment of the present application;

[0037] Figure 3 A schematic diagram of a return structure configuration interface provided in an embodiment of the present application;

[0038] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0039] Figure 5 A flowchart of an interface configuration method provided in an embodiment of the present application;

[0040] Figure 6 A flowchart of another interface configuration method provided in an embodiment of the present application;

[0041] Figure 7 A flowchart of another interface configuration method provided in an embodiment of the present application;

[0042] Figure 8 A flowchart of another interface configuration method provided in an embodiment of the present application;

[0043] Fig. 9 A flowchart of an interface calling method provided in an embodiment of the present application;

[0044] Fig.10 A schematic diagram of the structure of an interface configuration device provided in an embodiment of the present application;

[0045] Fig.11 A schematic diagram of the structure of an interface calling device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0047] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0048] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0049] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0050] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0051] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0052] With the rapid development of medical information technology, modularization and microservice architecture, as important trends in software development, are gradually becoming the mainstream way to design medical applications. As a bridge for communication between different microservices, the design, implementation and maintenance of interfaces directly affect the performance and reliability of the entire medical application software system.

[0053] However, traditional interface development mainly relies on developers to manually write codes for interface development, which has many disadvantages. For example, it requires developers to have professional programming skills, a lot of manual coding work, and inconsistency between code and comments. There are also problems such as high interface development cost, long development cycle, and low development efficiency.

[0054] A data open service method is proposed in the related technology, which mainly includes creating data source list information, creating corresponding database scripts, creating data interfaces, and then publishing the data interfaces to a stable external interface gateway based on the data interfaces, so that the business system can operate database data based on the external interface gateway. This method publishes and offline operations on the target interface service through the page to achieve data interface management, avoiding developers from writing a large amount of interface code, reducing labor costs, and improving delivery speed.

[0055] However, this method still requires pre-creation of code before creating an interface, and the interface development efficiency is still low. In addition, this method operates on the data in the database when called. When subsequent personnel call the data in the database, the data may be tampered with.

[0056] In addition, traditional interface development methods have problems such as high technical threshold, difficult maintenance, lack of flexibility, high error rate, repetitive development work and complex integration testing.

[0057] In order to solve the problems of high interface development cost, long development cycle and low development efficiency, the traditional interface development method relies on programmers to write codes manually, which is cumbersome and time-consuming. Especially when adjusting the interface logic and structure, due to the high complexity, the efficiency of interface adjustment is extremely low.

[0058] In order to address the problem of high technical barriers, traditional interface development methods require certain programming knowledge and experience. For developers who do not have programming skills, the technical barriers required for interface development are high, which limits the participation of non-technical personnel.

[0059] Regarding the maintenance difficulty, with the iteration and expansion of the system, the maintenance of manually written code becomes more and more difficult, especially when handing over a project, the handover personnel need to spend a lot of time to understand the existing interface development code.

[0060] In view of the lack of flexibility, traditional interface development methods are difficult to quickly adapt to changes in demand. For example, when business requirements change, the interface code needs to be rewritten or adjusted, which lacks flexibility and responsiveness.

[0061] Regarding the high error rate, it is easy to introduce errors during manual coding, especially in complex interface logic. Debugging and correcting errors requires additional time and resources.

[0062] To address the issue of repeated development work, similar interfaces may be repeatedly written in multiple projects or modules, which not only causes duplication of development work but also increases code redundancy.

[0063] Regarding the complexity of integration testing, in the manually coded interface development mode, integration testing is usually more complicated, and it is necessary to ensure that each interface can still work normally after integration, which increases the difficulty and workload of testing.

[0064] In view of this, the present application provides an interface configuration method. The interface configuration method provided by the present application can determine the attribute parameters of the data call interface and the return structure of the data call interface in the configuration interface of the data call interface, and the return structure is used to indicate the data format of the data called by the data call interface. In other words, the attribute parameters of the data call interface and the return interface are configured based on the configuration interface, and then the data call interface is generated based on the attribute parameters and return structure of the data call interface, which solves the problem of high interface development cost and long development cycle caused by the traditional interface development configuration requiring developers to have professional programming skills and a lot of manual coding work, greatly simplifies the difficulty of interface development configuration, and improves the efficiency of interface development configuration.

[0065] The implementation of the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.

[0066] Figure 1 This is a schematic diagram of the architecture of an interface configuration system provided in an embodiment of the present application. Figure 1 As shown, the interface configuration system includes: a client 101 and a server 102 .

[0067] The client 101 and the server 102 are connected via a communication link, which may be a wired communication link or a wireless communication link, which is not limited in the present application.

[0068] The following is a detailed introduction to the client 101.

[0069] In some embodiments, the client may be installed on, but not limited to, various personal computers, laptops, smartphones, tablet computers, and portable wearable devices.

[0070] In some embodiments, the client 101 may display the configuration interface of the data call interface through a display tab interface. The client 101 may also display the configuration interface of the data call interface through multiple display tab interfaces, which is not limited in this application.

[0071] In some embodiments, when the configuration interface of the data call interface includes an attribute parameter configuration interface of the data call interface and a return structure configuration interface of the data call interface, the client 101 is used to display the attribute parameter configuration interface and the return structure configuration interface.

[0072] Optionally, the attribute parameter configuration interface and the return structure configuration interface can be displayed simultaneously in a display tab interface of the client 101; the attribute parameter configuration interface and the return structure configuration interface can also be displayed respectively in different display tab interfaces of the client 101, which is not limited in this application.

[0073] Among them, if the attribute parameter configuration interface and the return structure configuration interface can be displayed simultaneously in a display tab interface of the client 101, the user can freely switch between the attribute parameter configuration interface and the return structure configuration interface by dragging, sliding pages or page jumping.

[0074] The page jump is implemented on a display tab interface. For example, when the display tab interface displays the attribute parameter configuration interface, the display tab interface can jump from the display attribute parameter configuration interface to the display return structure configuration interface in response to the user's selection operation on the page jump component. Figure 2 As shown, the attribute parameter configuration interface corresponds to the "first step" component, that is, when the client 101 displays the attribute parameter configuration interface, the "first step" component is in the selected state ( Figure 2 The selected component is shaded in the ), and the Create component and the Complete component are unselected ( Figure 2 Unselected items are marked as blank in the dialog box.

[0075] like Figure 3 As shown, the return structure configuration interface corresponds to the "Create" component, that is, when the client 101 displays the return structure configuration interface, the "Create" component is in a selected state, and the "First Step" component is in a completed configuration state ( Figure 3 The completed configuration is marked with black fill in the figure, and the "Complete" component is unselected.

[0076] In response to the user clicking on the "Create" component in the return structure configuration interface, the "First Step" component and the "Create" component are both in a configuration-completed state, and the "Complete" component is in a selected state, indicating that the interface has been configured.

[0077] Optional, such as Figure 2 As shown, the attribute parameter configuration interface includes attribute parameter components. The attribute parameter components include an "interface name" component, a "request type" component, an "interface address" component, a "request summary" component, a "data set name" component, an "interface parameter" component (for example, at least one of a "name" component, a "type" component, a "requirement" component, and a "description" component) and an "add interface parameter" component.

[0078] For example, the "Interface Name" component consists of an interface name label and a blank area. Users can set the name of the interface in the blank area.

[0079] Optionally, the attribute parameter configuration interface and the return structure configuration interface may also be displayed on different display tab interfaces of the client 101, and the attribute parameter configuration interface further includes a "next step" component.

[0080] In a possible implementation, the client 101 switches from the attribute parameter configuration interface to the structure configuration interface in response to the user clicking the "Next" component in the attribute parameter configuration interface.

[0081] Optional, such as Figure 3 As shown, the returned structure configuration interface includes: a first sub-interface and a second sub-interface.

[0082] Among them, the first sub-interface presents a preset data model. The preset data model includes multiple data nodes. For example, access node, patient number node, hospitalization number node, hospitalization number node, medical staff node. Medical staff nodes include health doctor node, head nurse node, attending doctor node and head nurse node. Each medical staff node includes a work number node and a name node.

[0083] The second sub-interface presents a target data model. The target data model includes at least one node. For example, Figure 3 As shown, corresponding to the user selecting the access node and the patient number node in the first sub-interface through a selection operation, the target data model presented in the second sub-interface includes the access node and the patient number node.

[0084] Optionally, the attribute parameter configuration interface and the return structure configuration interface may also be displayed on different display tab interfaces of the client 101, and the return structure configuration interface further includes a "previous step" component.

[0085] In a possible implementation, the client 101 switches from the returned structure configuration interface to the attribute parameter configuration interface in response to the user clicking the "previous step" component in the returned structure configuration interface.

[0086] Optionally, the return structure configuration interface further includes a "Create" component. In response to the user clicking the "Create" component in the return structure configuration interface, the client 101 instructs the server 102 to create a data call interface based on the return structure and the attribute parameters of the interface.

[0087] The following is a detailed introduction to the server 102.

[0088] The server 102 is an independent physical server, or a server cluster or distributed file system composed of multiple physical servers, or at least one of cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data and artificial intelligence platforms. Of course, the above is only an exemplary introduction to the server 102. The server 102 can also be a relational database management system (for example, MySQL, Oracle Database, or Microsoft SQLServer) and / or a database based on distributed file storage (for example, MongoDB database, HBase database, or Cassandra database), and this application does not impose any restrictions on this.

[0089] In a possible implementation, the server 102 is used to determine the attribute parameters of the data call interface in response to the operation of the user in the attribute parameter configuration interface displayed on the client 101. The server 102 is also used to determine the return structure in response to the user's operation in the return structure configuration interface displayed on the client 101.

[0090] In addition, the server 102 is also used to store preset data, target data, attribute parameters of the data call interface, and return structure, etc. For example, a relational database management system is used to store the return structure; a database based on distributed file storage is used to store preset data, target data and / or attribute parameters of the data call interface.

[0091] The preset data is the data in the medical field. The target data is the structured data that meets the data format defined by the return structure of the data call interface.

[0092] Optionally, the number of the above servers 102 can be more or less, which is not limited in the embodiment of the present disclosure. Of course, the server 102 can also include other functional servers to provide more comprehensive and diverse services.

[0093] When implemented by hardware, the various modules in the interface configuration system can be integrated into Figure 4 The hardware structure of the electronic device shown is implemented. Specifically, Figure 4 As shown, the basic hardware structure of electronic equipment is introduced.

[0094] Figure 4 The hardware structure diagram of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 4As shown, the electronic device includes at least one processor 401, a communication line 402, and at least one communication interface 404, and may also include a memory 403. The processor 401, the memory 403 and the communication interface 404 may be connected via the communication line 402.

[0095] Processor 401 can be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as: one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA).

[0096] The communication link 402 may include a pathway for transmitting information between the above-mentioned components.

[0097] The communication interface 404 is used to communicate with other devices or communication networks, and can use any transceiver-like device, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0098] The memory 403 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to include or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0099] In one possible design, the memory 403 can exist independently of the processor 401, that is, the memory 403 can be a memory outside the processor 401. In this case, the memory 403 can be connected to the processor 401 through the communication line 402, and is used to store execution instructions or application program codes, and the execution is controlled by the processor 401 to implement the interface configuration method and / or interface calling method provided in the following embodiments of the present application. In another possible design, the memory 403 can also be integrated with the processor 401, that is, the memory 403 can be the internal memory of the processor 401, for example, the memory 403 is a high-speed cache, which can be used to temporarily store some data and instruction information, etc.

[0100] As a possible implementation, the processor 401 may include one or more CPUs, for example Figure 4 As another possible implementation, the electronic device may include multiple processors, such as Figure 4 As another possible implementation, the electronic device may further include an output device 405 and an input device 406.

[0101] It should be pointed out that the various embodiments of the present application can learn from or refer to each other. For example, the same or similar steps, method embodiments, system embodiments and device embodiments can all refer to each other without limitation.

[0102] Figure 5 The present invention provides a flowchart of an interface configuration method, which can be applied to a server in an interface configuration system. Figure 5 As shown, the method includes the following S501-S502.

[0103] S501. In the configuration interface of the data calling interface, determine the attribute parameters of the data calling interface and the return structure of the data calling interface.

[0104] The attribute parameters can be set according to the actual situation. Usually, the attribute parameters include at least one of the following: interface name, interface address, request type, interface summary, data set name, and interface input parameters and / or interface output parameters. The return structure is used to indicate the data format of the data called by the data call interface.

[0105] Exemplarily, the return structure may be a lightweight data exchange format (javascript object notation, JSON) expression. Of course, the above is only an exemplary description of the return structure, and the return structure may also be an extensible markup language (XML), plain text format, binary format, hypertext markup language fragment or comma-separated values ​​(CSV) file format, and this application does not make any limitation on this.

[0106] Optionally, the configuration interface of the data call interface (e.g., a world wide web (Web) interface) can simultaneously display the attribute parameter configuration interface of the data call interface and the return structure configuration interface of the data call interface. The configuration interface of the data call interface can also first display the attribute parameter configuration interface of the data call interface, and after the attribute parameter configuration is completed, in response to the user's operation, the configuration interface of the data call interface switches from the data parameter configuration interface to the return structure configuration interface of the data call interface.

[0107] In a possible implementation, the implementation process of S501 includes: determining the attribute parameters of the data calling interface and the return structure of the data calling interface in response to the user's operations in the attribute parameter configuration interface and / or the return structure configuration interface respectively.

[0108] Specifically, in the case where the configuration interface of the data call interface includes an attribute parameter configuration interface of the data call interface and a return structure configuration interface of the data call interface, the process of determining the attribute parameters of the data call interface and the return structure of the data call interface in response to the user's operations in the attribute parameter configuration interface and / or the return structure configuration interface, respectively, refers to the embodiment shown in S601-S602, and will not be repeated here.

[0109] S502: Generate a data calling interface based on the attribute parameters and return structure of the data calling interface.

[0110] In a possible implementation, based on the technology stack and interface requirements, an interface technology is selected, and based on the performance, scalability and security requirements of the interface, a programming language is selected. Further, based on the selected interface technology and programming language, a data call interface is implemented.

[0111] Among them, the interface technology includes but is not limited to at least one of the following: representational state transfer application programming interface (RESTfulAPI) technology, simple object access protocol (SOAP), and remote procedure call (RPC) technology.

[0112] Optionally, the configuration interface of the data call interface includes a "Create" component. In response to the user clicking the "Create" component in the return structure configuration interface, the data call interface is created based on the return structure and the attribute parameters of the interface.

[0113] Optionally, after the data call interface is generated, the data call interface is tested and debugged through methods such as unit testing, integration testing, and end-to-end testing to ensure the correctness and stability of the interface.

[0114] Based on the above technical solution, the interface configuration method provided by the present application can determine the attribute parameters of the data call interface and the return structure of the data call interface in the configuration interface of the data call interface, and the return structure is used to indicate the data format of the data called by the data call interface. In other words, the attribute parameters of the data call interface and the return interface are configured based on the configuration interface, and then the data call interface is generated based on the attribute parameters and return structure of the data call interface, which solves the problem of high interface development cost and long development cycle caused by the need for developers to have professional programming skills and a lot of manual coding work in traditional interface development and configuration, greatly simplifies the difficulty of interface development and configuration, and improves the efficiency of interface development and configuration.

[0115] As a possible embodiment of the present application, the configuration interface of the data call interface includes: an attribute parameter configuration interface of the data call interface and a return structure configuration interface of the data call interface. Figure 5 ,like Figure 6 As shown, the implementation process of determining the attribute parameters of the data calling interface and the return structure of the data calling interface in the above S501 may include the following S601-S602.

[0116] S601: In an attribute parameter configuration interface of a data calling interface, in response to a user operation in the attribute parameter configuration interface, determine attribute parameters of the data calling interface.

[0117] In one possible implementation, corresponding to the attribute parameter configuration interface including attribute parameter components corresponding to each attribute parameter, the implementation of S601 may include: in response to the user's setting operation (for example, input operation, filling operation and / or selection operation) on each attribute parameter component in the attribute parameter configuration interface, determining the attribute parameters of the data call interface.

[0118] Further, after determining the attribute parameters of the data call interface, or before determining the attribute parameters of the data call interface, or while determining the attribute parameters of the data call interface, the attribute parameters of the data call interface are stored in the target database based on the interface address of the data call interface.

[0119] The attribute parameter component includes at least one of the following: an interface name component, an interface address component, a request type component, an interface summary component, a data set name component, and an interface input parameter component and / or an interface output parameter component. The attribute parameter component is used to set different attributes of the interface. For example, the interface name component is used to set the name of the interface.

[0120] It can be understood that in response to the user's setting operations on the input parameter components of the interface (for example, the "interface parameters" component (including but not limited to the "name" component, the "type" component, the "requirements" component and at least one of the "description" components) and the "add interface parameters" component), the interface can be personalized according to actual conditions.

[0121] S602: In a return structure configuration interface of the data call interface, in response to a user operation in the return structure configuration interface, determine a return structure of the data call interface.

[0122] Among them, the return structure configuration interface of the data call interface includes a preset data model corresponding to the preset data, and the preset data model includes multiple data nodes. With the accumulation of business data, a preset data model corresponding to the preset data can be formed, and each data node in the preset data model contains value information, that is, each data node is a node that can be valued. For example, the doctor's order node is a node from which doctor's order information can be obtained.

[0123] For example, when the preset data is medical data, the preset data may be doctor's orders, patient information, and fees. Patient information is embedded with patient basic information, medical team, and patient diagnostic tests. Fees are embedded with categories, names, and time. Doctor's orders may be embedded with drug use, etc.

[0124] Correspondingly, the multiple data nodes in the preset data model can be doctor's order nodes, patient information nodes, and expense nodes. The patient information node is nested with patient basic information sub-nodes, medical team sub-nodes, and patient diagnosis and test sub-nodes. The expense node is nested with category sub-nodes, name sub-nodes, and time sub-nodes. The doctor's order node can be nested with drug use sub-nodes, etc.

[0125] In a possible implementation, the return structure configuration interface includes a preset data model corresponding to the preset data, and the preset data model includes multiple data nodes. The implementation process of S602 includes: determining a target data model in response to a first operation of the user on the multiple data nodes; and generating a return structure based on the target data model.

[0126] For example, Figure 3 As shown, in response to the user's selection operation on the "visit" node and the "patient number" node among the multiple data nodes, the data nodes in the target data model are determined to be the "visit" node and the "patient number" node.

[0127] Furthermore, after generating the return structure of the data call interface, the return structure is stored in a relational database management system (for example, the return structure is stored in MySQL, or the return structure is stored in Oracle Database, or the return structure is stored in Microsoft SQL Server, or the return structure is stored in a DB2 database).

[0128] Optionally, the first operation includes but is not limited to at least one of the following: a selection operation, a drag operation, a adding operation, and a deleting operation.

[0129] Optionally, corresponding to the user performing a first operation on one or more of the multiple data nodes, the target data model may be composed of one or more of the multiple data nodes.

[0130] In another possible implementation, in response to a user's first operation on multiple data nodes, a target data model is determined; after the target data model is determined, the target data model may be personalized according to actual conditions, for example, in response to a user's second operation, the target data model may be personalized.

[0131] Specifically, in response to the user's second operation on the target data model, the target data model name and / or parameters, and / or the names and / or parameters of each node in the target data model are modified to obtain a modified target data model; based on the modified target data model, a return structure is generated.

[0132] Optionally, the second operation may be a custom operation. It should be noted that the custom operation does not change the structure of the data and the data model, but only personalizes the name of the target data model and / or the name of the node in the target data model.

[0133] For example, the return structure of the data call interface is a JSON expression. The JSON expression can be defined as a JSON expression in a single value format, a list format, or a nested format.

[0134] For example, taking medical orders as an example, a JSON expression in a single-value format can be the unique identifier (identity document, ID) of the medical order; a JSON expression in a list format can be brief information of the medical order, such as the ID of the medical order, the ID of the patient corresponding to the medical order, the ID of the doctor corresponding to the medical order, and instructions for use of the medicine; a JSON expression in a nested format can be detailed information of the medical order, such as the ID of the medical order, the ID of the patient corresponding to the medical order, the doctor information corresponding to the medical order, and instructions for use of the medicine, and the doctor information is nested with information such as the doctor's ID, the doctor's name, and the doctor's department.

[0135] Based on the above technical solution, in the attribute parameter configuration interface of the data call interface, the attribute parameters of the data call interface are determined in response to the user's operation in the attribute parameter configuration interface, which simplifies the configuration process of the interface attribute parameters and greatly reduces the difficulty of interface parameter configuration. In the return structure configuration interface of the data call interface, the return structure of the data call interface is determined in response to the user's operation in the return structure configuration interface, which reduces the difficulty of configuring the interface return structure.

[0136] As a possible embodiment of the present application, Figure 5 ,like Figure 7 As shown, the process of assigning data to the target data model can be implemented through the following S701-S702.

[0137] S701. Obtain target data from preset data through a data calling interface.

[0138] The target data is structured data that meets the data format defined by the return structure of the data call interface.

[0139] In a possible implementation, an execution script for processing data is invoked through a scheduling tool (e.g., Apache Dolphin Scheduler (DC) scheduling tool, XXL task scheduling platform (XXL-JOB), Apache Airflow scheduling tool, or Linkis scheduling tool) or a processing method of a common parsing structure. Then, based on the execution script and preset data, the return structure of the data call interface stored in the relational database management system is cleaned to obtain the target data. That is, based on the execution script, the structured data in the data format defined by the return structure in the preset data is assigned to the return structure.

[0140] The execution script may be a Python script, a structured query language (SQL) script, a JavaScript script, or a command line interpreter (Shell) script, which is not limited in this application.

[0141] S702: Based on the interface address of the data calling interface, store the target data into the target database.

[0142] Optionally, the target database may be a database based on distributed file storage (eg, a MongoDB database). Of course, the above is only an exemplary description of the target database, and the target database may also be other databases, such as an HBase database or a Cassandra database, which is not limited in this application.

[0143] In a possible implementation, taking the target database as a MongoDB database as an example, in the MongoDB database, the target data is stored under the interface address of the data call interface, so that the target data can be subsequently queried based on the interface address of the data call interface.

[0144] Based on the above technical solution, the target data is obtained from the preset data through the data call interface, and then the target data is stored in the target database based on the interface address of the data call interface. The above technical solution can assign structured data to the return structure of the interface to instantiate the interface.

[0145] As a possible embodiment of the present application, Figure 5 ,like Figure 8 As shown, the process of managing the data call interface can be implemented through the following S801-S802.

[0146] S801. Configure data management interface.

[0147] In a possible implementation, the client displays a configuration interface of the data management interface. In the configuration interface of the data management interface, in response to the user's configuration operations on various attribute parameter components in the configuration interface (e.g., drag operations, selection operations, custom operations, input operations, or deletion operations, etc.), the server completes the parameter configuration of the data management interface. Then, the server configures the data management interface and the management items (e.g., in response to the user's operations such as checking different data call interfaces or other different types of interfaces in the configuration interface, the server determines the management mapping relationship between the data management interface and the managed interface), and completes the configuration of the data management interface.

[0148] The management item is an interface item corresponding to a data call interface or an interface item corresponding to other different types of interfaces.

[0149] In another possible implementation, the server may generate a data management interface in response to a coding operation by the user.

[0150] S802: Based on the attribute parameters of the data calling interface, the data calling interface is called and managed through the data management interface.

[0151] In a possible implementation, the server manages calls to the data call interface based on attribute parameters of the data call interface through an open source programming framework and an object-oriented programming language.

[0152] Among them, open source programming frameworks include but are not limited to at least one of the following: SpringCloud framework, Django framework, Ruby on Rails framework, Spring Boot framework, Express.js framework, Next.js framework, TensorFlow framework, PyTorch framework, Apache Spark framework, Flutter framework or React Native framework. Object-oriented programming languages ​​include but are not limited to at least one of the following: JAVA language, C language, C++ language, C# language, Python language, Ruby language.

[0153] Furthermore, the server also manages the arbitrary interface through the data management interface based on the attribute parameters of the arbitrary interface, wherein the arbitrary interface may include all interfaces or multiple interfaces.

[0154] Based on the above technical solution, a data management interface is configured, and based on the attribute parameters of the data call interface, the data call interface is called and managed through the data management interface. The above technical solution can realize unified management of different interfaces.

[0155] Fig. 9The flowchart of an interface calling method provided in an embodiment of the present application can be applied to a server of an interface calling system. Fig. 9 As shown, the method includes the following S901-S902.

[0156] S901. In response to a data calling instruction, searching, through a data calling interface, for structured data that meets the calling requirement in target data stored corresponding to an interface address of the data calling interface.

[0157] Among them, the data call interface is configured according to the interface configuration method.

[0158] In a possible implementation, the data call instruction includes attribute parameters of the data call interface. The implementation process of S901 includes: based on the attribute parameters, determining the data call interface corresponding to the attribute parameters through the data management interface generated by the interface configuration method; and then, through the data call interface, searching for structured data that meets the call requirements in the structured data stored corresponding to the interface address of the data call interface.

[0159] Exemplarily, instructions for any interface (such as httpServletRequest), including data call instructions for the data call interface, all enter the data management interface, and the data management interface obtains structured data that meets the call requirements from a database based on distributed file storage according to the interface parameters and interface path address carried in the instructions.

[0160] It is understandable that, since different interfaces are uniformly managed by the data management interface, calling data through the data management interface can not only solve the problem of overly complicated processes when calling different interfaces, but also further improve the efficiency of interface calling.

[0161] It should be noted that the httpServletRequest object represents the client's request instruction. When the client accesses the server through the http protocol, all the information in the http request header is encapsulated in this object. Through the methods provided by this object, all the information requested by the client can be obtained.

[0162] Based on the above technical solution, in response to a data call instruction, the data call interface can be used to quickly search for structured data that meets the call requirements in the target data stored corresponding to the interface address of the data call interface. Compared with the current method of searching for data that meets the requirements from massive data, the above technical solution can quickly search for data that meets the call requirements based on the data call interface, thereby improving the efficiency of data calls.

[0163] The embodiment of the present application can divide the interface configuration device into functional modules or functional units according to the above-mentioned interface configuration method example. For example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.

[0164] like Fig.10 , which is a schematic diagram of the structure of an interface configuration device 100 provided in an embodiment of the present application, the interface configuration device 100 includes: a processing unit 1001.

[0165] Processing unit 1001 is used to determine the attribute parameters of the data call interface and the return structure of the data call interface in the configuration interface of the data call interface, and the return structure is used to indicate the data format of the data called by the data call interface; processing unit 1001 is also used to generate a data call interface based on the attribute parameters and return structure of the data call interface.

[0166] In one possible implementation, the configuration interface of the data call interface includes: an attribute parameter configuration interface of the data call interface and a return structure configuration interface of the data call interface; the processing unit 1001 is specifically used to: in the attribute parameter configuration interface of the data call interface, determine the attribute parameters of the data call interface in response to the user's operation in the attribute parameter configuration interface; in the return structure configuration interface of the data call interface, determine the return structure of the data call interface in response to the user's operation in the return structure configuration interface.

[0167] In a possible implementation, the attribute parameter configuration interface includes an attribute parameter component; the processing unit 1001 is specifically used to: determine the attribute parameters of the data call interface in response to the user's setting operation on the attribute parameter component in the attribute parameter configuration interface. In a possible implementation, the attribute parameters include at least one of the following: interface name, interface address, request type, interface summary, and data set name.

[0168] In one possible implementation, the return structure configuration interface of the data call interface includes a preset data model corresponding to the preset data, and the preset data model includes multiple data nodes; the processing unit 1001 is specifically used to: determine the target data model in response to the user's first operation on the multiple data nodes in the return structure configuration interface; and generate a return structure based on the target data model.

[0169] In one possible implementation, the processing unit 1001 is also used to modify the target data model name and / or parameters, and / or the names and / or parameters of each node in the target data model in response to a second operation of the user on the target data model, to obtain a modified target data model; the processing unit is specifically used to generate a return structure based on the modified target data model.

[0170] In one possible implementation, the processing unit 1001 is also used to: obtain target data from preset data through a data call interface, where the target data is structured data that satisfies the data format defined by the return structure of the data call interface; and store the target data in a target database based on the interface address of the data call interface.

[0171] In combination with the third aspect, in a possible implementation, the processing unit 1001 is further used to: configure the data management interface; and manage the data call interface through the data management interface based on the attribute parameters of the data call interface. In a possible implementation, the interface configuration device 100 may also include a storage unit 1002 ( Fig.10 The storage unit 1002 stores a program or instruction. When the processing unit 1001 executes the program or instruction, the interface configuration device 100 can execute the interface configuration method described in the above method embodiment.

[0172] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0173] In addition, the embodiment of the present application also provides an interface calling system. The interface calling method is applied to the interface calling system, and the interface calling system may include: Figure 1 Client and server shown.

[0174] The client and the server are connected via a communication link, which may be a wired communication link or a wireless communication link, which is not limited in this application.

[0175] In some embodiments, the client can provide a local service program for the user. The client is used to send a data call instruction to the server in response to the user's operation.

[0176] Furthermore, the server receives a data calling instruction from the client, and based on the data calling instruction, searches for structured data that meets the calling requirements through a data calling interface corresponding to the data calling instruction.

[0177] Optionally, the client can be installed on but not limited to various personal computers, laptops, smart phones, tablet computers, and portable wearable devices.

[0178] Optionally, the server is an independent physical server, or a server cluster or distributed file system composed of multiple physical servers, or at least one of cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data and artificial intelligence platforms. Of course, the above is only an exemplary introduction to the server. The server can also be a relational database management system (for example, MySQL, Oracle Database or Microsoft SQLServer) and / or a database based on distributed file storage (for example, MongoDB database, HBase database or Cassandra database), and this application does not impose any restrictions on this.

[0179] When implemented through hardware, the various modules in the interface call system can be integrated into Figure 4 For the specific introduction of the electronic device, please refer to the embodiment shown in Figure 4, which will not be repeated here.

[0180] The embodiment of the present application can divide the interface calling device into functional modules or functional units according to the above-mentioned interface calling method example. For example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.

[0181] like Fig.11 , which is a schematic diagram of the structure of an interface calling device 110 provided in an embodiment of the present application, wherein the interface calling device 110 includes: a processing unit 1101 .

[0182] The processing unit 1101 is used to respond to the data call instruction and search for structured data that meets the call requirement in the target data stored corresponding to the interface address of the data call interface through the data call interface; wherein the data call interface is configured according to the interface configuration method.

[0183] In a possible implementation, the interface calling device 110 may further include a storage unit 1102 ( Fig.11 The storage unit 1102 stores a program or instruction. When the processing unit 1101 executes the program or instruction, the interface calling device 110 can execute the interface calling method described in the above method embodiment.

[0184] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0185] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the interface configuration method or the interface calling method in the above method embodiment.

[0186] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the interface configuration method or the interface calling method in the method flow shown in the above method embodiment.

[0187] Among them, the computer readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a register, a hard disk, 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 above, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0188] Since the interface configuration device, interface calling device, computer-readable storage medium, and computer program product in the embodiments of the present application can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be repeated here.

[0189] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0190] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of this disclosure can be achieved, and this document is not limited here.

[0191] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

[0192] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0193] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0194] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An interface configuration method, characterized in that: The method comprises: In the configuration interface of the data calling interface, determining the attribute parameters of the data calling interface and the return structure of the data calling interface, wherein the return structure is used to indicate the data format of the data called by the data calling interface; The data calling interface is generated based on the attribute parameters of the data calling interface and the return structure.

2. The interface configuration method according to claim 1, characterized in that: The configuration interface of the data calling interface includes: an attribute parameter configuration interface of the data calling interface and a return structure configuration interface of the data calling interface; Determining the attribute parameters of the data calling interface and the return structure of the data calling interface in the configuration interface of the data calling interface includes: In the attribute parameter configuration interface of the data calling interface, in response to the user's operation in the attribute parameter configuration interface, determining the attribute parameters of the data calling interface; In the return structure configuration interface of the data call interface, in response to the user's operation in the return structure configuration interface, the return structure of the data call interface is determined.

3. The interface configuration method according to claim 2, characterized in that: The attribute parameter configuration interface includes an attribute parameter component; the determining the attribute parameters of the data calling interface in response to the user's operation in the attribute parameter configuration interface includes: In response to the user's setting operation on the attribute parameter component in the attribute parameter configuration interface, the attribute parameters of the data calling interface are determined.

4. The interface configuration method according to claim 1, characterized in that: The attribute parameters include at least one of the following: interface name, interface address, request type, interface summary, and data set name.

5. The interface configuration method according to claim 2, characterized in that: The return structure configuration interface of the data call interface includes a preset data model corresponding to the preset data, and the preset data model includes a plurality of data nodes; The step of determining the return structure of the data calling interface in response to the user's operation in the return structure configuration interface includes: In response to a first operation of the user on the plurality of data nodes in the return structure configuration interface, determining a target data model; Based on the target data model, the return structure is generated.

6. The interface configuration method according to claim 5, characterized in that: After determining the target data model, the method further includes: In response to the second operation of the user on the target data model, modify the target data model name and / or parameters, and / or the names and / or parameters of each node in the target data model to obtain a modified target data model; The generating the return structure based on the target data model includes: Based on the modified target data model, the return structure is generated.

7. The interface configuration method according to claim 1, characterized in that: The method further comprises: Obtaining target data from preset data through the data calling interface, wherein the target data is structured data satisfying a data format defined by a return structure of the data calling interface; Based on the interface address of the data calling interface, the target data is stored in a target database.

8. The interface configuration method according to claim 1, characterized in that: The interface configuration method further includes: Configuration data management interface; Based on the attribute parameters of the data calling interface, the data calling interface is called and managed through the data management interface.

9. An interface calling method, characterized in that: The method comprises: In response to a data call instruction, the data call interface searches for structured data that meets the call requirements in the target data stored corresponding to the interface address of the data call interface; wherein the data call interface is configured according to the interface configuration method described in any one of claims 1-8.

10. An electronic device, characterized in that: include: A processor and a communication interface; the communication interface is coupled to the processor, and the processor is used to run a computer program or instruction to implement the interface configuration method as described in any one of claims 1 to 8, or the interface calling method as described in claim 9.