Unification method and equipment for interface configuration and storage medium

By obtaining and sending configuration information in interface documents in software development, the problem of inconsistent configuration of front-end and back-end interfaces is solved, and development efficiency and joint debugging efficiency are improved.

CN120066562APending Publication Date: 2025-05-30KE COM (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411944492.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In software development, the interface configurations of front-end applications and back-end servers are often inconsistent, resulting in reduced joint debugging and development efficiency.

Method used

By obtaining interface documents at any end in software development, extracting and sending interface configuration information to the other end, ensuring that the interface configurations at both ends are consistent.

Benefits of technology

It realizes consistency of front-end and back-end interface configuration information, reduces the communication cost of joint debugging, and improves the efficiency of software development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066562A_ABST
    Figure CN120066562A_ABST
Patent Text Reader

Abstract

The invention relates to an interface configuration unification method and device and a storage medium, and the method comprises the steps: obtaining an interface document of a first end (any one of a front end and a rear end) in software development, and extracting first configuration information of an interface of the first end from the interface document, the first configuration information is sent to the second end (the other end except the first end in the front end and the rear end) in software development, so that the second end can configure the information of the interface of the first end on the second end according to the first configuration information, and the consistency of the configuration information of the interface of the front end and the rear end is ensured; the communication cost of joint debugging of the front end and the rear end is reduced, and the software development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of software development, and particularly to a unified method, device, and storage medium for interface configuration. Background Art

[0002] In software development, the collaboration between a front-end application and a back-end server often requires joint debugging. However, in practice, since the front-end application and the back-end server are often developed independently, there are often inconsistencies in the configuration of the interfaces between the front-end and the back-end, such as field naming and data format. In this case, the communication efficiency of the front-end and back-end joint debugging and the software development efficiency will be reduced. Summary of the Invention

[0003] To solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a unified method, device, and storage medium for interface configuration.

[0004] In a first aspect, an embodiment of the present disclosure provides a unified method for interface configuration, the method including:

[0005] Obtain an interface document of a first end in software development, where the first end refers to any one of the front end and the back end in the software development;

[0006] Extract first configuration information of the interface of the first end from the interface document;

[0007] Send the first configuration information to a second end in the software development, where the first configuration information is used to configure the interface in the second end according to the first configuration information, and the second end refers to the other end except the first end among the front end and the back end.

[0008] In some embodiments, the extracting the first configuration information of the interface of the first end from the interface document includes:

[0009] Obtain information on the parsing method from a preset field of the interface document;

[0010] Based on the parsing method, parse and obtain the first configuration information from the interface document;

[0011] The first configuration information includes information on the data format of the interface and information on the fields included in the interface, and the information on the fields includes the name and / or data type of the fields.

[0012] In some embodiments, the method provided in the first aspect further includes:

[0013] Upon receiving the update notification of the interface document, obtain the updated content of the interface document;

[0014] Send the updated content to the second party.

[0015] In some embodiments, the step of upon receiving the update notification of the interface document and obtaining the updated content of the interface document includes:

[0016] Obtain the updated interface document; and

[0017] Compare the updated interface document with the interface document before the update to obtain the updated content;

[0018] Or

[0019] Obtain the updated content from the update notification.

[0020] In some embodiments, the method provided in the first aspect may further include:

[0021] Obtain the second configuration information of the second party for the interface;

[0022] Compare the second configuration information with the first configuration information;

[0023] In response to the difference between the second configuration information and the first configuration information, send the difference between the second configuration information and the first configuration information to the first party.

[0024] In some embodiments, the method provided in the first aspect may further include:

[0025] Generate simulation data of the interface according to the first configuration information of the interface;

[0026] Send the simulation data to the second party, and the simulation data is used to implement the joint debugging between the first party and the second party.

[0027] In some embodiments, the step of generating simulation data of the interface according to the first configuration information of the interface includes:

[0028] Based on the first configuration information, determine the fields included in the interface and the data format of the interface;

[0029] Obtain the data of the fields from the data of other interfaces, and at least some fields of the other interfaces are the same as those of the interface;

[0030] Generate data in the data format based on the data of the fields, and use the data in the data format as the simulation data.

[0031] In some embodiments, the method provided in the first aspect may further include:

[0032] In response to receiving the notification message indicating that the interface development is completed, sending the notification message to the second end.

[0033] In some embodiments, the method provided in the first aspect may further include:

[0034] In response to receiving the switching instruction from the second end, based on the switching instruction, connecting the second end to the interface.

[0035] In a second aspect, an embodiment of the present disclosure provides a unified device for interface configuration, and the device includes:

[0036] A first acquisition module, configured to acquire an interface document of a first end in software development, where the first end refers to any one of the front end and the back end in the software development;

[0037] An extraction module, configured to extract first configuration information of the interface of the first end from the interface document;

[0038] A first sending module, configured to: send the first configuration information to a second end in the software development, where the first configuration information is used to configure the interface according to the first configuration information in the second end, and the second end refers to the other end except the first end among the front end and the back end.

[0039] In some embodiments, the extraction module is configured to:

[0040] Obtain information about the parsing method from a preset field of the interface document;

[0041] Based on the parsing method, parse and obtain the first configuration information from the interface document;

[0042] The first configuration information includes information about the data format of the interface and information about the fields included in the interface, and the information about the fields includes the name and / or data type of the fields.

[0043] In some embodiments, the device provided in the second aspect may further include:

[0044] A second acquisition module, configured to acquire the updated content of the interface document in response to receiving the update notification of the interface document;

[0045] A second sending module, configured to send the updated content to the second end.

[0046] In some embodiments, the second acquisition module is configured to:

[0047] Obtain the updated interface document; and

[0048] Compare the updated interface document with the interface document before the update to obtain the updated content;

[0049] Or

[0050] Obtain the updated content from the update notice.

[0051] In some embodiments, the apparatus provided in the second aspect may further include:

[0052] A third acquisition module, configured to acquire second configuration information of the interface by the second end;

[0053] A first comparison module, configured to compare the second configuration information with the first configuration information;

[0054] A third sending module, configured to, in response to the second configuration information being different from the first configuration information, send the difference between the second configuration information and the first configuration information to the first end.

[0055] In some embodiments, the apparatus provided in the second aspect may further include:

[0056] A data generation module, configured to generate simulation data of the interface according to the first configuration information of the interface;

[0057] A fourth sending module, configured to send the simulation data to the second end, where the simulation data is used to implement joint debugging between the first end and the second end.

[0058] In some embodiments, the data generation module is configured to:

[0059] Based on the first configuration information, determine the fields included in the interface and the data format of the interface;

[0060] Obtain the data of the fields from the data of other interfaces, where at least some fields of the other interfaces are the same as those of the interface;

[0061] Based on the data of the fields, generate data in the data format, and use the data in the data format as simulation data.

[0062] In some embodiments, the apparatus provided in the second aspect may further include:

[0063] A fifth sending module, configured to, in response to receiving a notification message that the interface development is completed, send the notification message to the second end.

[0064] In some embodiments, the apparatus provided in the second aspect may further include:

[0065] A connection module, configured to respond to a switching instruction received at the second end, and based on the switching instruction, connect the second end to the interface.

[0066] In a third aspect, an embodiment of the present disclosure provides a computer device, including:

[0067] A memory;

[0068] A processor; and

[0069] A computer program;

[0070] wherein the computer program is stored in the memory and is configured to be executed by the processor to implement any of the methods described in the first aspect.

[0071] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement any of the methods described in the first aspect.

[0072] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including computer program instructions, and when the computer program instructions are executed by a processor, any of the methods described in the first aspect can be implemented.

[0073] The unified method, device, and storage medium for interface configuration provided by the embodiments of the present disclosure obtain the interface document of the first end (any one of the front end and the back end) in software development, extract the first configuration information of the interface of the first end from the interface document, and send the first configuration information to the second end (the other end except the first end in the front end and the back end) in software development, so that the second end can configure the information of the interface of the first end on the second end according to the first configuration information, thereby ensuring the consistency of the interface configuration information of the front end and the back end, reducing the communication cost of joint debugging of the front end and the back end, and improving the efficiency of software development. Description of the Drawings

[0074] The drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.

[0075] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0076] Figure 1It is a flowchart of a unified method for interface configuration provided by an embodiment of the present disclosure;

[0077] Figure 2 It is a schematic diagram of a writing interface of an interface file provided by an embodiment of the present disclosure;

[0078] Figure 3 It is a schematic diagram of a unified manner of interface configuration provided by an embodiment of the present disclosure;

[0079] Figure 4 It is a flowchart of another unified method for interface configuration provided by an embodiment of the present disclosure;

[0080] Figure 5 It is a flowchart of another unified method for interface configuration provided by an embodiment of the present disclosure;

[0081] Figure 6 It is a schematic diagram of a unified method for interface configuration provided by an embodiment of the present disclosure;

[0082] Figure 7 It is a schematic structural diagram of another unified device for interface configuration provided by an embodiment of the present disclosure;

[0083] Figure 8 It is a schematic structural diagram of an embodiment of a computer device provided by an embodiment of the present disclosure. Detailed implementation manners

[0084] In order to be able to more clearly understand the above objects, features, and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments may be combined with each other.

[0085] In the following description, many specific details are set forth in order to fully understand the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all the embodiments.

[0086] Exemplarily, Figure 1 It is a flowchart of a unified method for interface configuration provided by an embodiment of the present disclosure. This method can be executed by a unified device for interface configuration (hereinafter referred to as the unified device). This device can be exemplarily understood as a functional module or a hardware device with processing capabilities and transceiver capabilities. For the convenience of understanding, in the embodiments of the present disclosure, the unified device can be exemplarily understood as a plug-in installed on a front-end or back-end development device. For example, in one example, this plug-in can be installed on the browser of the development device. As Figure 1 shown, in some embodiments, the unified method for interface configuration provided by the embodiments of the present disclosure may include step 101-step 103.

[0087] Step 101: Obtain the interface document of the first end in software development. The first end refers to either the front end or the back end in software development.

[0088] In the embodiments of the present disclosure, the front end of software development mainly involves the development of the visible part of a website or application, such as page layout, style design, user interaction development, etc.

[0089] The back end of software development mainly involves the logic and data processing of the application, the logic of the server side, security, and performance development. The first end referred to in the embodiments of the present disclosure can be the front end of software development or the back end of software development. For ease of understanding, in the embodiments of the present disclosure, the first end can be exemplarily understood as the back end of software development.

[0090] The interface document of the first end can be written by the developer of the first end. The interface document is stored at a preset storage location and can be read through the corresponding Internet Protocol (IP) address.

[0091] Exemplarily, Figure 2 is a schematic diagram of a writing interface of an interface file provided by the embodiments of the present disclosure. As Figure 2 shown, in some embodiments, the R & D personnel of the first end can fill in data such as the function of the interface, the interface request type, the interface request address, the field name, the data type of the field, and the data format on a preset interface, and then through a preset button on the interface ( Figure 2 not shown in Figure 2 ), submit the filled information to the knowledge management system. The knowledge management system sorts out the information filled on the interface into an interface document and stores the interface document at a preset storage location through a document data interface. The plug-in on the second end (i.e., the unified device in the above embodiments) can read the interface document from the preset storage location through the knowledge management system. Of course

[0092]

[0093] In some embodiments, the interface document of the first end may exemplarily include information on the parsing method of the interface document and configuration information of the interface on the first end (hereinafter referred to as the first configuration information). The first configuration information may exemplarily include information on the data format of the interface, information on the fields included in the interface, the interface request type, the interface request address, etc. Among them, the information on the fields included in the interface may include information such as the name and / or data type of the field. Step 102: Extract the first configuration information of the interface of the first end from the interface document.

[0094] In some embodiments, the parsing method of the interface document can be obtained from a preset field of the interface document, and then based on this parsing method, the first configuration information can be parsed from the interface document.

[0095] It should be noted that the parsing method referred to in the embodiments of the present disclosure can be any parsing method provided by the related art, and this parsing method matches the format of the interface document. Among them, for the specific method of parsing the interface document based on this parsing method, reference can be made to the related art, which will not be elaborated here.

[0096] Step 103: Send the first configuration information to the second end in software development. The first configuration information is used to configure the interface at the second end according to the first configuration information. The second end refers to the other end except the first end among the front end and the back end.

[0097] Exemplarily, Figure 3 is a schematic diagram of a unified method for interface configuration provided by the embodiments of the present disclosure. In Figure 3 the example shown, the unified device referred to in the embodiments of the present disclosure can be specifically a plugin. This plugin is installed on the second end (which can be exemplarily understood as the front end in software development). At the same time, an editor can also be included on the second end, and this editor is used to implement the writing of the front-end code to realize the related functions of the front end. As Figure 3 shown, in one example, the plugin can obtain the interface file of the first end from a preset storage location, and parse the first configuration information of the interface on the first end from the interface file through a preset parsing model. Then, the first configuration information is synchronously displayed to the editor in real time. In this way, when the front-end developers are performing front-end development, they can configure information such as the data format and fields (such as the name and / or data type of the fields) of the interface with reference to the first configuration information, so as to ensure the consistency of the interface configuration between the front end and the back end.

[0098] In the embodiments of the present disclosure, by obtaining the interface document of the first end (any one of the front end and the back end) in software development, extracting the first configuration information of the interface of the first end from the interface document, and sending the first configuration information to the second end (the other end except the first end among the front end and the back end) in software development, the second end can configure the information of the interface of the first end on the second end according to the first configuration information, thereby ensuring the consistency of the interface configuration information between the front end and the back end, reducing the communication cost of joint debugging between the front end and the back end, and improving the efficiency of software development.

[0099] Figure 4 is a flowchart of another unified method for interface configuration provided by the embodiments of the present disclosure. As Figure 4 shown, in some embodiments, in Figure 1Based on the illustrated embodiments, the unified method for interface configuration provided by the embodiments of the present disclosure may further include step 401-step 402.

[0100] Step 401: In response to receiving an update notification of the interface document, obtain the updated content of the interface document.

[0101] In some embodiments, the unified device referred to in the embodiments of the present disclosure may subscribe to the update information of the interface document of the first end from the first end or the storage device of the interface document of the first end. When the interface document of the first end is updated, the first end or the storage device of the interface document sends an update notification to the unified device.

[0102] In some embodiments, the update notification may include information about the updated content of the interface document, such as the specific changes in the name of a certain field and / or the specific changes in the data format of the interface, etc. In this case, the updated content of the interface document can be directly obtained from the update notification.

[0103] In other embodiments, the update notification may exemplarily include information about the storage location of the updated interface document. In this case, the updated interface document can be obtained from the corresponding storage location, and then the updated interface document is compared with the interface document before the update to obtain the updated content.

[0104] Step 402: Send the updated content to the second end.

[0105] In the embodiments of the present disclosure, after receiving the update notification of the interface document, the updated content of the interface document is obtained and sent to the second end, so that when the interface document of the first end changes, the second end can also obtain the updated content in a timely manner, thereby ensuring the consistency of the interface configuration between the first end and the second end.

[0106] Exemplarily, in some embodiments, the unified method for interface configuration provided by the embodiments of the present disclosure may further include the steps of obtaining the second configuration information of the second end for the above interface and comparing the second configuration information with the first configuration information. If the second configuration information is different from the first configuration information, the difference between the second configuration information and the first configuration information is sent to the first end, so that the first end can obtain the difference between the second configuration information and the first configuration information in a timely manner, which is convenient for the first end to adjust the first configuration information according to the difference information, thereby ensuring the consistency of the first configuration information and the second configuration information.

[0107] Exemplarily, Figure 5 is a flowchart of another unified method for interface configuration provided by the embodiments of the present disclosure. As Figure 5 shown, in Figure 1 or Figure 4Based on the embodiments, the method provided by the embodiments of the present disclosure may further include step 501-step 502.

[0108] Step 501, generate simulated data of the interface according to the first configuration information of the interface.

[0109] The simulated data referred to in the embodiments of the present disclosure refers to fake data simulated by a preset data simulation method. When the interface at the first end is not yet developed, the joint debugging between the first end and the second end can be implemented based on the simulated data of the interface at the first end.

[0110] Exemplarily, in some embodiments, the information of the fields included in the interface at the first end (such as the names and data types of the fields) and the information of the data format of the interface at the first end can be obtained from the first configuration information first. Then, according to the information of the fields included in the interface at the first end, data for each field is generated, and then, according to the data format of the interface, the data of each field is arranged and combined to obtain the simulated data.

[0111] Among them, the data of each field included in the interface at the first end can be generated by the following methods, but is not limited to the methods listed here.

[0112] Method 1, in some exemplary methods, data for each field can be randomly generated by a preset AI model. The input data of the AI model can be the information of the names and / or data types of the fields included in the interface at the first end, and the output is the data of each field. The AI model referred to in the embodiments of the present disclosure can be trained based on the model training methods provided by related technologies, and the training method is not described in detail in the embodiments of the present disclosure.

[0113] Method 2, in some other exemplary methods, data for each field included in the interface at the first end can also be obtained from the data of other existing interfaces.

[0114] Among them, in one example, the other interfaces referred to in the embodiments of the present disclosure can be understood as interfaces having some fields in common with the interface at the first end. For example, the interface at the first end includes gender and age fields. Interface 1 includes a gender field, and Interface 2 includes an age field. Then, the data of the gender field can be obtained from Interface 1, the data of the age field can be obtained from Interface 2, and the data obtained from Interface 1 and Interface 2 is used as the data of the interface at the first end.

[0115] In another example, the other interfaces referred to in the embodiments of the present disclosure can also be understood as interfaces including all the fields in the interface at the first end. For example, the interface at the first end includes gender and age fields, and Interface 3 includes gender fields, age fields, and name fields. Then, the data of the gender field and the age field can be obtained from Interface 3 as the data of the interface at the first end.

[0116] Step 502: Send the simulation data to the second end, where the simulation data is used to implement the joint debugging between the first end and the second end.

[0117] In the embodiments of the present disclosure, by generating the simulation data of the interface of the first end and sending the simulation data to the second end for joint debugging, it is possible to achieve joint debugging even when the interface of the first end has not been developed completely, without being limited by the development progress of the interface of the first end, thereby improving the efficiency of joint debugging.

[0118] In some embodiments, after the interface of the first end is developed, the first end may send a notification message to the unified device, and the unified device sends the notification message to the second end. At this time, the second end may send a switching instruction to the unified device in a preset manner (such as a button set on the editor), so that the unified device connects the second end to the interface of the first end, thereby realizing efficient switching of the interface.

[0119] Figure 6 is a schematic diagram of a unified method for interface configuration provided by an embodiment of the present disclosure. As Figure 6 shown, in some embodiments, the unified device in the above embodiments may be specifically a plugin. This plugin can be installed on the browser of the second end. Refer to Figure 6 , in some embodiments, the plugin may parse the first configuration information of the interface on the first end from the interface file of the first end based on a preset parsing module, and then send the first configuration information to the editor on the second end for display through a real-time update and synchronization module, so that the R & D personnel on the second end can configure the interface based on the first configuration information, ensuring that the configurations of the interface on the first end and the second end are consistent. When the interface file of the first port is updated, a notification message is sent to the editor of the second end through the notification module, so that the second end can timely obtain the update information of the interface file, thereby ensuring that the configurations of the interface on the first end and the second end are consistent.

[0120] For example, in some embodiments, Figure 6 the plugin shown may further include a time reminder module to send a time reminder to the editor of the second end, such as a reminder for test or software online time, a reminder for joint debugging time, etc.

[0121] It should be noted that Figure 6 the plugin shown can execute the methods in any of the above Figures 1 - 5 embodiments, and its execution manner and beneficial effects are similar, which will not be elaborated here.

[0122] Figure 7 is a schematic structural diagram of another unified device for interface configuration provided by an embodiment of the present disclosure. As Figure 7 shown, in some embodiments, the unified device 70 may include:

[0123] The first acquisition module 71 is configured to acquire an interface document of the first end in software development, where the first end refers to any one of the front end and the back end in the software development;

[0124] The extraction module 72 is configured to extract first configuration information of the interface of the first end from the interface document;

[0125] The first sending module 73 is configured to: send the first configuration information to the second end in the software development, where the first configuration information is used to configure the interface according to the first configuration information in the second end, and the second end refers to the other end except the first end among the front end and the back end.

[0126] In some embodiments, the extraction module 72 is configured to:

[0127] Acquire information on the parsing method from a preset field of the interface document;

[0128] Based on the parsing method, parse and obtain the first configuration information from the interface document;

[0129] The first configuration information includes information on the data format of the interface and information on the fields included in the interface, where the information on the fields includes the names and / or data types of the fields.

[0130] In some embodiments, the unified device 70 may further include:

[0131] The second acquisition module is configured to acquire the updated content of the interface document in response to receiving an update notification of the interface document;

[0132] The second sending module is configured to send the updated content to the second end.

[0133] In some embodiments, the second acquisition module is configured to:

[0134] Acquire the updated interface document; and

[0135] Compare the updated interface document with the interface document before the update to obtain the updated content;

[0136] Or

[0137] Acquire the updated content from the update notification.

[0138] In some embodiments, the unified device 70 may further include:

[0139] The third acquisition module is configured to acquire second configuration information of the interface by the second end;

[0140] A first comparison module, configured to compare the second configuration information with the first configuration information;

[0141] A third sending module, configured to, in response to the second configuration information being different from the first configuration information, send the difference between the second configuration information and the first configuration information to the first end.

[0142] In some embodiments, the unified device 70 may further include:

[0143] A data generation module, configured to generate simulation data of the interface according to the first configuration information of the interface;

[0144] A fourth sending module, configured to send the simulation data to the second end, where the simulation data is used to implement joint debugging of the first end and the second end.

[0145] In some embodiments, the data generation module is configured to:

[0146] Based on the first configuration information, determine the fields included in the interface and the data format of the interface;

[0147] Obtain the data of the fields from the data of other interfaces, where at least some fields of the other interfaces are the same as those of the interface;

[0148] Generate data in the data format based on the data of the fields, and use the data in the data format as simulation data.

[0149] In some embodiments, the unified device 70 may further include:

[0150] A fifth sending module, configured to, in response to receiving a notification message indicating that the interface development is completed, send the notification message to the second end.

[0151] In some embodiments, the unified device 70 may further include:

[0152] A connection module, configured to, in response to receiving a switching instruction from the second end, connect the second end to the interface based on the switching instruction.

[0153] Figure 7 The unified device provided in the embodiment may execute the method in any of the above method embodiments, and its execution manner and beneficial effects are similar, which will not be elaborated here.

[0154] It should also be noted that the division of modules in the above unified device in the embodiments of the present disclosure is illustrative, merely a logical function division, and there may be other division methods in actual implementation. In addition, in each embodiment of the present application, the various functional modules may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0155] If the above integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may be stored in a processor-readable storage medium. Based on such an understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the prior art, or all or part of this technical solution, may be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present disclosure.

[0156] Figure 8 It is a schematic structural diagram of an embodiment of a computer device provided by an embodiment of the present disclosure. As Figure 8 shown, the computer device includes a memory 121 and a processor 122.

[0157] The memory 121 is used to store programs. In addition to the above programs, the memory 121 may also be configured to store various other data to support operations on the computer device. Examples of these data include instructions for any application program or method for operating on the computer device, contact member data, phone book member data, messages, pictures, videos, etc.

[0158] The memory 121 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk or an optical disc.

[0159] In some embodiments, the processor 122 is coupled to the memory 121 and executes the programs stored in the memory 121 to execute the methods of any of the above method embodiments.

[0160] Further, as Figure 8 shown, the computer device may further include: other components such as a communication component 123, a power supply component 124, an audio component 125, a display 126, etc. Figure 8Only some components are schematically shown, which does not mean that the computer device only includes Figure 8 the components shown.

[0161] The communication component 123 is configured to facilitate communication between the computer device and other devices in a wired or wireless manner. The computer device may access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 123 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 123 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0162] The power supply component 124 provides power for various components of the computer device. The power supply component 124 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the computer device.

[0163] The audio component 125 is configured to output and / or input audio signals. For example, the audio component 125 includes a microphone (MIC), which is configured to receive external audio signals when the computer device is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 121 or transmitted via the communication component 123. In some embodiments, the audio component 125 further includes a speaker for outputting audio signals.

[0164] The display 126 includes a screen, and the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may not only sense the boundaries of touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation.

[0165] In addition, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the method described in any one of the above method embodiments.

[0166] In the embodiments of the present disclosure, the above computer-readable storage medium may be any available medium or data storage device accessible by the processor, including but not limited to magnetic memories (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical memories (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor memories (such as ROMs, EPROMs, EEPROMs, non-volatile memories (NAND FLASH), solid state drives (SSD), etc.).

[0167] Those skilled in the art should understand that the embodiments of the present disclosure may be provided as a method, a system, or a computer program product. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories and optical memories, etc.) containing computer-usable program code therein.

[0168] The embodiments of the present disclosure provide a computer program product, including computer program instructions, and when the computer program instructions are executed by a processor, the methods described in any of the above method embodiments can be implemented.

[0169] It should be noted that in this text, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.

[0170] The above are only specific embodiments of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments described herein, but rather will be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A unified method for interface configuration, characterized in that: The method comprises: Obtaining an interface document of a first end in software development, where the first end refers to any one of a front end and a back end in the software development; Extracting first configuration information of the interface of the first end from the interface document; The first configuration information is sent to a second end in the software development, the first configuration information is used to configure the interface in the second end according to the first configuration information, and the second end refers to the other end of the front end and the back end except the first end.

2. The method according to claim 1, characterized in that The extracting the first configuration information of the interface of the first end from the interface document includes: Acquire information of the parsing method from a preset field of the interface document; Based on the parsing method, parse the interface document to obtain the first configuration information; The first configuration information includes information about the data format of the interface and information about fields included in the interface. The field information includes the name and / or data type of the field.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: In response to receiving an update notification of the interface document, obtaining updated content of the interface document; Sending the updated content to the second end; The step of obtaining updated content of the interface document in response to receiving an update notification of the interface document includes: Obtain updated interface documentation; and Compare the updated interface document with the interface document before the update to obtain updated content; or The update content is obtained from the update notification.

4. The method according to claim 1 or 2, characterized in that: The method further comprises: Acquire second configuration information of the interface by the second end; Comparing the second configuration information with the first configuration information; In response to the second configuration information being different from the first configuration information, the difference between the second configuration information and the first configuration information is sent to the first end.

5. The method according to claim 1 or 2, characterized in that: The method further comprises: generating simulation data of the interface according to the first configuration information of the interface; The simulation data is sent to the second end, and the simulation data is used to implement joint debugging of the first end and the second end.

6. The method according to claim 5, characterized in that Generating simulation data of the interface according to the first configuration information of the interface includes: Based on the first configuration information, determining fields included in the interface and a data format of the interface; Acquire data of the field from data of other interfaces, where at least some fields of the other interfaces are the same as those of the interface; Based on the data in the field, data in the data format is generated, and the data in the data format is used as simulation data.

7. The method according to claim 5, characterized in that The method further comprises: In response to receiving a switching instruction of the second end, the second end is connected to the interface based on the switching instruction.

8. A computer device, characterized in that: The computer device comprises: Memory; Processor; and Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 7.

9. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. A computer program product, comprising computer program instructions, which, when executed by a processor, implement the method according to any one of claims 1 to 7.