Page rendering method and device, electronic equipment and computer readable storage medium

CN116069312BActive Publication Date: 2026-09-22CCB FINTECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310093091.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-31
Publication Date
2026-09-22
Estimated Expiration
2043-01-31

AI Technical Summary

Technical Problem

[0004]在实现本公开构思的过程中,发明人发现相关技术中至少存在如下问题:无法保障应用程序开发的效率和准确性

Benefits of technology

[0064]根据本公开的实施例,由于配置数据是根据至少一个目标接口标识确定的,至少一个目标接口标识是根据页面渲染指令中的目标统一资源定位地址获取的,因而配置数据能够表征至少一个目标接口标识各自对应的目标对象名称字段和目标对象值字段,由此提高了数据集成的效率。在此基础上,由于目标页面是根据与至少一个目标接口标识各自对应的目标脚本渲染得到的,目标脚本是根据至少一个目标对象名称字段和与至少一个目标对象名称字段各自对应的目标对象值字段确定的,由此能够降低前端和后端人员之间的联调成本,因而至少部分的克服了相关技术中无法保障应用程序开发的效率和准确性的技术问题,进而能够提高应用程序开发和页面渲染的效率和准确性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116069312B_ABST
    Figure CN116069312B_ABST
Patent Text Reader

Abstract

The present disclosure provides a page rendering method and device, electronic equipment and computer readable storage medium, which can be applied to the technical field of network and the technical field of financial technology. The method comprises: in response to receiving a page rendering instruction, obtaining at least one target interface identifier according to a target uniform resource locator in the page rendering instruction; determining configuration data corresponding to each of the at least one target interface identifier according to the at least one target interface identifier, the configuration data comprising at least one target object name field and a target object value field corresponding to each of the at least one target object name field; determining a target script corresponding to each of the at least one target interface identifier according to the at least one target object name field and the target object value field corresponding to each of the at least one target object name field; and rendering a target page corresponding to each of the at least one target interface identifier according to the target script corresponding to each of the at least one target interface identifier.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the fields of network technology and financial technology, and more specifically, to a page rendering method and apparatus, electronic device, computer-readable storage medium and computer program product. Background Technology

[0002] With the development of network technology, the demand for software application development is increasing day by day, and low-code technology has emerged.

[0003] Low-code can refer to a more efficient approach based on graphical drag-and-drop and parameterized configuration, where applications are assembled and configured using visual modeling in a graphical interface, enabling rapid building, data orchestration, ecosystem connectivity, and middleware services.

[0004] In realizing the concept disclosed herein, the inventors discovered at least the following problems in the related technologies: the efficiency and accuracy of application development cannot be guaranteed. Summary of the Invention

[0005] In view of the above, this disclosure provides a page rendering method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product.

[0006] According to one aspect of this disclosure, a page rendering method is provided, comprising:

[0007] In response to receiving a page rendering instruction, at least one target interface identifier is obtained based on the target Uniform Resource Locator address in the page rendering instruction.

[0008] Based on the at least one target interface identifier, configuration data corresponding to each of the at least one target interface identifier is determined, wherein the configuration data includes at least one target object name field and a target object value field corresponding to each of the at least one target object name field;

[0009] Based on the at least one target object name field and the target object value field corresponding to each of the at least one target object name field, determine the target script corresponding to each of the at least one target interface identifier; and

[0010] Based on the target scripts corresponding to at least one target interface identifier, render the target pages corresponding to at least one target interface identifier.

[0011] According to embodiments of this disclosure, determining the configuration data corresponding to each of the at least one target interface identifier includes:

[0012] For each of the at least one target interface identifiers mentioned above,

[0013] Create a table page corresponding to the target interface identifier mentioned above within a predefined table object;

[0014] Based on the target interface identifier mentioned above, obtain the data to be processed corresponding to the target interface identifier mentioned above;

[0015] Based on the table page corresponding to the aforementioned target interface identifier and the data to be processed, construct at least one target key-value relationship corresponding to the aforementioned target interface identifier; and

[0016] Based on the at least one target key-value relationship corresponding to the target interface identifier, determine the configuration data corresponding to the target interface identifier.

[0017] According to embodiments of this disclosure, obtaining the data to be processed corresponding to the target interface identifier includes:

[0018] Based on the target interface identifiers mentioned above, determine the target development language and target development framework corresponding to the target interface identifiers;

[0019] Based on the target development language and framework described above, determine the target data structure and target data type; and

[0020] Based on the target interface identifier, the target data structure, and the target data type, obtain the data to be processed corresponding to the target interface identifier.

[0021] According to embodiments of this disclosure, obtaining the data to be processed corresponding to the target interface identifier based on the target interface identifier, the target data structure, and the target data type includes:

[0022] Based on the target interface identifier, the target data structure, and the target data type, determine the input parameter object and output parameter object corresponding to the target interface identifier.

[0023] Based on the input parameter object corresponding to the target interface identifier, obtain the input parameter data corresponding to the input parameter object.

[0024] Based on the output parameter object corresponding to the target interface identifier, obtain the output parameter data corresponding to the aforementioned output parameter object; and

[0025] Based on the input parameter data corresponding to the input parameter object and the output parameter data corresponding to the output parameter object, the data to be processed is determined.

[0026] According to embodiments of this disclosure, constructing at least one target key-value relationship corresponding to the target interface identifier based on the table page corresponding to the target interface identifier and the data to be processed includes:

[0027] Based on the input and output parameter objects corresponding to the above target interface identifier, determine the object name field;

[0028] Based on the input parameter data corresponding to the input parameter object and the output parameter data corresponding to the output parameter object, determine the object value field corresponding to the object name field; and

[0029] Using the above table page, construct at least one target key-value relationship corresponding to the target interface identifier based on the above object name field and the object value field corresponding to the above object name field.

[0030] According to embodiments of this disclosure, determining the configuration data corresponding to the target interface identifier based on at least one target key-value relationship corresponding to the target interface identifier includes:

[0031] For each of the at least one target key-value relationship mentioned above,

[0032] Based on the object name field in the target key-value relationship, determine the target validation rules corresponding to the target key-value relationship.

[0033] Based on the aforementioned target verification rules, the aforementioned target key-value relationships are verified to obtain the verification results corresponding to the aforementioned target key-value relationships; and

[0034] Based on the above verification results, the above configuration data is determined.

[0035] According to embodiments of this disclosure, determining the target validation rule corresponding to the target key-value relationship based on the object name field in the target key-value relationship includes:

[0036] Based on the object name field mentioned above, at least one of the first preset verification rules in the first preset verification rule set is matched to obtain the matching result;

[0037] If the above matching result indicates that there exists a first preset verification rule in the above-mentioned first preset verification rule set that successfully matches the above-mentioned object name field, then the above-mentioned target verification rule is determined according to the above-mentioned first preset verification rule set; and

[0038] If the above matching result indicates that there is no first preset verification rule in the first preset verification rule set that successfully matches the above object name field, the above target verification rule is determined according to the second preset verification rule set.

[0039] According to embodiments of this disclosure, determining the configuration data based on the verification results includes:

[0040] If the above verification results indicate that the target key-value relationship has failed the verification, then delete the target key-value relationship; and

[0041] If the above verification results indicate that the target key-value relationship has passed the verification, the target key-value relationship will be determined as the above configuration data.

[0042] According to embodiments of this disclosure, determining the target script corresponding to each of the at least one target interface identifier based on the at least one target object name field and the target object value field corresponding to each of the at least one target object name field includes:

[0043] For each of the at least one target interface identifiers mentioned above,

[0044] Invoke the script to generate the template corresponding to the target interface identifier mentioned above; and

[0045] Using the above script to generate a template, a target script corresponding to the above target interface identifier is generated based on the above at least one target object name field and the target object value field corresponding to each of the above at least one target object name field.

[0046] According to embodiments of this disclosure, the aforementioned target Uniform Resource Locator (URL) is used to indicate the target Swagger user interface.

[0047] According to embodiments of this disclosure, the above-mentioned response to receiving a page rendering instruction, obtaining at least one target interface identifier based on the target Uniform Resource Locator (URL) in the page rendering instruction, includes:

[0048] Based on the aforementioned target Uniform Resource Locator (URL), display the target Swagger user interface corresponding to the aforementioned target URL; and

[0049] Based on the target Swagger user interface, obtain at least one target interface identifier corresponding to the target Swagger user interface.

[0050] According to embodiments of this disclosure, the above-described page rendering method further includes:

[0051] The first target interface displays the target script corresponding to each of the above-mentioned at least one target interface identifier; and

[0052] The second target interface displays the target page corresponding to each of the above-mentioned at least one target interface identifier.

[0053] According to another aspect of this disclosure, a page rendering apparatus is provided, comprising:

[0054] The acquisition module is used to, in response to receiving a page rendering instruction, acquire at least one target interface identifier based on the target Uniform Resource Locator address in the page rendering instruction.

[0055] The first determining module is used to determine configuration data corresponding to each of the at least one target interface identifier based on the at least one target interface identifier, wherein the configuration data includes at least one target object name field and a target object value field corresponding to each of the at least one target object name field.

[0056] The second determining module is used to determine the target script corresponding to each of the at least one target interface identifier based on the at least one target object name field and the target object value field corresponding to each of the at least one target object name field; and

[0057] The rendering module is used to render the target page corresponding to each of the at least one target interface identifier, based on the target script corresponding to each of the at least one target interface identifier.

[0058] According to another aspect of this disclosure, an electronic device is provided, comprising:

[0059] One or more processors;

[0060] Memory, used to store one or more instructions.

[0061] When one or more of the above instructions are executed by one or more processors, the one or more processors cause the one or more processors to implement the method as described in this disclosure.

[0062] According to another aspect of this disclosure, a computer-readable storage medium is provided having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the methods described in this disclosure.

[0063] According to another aspect of this disclosure, a computer program product is provided, which includes computer-executable instructions that, when executed, are used to perform the methods described in this disclosure.

[0064] According to embodiments of this disclosure, since the configuration data is determined based on at least one target interface identifier, and the at least one target interface identifier is obtained based on the target Uniform Resource Locator (URL) in the page rendering instruction, the configuration data can characterize the target object name field and the target object value field corresponding to each of the at least one target interface identifier, thereby improving the efficiency of data integration. Furthermore, since the target page is rendered based on the target script corresponding to each of the at least one target interface identifier, and the target script is determined based on at least one target object name field and the target object value field corresponding to each of the at least one target object name field, the cost of joint debugging between front-end and back-end personnel can be reduced. Therefore, this at least partially overcomes the technical problem in related technologies that cannot guarantee the efficiency and accuracy of application development, thereby improving the efficiency and accuracy of application development and page rendering. Attached Figure Description

[0065] The above and other objects, features and advantages of this disclosure will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:

[0066] Figure 1 This illustration schematically shows a system architecture to which page rendering methods can be applied according to embodiments of the present disclosure;

[0067] Figure 2 A flowchart illustrating a page rendering method according to an embodiment of the present disclosure is shown schematically;

[0068] Figure 3 This illustration schematically shows an example diagram of a method for determining configuration data corresponding to at least one target interface identifier based on at least one target interface identifier according to an embodiment of the present disclosure;

[0069] Figure 4 This illustration schematically shows an example diagram of a method for obtaining data to be processed corresponding to a target interface identifier based on a target interface identifier according to an embodiment of the present disclosure;

[0070] Figure 5 This illustration schematically shows an example of a method for constructing at least one target key-value relationship corresponding to a target interface identifier based on a table page corresponding to the target interface identifier and data to be processed, according to an embodiment of the present disclosure.

[0071] Figure 6 This illustration schematically shows an example of a method for determining configuration data corresponding to a target interface identifier based on at least one target key-value relationship corresponding to the target interface identifier, according to an embodiment of the present disclosure.

[0072] Figure 7 A block diagram schematically illustrates a page rendering apparatus according to an embodiment of the present disclosure; and

[0073] Figure 8 A block diagram of an electronic device suitable for implementing a page rendering method according to an embodiment of the present disclosure is shown schematically. Detailed Implementation

[0074] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.

[0075] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0076] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.

[0077] When using expressions such as "at least one of A, B, and C," the expression should generally be interpreted in accordance with the meaning commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, and C" should include, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.). Similarly, when using expressions such as "at least one of A, B, or C," the expression should generally be interpreted in accordance with the meaning commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, or C" should include, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).

[0078] In the technical solution disclosed herein, the acquisition, storage, and application of user personal information comply with the provisions of relevant laws and regulations, necessary confidentiality measures have been taken, and there is no violation of public order and good morals.

[0079] In the technical solution disclosed herein, the user's authorization or consent is obtained before acquiring or collecting the user's personal information.

[0080] In related technologies, after a form is created, it is usually necessary to map the data source of the application system. For example, the database and tables under the data source are mapped, and the table structure is provided to display the corresponding field information and field descriptions in order to achieve the binding design of low-code form data.

[0081] However, this solution is inefficient and relies on the backend database table structure. It requires checking and filling in the data one by one against the data source. If the database or table changes, it will affect the binding of the frontend data structure, and secondary development will be required.

[0082] To at least partially address the technical problems existing in related technologies, this disclosure provides a page rendering method, apparatus, electronic device, and computer-readable storage medium, which can be applied to the fields of network technology and fintech. The page rendering method includes: in response to receiving a page rendering instruction, obtaining at least one target interface identifier based on a target Uniform Resource Locator (URL) in the page rendering instruction; determining configuration data corresponding to each of the at least one target interface identifier based on the at least one target interface identifier, wherein the configuration data includes at least one target object name field and a target object value field corresponding to each of the at least one target object name field; determining a target script corresponding to each of the at least one target interface identifier based on the at least one target object name field and the target object value field corresponding to each of the at least one target object name field; and rendering a target page corresponding to each of the at least one target interface identifier based on the target script corresponding to each of the at least one target interface identifier.

[0083] It should be noted that the page rendering method and apparatus provided in this disclosure can be used in the fields of network technology and fintech, such as in the field of computer technology. The page rendering method and apparatus provided in this disclosure can also be used in any field other than network technology and fintech, such as in the field of software development technology. The application fields of the page rendering method and apparatus provided in this disclosure are not limited.

[0084] Figure 1 The illustration schematically depicts a system architecture to which a page rendering method can be applied according to embodiments of this disclosure. It should be noted that... Figure 1 The examples shown are merely examples of system architectures that can be applied to the embodiments of this disclosure, in order to help those skilled in the art understand the technical content of this disclosure, but do not mean that the embodiments of this disclosure cannot be used in other devices, systems, environments or scenarios.

[0085] like Figure 1As shown, the system architecture 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0086] Users can interact with server 105 via network 104 using at least one of the first terminal device 101, second terminal device 102, and third terminal device 103 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, second terminal device 102, and third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).

[0087] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.

[0088] Server 105 can be a server that provides various services, such as a backend management server that supports websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103 (this is just an example). The backend management server can analyze and process data such as received user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal devices.

[0089] It should be noted that the page rendering method provided in this embodiment can generally be executed by server 105. Correspondingly, the page rendering apparatus provided in this embodiment can generally be located in server 105. The page rendering method provided in this embodiment can also be executed by a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105. Correspondingly, the page rendering apparatus provided in this embodiment can also be located in a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105.

[0090] Alternatively, the page rendering method provided in this embodiment of the present disclosure can also be executed by the first terminal device 101, the second terminal device 102, or the third terminal device 103, or by other terminal devices different from the first terminal device 101, the second terminal device 102, or the third terminal device 103. Correspondingly, the page rendering apparatus provided in this embodiment of the present disclosure can also be disposed in the first terminal device 101, the second terminal device 102, or the third terminal device 103, or in other terminal devices different from the first terminal device 101, the second terminal device 102, or the third terminal device 103.

[0091] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0092] It should be noted that the sequence numbers of the operations in the following methods are for descriptive purposes only and should not be considered as indicating the execution order of the operations. Unless explicitly stated otherwise, the method does not need to be executed in the exact order shown.

[0093] Figure 2 A flowchart illustrating a page rendering method according to an embodiment of the present disclosure is shown schematically.

[0094] like Figure 2 As shown, the page rendering method 200 includes operations S210 to S240.

[0095] In operation S210, in response to receiving a page rendering instruction, at least one target interface identifier is obtained based on the target Uniform Resource Locator address in the page rendering instruction.

[0096] In operation S220, configuration data corresponding to each of the at least one target interface identifier is determined based on at least one target interface identifier, wherein the configuration data includes at least one target object name field and a target object value field corresponding to each of the at least one target object name field.

[0097] In operation S230, a target script corresponding to at least one target interface identifier is determined based on at least one target object name field and a target object value field corresponding to each of the at least one target object name field.

[0098] In operation S240, the target page corresponding to each of the at least one target interface identifier is rendered according to the target script corresponding to each of the at least one target interface identifier.

[0099] According to embodiments of this disclosure, interface development and page rendering can be performed based on low-code. Low-code can refer to a method for rapidly designing and developing software applications with minimal manual coding. Low-code allows developers to skip infrastructure development and perform interface development and page rendering by assembling and configuring applications using visual modeling in a graphical interface.

[0100] According to embodiments of this disclosure, code for generating page rendering instructions can be pre-written into a script. In response to detecting a page rendering operation initiated by a user terminal on a predetermined page, the user terminal can run the script to generate page rendering instructions. After the user terminal generates the page rendering instructions, the page rendering instructions can be sent to a server so that the server can obtain at least one target interface identifier based on the target Uniform Resource Locator (URL) in the page rendering instructions.

[0101] According to embodiments of this disclosure, the reservation page may include a Swagger user interface (UI). The reservation page may have corresponding reservation page data. The reservation page data may include main application code and component data. A target Uniform Resource Locator (URL) may be used to indicate the target Swagger user interface. Swagger can refer to an Application Programming Interface (API) testing and management tool. Swagger enables clients and file systems to update at the same speed as servers. Swagger provides a specification and complete framework that can be used to generate, describe, invoke, and visualize RESTful web services. A series of projects and tools derived from Swagger can generate API interface documentation in various formats.

[0102] According to embodiments of this disclosure, an API can refer to a set of definitions, procedures, and protocols that enable communication between computer software. An API can provide a general set of functions. After receiving a page rendering instruction, at least one target interface identifier can be obtained based on the target Uniform Resource Locator (URL) in the page rendering instruction. Each of the at least one target interface identifier can correspond to a target interface. User terminals can develop applications by calling APIs, thereby reducing programming tasks.

[0103] According to embodiments of this disclosure, after obtaining at least one target interface identifier, configuration data corresponding to each of the at least one target interface identifier can be determined based on the at least one target interface identifier. The configuration data may include at least one target object name field and a target object value field corresponding to each of the at least one target object name field. The target object name field may include at least one of the following: basic call information parameters, request parameters, and response parameters. The basic call information parameters may include at least one of the following: request URL, path parameters, and request method. The request parameters may include at least one of the following: request headers and request body. The response parameters may include at least one of the following: response headers and response body.

[0104] According to embodiments of this disclosure, after obtaining configuration data corresponding to at least one target interface identifier, a script generation template corresponding to each of the at least one target interface identifier can be invoked. Using the script generation template corresponding to each of the at least one target interface identifier, the target object name field and target object value field corresponding to each of the at least one target interface identifier are processed to obtain the target script corresponding to each of the at least one target interface identifier. The target script may refer to an executable file written using a predetermined descriptive language and according to a predetermined format. The target script may be in Hyper Text Markup Language (HTML) format.

[0105] According to embodiments of this disclosure, after obtaining the target script corresponding to each of the at least one target interface identifier, unit information of each of the at least one UI unit in the target page can be determined based on the target script corresponding to each of the at least one target interface identifier. Based on the unit information of each of the at least one UI unit, element information of at least one graphic element is determined. The target page is drawn based on the element information of the at least one graphic element. After obtaining the target page corresponding to each of the at least one target interface identifier, the target page corresponding to each of the at least one target interface identifier can be displayed.

[0106] According to embodiments of this disclosure, since the configuration data is determined based on at least one target interface identifier, and the at least one target interface identifier is obtained based on the target Uniform Resource Locator (URL) in the page rendering instruction, the configuration data can characterize the target object name field and the target object value field corresponding to each of the at least one target interface identifier, thereby improving the efficiency of data integration. Furthermore, since the target page is rendered based on the target script corresponding to each of the at least one target interface identifier, and the target script is determined based on at least one target object name field and the target object value field corresponding to each of the at least one target object name field, the cost of joint debugging between front-end and back-end personnel can be reduced. Therefore, this at least partially overcomes the technical problem in related technologies that cannot guarantee the efficiency and accuracy of application development, thereby improving the efficiency and accuracy of application development and page rendering.

[0107] The following is for reference. Figures 3-6 The page rendering method 200 according to an embodiment of the present invention will be further described.

[0108] According to embodiments of this disclosure, a target Uniform Resource Locator (URL) can be used to indicate a target Swagger user interface.

[0109] According to embodiments of this disclosure, operation S210 may include the following operations.

[0110] Based on the target Uniform Resource Locator (URL), display the target Swagger user interface corresponding to the target URL. Based on the target Swagger user interface, obtain at least one target API identifier corresponding to the target Swagger user interface.

[0111] According to embodiments of this disclosure, forms can be constructed using Vue and ElementUI. Upon receiving page rendering instructions, a target Swagger user interface corresponding to the target Uniform Resource Locator (URL) can be displayed.

[0112] According to embodiments of this disclosure, in response to an interface configuration operation performed by a user on the target Swagger user interface, at least one target interface identifier corresponding to the target Swagger user interface can be obtained. The at least one target interface identifier can be used to characterize the target interface to be invoked. Target interface binding can be achieved through the target Swagger user interface.

[0113] According to embodiments of this disclosure, since at least one target interface identifier is obtained based on the target unified resource address in the page rendering instruction, it avoids the need to shorten the interface development cycle and reduce the difficulty of interface maintenance.

[0114] Figure 3The illustration shows an example diagram of a method for determining configuration data corresponding to at least one target interface identifier based on at least one target interface identifier according to an embodiment of the present disclosure.

[0115] like Figure 3 As shown, the method 300 includes operations S321 to S324.

[0116] In operation S321, for each target interface identifier in at least one target interface identifier, a table page corresponding to the target interface identifier is created in a predefined table object.

[0117] In operation S322, the data to be processed corresponding to the target interface identifier is obtained based on the target interface identifier.

[0118] In operation S323, based on the table page corresponding to the target interface identifier and the data to be processed, at least one target key-value relationship corresponding to the target interface identifier is constructed.

[0119] In operation S324, configuration data corresponding to the target interface identifier is determined based on at least one target key-value relationship corresponding to the target interface identifier.

[0120] According to embodiments of this disclosure, a predefined table object can be created using drag-and-drop or similar methods. After obtaining the predefined table object, a table page corresponding to the target interface identifier can be created within the predefined table object using drag-and-drop or similar methods.

[0121] According to embodiments of this disclosure, after obtaining the table page corresponding to the target interface identifier, the data to be processed corresponding to the target interface identifier can be retrieved based on the target interface identifier. The data to be processed is in JSON (JavaScript Object Notation) format. The data to be processed may include an object name field (i.e., key) and an object value field (i.e., value). The object name field can be used to uniquely identify the control. The object value field can be used to represent the configuration data of the control.

[0122] According to embodiments of this disclosure, after obtaining the data to be processed corresponding to the target interface identifier, the object name field in the data to be processed can be added to a first predetermined position on the table page, and the object value field in the data to be processed can be added to a second predetermined position on the table page to construct at least one target key-value relationship corresponding to the target interface identifier. The first and second predetermined positions can be set according to actual business needs and are not limited herein. For example, the first and second predetermined positions can be located in the same row.

[0123] According to embodiments of this disclosure, after obtaining at least one target key-value relationship corresponding to a target interface identifier, the target key-value relationship can be validated according to the target validation rules corresponding to the target key-value relationship to obtain a validation result corresponding to the target key-value relationship. After obtaining the validation result corresponding to the target key-value relationship, the configuration data corresponding to the target interface identifier can be determined based on the validation result corresponding to the target key-value relationship.

[0124] According to embodiments of this disclosure, since the table page is created within a predefined table object, the efficiency of table page construction can be improved. Furthermore, since the configuration data is determined based on at least one target key-value relationship corresponding to the target interface identifier, and this target key-value relationship is constructed based on the table page corresponding to the target interface identifier and the data to be processed, visual programming can be achieved, thereby improving the efficiency and accuracy of application development and page rendering.

[0125] According to embodiments of this disclosure, operation S322 may include the following operations.

[0126] Based on the target interface identifier, determine the target development language and target development framework corresponding to the target interface identifier. Based on the target development language and target development framework, determine the target data structure and target data type. Based on the target interface identifier, target data structure, and target data type, obtain the data to be processed corresponding to the target interface identifier.

[0127] According to embodiments of this disclosure, a target data structure can refer to a collection of data elements having structural characteristics. The target data structure can include a data logical structure, a data physical structure, and a data storage structure. A data logical structure can refer to a data structure that reflects the logical relationships between data elements. Logical relationships can refer to the sequential relationships between data elements. A data logical structure can include at least one of the following: array structure, stack structure, queue structure, linked list structure, tree structure, graph structure, heap structure, and hash table structure. A data physical structure can refer to the representation of the data structure in a computer. A data storage structure can include at least one of the following: sequential storage, linked storage, indexed storage, and hash storage.

[0128] According to embodiments of this disclosure, the target data type may include at least one of the following: the smallest data type (i.e., Byte), short integer (i.e., Short), integer (i.e., Int), long integer (i.e., Long), floating-point (i.e., Float), double-precision floating-point (i.e., Double), character (i.e., Char), and Boolean (i.e., Boolean). After obtaining the target data structure and target data type, the data to be processed corresponding to the target interface identifier can be obtained based on the target interface identifier, the target data structure, and the target data type.

[0129] According to embodiments of this disclosure, since the data to be processed is obtained based on the target interface identifier, target data structure, and target data type, Swagger-based data integration is achieved. This enables developers to generate not only static pages but also bind backend data, thereby saving frontend developers the development process of integrating backend services and reducing the cost of joint debugging between frontend and backend personnel.

[0130] According to embodiments of this disclosure, obtaining the data to be processed corresponding to the target interface identifier based on the target interface identifier, target data structure, and target data type may include the following operations.

[0131] Based on the target interface identifier, target data structure, and target data type, determine the input parameter object and output parameter object corresponding to the target interface identifier. Based on the input parameter object corresponding to the target interface identifier, obtain the input parameter data corresponding to that object. Based on the output parameter object corresponding to the target interface identifier, obtain the output parameter data corresponding to that object. Based on the input parameter data and output parameter data corresponding to the input and output parameter objects, determine the data to be processed.

[0132] According to embodiments of this disclosure, interface information corresponding to a target interface identifier can be obtained from a JSON data stream based on the target interface identifier, target data structure, and target data type. The interface information may include basic interface information and attribute information. Basic information may include the interface name, interface address, output parameter objects, and input parameter objects. Attribute information may include the interface's input and output parameter object information. The input and output parameter objects corresponding to the target interface identifier can be determined based on the basic information corresponding to the target interface identifier.

[0133] According to embodiments of this disclosure, after obtaining the input parameter object and output parameter object corresponding to the target interface identifier, the input parameter data corresponding to the input parameter object can be obtained from the attribute information based on the input parameter object. The output parameter data corresponding to the output parameter object can be obtained from the attribute information based on the output parameter object. The input parameter data and output parameter data may include at least one of the following: interface field name, field type, field length, and whether it is required.

[0134] According to embodiments of this disclosure, after obtaining the input and output parameter data corresponding to the target interface identifier, a table can be generated in a predefined table object based on the input and output parameter objects. The table is then filled with data in the corresponding positions based on the input and output parameter data to determine the data to be processed.

[0135] Figure 4 The illustration shows an example diagram of a method for obtaining data to be processed corresponding to a target interface identifier based on a target interface identifier according to an embodiment of the present disclosure.

[0136] like Figure 4 As shown in 400, the target development language 402 and target development framework 403 corresponding to the target interface identifier 401 can be determined based on the target interface identifier 401.

[0137] After obtaining the target development language 402 and target development framework 403 corresponding to the target interface identifier 401, the target data structure 404 and target data type 405 can be determined based on the target development language 402 and target development framework 403.

[0138] After obtaining the target data structure 404 and the target data type 405, the input parameter object 406 and the output parameter object 407 corresponding to the target interface identifier 401 can be determined based on the target interface identifier 401, the target data structure 404, and the target data type 405.

[0139] After determining the input parameter object 406 and output parameter object 407 corresponding to the target interface identifier 401, the input parameter data 408 corresponding to the input parameter object 406 can be obtained. The output parameter data 409 corresponding to the output parameter object 407 can be obtained.

[0140] After obtaining the input parameter data 408 corresponding to the input parameter object and the output parameter data 409 corresponding to the output parameter object 407, the data to be processed 410 can be determined based on the input parameter data 408 corresponding to the input parameter object and the output parameter data 409 corresponding to the output parameter object 407.

[0141] According to embodiments of this disclosure, operation S323 may include the following operations.

[0142] Based on the input and output parameter objects corresponding to the target interface identifier, determine the object name field. Based on the input data corresponding to the input parameter object and the output data corresponding to the output parameter object, determine the object value field corresponding to the object name field. Using the table page, construct at least one target key-value relationship corresponding to the target interface identifier based on the object name field and the object value field corresponding to the object name field.

[0143] According to embodiments of this disclosure, after obtaining the input parameter object and output parameter object corresponding to the target interface identifier, the object name field (i.e., key) can be determined based on the input parameter object and output parameter object. The object value field (i.e., value) corresponding to the object name field can be determined based on the input parameter data and output parameter data.

[0144] According to embodiments of this disclosure, after obtaining the object name field, the object name field can be filled into a third predetermined position on the table page, and the object value field corresponding to the object name field can be filled into a fourth predetermined position on the table page to construct at least one target key-value relationship corresponding to the target interface identifier. The third and fourth predetermined positions can be set according to actual business needs and are not limited herein. For example, the third and fourth predetermined positions can be located in the same row.

[0145] According to embodiments of this disclosure, since the object name field is determined based on the input parameter object and output parameter object corresponding to the target interface identifier, and the object value field is determined based on the input parameter data corresponding to the input parameter object and the output parameter data corresponding to the output parameter object, the object name field and the object value field can be matched one-to-one. Furthermore, since at least one target key-value relationship is constructed using a table page based on the object name field and the object value field corresponding to the object name field, the binding of corresponding fields can be automatically achieved, thereby improving the efficiency and accuracy of page rendering.

[0146] Figure 5 The illustration shows an example diagram of a method for constructing at least one target key-value relationship corresponding to a target interface identifier based on a table page corresponding to the target interface identifier and data to be processed, according to an embodiment of the present disclosure.

[0147] like Figure 5 As shown in Figure 500, the object name field 505 can be determined based on the input parameter object 501 and the output parameter object 502 corresponding to the target interface identifier. The object value field 506 corresponding to the object name field 505 can be determined based on the input parameter data 503 corresponding to the input parameter object 501 and the output parameter data 504 corresponding to the output parameter object 502.

[0148] After obtaining the object name field 505 and the object value field 506 corresponding to the object name field 505, the table page can be used to construct at least one target key-value relationship 507 corresponding to the target interface identifier based on the object name field 505 and the object value field 506 corresponding to the object name field 505.

[0149] According to embodiments of this disclosure, operation S324 may include the following operations.

[0150] For each target key-value relationship in at least one target key-value relationship, determine the target validation rule corresponding to the target key-value relationship based on the object name field in the target key-value relationship. Validate the target key-value relationship according to the target validation rule to obtain the validation result corresponding to the target key-value relationship. Determine the configuration data based on the validation result.

[0151] According to embodiments of this disclosure, for each target key-value relationship in at least one target key-value relationship, a target validation rule corresponding to the target key-value relationship can be determined. The target validation rule can be determined based on the object name field in the target key-value relationship. The target validation rule can be used to validate the target key-value relationship to determine whether the target key-value relationship can be identified as configuration data.

[0152] According to embodiments of this disclosure, after obtaining the target verification rules corresponding to the target key-value relationship, the target key-value relationship can be verified according to the target verification rules to obtain a verification result corresponding to the target key-value relationship. The verification result may include one of the following: the target key-value relationship verification passed or the target key-value relationship verification failed. After obtaining the verification result corresponding to the target key-value relationship, configuration data can be determined based on the verification result.

[0153] According to embodiments of this disclosure, determining the target validation rule corresponding to the target key-value relationship based on the object name field in the target key-value relationship may include the following operations.

[0154] Based on the object name field, at least one of the first preset validation rules in the first preset validation rule set is matched to obtain a matching result. If the matching result indicates that there is a first preset validation rule in the first preset validation rule set that successfully matches the object name field, the target validation rule is determined according to the first preset validation rule set. If the matching result indicates that there is no first preset validation rule in the first preset validation rule set that successfully matches the object name field, the target validation rule is determined according to the second preset validation rule set.

[0155] According to embodiments of this disclosure, a first preset validation rule set can be pre-defined. The first preset validation rule set may include at least one first preset validation rule. Each of the at least one first preset validation rule may correspond to a first preset object name field. For example, if the first preset object name field is "Time", then the first preset validation rule corresponding to "Time" can be "Render as Time Control". If the first preset object name field is "Required", then the first preset validation rule corresponding to "Required" can be "require=true".

[0156] According to embodiments of this disclosure, the object name field and at least one first preset object name field can be matched based on the object name field in the target key-value relationship. If the object name field successfully matches one of the at least one first preset object name fields, the first preset verification rule corresponding to that first preset object name field can be determined as the target verification rule.

[0157] According to embodiments of this disclosure, a second preset verification rule set can be pre-set. The second preset verification rule set may include at least one second preset verification rule. The at least one second preset verification rule can be a custom rule. Each of the at least one second preset verification rule may correspond to a second preset object name field. If the object name field fails to match any of the first preset object name fields among the at least one second preset object name fields, the object name field and the at least one second preset object name field can be matched separately. If the object name field successfully matches any of the at least one second preset object name fields, the second preset verification rule corresponding to that second preset object name field can be determined as the target verification rule.

[0158] According to embodiments of this disclosure, determining the configuration data based on the verification results may include the following operations.

[0159] If the verification result indicates that the target key-value relationship fails, the target key-value relationship is deleted. If the verification result indicates that the target key-value relationship passes, the target key-value relationship is designated as configuration data.

[0160] According to embodiments of this disclosure, the verification result can be used to determine whether the target key-value relationship can be identified as configuration data. The verification result can include one of the following: the target key-value relationship verification passed or failed. If the verification result indicates that the target key-value relationship verification failed, meaning the target key-value relationship cannot be identified as configuration data, the target key-value relationship can be deleted. If the verification result indicates that the target key-value relationship verification passed, meaning the target key-value relationship can be identified as configuration data, the target key-value relationship can be identified as configuration data.

[0161] According to embodiments of this disclosure, since the target validation rules are determined based on the object name field in the target key-value relationship, the accuracy of data integration can be improved by validating the target key-value relationship according to the target validation rules, thereby improving the accuracy of application development and page rendering.

[0162] Figure 6The illustration shows an example diagram of a method for determining configuration data corresponding to a target interface identifier based on at least one target key-value relationship corresponding to the target interface identifier, according to an embodiment of the present disclosure.

[0163] like Figure 6 As shown, in step 600, at least one of the first preset validation rules in the first preset validation rule set 602 can be matched according to the object name field 601 to obtain a matching result 603. After obtaining the matching result 603, operation S610 can be executed.

[0164] In operation S610, the matching result indicates that there is a first preset verification rule in the first preset verification rule set that successfully matches the object name field.

[0165] If so, the target verification rule 604 can be determined according to the first preset verification rule set 602. If not, the target verification rule 604 can be determined according to the second preset verification rule set 605.

[0166] After obtaining the target verification rule 604, the target key-value relationship 606 can be verified according to the target verification rule 604 to obtain the verification result 607 corresponding to the target key-value relationship 606. After obtaining the verification result 607, operation S620 can be executed.

[0167] In operation S620, the verification result 607 indicates the target key-value relationship, and 606 verification passed?

[0168] If not, then target key-value relationship 606 can be deleted. If yes, then target key-value relationship 606 can be set as configuration data 608.

[0169] According to embodiments of this disclosure, operation S230 may include the following operations.

[0170] For each target interface identifier in at least one target interface identifier, the script generation template corresponding to the target interface identifier is invoked. Using the script generation template, a target script corresponding to the target interface identifier is generated based on at least one target object name field and the target object value field corresponding to each of the at least one target object name field.

[0171] According to embodiments of this disclosure, a script generation template library can be pre-configured. The script generation template library may include at least one script generation template. Each of the at least one script generation template may have a corresponding interface identifier. After obtaining configuration data corresponding to each of the at least one target interface identifier, the script generation template corresponding to the target interface identifier can be determined from the script generation template library based on the target interface identifier.

[0172] According to embodiments of this disclosure, after obtaining the script generation template, at least one target object name field from the configuration data can be filled into a fifth predetermined position, and the target object value field corresponding to each of the at least one target object name field can be filled into a sixth predetermined position, thereby generating a target script corresponding to the target interface identifier. The fifth and sixth predetermined positions can be set according to actual business needs and are not limited herein. For example, the fifth and sixth predetermined positions can be located on the same line.

[0173] According to embodiments of this disclosure, page rendering method 200 may include the following operations.

[0174] The first target interface displays the target script corresponding to at least one target interface identifier. The second target interface displays the target page corresponding to at least one target interface identifier.

[0175] According to embodiments of this disclosure, after obtaining the target script corresponding to each of the at least one target interface identifier, in response to a script display operation initiated by a user for one of the at least one target interface identifiers, the target script corresponding to that target interface identifier can be displayed in the first target interface.

[0176] According to embodiments of this disclosure, after obtaining target pages corresponding to at least one target interface identifier, in response to a user's page display operation initiated for one of the at least one target interface identifiers, the target page corresponding to that target interface identifier can be displayed in the second target interface.

[0177] According to embodiments of this disclosure, the positional relationship between the first target interface and the second target interface can satisfy a predetermined positional relationship condition. The predetermined positional relationship condition can be set by those skilled in the art according to actual needs, and is not limited thereto. For example, the predetermined positional relationship condition can be a predetermined distance between the display areas of the first target interface and the display areas of the second target interface, such as 5 centimeters.

[0178] The above are merely exemplary embodiments, but are not limited thereto. Other page rendering methods known in the art may also be included, as long as they can improve the efficiency and accuracy of application development and page rendering.

[0179] Figure 7 A block diagram of a page rendering apparatus according to an embodiment of the present disclosure is shown schematically.

[0180] like Figure 7 As shown, the page rendering device 700 may include an acquisition module 710, a first determination module 720, a second determination module 730, and a rendering module 740.

[0181] The acquisition module 710 is used to, in response to receiving a page rendering instruction, acquire at least one target interface identifier based on the target Uniform Resource Locator address in the page rendering instruction.

[0182] The first determining module 720 is used to determine configuration data corresponding to each of the at least one target interface identifier based on at least one target interface identifier, wherein the configuration data includes at least one target object name field and a target object value field corresponding to each of the at least one target object name field.

[0183] The second determining module 730 is used to determine the target script corresponding to each of the at least one target interface identifier based on at least one target object name field and the target object value field corresponding to each of the at least one target object name field.

[0184] The rendering module 740 is used to render the target page corresponding to each of the at least one target interface identifier, based on the target script corresponding to each of the at least one target interface identifier.

[0185] According to embodiments of this disclosure, for each target interface identifier in at least one target interface identifier, the first determining module 720 may include a creating submodule, a first obtaining submodule, a constructing submodule, and a determining submodule.

[0186] Create a submodule to create a table page corresponding to the target interface identifier within a predefined table object.

[0187] The first acquisition submodule is used to acquire the data to be processed corresponding to the target interface identifier based on the target interface identifier.

[0188] The construction submodule is used to construct at least one target key-value relationship corresponding to the target interface identifier based on the table page corresponding to the target interface identifier and the data to be processed.

[0189] The determination submodule is used to determine the configuration data corresponding to the target interface identifier based on at least one target key-value relationship corresponding to the target interface identifier.

[0190] According to embodiments of this disclosure, the first acquisition submodule may include a first determining unit, a second determining unit, and an acquisition unit.

[0191] The first determining unit is used to determine the target development language and target development framework corresponding to the target interface identifier based on the target interface identifier.

[0192] The second determining unit is used to determine the target data structure and target data type based on the target development language and target development framework.

[0193] The acquisition unit is used to acquire the data to be processed corresponding to the target interface identifier based on the target interface identifier, target data structure, and target data type.

[0194] According to embodiments of this disclosure, the acquisition unit may include a first determining subunit, a first acquisition subunit, a second acquisition subunit, and a second determining subunit.

[0195] The first determining subunit is used to determine the input parameter object and output parameter object corresponding to the target interface identifier based on the target interface identifier, target data structure, and target data type.

[0196] The first acquisition subunit is used to acquire the input parameter data corresponding to the input parameter object based on the input parameter object corresponding to the target interface identifier.

[0197] The second acquisition subunit is used to acquire the output parameter data corresponding to the output parameter object based on the output parameter object corresponding to the target interface identifier.

[0198] The second determining subunit is used to determine the data to be processed based on the input parameter data corresponding to the input parameter object and the output parameter data corresponding to the output parameter object.

[0199] According to embodiments of this disclosure, the construction submodule may include a third determining unit, a fourth determining unit, and a construction unit.

[0200] The third determining unit is used to determine the object name field based on the input parameter object and output parameter object corresponding to the target interface identifier.

[0201] The fourth determining unit is used to determine the object value field corresponding to the object name field based on the input parameter data corresponding to the input parameter object and the output parameter data corresponding to the output parameter object.

[0202] The building unit is used to construct at least one target key-value relationship corresponding to the target interface identifier using a table page, based on the object name field and the object value field corresponding to the object name field.

[0203] According to embodiments of this disclosure, for each target key-value relationship in at least one target key-value relationship, the determining submodule may include a fifth determining unit, a verification unit, and a sixth determining unit.

[0204] The fifth determining unit is used to determine the target validation rule corresponding to the target key-value relationship based on the object name field in the target key-value relationship.

[0205] The verification unit is used to verify the target key-value relationship according to the target verification rules and obtain the verification result corresponding to the target key-value relationship.

[0206] The sixth determining unit is used to determine the configuration data based on the verification results.

[0207] According to embodiments of this disclosure, the fifth determining unit may include a matching subunit, a third determining subunit, and a fourth determining subunit.

[0208] The matching subunit is used to match at least one of the first preset verification rules in the first preset verification rule set according to the object name field, and obtain the matching result.

[0209] The third determining subunit is used to determine the target verification rule according to the first preset verification rule set when there is a first preset verification rule in the matching result characterizing the first preset verification rule set that successfully matches the object name field.

[0210] The fourth determining subunit is used to determine the target verification rule according to the second preset verification rule set when there is no first preset verification rule that successfully matches the object name field in the first preset verification rule set representing the matching result.

[0211] According to embodiments of this disclosure, the sixth determining unit may include a deletion subunit and a fifth determining subunit.

[0212] The delete sub-unit is used to delete the target key-value relationship if the verification result representing the target key-value relationship fails.

[0213] The fifth determining subunit is used to determine the target key-value relationship as configuration data if the verification result indicates that the target key-value relationship has passed the verification.

[0214] According to embodiments of this disclosure, for each target interface identifier in at least one target interface identifier, the second determining module 730 may include a calling submodule and a generating submodule.

[0215] Call the submodule, which is used to call the script generation template corresponding to the target interface identifier.

[0216] The generation submodule is used to generate templates using scripts, and to generate target scripts corresponding to target interface identifiers based on at least one target object name field and target object value fields corresponding to each of the at least one target object name field.

[0217] According to embodiments of this disclosure, a target Uniform Resource Locator (URL) is used to indicate a target Swagger user interface.

[0218] According to embodiments of this disclosure, the acquisition module 710 may include a display submodule and a second acquisition submodule.

[0219] The display submodule is used to display the target Swagger user interface corresponding to the target Uniform Resource Locator (URL).

[0220] The second acquisition submodule is used to obtain at least one target interface identifier corresponding to the target Swagger user interface based on the target Swagger user interface.

[0221] According to embodiments of this disclosure, the page rendering apparatus 700 may further include a first display module and a second display module.

[0222] The first display module is used to display the target scripts corresponding to at least one target interface identifier in the first target interface.

[0223] The second display module is used to display the target page corresponding to each of the at least one target interface identifier in the second target interface.

[0224] Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure, or at least part of the functions of any one or more of them, can be implemented in one module. Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be implemented by dividing them into multiple modules. Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be at least partially implemented as hardware circuitry, such as Field Programmable Gate Arrays (FPGAs), Programmable Logic Arrays (PLAs), Systems-on-Chip, Systems-on-Substrate, Systems-on-Package, Application-Specific Integrated Circuits (ASICs), or implemented in hardware or firmware by any other reasonable means of integrating or packaging circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be at least partially implemented as computer program modules, which, when run, can perform corresponding functions.

[0225] For example, any plurality of the acquisition module 710, the first determination module 720, the second determination module 730, and the rendering module 740 can be combined into one module / unit / subunit, or any one of these modules / units / subunits can be split into multiple modules / units / subunits. Alternatively, at least part of the functionality of one or more of these modules / units / subunits can be combined with at least part of the functionality of other modules / units / subunits and implemented in one module / unit / subunit. According to embodiments of the present disclosure, at least one of the acquisition module 710, the first determination module 720, the second determination module 730, and the rendering module 740 can be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or implemented in hardware or firmware by any other reasonable means of integrating or packaging the circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, at least one of the acquisition module 710, the first determination module 720, the second determination module 730, and the rendering module 740 may be implemented at least partially as a computer program module, which can perform corresponding functions when the computer program module is run.

[0226] It should be noted that the page rendering device part in the embodiments of this disclosure corresponds to the page rendering method part in the embodiments of this disclosure. For a detailed description of the page rendering device part, please refer to the page rendering method part, which will not be repeated here.

[0227] Figure 8 A block diagram of an electronic device suitable for implementing a page rendering method according to an embodiment of the present disclosure is shown schematically. Figure 8 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0228] like Figure 8 As shown, a computer electronic device 800 according to an embodiment of the present disclosure includes a processor 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage portion 809 into a random access memory (RAM) 803. The processor 801 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 801 may also include onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0229] RAM 803 stores various programs and data required for the operation of electronic device 800. Processor 801, ROM 802, and RAM 803 are interconnected via bus 804. Processor 801 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 802 and / or RAM 803. It should be noted that the programs may also be stored in one or more memories other than ROM 802 and RAM 803. Processor 801 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.

[0230] According to embodiments of this disclosure, the electronic device 800 may further include an input / output (I / O) interface 805, which is also connected to a bus 804. The electronic device 800 may also include one or more of the following components connected to the I / O interface 805: an input section 806 including a keyboard, mouse, etc.; an output section 807 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 810 as needed so that computer programs read from it can be installed into the storage section 808 as needed.

[0231] According to embodiments of this disclosure, the method flow according to embodiments of this disclosure can be implemented as a computer software program. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable storage medium, the computer program containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via communication section 809, and / or installed from removable medium 811. When the computer program is executed by processor 801, it performs the functions defined in the system of embodiments of this disclosure. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0232] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.

[0233] According to embodiments of this disclosure, the computer-readable storage medium can be a non-volatile computer-readable storage medium. Examples include, but are not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0234] For example, according to embodiments of this disclosure, a computer-readable storage medium may include the ROM 802 and / or RAM 803 described above and / or one or more memories other than ROM 802 and RAM 803.

[0235] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods provided in the embodiments of this disclosure. When the computer program product is run on an electronic device, the program code is used to enable the electronic device to implement the page rendering methods provided in the embodiments of this disclosure.

[0236] When the computer program is executed by the processor 801, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0237] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and may be downloaded and installed via the communication section 809, and / or installed from a removable medium 811. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.

[0238] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0239] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions. Those skilled in the art will understand that the features recited in the various embodiments and / or claims of this disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not expressly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure may be combined and / or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.

[0240] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.

Claims

1. A page rendering method, comprising: In response to receiving a page rendering instruction, at least one target interface identifier is obtained based on the target Uniform Resource Locator (URL) in the page rendering instruction. The target URL is used to indicate the target Swagger user interface. For each target interface identifier, a table page corresponding to the target interface identifier is created in a predefined table object; Based on the target interface identifier, target data structure, and target data type, determine the input parameter object and output parameter object corresponding to the target interface identifier, wherein the target data structure and the target data type are determined based on the target development language and target development framework corresponding to the target interface identifier; Based on the input parameter object corresponding to the target interface identifier, obtain the input parameter data corresponding to the input parameter object; Based on the output parameter object corresponding to the target interface identifier, obtain the output parameter data corresponding to the output parameter object; The data to be processed is determined based on the input parameter data corresponding to the input parameter object and the output parameter data corresponding to the output parameter object; Based on the table page corresponding to the target interface identifier and the data to be processed, construct at least one target key-value relationship corresponding to the target interface identifier; and Based on the at least one target key-value relationship corresponding to the target interface identifier, configuration data corresponding to the target interface identifier is determined, wherein the configuration data includes at least one target object name field and a target object value field corresponding to each of the at least one target object name field; Based on the at least one target object name field and the target object value field corresponding to each of the at least one target object name fields, determine the target script corresponding to each of the at least one target interface identifiers; and Render the target page corresponding to each of the at least one target interface identifier, based on the target script corresponding to each of the at least one target interface identifier.

2. The method according to claim 1, wherein, The target data structure and the target data type are determined in the following way: Based on the target interface identifier, determine the target development language and target development framework corresponding to the target interface identifier; Based on the target development language and the target development framework, determine the target data structure and target data type.

3. The method according to claim 1, wherein, The step of constructing at least one target key-value relationship corresponding to the target interface identifier based on the table page corresponding to the target interface identifier and the data to be processed includes: The object name field is determined based on the input parameter object corresponding to the target interface identifier and the output parameter object corresponding to the target interface identifier; Based on the input parameter data corresponding to the input parameter object and the output parameter data corresponding to the output parameter object, determine the object value field corresponding to the object name field; and Using the table page, at least one target key-value relationship corresponding to the target interface identifier is constructed based on the object name field and the object value field corresponding to the object name field.

4. The method according to claim 1, wherein, The step of determining the configuration data corresponding to the target interface identifier based on the at least one target key-value relationship corresponding to the target interface identifier includes: For each of the at least one target key-value relationships, Based on the object name field in the target key-value relationship, determine the target validation rule corresponding to the target key-value relationship; According to the target verification rules, the target key-value relationship is verified to obtain a verification result corresponding to the target key-value relationship; and Based on the verification results, the configuration data is determined.

5. The method according to claim 4, wherein, The step of determining the target validation rule corresponding to the target key-value relationship based on the object name field in the target key-value relationship includes: Based on the object name field, at least one first preset verification rule in the first preset verification rule set is matched to obtain the matching result; If the matching result indicates that there exists a first preset verification rule in the first preset verification rule set that successfully matches the object name field, then the target verification rule is determined according to the first preset verification rule set; and If the matching result indicates that there is no first preset verification rule in the first preset verification rule set that successfully matches the object name field, the target verification rule is determined according to the second preset verification rule set.

6. The method according to claim 4, wherein, The step of determining the configuration data based on the verification result includes: If the verification result indicates that the target key-value relationship has failed the verification, then the target key-value relationship is deleted; and If the verification result indicates that the target key-value relationship has passed the verification, the target key-value relationship is determined as the configuration data.

7. The method according to any one of claims 1 to 6, wherein, The step of determining the target script corresponding to each of the at least one target interface identifier based on the at least one target object name field and the target object value field corresponding to each of the at least one target object name field includes: For each of the at least one target interface identifiers, Invoke the script to generate the template corresponding to the target interface identifier; and Using the script generation template, a target script corresponding to the target interface identifier is generated based on the at least one target object name field and the target object value field corresponding to each of the at least one target object name field.

8. The method according to any one of claims 1 to 6, wherein, The step of responding to receiving a page rendering instruction and obtaining at least one target interface identifier based on the target Uniform Resource Locator (URL) in the page rendering instruction includes: Based on the target Uniform Resource Locator (URL), display the target Swagger user interface corresponding to the target URL; and Based on the target Swagger user interface, obtain the at least one target interface identifier corresponding to the target Swagger user interface.

9. The method according to any one of claims 1 to 6, further comprising, after rendering the target page corresponding to each of the at least one target interface identifier according to the target script corresponding to each of the at least one target interface identifier: The first target interface displays the target script corresponding to each of the at least one target interface identifier; and The target page corresponding to each of the at least one target interface identifier is displayed in the second target interface.

10. A page rendering apparatus, comprising: The acquisition module is used to, in response to receiving a page rendering instruction, acquire at least one target interface identifier based on the target Uniform Resource Locator (URL) in the page rendering instruction, wherein the target URL is used to indicate the target Swagger user interface; and the creation submodule is used to, for each target interface identifier, create a table page corresponding to the target interface identifier in a predefined table object. The first determining subunit is used to determine the input parameter object and output parameter object corresponding to the target interface identifier based on the target interface identifier, the target data structure, and the target data type, wherein the target data structure and the target data type are determined based on the target development language and the target development framework corresponding to the target interface identifier; The first acquisition subunit is used to acquire the input parameter data corresponding to the input parameter object according to the input parameter object corresponding to the target interface identifier; The second acquisition subunit is used to acquire the output parameter data corresponding to the output parameter object based on the output parameter object corresponding to the target interface identifier; The second determining subunit is used to determine the data to be processed based on the input parameter data corresponding to the input parameter object and the output parameter data corresponding to the output parameter object; the construction submodule is used to construct at least one target key-value relationship corresponding to the target interface identifier based on the table page corresponding to the target interface identifier and the data to be processed; and The determination submodule is used to determine the configuration data corresponding to the target interface identifier based on the at least one target key-value relationship corresponding to the target interface identifier, wherein the configuration data includes at least one target object name field and a target object value field corresponding to each of the at least one target object name field; The second determining module is configured to determine, based on the at least one target object name field and the target object value field corresponding to each of the at least one target interface identifiers; and The rendering module is used to render the target page corresponding to each of the at least one target interface identifier, based on the target script corresponding to each of the at least one target interface identifier.

11. An electronic device, comprising: One or more processors; Memory, used to store one or more instructions. When the one or more instructions are executed by the one or more processors, the one or more processors cause the one or more processors to implement the method of any one of claims 1 to 9.

12. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 9.

13. A computer program product comprising computer-executable instructions, which, when executed, are used to implement the method of any one of claims 1 to 9.

Citation Information

Patent Citations

  • Intelligent detection and input system and method for e-commerce articles

    CN110443542A

  • Front-end page generation method and device, terminal equipment and storage medium

    CN114625349A