CN114047914A - Interface configuration method and device, electronic equipment and computer readable storage medium - Google Patents
Interface configuration method and device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN114047914A CN114047914A CN202111281338.5A CN202111281338A CN114047914A CN 114047914 A CN114047914 A CN 114047914A CN 202111281338 A CN202111281338 A CN 202111281338A CN 114047914 A CN114047914 A CN 114047914A
- Authority
- CN
- China
- Prior art keywords
- data
- interface
- target
- configuration
- configuration information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000003860 storage Methods 0.000 title claims abstract description 25
- 230000015654 memory Effects 0.000 claims description 27
- 238000012545 processing Methods 0.000 description 54
- 238000011161 development Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 16
- 230000008569 process Effects 0.000 description 12
- 238000004590 computer program Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 5
- 230000002452 interceptive effect Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 238000009877 rendering Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012356 Product development Methods 0.000 description 2
- 238000000586 desensitisation Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses an interface configuration method, an interface configuration device, an interface configuration system and a computer readable storage medium. The method may for example comprise the steps of: receiving an interface configuration request through a configuration data interface; acquiring corresponding interface template configuration information from a configuration database based on the interface configuration request; generating interface configuration information of a data interface according to the interface template configuration information; and generating the data interface according to the interface configuration information.
Description
Technical Field
The present application relates to the field of interface development technologies, and in particular, to an interface configuration method and apparatus, an electronic device, and a computer-readable storage medium.
Background
When a data interface is developed, under a common condition, a front end and a back end are required to be developed in a matched mode, the back end is required to refine a data reading mode for each interface, data aggregation is carried out in a memory, then the data are transmitted to the front end, meanwhile, the front end processes the data and displays the data to a user, each operable button, a drop-down frame and the like of the displayed data interface are defined, when the user operates, the data operated by the user are returned to the back end, the back end carries out real-time processing according to the data submitted by the user, processes the data according to corresponding business logic, screens the data and feeds the data back to the front end in real time for display again.
When facing more and more development tasks, the data sources corresponding to the back of each data interface are different, the service data are different, the attributes required to be aggregated are different, the data content required to be presented and the user operable buttons of each interface are different, and the data processing modes of each interface by the back end are different after the front end is operated by the user. Therefore, the workload of front-end and back-end coding is large in the development process, and the front end and the back end need to communicate in a large quantity, so that the interface development efficiency is low.
Therefore, an interface configuration method is needed to reduce the front-end and back-end communication cost and improve the interface development efficiency.
Disclosure of Invention
An embodiment of the present application provides an interface configuration method, including: receiving an interface configuration request through a configuration data interface; acquiring corresponding interface template configuration information from a configuration database based on the interface configuration request; generating interface configuration information of a data interface according to the interface template configuration information; and generating the data interface according to the interface configuration information.
In one embodiment of the present application, the interface configuration information includes a plurality of component configuration information and component layout information of the data interface; the generating the data interface according to the interface configuration information specifically includes: generating a plurality of target components according to the plurality of component configuration information and corresponding components in a component library; and generating the data interface according to the target components and the component layout information.
In an embodiment of the application, after the generating the data interface according to the interface configuration information, the method further includes: receiving a data query request based on the data interface through a data query interface; acquiring corresponding data template configuration information from the configuration database based on the data query request; generating a target query statement of a target heterogeneous database in a plurality of heterogeneous databases according to the data query request, and executing the target query statement to acquire a corresponding service data source from the target heterogeneous database; and generating corresponding target service data based on the data template configuration information and the service data source, and displaying data on the data interface according to the target service data.
In one embodiment of the present application, the data query request includes a base data template query parameter and an associated data template query parameter; the acquiring of the corresponding data template configuration information from the configuration database according to the data query request includes: acquiring corresponding basic data template configuration information from the configuration database according to the basic data template query parameter data query request; and inquiring the template according to the associated data and acquiring corresponding associated attribute template configuration information from the configuration database.
In one embodiment of the present application, the data query request includes a base data query parameter and an associated data query parameter; the generating a target query statement of a target heterogeneous database in a plurality of heterogeneous databases according to the data query request, and executing the target query statement to acquire a corresponding service data source from the target heterogeneous database specifically includes: generating a first target query statement of a first target heterogeneous database in the plurality of heterogeneous databases according to the basic data query parameter; executing the first target query statement to acquire a corresponding basic service data source from the first target heterogeneous database; generating a second target query statement of a second target heterogeneous database in the plurality of heterogeneous databases according to the associated data query parameters; and executing the second target query statement to acquire a corresponding associated service data source from the second target heterogeneous database.
An embodiment of the present application further provides an interface configuration apparatus, including: the first receiving module is used for receiving an interface configuration request through a configuration data interface; the first acquisition module is used for acquiring corresponding template configuration information from a configuration database based on the interface configuration request; the first generation module is used for generating interface configuration information of a data interface according to the template configuration information; and the second generation module is used for generating the data interface according to the interface configuration information.
In one embodiment of the present application, the interface configuration information includes a plurality of component configuration information and component layout information of the data interface; the second generation module specifically includes: the target component generating unit is used for generating a plurality of target components according to a plurality of component configuration information and corresponding components in the component library; and the data interface generating unit is used for generating the data interface according to the target components and the component layout information.
In an embodiment of the present application, the interface configuration apparatus further includes: the second receiving module is used for receiving a data query request based on the data interface through a data query interface; the second acquisition module is used for acquiring corresponding data template configuration information from the configuration database based on the data query request; a third obtaining module, configured to generate a target query statement of a target heterogeneous database in the multiple heterogeneous databases according to the data query request, and execute the target query statement to obtain a corresponding service data source from the target heterogeneous database; and the third generation module is used for generating corresponding target service data based on the data template configuration information and the service data source, and displaying data on the data interface according to the target service data.
In one embodiment of the present application, the data query request includes a base data template query parameter and an associated data template query parameter; the second acquisition module includes: the first acquisition unit is used for acquiring corresponding basic data template configuration information from the configuration database according to the basic data template query parameters; and the second acquisition unit is used for acquiring corresponding associated template configuration information from the configuration database according to the associated data query template.
In one embodiment of the present application, the data query request includes a base data query parameter and an associated data query parameter; the third obtaining module specifically includes: the first generation unit is used for generating a first target query statement of a first target heterogeneous database in the plurality of heterogeneous databases according to the basic data query parameters; a third obtaining unit, configured to execute the first target query statement to obtain a corresponding basic service data source from the first target heterogeneous database; a second generating unit, configured to generate a second target query statement of a second target heterogeneous database in the multiple heterogeneous databases according to the associated data query parameter; and the fourth obtaining unit is configured to execute the second target query statement to obtain a corresponding associated service data source from the second target heterogeneous database.
An embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and executable on the processor, where the program or the instruction, when executed by the processor, implements the interface configuration method described above.
Embodiments of the present application further provide a computer-readable storage medium, in which computer-executable instructions are stored, and when executed by a processor, the stored computer-executable instructions implement the interface configuration method described above.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects: the interface configuration request is received, the corresponding interface template configuration information is obtained from the database, then the interface configuration information of the data interface is generated, the data interface is generated through rendering, and the data interface is generated through the configuration process, so that the front end needs to be subjected to intervention development rarely in the whole data interface development process, the front-end and back-end communication cost is reduced, the project development period is shortened, the development efficiency can be improved by about 70% through configuring the development data interface, and the product development time is further shortened. In addition, by receiving the data query request, acquiring corresponding data template configuration information from the configuration database, generating a target query statement, acquiring a corresponding service data source from the target heterogeneous database, and generating corresponding target service data to return to the front end, the data display is also configured, and the development efficiency is further improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of an interface configuration method provided in embodiment 1 of the present application;
FIG. 2 is a schematic flow chart of step S40 in FIG. 1;
fig. 3 is a partial schematic flow chart of an interface configuration method provided in embodiment 1 of the present application;
FIG. 4 is a schematic flowchart of step S60 in FIG. 3;
FIG. 5 is a schematic flowchart of step S70 in FIG. 3;
fig. 6 is a schematic structural diagram of an interface configuration system applied to the interface configuration method according to embodiment 1 of the present application;
fig. 7 is a schematic flowchart of an interface configuration method provided in embodiment 1 of the present application;
fig. 8 is a schematic block diagram of an interface configuration apparatus according to embodiment 2 of the present application;
FIG. 9 is a block diagram of a second generation module of FIG. 8;
fig. 10 is a schematic block diagram of a part of an interface configuration apparatus according to embodiment 2 of the present application;
FIG. 11 is a block diagram of a second acquisition module of FIG. 10;
FIG. 12 is a block diagram of a third acquisition module of FIG. 10;
fig. 13 is a schematic structural diagram of an electronic device provided in embodiment 3 of the present application;
fig. 14 is a schematic structural diagram of a computer-readable storage medium provided in embodiment 4 of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Example 1
Referring to fig. 1, embodiment 1 of the present application provides an interface configuration method, which may include the following steps, for example:
s10, receiving an interface configuration request through a configuration data interface; the configuration data interface may, for example, configure a data interface function, specifically, may, for example, call a conf interface to receive an interface configuration request, where the interface configuration request may, for example, include an acquisition instruction and configuration parameters, and the configuration parameters may, for example, include information such as an interface configuration template ID and a template name, and may specifically be set according to interface configuration requirements.
S20, acquiring corresponding interface template configuration information from a configuration database based on the interface configuration request; the configuration database may store various configuration information related to interface configuration, such as configuration information related to interface configuration templates, such as a query window and a data display list, and acquire corresponding interface template configuration information from the configuration database according to configuration parameters in the interface configuration request.
S30, generating interface configuration information of the data interface according to the interface template configuration information; for example, the interface template configuration information is assembled to generate interface configuration information of a data interface, and the finally generated interface configuration information includes, for example, search box configuration information and data list header information, but the interface configuration information may also be other configuration information.
S40, generating the data interface according to the interface configuration information; the interface configuration information may be provided to a front-end processing module, for example, and the front-end processing module may render a search box list and data list base information of a data interface, for example, according to the interface configuration information, i.e., generate a data interface, which may be used for a user to perform an interactive operation.
Referring to fig. 2, the interface configuration information includes a plurality of component configuration information and component layout information of the data interface; step S40, where generating the data interface according to the interface configuration information specifically includes:
s41, generating a plurality of target components according to the component configuration information and corresponding components in the component library; the component library may be, for example, a component library of a front-end processing module, the component library includes a plurality of component elements, and the front-end processing module may be initialized, for example, by using the acquired configuration information of the plurality of components, and generate a plurality of target components by using corresponding components in the component library.
And S42, generating the data interface according to the target components and the component layout information, where the group price layout information may be, for example, location information, size information, and the like of the components, and generating the data interface by rendering the generated target components according to the component layout information.
Referring to fig. 3, the interface configuration method further includes, for example, the following steps:
s50, receiving a data query request based on the data interface through the data query interface; the data query interface may be, for example, a data query interface function, and may receive the data query request, for example, through a query interface, where the data query request may include, for example, a query instruction and a query parameter, and the data query parameter may include, for example, a data template configuration parameter and a basic data query parameter, and may further include an associated attribute configuration parameter and an associated data query parameter.
S60, acquiring corresponding data template configuration information from the configuration database based on the data query request;
s70, generating a target query statement of a target heterogeneous database in a plurality of heterogeneous databases according to the data query request, and executing the target query statement to acquire a corresponding service data source from the target heterogeneous database; the plurality of heterogeneous databases may include, for example, a plurality of databases of various types, and specifically may include, for example, databases of types such as Mysql, SqlServer, MongoDB, Redis, and the like, and of course, this is merely an example, and the type and the number of the heterogeneous databases 140 may be set according to actual needs. The heterogeneous databases are used for storing a plurality of service data sources.
S80, generating corresponding target service data based on the data template configuration information and the service data source, and displaying data on the data interface according to the target service data; and correspondingly processing the basic data template configuration information, the associated attribute configuration information, the basic service data source, the associated service data source and other data, assembling the data to generate corresponding target service data, and providing the target service data to a front-end processing module, wherein the front-end processing module renders the data according to the target service data to display the data on a data interface, and provides an operation button to the data page according to service conditions to allow a user to read the data and perform corresponding operation.
Referring to fig. 4, wherein the data query request includes a basic data template query parameter and an associated data template query parameter; step S60, the obtaining of the corresponding data template configuration information from the configuration database according to the data query request specifically includes:
s61, acquiring corresponding basic data template configuration information from the configuration database according to the basic data template query parameters;
and S62, acquiring corresponding associated template configuration information from the configuration database according to the associated data query template.
Referring to fig. 5, the data query request includes a basic data query parameter and an associated data query parameter; step S70, generating a target query statement of a target heterogeneous database in the multiple heterogeneous databases according to the data query request, and executing the target query statement to obtain a corresponding service data source from the target heterogeneous database, specifically including:
s71, generating a first target query statement of a first target heterogeneous database in the plurality of heterogeneous databases according to the basic data query parameters; the basic data query parameter may be, for example, a basic data query parameter that needs to be displayed, the basic data query parameter may include, for example, information such as a data query parameter and a first target heterogeneous database, and a query sql statement corresponding to the first target heterogeneous database may be generated according to the basic data query parameter, for example.
S72, executing the first target query statement to obtain a corresponding basic service data source from the first target heterogeneous database;
s73, generating a second target query statement of a second target heterogeneous database in the plurality of heterogeneous databases according to the associated data query parameters; the related data query parameter may be, for example, an associated data query parameter of the base data, the associated data query parameter may include, for example, information such as a data query parameter and a second target heterogeneous database, and the query sql statement corresponding to the second target heterogeneous database may be generated, for example, according to the associated data query parameter.
And S74, executing the second target query statement to acquire the corresponding associated service data source from the second target heterogeneous database.
The interface configuration method of the present application may be applied to, for example, the interface configuration system 10 shown in fig. 6, and in order to facilitate a clearer understanding of the interface configuration method of the present application, the interface configuration method of the present application is described in detail below with reference to fig. 6 and 7.
Specifically, referring to fig. 6, the interface configuration system 10 may, for example, include a front-end processing module 110, a core processing module 120, a configuration database 130, and a plurality of heterogeneous databases 140 (only 2 shown as an example). The interface configuration system 10 may be applied to a server, for example, that the front-end processing module 110, the core processing module 120, the configuration database 130, and the plurality of heterogeneous databases 140 may all be disposed in the same server device, for example; the interface configuration system 10 may also be provided in different devices, for example, the front-end processing module 110 may be provided in a personal computer or developer-operable electronic device, the core processing module 120, the configuration database 130, and the plurality of heterogeneous databases 140 may be provided in a server device, and the personal computer or developer-operable electronic device may be network-connected to the server device to enable data communication between the front-end processing module 110 and the core processing module 120; of course, the plurality of heterogeneous databases 140 may also be provided, for example, in a separate storage device, which may, for example, be cloud storage or other storage connectable to the server device. The configuration database 130 stores a plurality of interface template configuration information and a plurality of data template configuration information, that is, the configuration database is used for storing configuration information required by various data interfaces, and of course, the configuration information in the configuration database 130 may be set according to actual requirements, for example, the configuration information may be set in advance, or may be modified by user according to actual conditions; the plurality of heterogeneous databases 140 are used for storing a plurality of service data sources, the plurality of heterogeneous databases 140 may provide, for example, a bottom-layer data reading capability of each database, the plurality of heterogeneous databases 140 may include, for example, a plurality of types of databases, specifically, for example, a Mysql, SqlServer, MongoDB, Redis, and other types of databases, and of course, this is merely an example, the types and the number of the heterogeneous databases 140 may be set according to actual requirements, and this embodiment is not limited thereto; the core processing module 120 is configured to receive an interface configuration request and a data query task of the front-end processing module, query data in the corresponding configuration database 130 or the multiple heterogeneous databases 140, for example, aggregate the heterogeneous data in a server memory, and provide data query, interface configuration, data acquisition, and the like to the front-end processing module 110 through an interface function; the front-end processing module 110 may, for example, obtain configuration information and service data of the data interface through the interface, perform rendering to generate the data interface, provide complete user interaction, and transmit data back to the core processing module 120 after user operation and obtain a real-time feedback effect.
Specifically, referring to fig. 7, when a developer develops a data interface, the interface configuration system 10 may, for example, provide an interface configuration page, where the interface configuration page may, for example, be a visual interface, the developer may, for example, perform interface configuration through the interface configuration page, and specifically, may, for example, perform configuration through a template ID, a template name, a target heterogeneous database, a form column configuration, a search configuration, and the like of the data interface, the front-end processing module 110 generates an interface configuration request through configuration operations of the developer, and may, for example, send the interface configuration request through a configuration data interface, specifically, send the interface configuration request through a conf interface, the core processing module 120 receives the interface configuration request through the configuration data interface, and obtains corresponding interface template configuration information from the configuration database 130 based on the interface configuration request, the interface configuration request may include, for example, an acquisition instruction and configuration parameters, the configuration parameters may include, for example, information such as a template ID and a template name, and may further include, for example, a plurality of components of a data interface layout and component layout information, the plurality of components may include, for example, a plurality of types of components, and specifically may include, for example, a search box, a data list, and the like, the search box component may include, for example, a pull-down selection search component, a radio box search component, a check box search component, an input box search component, a date range, a customized user information search component, and the like, which is not limited in this embodiment, and the component layout information may include, for example, information such as a position, a size, and the like of each component; the core processing module 120 obtains the corresponding template and the related configuration information from the configuration database 130 based on the configuration parameters according to the obtaining instruction, and optionally, and meanwhile, the associated ref information and the related configuration information are obtained from the configuration database 130, the core processing module 120 generates the interface configuration information of the data interface according to the obtained interface template configuration information, the configuration information may include, for example, a plurality of component configuration information and component layout information of the data interface, and specifically may, for example, assemble the template and the related configuration information, associate ref information and the related configuration information, finally generate, for example, the search box configuration information and the data list header information of the data interface, of course, the interface configuration information may also be other configuration information, which is only an example here, and is specifically set according to the actual data interface requirement, and this embodiment is not limited thereto; the core processing module 120 sends the interface configuration information to the front-end processing module 110, and after the front-end processing module 110 takes the interface configuration information, the front-end processing module 110 may, for example, render a search box list and data list basic information of the data interface, that is, generate the data interface, specifically, may, for example, generate a plurality of target components according to a plurality of the component configuration information and corresponding components in a component library, and take a search box component as an example, may, for example, initialize a template configuration acquired by the core processing module 120 from the configuration database 130, simultaneously generate a target search box by combining corresponding components in the component library of the front-end processing module, and then generate the data interface according to the generated plurality of target components and the component layout information, where the data interface may be used by a user for interactive operation. When the data interface needs to be modified, the developer may, for example, continue to modify the configuration through the interface configuration page, and the modified interface configuration system 10 may, for example, re-perform the above operations to modify the data interface. Therefore, developers can realize the development of the data interface through simple configuration, and can see the development effect of the interface in real time, thereby greatly improving the development efficiency while reducing the communication cost of the front end and the back end.
Further, a user may perform an interactive operation such as data query through the generated data interface, for example, when the user performs an interactive operation such as data query, the front-end processing module 110 may generate a data query request based on the data interface based on the operation of the user, for example, and send the data query request to the core processing module 120 through the data query interface, taking the data query request of the search component as an example, the search component may further configure configuration condition information of an assembly query statement, for example, the configuration condition information may include query conditions (e.g., equal, unequal, greater than, less than, etc.), or may also configure methods such as a time formatting parameter, a default value, and the like, and, of course, this is merely an example, and may be configured according to an actual situation; when a user clicks a query, the front-end processing module 110 may, for example, obtain information such as configuration condition information and component configuration parameters corresponding to the search component, and send the information as a data query parameter to the core processing module 120, where the processing query request may specifically, for example, send the data query request by calling a query interface, and the core processing module 120 may, for example, receive the data query request through the data query interface, and obtain corresponding data template configuration information from the configuration database 130 and obtain target service data from a target heterogeneous database in the multiple heterogeneous databases 140 based on the data query request. The data query request may include, for example, a query instruction and a data query parameter, where the data query parameter may include, for example, a data template configuration parameter and a basic data query parameter, and may further include an associated attribute configuration parameter and an associated data query parameter, which is, of course, only illustrated here, and may be set according to actual needs, and this embodiment is not limited thereto.
As mentioned above, the core processing module 120 may, for example, obtain corresponding basic data template configuration information and associated attribute configuration information from the configuration database 130 according to the data template configuration parameters and associated attribute configuration parameters, generate a first target query statement of a first target heterogeneous database in the multiple heterogeneous databases according to the basic data query parameters, and generate a query sql statement according to the basic data query parameters, for example, the core processing module 120 may, for example, assemble according to the configuration condition information and component configuration parameters in the data query request to generate a final query sql statement, and execute the first target query statement to obtain a corresponding basic service data source from the first target heterogeneous database; for example, a second target query statement of a second target heterogeneous database in the plurality of heterogeneous databases may be generated according to the associated data query parameter, and the second target query statement is executed to obtain a corresponding associated service data source from the second target heterogeneous database; of course, the core processing module 120 may also update the chinese meaning of the field according to the associated attribute, and perform desensitization processing on the field requiring desensitization, which is only illustrated here, corresponding processing settings can be performed according to actual requirements, and in this embodiment, the core processing module 120 obtains the basic data template configuration information, the associated attribute configuration information, the basic service data source, the associated service data source, and other data, and correspondingly processes the data, assembles the processed data to generate corresponding target service data, and returns the target service data to the front-end processing module 110, after the front-end processing module 110 receives the target service data, rendering is carried out according to the target service data, the data is displayed on the data interface, and operation buttons can be provided to the data page according to service conditions, so that a user can read the data and carry out corresponding operation. Therefore, the data interface is developed through configuration, meanwhile, data query, display and the like are also realized, the configuration information, the display mode, the display content and the like of the data interface are generated through configuration, and the front-end processing module 110 is matched to automatically render the interactive interface, so that the development of the data interface can be completed in a small amount of time, and the development efficiency of the data interface is greatly improved.
In summary, the interface configuration method provided in this embodiment receives the interface configuration request and obtains the corresponding interface template configuration information from the database, then generates the interface configuration information of the data interface, renders and generates the data interface, and generates the data interface through the configuration process, so that the front-end processing module needs to be developed in the whole data interface development process with little intervention, thereby reducing the front-end and back-end communication costs and reducing the project development period, and the configuration development data interface can improve the development efficiency by about 70%, and further shorten the product development time. In addition, by receiving the data query request, acquiring corresponding data template configuration information from the configuration database, generating a target query statement, acquiring a corresponding service data source from the target heterogeneous database, generating corresponding target service data and returning the target service data to the front-end processing module, the data display is also configured, and the development efficiency is further improved.
Example 2
Referring to fig. 8, embodiment 2 of the present application provides an interface configuration apparatus 200, including:
a first receiving module 210, configured to receive an interface configuration request through a configuration data interface;
a first obtaining module 220, configured to obtain corresponding template configuration information from a configuration database based on the interface configuration request;
a first generating module 230, configured to generate interface configuration information of a data interface according to the template configuration information;
a second generating module 240, configured to generate the data interface according to the interface configuration information.
Referring to fig. 9, the interface configuration information includes a plurality of component configuration information and component layout information of the data interface; the second generating module 240 specifically includes:
a target component generating unit 241, configured to generate a plurality of target components according to a plurality of component configuration information and corresponding components in a component library;
a data interface generating unit 242, configured to generate the data interface according to the plurality of target components and the component layout information.
Referring to fig. 10, the interface configuration apparatus 200 further includes:
a second receiving module 250, configured to receive, through a data query interface, a data query request based on the data interface;
a second obtaining module 260, configured to obtain corresponding data template configuration information from the configuration database based on the data query request;
a third obtaining module 270, configured to generate a target query statement of a target heterogeneous database in the multiple heterogeneous databases according to the data query request, and execute the target query statement to obtain a corresponding service data source from the target heterogeneous database;
a third generating module 280, configured to generate corresponding target service data based on the data template configuration information and the service data source, and display data in the data interface according to the target service data.
Referring to fig. 11, the data query request includes a basic data template query parameter and an associated data template query parameter; the second obtaining module 260 includes:
a first obtaining unit 261, configured to obtain, according to the basic data template query parameter, corresponding basic data template configuration information from the configuration database;
the second obtaining unit 262 is configured to obtain corresponding associated template configuration information from the configuration database according to the associated data query template.
Referring to fig. 12, the data query request includes basic data query parameters and associated data query parameters; the third obtaining module 270 specifically includes:
a first generating unit 271, configured to generate a first target query statement of a first target heterogeneous database in the multiple heterogeneous databases according to the basic data query;
a third obtaining unit 272, configured to execute the first target query statement to obtain a corresponding basic service data source from the first target heterogeneous database;
a second generating unit 273, configured to generate a second target query statement of a second target heterogeneous database in the plurality of heterogeneous databases according to the associated data query parameter;
a fourth obtaining unit 274, configured to execute the second target query statement to obtain a corresponding associated service data source from the second target heterogeneous database.
The specific operation and technical effects between the modules in the interface configuration apparatus 200 in this embodiment are described in the foregoing embodiment 1.
Example 3
Referring to fig. 13, embodiment 3 of the present application provides an electronic device 300, which includes a processor 310, a memory 320, and a program 321 or an instruction stored on the memory 320 and executable on the processor 320, where the program 321 or the instruction, when executed by the processor 320, implements the interface configuration method described in embodiment 1.
Example 4
Referring to fig. 14, embodiment 4 of the present application provides a computer-readable storage medium 400. The computer-readable storage medium 400 is, for example, a nonvolatile memory, which is, for example: magnetic media (e.g., hard disks, floppy disks, and magnetic tape), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices specially constructed for storing and executing computer-executable instructions (e.g., Read Only Memories (ROMs), Random Access Memories (RAMs), flash memories, etc.). The computer-readable storage medium 400 has stored thereon computer-executable instructions 410. The computer-readable storage medium 400 may execute the computer-executable instructions 410 by one or more processors or processing devices to implement the interface configuration method of embodiment 1 described above.
It should be noted that the execution subjects of the steps of the method provided in embodiment 1 may be the same device, or different devices may be used as the execution subjects of the method. For example, the execution subject of steps 21 and 22 may be device 1, and the execution subject of step 23 may be device 2; for another example, the execution subject of step 21 may be device 1, and the execution subjects of steps 22 and 23 may be device 2; and so on.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. An interface configuration method, comprising:
receiving an interface configuration request through a configuration data interface;
acquiring corresponding interface template configuration information from a configuration database based on the interface configuration request;
generating interface configuration information of a data interface according to the interface template configuration information;
and generating the data interface according to the interface configuration information.
2. The interface configuration method of claim 1, wherein the interface configuration information comprises a plurality of component configuration information and component layout information for the data interface; the generating the data interface according to the interface configuration information specifically includes:
generating a plurality of target components according to the plurality of component configuration information and corresponding components in a component library;
and generating the data interface according to the target components and the component layout information.
3. The interface configuration method of claim 1 or 2, further comprising, after the generating the data interface according to the interface configuration information:
receiving a data query request based on the data interface through a data query interface;
acquiring corresponding data template configuration information from the configuration database based on the data query request;
generating a target query statement of a target heterogeneous database in a plurality of heterogeneous databases according to the data query request, and executing the target query statement to acquire a corresponding service data source from the target heterogeneous database;
and generating corresponding target service data based on the data template configuration information and the service data source, and displaying data on the data interface according to the target service data.
4. The interface configuration method of claim 3, wherein the data query request includes a base data template query parameter and an associated data template query parameter; the acquiring of the corresponding data template configuration information from the configuration database according to the data query request includes:
acquiring corresponding basic data template configuration information from the configuration database according to the basic data template query parameters;
and acquiring corresponding associated template configuration information from the configuration database according to the associated data query template.
5. The interface configuration method of claim 4, wherein the data query request includes a base data query parameter and an associated data query parameter; the generating a target query statement of a target heterogeneous database in a plurality of heterogeneous databases according to the data query request, and executing the target query statement to acquire a corresponding service data source from the target heterogeneous database specifically includes:
generating a first target query statement of a first target heterogeneous database in the plurality of heterogeneous databases according to the basic data query parameter;
executing the first target query statement to acquire a corresponding basic service data source from the first target heterogeneous database;
generating a second target query statement of a second target heterogeneous database in the plurality of heterogeneous databases according to the associated data query parameters;
and executing the second target query statement to acquire a corresponding associated service data source from the second target heterogeneous database.
6. An interface configuration device, comprising:
the first receiving module is used for receiving an interface configuration request through a configuration data interface;
the first acquisition module is used for acquiring corresponding template configuration information from a configuration database based on the interface configuration request;
the first generation module is used for generating interface configuration information of a data interface according to the template configuration information;
and the second generation module is used for generating the data interface according to the interface configuration information.
7. The interface configuration apparatus of claim 6, wherein the interface configuration information comprises a plurality of component configuration information and component layout information for the data interface; the second generation module specifically includes:
the target component generating unit is used for generating a plurality of target components according to a plurality of component configuration information and corresponding components in the component library;
and the data interface generating unit is used for generating the data interface according to the target components and the component layout information.
8. The interface configuration device of claim 6 or 7, further comprising:
the second receiving module is used for receiving a data query request based on the data interface through a data query interface;
the second acquisition module is used for acquiring corresponding data template configuration information from the configuration database based on the data query request;
a third obtaining module, configured to generate a target query statement of a target heterogeneous database in the multiple heterogeneous databases according to the data query request, and execute the target query statement to obtain a corresponding service data source from the target heterogeneous database;
and the third generation module is used for generating corresponding target service data based on the data template configuration information and the service data source, and displaying data on the data interface according to the target service data.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the interface configuration method of any one of claims 1 to 5.
10. A computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement the interface configuration method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111281338.5A CN114047914A (en) | 2021-11-01 | 2021-11-01 | Interface configuration method and device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111281338.5A CN114047914A (en) | 2021-11-01 | 2021-11-01 | Interface configuration method and device, electronic equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114047914A true CN114047914A (en) | 2022-02-15 |
Family
ID=80206697
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111281338.5A Pending CN114047914A (en) | 2021-11-01 | 2021-11-01 | Interface configuration method and device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114047914A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114896020A (en) * | 2022-06-16 | 2022-08-12 | 拉扎斯网络科技(上海)有限公司 | Popup window generation method and device, electronic equipment and readable storage medium |
CN115048151A (en) * | 2022-06-13 | 2022-09-13 | 艺龙网信息技术(北京)有限公司 | Background data configuration method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106708480A (en) * | 2015-07-29 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Management platform realization method and apparatus |
CN108776610A (en) * | 2018-06-27 | 2018-11-09 | 中国建设银行股份有限公司 | A kind of interface configuration method and device |
CN109445783A (en) * | 2018-09-25 | 2019-03-08 | 广州城市信息研究所有限公司 | By the construction method and device of the dynamic configuration application of service driving |
CN110609681A (en) * | 2018-06-14 | 2019-12-24 | 北京京东尚科信息技术有限公司 | System, method, device and medium for visually configuring and generating WEB application |
CN112015752A (en) * | 2020-08-31 | 2020-12-01 | 杭州小电科技股份有限公司 | Method and device for dynamically querying data, electronic equipment and storage medium |
-
2021
- 2021-11-01 CN CN202111281338.5A patent/CN114047914A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106708480A (en) * | 2015-07-29 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Management platform realization method and apparatus |
CN110609681A (en) * | 2018-06-14 | 2019-12-24 | 北京京东尚科信息技术有限公司 | System, method, device and medium for visually configuring and generating WEB application |
CN108776610A (en) * | 2018-06-27 | 2018-11-09 | 中国建设银行股份有限公司 | A kind of interface configuration method and device |
CN109445783A (en) * | 2018-09-25 | 2019-03-08 | 广州城市信息研究所有限公司 | By the construction method and device of the dynamic configuration application of service driving |
CN112015752A (en) * | 2020-08-31 | 2020-12-01 | 杭州小电科技股份有限公司 | Method and device for dynamically querying data, electronic equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115048151A (en) * | 2022-06-13 | 2022-09-13 | 艺龙网信息技术(北京)有限公司 | Background data configuration method and device |
CN114896020A (en) * | 2022-06-16 | 2022-08-12 | 拉扎斯网络科技(上海)有限公司 | Popup window generation method and device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110806863A (en) | Interface document generation method and device, electronic equipment and storage medium | |
US20140172775A1 (en) | Field extensibility in a multi-tenant environment with columnar database support | |
CN114047914A (en) | Interface configuration method and device, electronic equipment and computer readable storage medium | |
CN111427559B (en) | Method for realizing form customization service, method, device and system for generating form | |
CN105335132B (en) | Method, device and system for customizing application program function | |
CN110019835A (en) | Resource method of combination, device and electronic equipment | |
CN107451103B (en) | Template display and modification method and device | |
CN109522139B (en) | Data table service generation and calling method, device, equipment and storage medium | |
CN114327605B (en) | Vue-based remote form generation method, computer and storage medium | |
CN111198772A (en) | Method and system for generating application program interface API | |
CN116737127A (en) | Low code development method, device, equipment and storage medium | |
CN110647709A (en) | Form construction method and device and storage medium | |
CN117389562A (en) | Front-end code visual configuration and intelligent generation method and system based on Vue | |
CN106610845B (en) | Information management method, device, server and system | |
CN112560413B (en) | Report form expansion method, device and equipment based on configuration mode | |
CN113535175A (en) | Application program front-end code generation method and device, electronic equipment and medium | |
US11443098B1 (en) | Federated recursive user interface element rendering | |
CN108241620B (en) | Query script generation method and device | |
CN116860357A (en) | Dynamic adjustment method, equipment and medium for page | |
CN114281463B (en) | Form interface format configuration and interface display method, device and medium | |
US9230022B1 (en) | Customizable result sets for application program interfaces | |
CN115857929A (en) | Resource data processing method and device, computer equipment and storage medium | |
CN113900755B (en) | Alarm page processing method and device, computer equipment and readable storage medium | |
CN113704664A (en) | Method and device for generating routing address for accessing page | |
CN115687310A (en) | Data cleaning method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |