Interface data filling method and device, equipment and storage medium
By acquiring the target interface template and configuration information, and utilizing dynamic positioning technology and cloud data population, the problem of low development efficiency when multiple interfaces have the same layout is solved, thus achieving efficient interface development.
Patent Information
- Application Number
- CN202511155756.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-18
- Publication Date
- 2025-11-25
AI Technical Summary
When multiple interfaces have the same layout, developing each interface separately results in low interface development efficiency.
By obtaining the target interface template and configuration information, the interface that matches the target interface template is determined. Dynamic positioning technology is used to determine the area to be filled in the interface, and the target dataset to be filled is obtained from the cloud. The data is then filled into the interface according to the location identifier.
When multiple interfaces share the same layout, there is no need to develop each interface separately, thus improving interface development efficiency.
Smart Images

Figure CN121008788A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, and particularly relates to an interface data filling method and device, equipment and a storage medium. BACKGROUND
[0002] With the continuous development of science and technology and society, the content in the Internet is growing explosively, in order to present the content in the Internet to users, a large number of front-end interfaces need to be designed to display the corresponding content.
[0003] In the related art, the development process of the front-end interface is that a designer provides an interface design drawing, and a front-end developer develops the interface based on the interface design drawing, that is, the front-end developer converts the interface design drawing into an interface through front-end code. In the actual process, for a plurality of interfaces with the same interface layout, the designer needs to provide a design drawing of each interface, and since the front-end developer develops the interface based on the design drawing, for a plurality of interfaces with the same interface layout, if each interface is developed separately, the interface development efficiency will be low. SUMMARY
[0004] The present application provides an interface data filling method, device, equipment and storage medium, to solve the problem of low interface development efficiency caused by separately developing each interface when the interface layouts of a plurality of interfaces are the same in the prior art.
[0005] In a first aspect, the present application provides an interface data filling method, comprising:
[0006] obtaining a target interface template and configuration information, the target interface template comprising at least one to-be-filled region, each to-be-filled region corresponding to a position identifier, and the configuration information indicating an association relationship between an interface template and an interface;
[0007] determining at least one interface matching the target interface template according to the target interface template and the configuration information, and generating the at least one interface based on the target interface template;
[0008] determining a corresponding relationship between each interface and a to-be-filled data set;
[0009] determining the at least one to-be-filled region in the interface through a dynamic positioning technology;
[0010] obtaining a target to-be-filled data set corresponding to the interface from the cloud according to the corresponding relationship, the target to-be-filled data set comprising at least one to-be-filled data and a position identifier corresponding to each to-be-filled data;
[0011] filling the data in the target to-be-filled data set into the interface according to the position identifier.
[0012] In a possible design, the configuration information includes identifiers of a plurality of interface templates, and identifiers of interfaces corresponding to each interface template;
[0013] The determining, according to the target interface template and the configuration information, of at least one interface matching the target interface template includes:
[0014] The identifier of the target interface template is determined as a first identifier;
[0015] The identifier of the at least one interface is determined in the configuration information according to the first identifier;
[0016] The at least one interface is determined according to the identifier of the at least one interface.
[0017] In a possible design, each HTML element in the interface corresponds to a DOM node, and the dynamic positioning technology includes an XML path positioning technology.
[0018] The determining, by using the dynamic positioning technology, of the at least one region to be filled in the interface includes:
[0019] A target node feature corresponding to the at least one region to be filled is determined.
[0020] A node in a plurality of DOM nodes corresponding to the interface is determined as at least one target DOM node by using the XML path positioning technology, where a node feature of the node is same as the target node feature.
[0021] A region corresponding to the at least one target DOM node is determined as the at least one region to be filled.
[0022] In a possible design, the correspondence is a correspondence between each interface and a data interface, and the data interface indicates an address of a corresponding target data set to be filled.
[0023] The obtaining, according to the correspondence, of the target data set to be filled corresponding to the interface from the cloud includes:
[0024] At least one data interface is determined according to the identifier of the interface and the correspondence between each interface and a data interface.
[0025] The target data set to be filled is obtained from the cloud through the at least one data interface.
[0026] In a possible design, the filling, according to the position identifier, of data in the target data set to be filled into the interface includes:
[0027] For each to-be-filled region in the interface, target to-be-filled data is determined according to a position identifier corresponding to the to-be-filled region in the target to-be-filled data set;
[0028] The target to-be-filled data is filled into the to-be-filled region.
[0029] In a possible design, the method further includes:
[0030] According to business requirements, it is determined whether the filled data in the interface is correct;
[0031] If yes, it is confirmed that the filling is completed, and the filling is displayed;
[0032] If no, the to-be-filled data set corresponding to the interface is updated, the updated to-be-filled data set corresponding to the interface is acquired again, and the updated to-be-filled data set is filled into the interface.
[0033] In a second aspect, the present application provides an interface data filling device, which includes:
[0034] A first acquisition module is configured to acquire a target interface template and configuration information, the target interface template including at least one to-be-filled region, each to-be-filled region corresponding to a position identifier, and the configuration information indicating an association relationship between an interface template and an interface;
[0035] A first determination module is configured to determine at least one interface matched with the target interface template according to the target interface template and the configuration information, and generate the at least one interface based on the target interface template;
[0036] A second determination module is configured to determine a corresponding relationship between each interface and a to-be-filled data set;
[0037] A third determination module is configured to determine the at least one to-be-filled region in the interface by using a dynamic positioning technology;
[0038] A second acquisition module is configured to acquire, from a cloud, a target to-be-filled data set corresponding to the interface according to the corresponding relationship, the target to-be-filled data set including at least one to-be-filled data and a position identifier corresponding to each to-be-filled data;
[0039] A filling module is configured to fill data in the target to-be-filled data set into the interface according to the position identifier.
[0040] In a third aspect, an electronic device is provided, and the electronic device includes at least one processor and a memory. The memory stores computer-executable instructions. The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the interface data filling method according to the first aspect and various possible designs of the first aspect.
[0041] In a fourth aspect, a computer-readable storage medium is provided, and the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the interface data filling method according to the first aspect and various possible designs of the first aspect is implemented.
[0042] In a fifth aspect, a computer program product is provided, and the computer program product includes a computer program. When a processor executes the computer program, the interface data filling method according to the first aspect and various possible designs of the first aspect is implemented.
[0043] The interface data filling method, device, electronic device, and storage medium provided in the present application can obtain a target interface template and configuration information, the target interface template includes at least one to-be-filled region, each to-be-filled region corresponds to a position identifier, and the configuration information indicates an association relationship between the interface template and an interface. According to the target interface template and the configuration information, at least one interface that matches the target interface template is determined, and at least one interface is generated based on the target interface template. A corresponding relationship between each interface and a to-be-filled data set is determined. At least one to-be-filled region in the interface is determined through a dynamic positioning technology. According to the corresponding relationship, a target to-be-filled data set corresponding to the interface is obtained from the cloud, the target to-be-filled data set includes at least one to-be-filled data and a position identifier corresponding to each to-be-filled data. According to the position identifier, the data in the target to-be-filled data set is filled into the interface. Therefore, in the case that the interface layouts of multiple interfaces are the same, it is not necessary to develop each interface separately, and therefore the interface development efficiency is improved. BRIEF DESCRIPTION OF DRAWINGS
[0044] The accompanying drawings, which are incorporated herein and form part of the specification, illustrate embodiments consistent with the present application and, together with the description, further serve to explain the principles behind the application.
[0045] Figure 1 An application scenario diagram is provided for the embodiments of the present application.
[0046] Figure 2 A flowchart of an interface data filling method is provided for the embodiments of the present application.
[0047] Figure 3 A flowchart of another interface data filling method is provided for the embodiments of the present application.
[0048] Figure 4 A structural schematic diagram of an interface data filling device provided in an embodiment of the present application;
[0049] Figure 5 A structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0050] The specific embodiments of the present application have been shown through the above-described drawings, and will be described in more detail hereinafter. These drawings and the following description are not intended to limit the scope of the present application in any way, but to explain the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0051] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The same reference numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments are not meant to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the appended claims.
[0052] In the technical solution of the present application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data comply with relevant laws and regulations and do not violate public order and good customs.
[0053] It should be noted that in the embodiments of the present application, some software, components, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and the purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0054] It should be understood that the terms "comprise", "include" indicate the presence of the described features, steps, operations, but do not exclude the presence, occurrence or addition of one or at least one other feature, step, operation.
[0055] In the present application, "example", "in some embodiments", "for example", "in other embodiments" and the like are used to indicate an example, illustration or description. Any embodiment or design scheme described as "example" or "for example" in the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the word "example" is intended to present the concept in a specific way.
[0056] It should be noted that the interface data filling method, device, equipment and storage medium provided by the present application can be used in the field of data processing, and can also be used in any field other than the field of data processing. The application field of the interface data filling method, device, equipment and storage medium provided by the present application is not limited.
[0057] In order to more clearly illustrate the present application, the following will be combined with Figure 1 The application scenario to which the embodiments of the present application are applied will be described.
[0058] Figure 1 An application scenario diagram provided by the embodiments of the present application is shown in Figure 1 , which includes a terminal device 11 and a server cluster 12. The terminal device 11 is a device used by a front-end interface developer for interface development, and the server cluster 12 can be used to store interface templates, configuration information and to-be-filled data.
[0059] Figure 1 It is only a schematic diagram of an application scenario and does not constitute a limitation on the application scenario of the technical solutions provided by the present application. For example, the interface templates, configuration information and to-be-filled data can also be stored in different server clusters.
[0060] In order to solve the technical problems in the background art, the embodiments of the present application provide an interface data filling method, which reduces repeated development work and improves interface development efficiency through modular design and data dynamic filling.
[0061] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes can not be described again in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.
[0062] Figure 2 A flowchart of an interface data filling method provided by the embodiments of the present application is shown in Figure 2 , which comprises the following steps:
[0063] S201, obtaining a target interface template and configuration information, the target interface template comprising at least one to-be-filled region, each to-be-filled region corresponding to a position identifier, and the configuration information indicating an association relationship between the interface template and the interface.
[0064] The execution subject of the embodiments of the present application can be an electronic device, or an interface data filling device arranged in the electronic device. The interface data filling device can be realized by software, or by a combination of software and hardware.
[0065] The target interface template can be a general interface template or a special interface template. The general interface template refers to a template applicable to multiple interfaces, and the special interface template refers to a template applicable to only a single interface. The general interface template can save the design time of an interface designer.
[0066] The interface layouts of different interface templates are different. For example, left-right split column, top-bottom structure, card list, etc.
[0067] The to-be-filled region refers to a data filling position in an interface, and can also be referred to as a data filling region. The positions of the to-be-filled regions in each interface template are fixed. That is, the number of to-be-filled regions in multiple interfaces using the same interface template and the positions of each to-be-filled region in the interface are the same.
[0068] The to-be-filled region can refer to a title bar, a table region, card content, etc.
[0069] The position identifier is unique, and the position identifiers corresponding to different to-be-filled regions are different. For example, the to-be-filled region 1 corresponds to the position identifier 1, and the to-be-filled region 2 corresponds to the position identifier 2.
[0070] For multiple interfaces using the same interface template, the position identifiers corresponding to the to-be-filled regions located at the same position in the multiple interfaces are the same. For example, the interface template used by the interface 1 and the interface 2 is template i, and the position identifier corresponding to the to-be-filled region at position A in the interface 1 is the same as the position identifier corresponding to the to-be-filled region at position A in the interface 2.
[0071] In a possible implementation, the configuration information includes identifiers of multiple interface templates and identifiers of interfaces corresponding to each interface template. For example, the configuration information can be as shown in Table 1:
[0072] Table 1
[0073]
[0074] It should be noted that Table 1 indicates an example manner of the configuration information, and the present application does not limit the specific representation manner of the configuration information, nor the number of interface templates in the configuration information and the number of interfaces applicable to each interface template.
[0075] In a possible implementation, if the data interfaces corresponding to each interface are different, the association relationship between the interface template and the interface can be established by the data interface corresponding to each interface and the identifier of the interface template. The data interface corresponding to the interface refers to that the to-be-filled data in the interface can be obtained through the data interface.
[0076] For example, the to-be-filled data in interface 1 can be obtained through an application programming interface (API) 1, the to-be-filled data in interface 2 can be obtained through an API 2, the to-be-filled data in interface 3 can be obtained through an API 3, the to-be-filled data in interface 4 can be obtained through an API 4, the to-be-filled data in interface 5 can be obtained through an API 5, and the to-be-filled data in interface 6 can be obtained through an API 6. If the configuration information indicates that the interface template i corresponds to the data interfaces API 1, API 2, API 3, and API 4, and the interface template ii corresponds to the data interfaces API 5 and API 6, the interface template i is applicable to interfaces 1, 2, 3, and 4, and the interface template ii is applicable to interfaces 5 and 6.
[0077] In S202, at least one interface matched with the target interface template is determined according to the target interface template and the configuration information, and at least one interface is generated based on the target interface template.
[0078] In a possible implementation, at least one interface matched with the target interface template can be determined according to the target interface template and the configuration information in the following manner: an identifier of the target interface template is determined to be a first identifier; an identifier of at least one interface is determined in the configuration information according to the first identifier; and at least one interface is determined according to the identifier of the at least one interface.
[0079] For example, if the configuration information is as shown in Table 1 and the identifier of the target interface template is determined to be ii, the identifier of at least one interface can be determined to be 9, 10, 11, and 12 according to the configuration information, and interfaces with identifiers 9, 10, 11, and 12 can be determined as interfaces using the target interface template, that is, the interface templates used by the interfaces with identifiers 9, 10, 11, and 12 are all the interface template with identifier ii.
[0080] In S203, a correspondence between each interface and a to-be-filled data set is determined.
[0081] Each to-be-filled data set includes at least one to-be-filled data. The number of to-be-filled data in a to-be-filled data set is the same as the number of to-be-filled areas in the corresponding interface.
[0082] In a possible implementation, since one data interface can correspond to only one to-be-filled data set, the correspondence between an interface and a to-be-filled data set can also be represented as the correspondence between the interface and a data interface, and each data interface indicates the address of the corresponding to-be-filled data set. One interface can correspond to one or more data interfaces.
[0083] For example, interface i corresponds to data interfaces API 1 and API 2, interface ii corresponds to data interface API 3, and interface iii corresponds to data interfaces API 4, API 5 and API 6. Since data interfaces API 1 and API 2 correspond to to-be-filled data set 2, API 3 corresponds to to-be-filled data set 1, and API 4, API 5 and API 6 correspond to to-be-filled data set 3. Therefore, interface i corresponds to to-be-filled data set 2, interface ii corresponds to to-be-filled data set 1, and interface iii corresponds to to-be-filled data set 3. That is, to-be-filled data set 2 can be obtained through data interfaces API 1 and API 2, the data in to-be-filled data set 2 is the data to be filled in interface i; to-be-filled data set 1 can be obtained through data interface API 3, the data in to-be-filled data set 1 is the data to be filled in interface ii; and to-be-filled data set 3 can be obtained through data interfaces API 4, API 5 and API 6, the data in to-be-filled data set 3 is the data to be filled in interface iii.
[0084] In S204, at least one to-be-filled region in the interface is determined through a dynamic positioning technology.
[0085] If one interface template is applicable to multiple interfaces, at least one to-be-filled region in each of the multiple interfaces can be determined in parallel; or, at least one to-be-filled region in each of the multiple interfaces can be determined in sequence.
[0086] The dynamic positioning technology includes an eXtensible Markup Language (XML) path positioning technology.
[0087] In a possible implementation, for any one interface corresponding to a target interface template, each HyperText Markup Language (HTML) element in the interface corresponds to a Document Object Model (DOM) node, and at least one to-be-filled region in the interface is determined through a dynamic positioning technology, including:
[0088] A target node feature corresponding to the at least one to-be-filled region is determined; through an XML path positioning technology, a node in multiple DOM nodes corresponding to the interface and having the same node feature as the target node feature is determined as at least one target DOM node; and a region corresponding to the at least one target DOM node is determined as the at least one to-be-filled region.
[0089] The node feature can be an attribute of the node or a hierarchy to which the node belongs.
[0090] S205, obtaining, from the cloud, a target data set to be filled corresponding to the interface according to the correspondence, the target data set to be filled including at least one data to be filled and a position identifier corresponding to each data to be filled.
[0091] If one interface template is applicable to multiple interfaces, the target data set to be filled corresponding to each interface can be obtained from the cloud in parallel; or, the target data set to be filled corresponding to each interface can be obtained from the cloud in sequence.
[0092] The data to be filled is stored in the cloud, and if the data to be filled needs to be changed, only the data to be filled needs to be changed without changing the entire interface.
[0093] In a possible implementation, for any one interface using the target interface template, the target data set to be filled corresponding to the interface can be obtained from the cloud according to the correspondence in the following manner: at least one data interface is determined according to the identifier of the interface and the correspondence between each interface and the data interface; and the target data set to be filled is obtained from the cloud through the at least one data interface.
[0094] For example, the target data set to be filled can be obtained from the cloud through the at least one data interface by calling the at least one data interface through JS code.
[0095] S206, filling the data in the target data set to be filled into the interface according to the position identifier.
[0096] If one interface template is applicable to multiple interfaces, the data can be filled for each interface in the multiple interfaces in parallel; or, the data can be filled for each interface in the multiple interfaces in sequence.
[0097] In a possible implementation, for any one interface using the target interface template, the data in the target data set to be filled can be filled into the interface according to the position identifier in the following manner:
[0098] For each data to be filled in the interface, the target data to be filled is determined in the target data set to be filled according to the position identifier corresponding to the data to be filled; and the target data to be filled is filled into the data to be filled.
[0099] For example, interface 1 corresponds to data set 1 to be filled, data set 1 to be filled includes position identifier 1 and data 1 to be filled, position identifier 2 and data 2 to be filled, and position identifier 3 and data 3 to be filled. Interface 1 includes three data to be filled, data to be filled region 1 corresponds to position identifier 2, data to be filled region 2 corresponds to position identifier 3, and data to be filled region 3 corresponds to position identifier 1, then data 2 to be filled can be filled into data to be filled region 1, data 3 to be filled can be filled into data to be filled region 2, and data 1 to be filled can be filled into data to be filled region 3.
[0100] If one interface includes multiple to-be-filled regions, data can be filled for each to-be-filled region in the multiple to-be-filled regions in parallel; or, data can be filled for each to-be-filled region in the multiple to-be-filled regions in sequence.
[0101] In Figure 2 In the method shown, a target interface template and configuration information are acquired, the target interface template includes at least one to-be-filled region, each to-be-filled region corresponds to a position identifier, and the configuration information indicates an association relationship between the interface template and an interface; at least one interface matching the target interface template is determined according to the target interface template and the configuration information, and at least one interface is generated based on the target interface template; a corresponding relationship between each interface and a to-be-filled data set is determined; at least one to-be-filled region in the interface is determined through a dynamic positioning technology; target to-be-filled data sets corresponding to the interface are acquired from the cloud according to the corresponding relationship, the target to-be-filled data sets include at least one to-be-filled data and a position identifier corresponding to each to-be-filled data; and data in the target to-be-filled data sets is filled into the interface according to the position identifier. Therefore, in the case that the interface layouts of multiple interfaces are the same, each interface does not need to be developed separately, thereby improving the interface development efficiency.
[0102] In Figure 2 On the basis of the embodiments shown in the foregoing embodiments, the scheme of the present application is described in detail below. Figure 3
[0103] Figure 3 A flowchart of another interface data filling method provided by an embodiment of the present application is shown. Please refer to Figure 3 The method includes the following steps.
[0104] S301, a target interface template and configuration information are acquired, the target interface template includes at least one to-be-filled region, each to-be-filled region corresponds to a position identifier, and the configuration information indicates an association relationship between the interface template and an interface.
[0105] S302, at least one interface matching the target interface template is determined according to the target interface template and the configuration information, and at least one interface is generated based on the target interface template.
[0106] S303, a corresponding relationship between each interface and a to-be-filled data set is determined.
[0107] S304, at least one to-be-filled region in the interface is determined through a dynamic positioning technology.
[0108] S305, target to-be-filled data sets corresponding to the interface are acquired from the cloud according to the corresponding relationship, the target to-be-filled data sets include at least one to-be-filled data and a position identifier corresponding to each to-be-filled data.
[0109] S306, filling the data in the target to-be-filled data set into the interface according to the position identifier.
[0110] It should be noted that the execution process of S301 to S306 can refer to the execution process of S201 to S206, which will not be repeated here.
[0111] S307, determining whether the filled data in the interface is correct according to the business requirement.
[0112] If yes, S308 is executed;
[0113] If no, the to-be-filled data set corresponding to the interface is updated, and then S305 is executed. That is, the updated to-be-filled data set corresponding to the interface is obtained again, and the updated to-be-filled data set is filled into the interface.
[0114] If one interface template is applicable to multiple interfaces, whether the filled data in each interface is correct can be determined in parallel; or whether the filled data in each interface is correct can be determined according to the order of data filling completion time.
[0115] S308, confirming filling and displaying filling completion.
[0116] The filling can be manually confirmed by triggering an OK button, or the filling can be confirmed by an automatic verification tool.
[0117] Displaying the filling completion indicates that the interface can be published.
[0118] In the embodiment shown in Figure 2 Based on the embodiment shown in Figure 3 The embodiment shown in
[0119] Figure 4 A structural schematic diagram of an interface data filling device provided by an embodiment of the present application is shown in Figure 4 The interface data filling device includes a first obtaining module 401, a first determining module 402, a second determining module 403, a third determining module 404, a second obtaining module 405, and a filling module 406. Among them,
[0120] The first obtaining module 401 is configured to obtain a target interface template and configuration information. The target interface template includes at least one to-be-filled region, and each to-be-filled region corresponds to a position identifier. The configuration information indicates the association relationship between the interface template and the interface.
[0121] The first determining module 402 is configured to determine at least one interface matched with the target interface template according to the target interface template and the configuration information, and generate at least one interface based on the target interface template.
[0122] The second determining module 403 is configured to determine a correspondence between each interface and a to-be-filled data set.
[0123] The third determining module 404 is configured to determine at least one to-be-filled region in the interface by using a dynamic positioning technology.
[0124] The second obtaining module 405 is configured to obtain, according to the correspondence, a target to-be-filled data set corresponding to the interface from the cloud, the target to-be-filled data set including at least one to-be-filled data and a position identifier corresponding to each to-be-filled data.
[0125] The filling module 406 is configured to fill the data in the target to-be-filled data set into the interface according to the position identifier.
[0126] In a possible design, the configuration information includes identifiers of a plurality of interface templates and identifiers of interfaces corresponding to the interface templates; the first determining module 402 is specifically configured to:
[0127] determine that the identifier of the target interface template is the first identifier;
[0128] determine, according to the first identifier, the identifiers of at least one interface in the configuration information;
[0129] determine the at least one interface according to the identifiers of the at least one interface.
[0130] In a possible design, each HTML element in the interface corresponds to a DOM node, and the dynamic positioning technology includes an XML path positioning technology; the third determining module 404 is specifically configured to:
[0131] determine target node features corresponding to the at least one to-be-filled region;
[0132] determine, by using the XML path positioning technology, nodes having the same node features as the target node features from a plurality of DOM nodes corresponding to the interface as at least one target DOM node;
[0133] determine a region corresponding to the at least one target DOM node as the at least one to-be-filled region.
[0134] In a possible design, the correspondence is a correspondence between each interface and a data interface, and the data interface indicates an address of a corresponding to-be-filled data set; the second obtaining module 405 is specifically configured to:
[0135] determine at least one data interface according to the identifier of the interface and the correspondence between each interface and the data interface;
[0136] obtain the target to-be-filled data set from the cloud through the at least one data interface.
[0137] In a possible design, the data in the target to-be-filled data set is filled into the interface according to the position identifier, including:
[0138] For each to-be-filled region in the interface, the target to-be-filled data is determined in the target to-be-filled data set according to the position identifier corresponding to the to-be-filled region;
[0139] The target to-be-filled data is filled into the to-be-filled region.
[0140] In a possible design, the interface data filling apparatus further includes a verification module 407, a third determination module 408, and an updating module 409, where,
[0141] The verification module 407 is configured to determine, according to a business requirement, whether the filled data in the interface is correct.
[0142] If yes, the third determination module 408 is configured to confirm the filling, and display that the filling is completed.
[0143] If no, the updating module 409 is configured to update the to-be-filled data set corresponding to the interface, the second acquisition module 405 is further configured to acquire again the updated to-be-filled data set corresponding to the interface, and the filling module 406 is further configured to fill the updated to-be-filled data set into the interface.
[0144] The interface data filling apparatus provided by the embodiment of the present application can be used to execute the technical solution of the interface data filling method in the above embodiment, and has similar implementation principles and technical effects, which will not be described here.
[0145] It should be noted that the division of each module of the above apparatus is only a logical function division, and all or part of the modules can be integrated into one physical entity, or can be physically separated. Moreover, all the modules can be implemented in the form of software through a processing element; all the modules can be implemented in the form of hardware; or part of the modules are implemented in the form of software through a processing element, and part of the modules are implemented in the form of hardware. For example, the filling module 406 can be a separate processing element, or can be integrated into a chip of the above apparatus, in addition, the filling module 406 can be stored in the form of program code in the memory of the above apparatus, and the functions of the filling module 406 are called and executed by a processing element of the above apparatus. The implementation of other modules is similar. Moreover, all or part of the modules can be integrated together, or can be independently implemented. The processing element herein can be an integrated circuit with signal processing capability. In the implementation process, each step of the above method or each module can be completed by the integrated logic circuit of hardware or the instruction of software in the processing element.
[0146] Figure 5 The structure schematic diagram of the electronic device provided by the embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, the electronic device includes a processor 101, a memory 102, a power supply 103, a display 104, and a communication interface 105.Figure 5 As shown, the electronic device can include a transceiver 501, a processor 502 and a memory 503.
[0147] The processor 502 executes the computer-executed instructions stored in the memory, so that the processor 502 executes the solutions in the above-mentioned embodiments. The processor 502 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0148] The memory 503 is connected with the processor 502 through a system bus and completes mutual communication, and the memory 503 is used for storing computer program instructions.
[0149] The transceiver 501 can be used to obtain a to-be-run task and configuration information of the to-be-run task.
[0150] The system bus can be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, the bus in the drawings of the present application does not limit only one bus or one type of bus. The system bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize the communication between the database access device and other computers (for example, a client, a read-write library and a read-only library).
[0151] The memory can contain a random access memory (RAM), and can also include a non-volatile memory (NVM).
[0152] The embodiment of the present application further provides a chip for running instructions, which is used for executing the technical solution of the interface data filling method in the above embodiment.
[0153] The embodiment of the present application further provides a computer readable storage medium, which stores computer instructions, and when the computer instructions run on a computer, the computer executes the technical solution of the interface data filling method in the above embodiment.
[0154] The embodiment of the present application further provides a computer program product, which comprises a computer program stored in a computer readable storage medium, at least one processor can read the computer program from the computer readable storage medium, and when the at least one processor executes the computer program, the technical solution of the interface data filling method in the above embodiment can be implemented.
[0155] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other manners. For example, the above-described device embodiments are merely illustrative, and the division of modules can be different, for example, the division of modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the modules shown or discussed can be indirect coupling or communication connection through some interfaces, devices or modules, and can be electrical, mechanical or other forms.
[0156] The modules illustrated as separated components can or can not be physically separated, and the components illustrated as modules can or can not be physical units, that is, can be located in one place, or can be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to implement the embodiments of the present application.
[0157] In addition, each functional module in each embodiment of the present application can be integrated in one processing unit, or each module can be physically present alone, or two or more modules can be integrated in one unit. The unit formed by the above modules can be realized in the form of hardware, or in the form of hardware plus software functional unit.
[0158] The integrated modules realized in the form of software functional modules can be stored in a computer readable storage medium. The software functional modules stored in the storage medium comprise a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute part of the steps of the method of each embodiment of the present application.
[0159] The aforementioned storage medium can be realized by any type of volatile or nonvolatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0160] An exemplary storage medium is coupled to the processor so that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can be a part of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). The processor and the storage medium can be located in a remote terminal or a host computer.
[0161] It is understood by those skilled in the art that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes ROM, RAM, magnetic disk or optical disk and various storage media that can store program codes.
[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or make equivalent replacement for part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. An interface data population method, comprising: The method comprises: obtaining a target interface template and configuration information, the target interface template comprising at least one to-be-filled region, each to-be-filled region corresponding to a position identifier, and the configuration information indicating an association between the interface template and an interface; determining at least one interface matching the target interface template according to the target interface template and the configuration information, and generating the at least one interface based on the target interface template; determining a correspondence between each interface and a to-be-filled data set; determining the at least one to-be-filled region in the interface through dynamic positioning technology; obtaining a target to-be-filled data set corresponding to the interface from the cloud according to the correspondence, the target to-be-filled data set comprising at least one to-be-filled data and a position identifier corresponding to each to-be-filled data; filling the data in the target to-be-filled data set into the interface according to the position identifier.
2. The method of claim 1, wherein, The configuration information comprises identifiers of a plurality of interface templates and identifiers of interfaces corresponding to each interface template; The determining of the at least one interface matching the target interface template according to the target interface template and the configuration information comprises: determining that the identifier of the target interface template is a first identifier; determining the identifiers of the at least one interface in the configuration information according to the first identifier; determining the at least one interface according to the identifiers of the at least one interface.
3. The method according to claim 1 or 2, characterized in that, Each hypertext markup language (HTML) element in the interface corresponds to a document object model (DOM) node, and the dynamic positioning technology comprises extensible markup language (XML) path positioning technology; The determining of the at least one to-be-filled region in the interface through the dynamic positioning technology comprises: determining a target node feature corresponding to the at least one to-be-filled region; determining, through the XML path positioning technology, at least one target DOM node from a plurality of DOM nodes corresponding to the interface, the target DOM node being a node whose node feature is the same as the target node feature; determining a region corresponding to the at least one target DOM node as the at least one to-be-filled region.
4. The method according to any one of claims 1 to 3, characterized in that, The correspondence is a correspondence between each interface and a data interface, and the data interface indicates an address of a corresponding to-be-filled data set; The obtaining of the target to-be-filled data set corresponding to the interface from the cloud according to the correspondence comprises: determining at least one data interface according to the identifier of the interface and the correspondence between each interface and a data interface; obtaining the target to-be-filled data set from the cloud through the at least one data interface.
5. The method according to any one of claims 1 to 4, characterized in that, The filling of the data in the target to-be-filled data set into the interface according to the position identifier comprises: for each to-be-filled region in the interface, determining a target to-be-filled data in the target to-be-filled data set according to a position identifier corresponding to the to-be-filled region; filling the target to-be-filled data into the to-be-filled region.
6. The method according to any one of claims 1 to 5, characterized in that, The method further comprises: determining whether the filled data in the interface is correct according to a business requirement; if yes, confirming the filling and displaying a filling completion; If not, the dataset to be filled corresponding to the interface is updated, and the updated dataset to be filled corresponding to the interface is obtained again, and the updated dataset to be filled is filled into the interface.
7. An interface data population apparatus, comprising: The method comprises the following steps: The first obtaining module is configured to obtain a target interface template and configuration information, the target interface template comprising at least one to-be-filled region, each to-be-filled region corresponding to a position identifier, and the configuration information indicating an association between an interface template and an interface; The first determining module is configured to determine at least one interface matching the target interface template according to the target interface template and the configuration information, and generate the at least one interface based on the target interface template; The second determining module is configured to determine a correspondence between each interface and a dataset to be filled; The third determining module is configured to determine the at least one to-be-filled region in the interface by using a dynamic positioning technology; The second obtaining module is configured to obtain a target dataset to be filled corresponding to the interface from a cloud end according to the correspondence, the target dataset to be filled comprising at least one to-be-filled data and a position identifier corresponding to each to-be-filled data; The filling module is configured to fill the data in the target dataset to be filled into the interface according to the position identifier.
8. An electronic device, comprising: The method comprises the following steps: A processor and a memory connected to the processor in communication; The memory stores computer-executed instructions; The processor executes the computer-executed instructions stored in the memory to implement the method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executed instructions, and the computer-executed instructions are executed by the processor to implement the method according to any one of claims 1-6.
10. A computer program product, characterised in that, The computer program is executed by the processor to implement the method according to any one of claims 1-6.
