CN117435195A - Page generation method, device, equipment and storage medium - Google Patents

Page generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN117435195A
CN117435195A CN202311091702.0A CN202311091702A CN117435195A CN 117435195 A CN117435195 A CN 117435195A CN 202311091702 A CN202311091702 A CN 202311091702A CN 117435195 A CN117435195 A CN 117435195A
Authority
CN
China
Prior art keywords
target
service
information
page
logic
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
Application number
CN202311091702.0A
Other languages
Chinese (zh)
Inventor
尚鹤鸣
谷宇驰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202311091702.0A priority Critical patent/CN117435195A/en
Publication of CN117435195A publication Critical patent/CN117435195A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a page generation method, device, equipment and storage medium, relates to the technical field of artificial intelligence, and can be used in the financial science and technology field or other related fields. The method comprises the following steps: acquiring a page generation request of a target service, wherein the page generation request comprises target service logic and input assembly information, the input assembly information comprises an identification of at least one input assembly required by the target service and the purpose of each input assembly, and the target service logic is used for describing the processing flow of the target service; determining the request type of a page generation request according to the target service logic and the historical service information table; determining an initial template according to the target business logic, the input component information and the request type; and calling a preset component according to the initial template to generate a plurality of target pages. The efficiency of designing the target page is improved.

Description

Page generation method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of artificial intelligence technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a page.
Background
The staff can design the target page of the service system according to the service requirement, the target page can comprise a plurality of function keys, and the user can jump to the next target page corresponding to the function keys by clicking the function keys of the target page.
In the prior art, according to the page generation request of the target service, a worker can design a target page of the target service according to the design specification and the page generation request of a target service system corresponding to the target service. However, the goal business is increased continuously, and the goal business corresponds to a plurality of goal pages, and each goal page is designed manually, so that the efficiency of designing the goal pages is lower.
Disclosure of Invention
The application provides a page generation method, device, equipment and storage medium, which are used for solving the technical problem of low efficiency of designing a target page.
In a first aspect, the present application provides a page generating method, including:
acquiring a page generation request of a target service, wherein the page generation request comprises target service logic and input assembly information, the input assembly information comprises an identification of at least one input assembly required by the target service and the purpose of each input assembly, and the target service logic is used for describing the processing flow of the target service;
determining a request type of the page generation request according to the target service logic and the historical service information table, wherein the request type comprises a service function optimization type and a newly added service type;
Determining an initial template according to the target business logic, the input component information and the request type;
and calling a preset component according to the initial template to generate a plurality of target pages.
In one possible implementation, determining an initial template based on the target business logic, the input component information, and the request type includes:
if the request type is a service function optimization type, determining the initial template according to the historical service information table, the target service logic and the input component information;
and if the request type is the newly added service type, determining the initial template according to the target service logic and the input assembly information.
In one possible implementation, determining the initial template according to the historical business information table, the target business logic, and the input component information includes:
determining historical logic information of the target service in the historical service information table;
updating the historical logic information according to the target business logic to obtain target logic information, wherein the target logic information comprises a plurality of pages to be generated, a plurality of components to be determined and a relation between each page to be generated and each component to be determined;
And determining the initial template according to the target logic information and the input component information.
In one possible implementation, determining the initial template according to the target business logic and the input component information includes:
determining target logic information according to the target business logic;
and determining the initial template according to the target logic information and the input component information.
In one possible implementation, determining the initial template according to the target logic information and the input component information includes:
determining a plurality of pages to be selected according to the target logic information and the input assembly information, wherein the pages to be selected comprise identifiers of a plurality of functional assemblies and positions of each functional assembly;
determining the link relation between the functional component and each page to be selected according to the target logic information and the component information of the functional component;
and determining the initial template according to the link relation between the functional component and each page to be selected.
In one possible implementation manner, determining the request type of the page generation request according to the target service logic and the history service information table includes:
Acquiring a history service information table, wherein the history service information table comprises identifiers of a plurality of service systems and service logic information of a plurality of services in each service system;
if the service logic information of the target service exists in the historical service information table, determining that the request type of the page generation request is the service function optimization type;
and if the service logic information of the target service does not exist in the history service information table, determining that the request type of the page generation request is the newly added service type.
In one possible implementation, the initial template includes a plurality of pages to be selected; aiming at any page to be selected; calling a preset component according to the page to be selected to generate a target page corresponding to the page to be selected, wherein the target page comprises:
determining a target service system in which the target service is located;
if the identification of the input component exists in the page to be selected, calling the identifications of the functional components and preset components corresponding to the identifications of the input components in a component library through the target service system to generate a target page corresponding to the page to be selected;
if the identification of the input component does not exist in the page to be selected, calling preset components corresponding to the identification of the functional components in a component library through the target service system so as to generate a target page corresponding to the page to be selected; the target pages comprise target pages corresponding to each page to be selected.
In a second aspect, the present application provides a page generating device, including an obtaining module, a first determining module, a second determining module, and a generating module:
the acquisition module is used for acquiring a page generation request of a target service, wherein the page generation request comprises target service logic and input assembly information, the input assembly information comprises an identifier of at least one input assembly required by the target service and the purpose of each input assembly, and the target service logic is used for describing the processing flow of the target service;
the first determining module is used for determining a request type of the page generation request according to the target service logic and the historical service information table, wherein the request type comprises a service function optimization type and a newly added service type;
the second determining module is used for determining an initial template according to the target business logic, the input component information and the request type;
the generating module is used for calling a preset component according to the initial template to generate a plurality of target pages.
In one possible implementation manner, the second determining module is specifically configured to:
if the request type is a service function optimization type, determining the initial template according to the historical service information table, the target service logic and the input component information;
And if the request type is the newly added service type, determining the initial template according to the target service logic and the input assembly information.
In one possible implementation manner, the second determining module is specifically configured to:
determining historical logic information of the target service in the historical service information table;
updating the historical logic information according to the target business logic to obtain target logic information, wherein the target logic information comprises a plurality of pages to be generated, a plurality of components to be determined and a relation between each page to be generated and each component to be determined;
and determining the initial template according to the target logic information and the input component information.
In one possible implementation manner, the second determining module is specifically configured to:
determining target logic information according to the target business logic;
and determining the initial template according to the target logic information and the input component information.
In one possible implementation manner, the second determining module is specifically configured to:
determining a plurality of pages to be selected according to the target logic information and the input assembly information, wherein the pages to be selected comprise identifiers of a plurality of functional assemblies and positions of each functional assembly;
Determining the link relation between the functional component and each page to be selected according to the target logic information and the component information of the functional component;
and determining the initial template according to the link relation between the functional component and each page to be selected.
In one possible implementation manner, the first determining module is specifically configured to:
acquiring a history service information table, wherein the history service information table comprises identifiers of a plurality of service systems and service logic information of a plurality of services in each service system;
if the service logic information of the target service exists in the historical service information table, determining that the request type of the page generation request is the service function optimization type;
and if the service logic information of the target service does not exist in the history service information table, determining that the request type of the page generation request is the newly added service type.
In one possible implementation, the initial template includes a plurality of pages to be selected; aiming at any page to be selected; the generation module has a function for:
determining a target service system in which the target service is located;
if the identification of the input component exists in the page to be selected, calling the identifications of the functional components and preset components corresponding to the identifications of the input components in a component library through the target service system to generate a target page corresponding to the page to be selected;
If the identification of the input component does not exist in the page to be selected, calling preset components corresponding to the identification of the functional components in a component library through the target service system so as to generate a target page corresponding to the page to be selected; the target pages comprise target pages corresponding to each page to be selected.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, wherein the memory is configured to store,
the memory stores computer-executable instructions;
the processor executing computer-executable instructions stored in the memory causes the processor to perform the page generation method of any of the first aspects.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored therein computer-executable instructions for implementing the page generation method of any one of the first aspects when the computer-executable instructions are executed by a processor.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements the page generation method of any of the first aspects.
According to the page generation method, device, equipment and storage medium, the page generation request of the target service can be obtained, the page generation request comprises target service logic and input component information, the request type of the page generation request can be determined according to the target service logic and the historical service information table, the initial template of the target service can be determined according to the target service logic, the input component information and the request type, the preset component is called according to the initial template, a plurality of target pages are generated, the plurality of target pages do not need to be designed manually, and the efficiency of designing the target pages is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a page generating method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating another page generating method according to an embodiment of the present disclosure;
FIG. 4 is a schematic flow chart of determining an initial template according to an embodiment of the present application;
FIG. 5 is a schematic view of a page generation method according to an embodiment of the present disclosure;
Fig. 6 is a schematic structural diagram of a page generating apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations 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 accompanying claims.
It should be noted that the method and the device for generating the page of the present application may be used in the technical field of artificial intelligence, and may also be used in any field other than the technical field of artificial intelligence, and the application field of the method and the device for generating the page of the present application is not limited.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application. Referring to fig. 1, a service device 101 and a processing device 102 are included.
Service systems can be installed in the service device 101, each service system can process a plurality of services, in the process of processing any one service, a user can perform man-machine interaction operation on a plurality of pages, and if a target service is added and modified in any one service system, a plurality of target pages for processing the target service can be generated through the processing device 102.
The processing device 102 may store a history service information table, where the history service information table may include identifiers of a plurality of service systems and service logic information of a plurality of services in each service system. The processing device 102 may obtain a page generation request of the target service, where the page generation request includes target service logic and input component information, and may determine a request type of the page generation request according to the target service logic and the history service information table, determine an initial template of the target service according to the target service logic, the input component information, and the request type, call a preset component according to the initial template, and may generate a plurality of target pages.
In the prior art, according to the page generation request of the target service, a worker can design a target page of the target service according to the design specification and the page generation request of a target service system corresponding to the target service. However, the goal business is increased continuously, and the goal business corresponds to a plurality of goal pages, and each goal page is designed manually, so that the efficiency of designing the goal pages is lower.
In the embodiment of the application, the request type of the page generation request can be determined according to the page generation request of the target service, and a plurality of target pages can be automatically generated according to the target service logic, the input component information and the request type, so that the plurality of target pages do not need to be designed manually, and the efficiency of designing the target pages is improved.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a flow chart of a page generating method according to an embodiment of the present application. Referring to fig. 2, the method may include:
S201, acquiring a page generation request of a target service.
The execution body of the embodiment of the application may be a processing device, or may be a page generating device disposed in the processing device. The page generating means may be implemented by software or by a combination of software and hardware.
The page generation request may include target business logic and input component information.
The target business logic may be used to describe the process flow of the target business.
The input component information may include an identification of at least one input component required for the target service, and a use of each input component, where the use of the input component may include text input, dictionary selection, date selection, and the like.
For example, assuming that the target service is service 1, the input component information in the page generation request of service 1 may be shown in table 1, where the total number of identifiers of 3 input components is input components 1-3, and the uses of the input components 1-3 respectively.
TABLE 1
Identification of input components Use of an input assembly
Input assembly 1 Text input
Input assembly 2 Dictionary selection
Input assembly 3 Date selection
S202, determining the request type of the page generation request according to the target service logic and the historical service information table.
The historical service information table may include identification of a plurality of service systems and service logic information of a plurality of services in each service system.
For example, it is assumed that the history service information table may be as shown in table 2, and a total of 3 service systems are service system 1, service system 2, and service system 3, respectively.
TABLE 2
The request types may include a service function optimization type and a newly added service function type.
If the target service exists in the target service system, the request type of the page generation request is a service function optimization type; if the target service does not exist in the target service system, the request type of the page generation request is the newly added service type.
S203, determining an initial template according to the target business logic, the input component information and the request type.
The initial template may be determined in two ways:
mode one: if the request type is service function optimization, determining an initial template according to the historical service information table, the target service logic and the input component information.
Because the request type is service function optimization, service logic information corresponding to the target service can be determined in the historical service information table, the service logic information can be updated according to the target service logic to obtain target logic information, and an initial template can be determined according to the target logic information and the input component information.
Mode two: if the request type is the newly added service type, determining an initial template according to the target service logic and the input component information.
Since the request type is the newly added service type, the target logic information can be determined according to the target service logic, and the initial template can be determined according to the target logic information and the input component information.
S204, calling a preset component according to the initial template to generate a plurality of target pages.
The initial template may include a plurality of pages to be selected, which may include identifications of a plurality of components.
The preset components can be called according to the identifications of the components in the page to be selected, and a target page corresponding to the page to be selected is generated.
The preset components can comprise the styles of the components and the sizes of the components.
According to the page generation method provided by the embodiment of the invention, the page generation request of the target service can be obtained, the page generation request comprises the target service logic and the input component information, the request type of the page generation request can be determined according to the target service logic and the history service information table, the initial template of the target service can be determined according to the target service logic, the input component information and the request type, the preset component is called according to the initial template, a plurality of target pages are generated, the manual design of the plurality of target pages is not needed, and the efficiency of designing the target pages is improved.
Fig. 3 is a flowchart of another page generating method according to an embodiment of the present application. Referring to fig. 3, the method may include:
s301, acquiring a page generation request of a target service.
The execution of S301 may refer to the execution of S201, and will not be described herein.
S302, acquiring a history service information table.
The service logic information of the existing multiple service systems can be stored in a history service information table, and if the added or modified service logic information exists, the history service information table can be updated.
S303, if the service logic information of the target service exists in the history service information table, determining that the request type of the page generation request is a service function optimization type.
For example, assuming that the target service is service 11, and assuming that the history service information table may be as shown in table 2, in which service logic information of the target service exists, it is determined that the request type of the page generation request of the target service is the service function optimization type.
S304, if the service logic information of the target service does not exist in the history service information table, determining that the request type of the page generation request is the newly added service type.
For example, assuming that the target service is service 14, and assuming that the history service information table may be as shown in table 2, where no service logic information of the target service exists in the history service information table, it is determined that the request type of the page generation request of the target service is a new service type.
S305, if the request type is the service function optimization type, the historical logic information of the target service is determined in a historical service information table.
For example, assuming that the target service is service 11, assuming that the history service information table may be as shown in table 2, the history logic information of the target service may be determined as service logic information 11.
S306, updating the historical logic information according to the target business logic to obtain the target logic information.
The history logic information may include a plurality of history pages, a plurality of history components, and a relationship between each history page and each history component.
Multiple pages to be generated can be determined according to the business flow in the target business logic, and functional components in each multiple pages to be generated can be determined according to the description of submission, addition, modification, determination, closing and the like, and the functional components can comprise a button component, a selection component and the like.
The target logic information may include a plurality of pages to be generated, a plurality of components to be determined, and a relationship between each page to be generated and each component to be determined.
For example, assuming that there are 2 history pages and 3 history components in total in the history logic information, the relationship between each history page and each history component may be as shown in table 3, and assuming that the target business logic adds user information verification based on the history logic information, one page (i.e., to-be-generated page 2) may be added in the middle of the 2 history pages for verifying the user information, and assuming that the to-be-determined component 1 and the to-be-determined component 2 may be determined in the to-be-generated page 2, the target logic information as shown in table 3 may be obtained.
TABLE 3 Table 3
S307, determining an initial template according to the target logic information and the input component information.
The execution of S307 may be referred to as the execution in the following embodiments, and will not be described here.
S308, if the service type is the newly added service type according to the request type, determining target logic information according to the target service logic.
For example, assuming that the target business logic is business logic 1, 2 pages to be generated can be determined according to the business logic 1, and the pages to be generated are respectively a page to be generated 1 and a page to be generated 2, wherein components to be determined corresponding to the page to be generated 1 are a component to be determined 1 and a component to be determined 2, and components to be determined corresponding to the page to be generated 2 are a component to be determined 3, a component to be determined 4 and a component to be determined 5.
S309, determining an initial template according to the target logic information and the input component information.
The execution of S309 may be referred to as the execution in the following embodiments, and will not be described here.
S310, determining a target service system where a target service is located according to any page to be selected.
For example, assuming that the target business is a loan business of a user, it may be determined that the target business system in which the target business is located is a loan business system.
S311, if the identification of the input component exists in the page to be selected, calling the identifications of the functional components and the preset components corresponding to the identifications of the input components in the component library through the target service system to generate a target page corresponding to the page to be selected.
For any service system, a plurality of page images of the service system can be acquired, each page image is subjected to image processing, component information in each service system can be obtained, and the component information of the service systems can be stored in a component library.
Optionally, the style and size of the preset components in the component library may be configured.
The component information may include an identification of a preset component and a component type. The component types may include a button component type, a menu component type, a text input component type, a dictionary selection component type, a date selection component type, and the like, among others. The button component type and the menu component type are functional components, and the text input component type, the dictionary selection component type and the date selection component type are input component types.
In the component library, each component type may include at least one preset component.
For example, assume that the component library can be as shown in table 4.
TABLE 4 Table 4
For any functional component or input component, the type of the component can be determined according to the identification of the component, a corresponding preset component is called in the component library, and when the number of the preset components is greater than or equal to 2, any component can be called randomly.
For example, assuming that the service system is the service system 1, assuming that 3 components are in total in the page 1 to be selected, namely, a functional component 1, a functional component 2 and an input component 3, assuming that the component type of the functional component 1 is the component type 1, the component type of the functional component 2 is the component type 2, and the component type of the input component 3 is the component type 3, assuming that the component library can be shown in table 4, a preset component 1, a preset component 3 and a preset component 4 can be called to obtain a target page 1 corresponding to the page 1 to be selected.
S312, if the identification of the input component does not exist in the page to be selected, calling preset components corresponding to the identifications of the functional components in the component library through the target service system to generate a target page corresponding to the page to be selected.
For example, assuming that the service system is the service system 2, assuming that 2 components are in total in the page 2 to be selected, namely, the functional component 1 and the functional component 2, assuming that the component type of the functional component 1 is the component type 1, the component type of the functional component 2 is the component type 2, and assuming that the component library can be shown in table 4, the preset component 2 and the preset component 6 can be called to generate the target page 2 corresponding to the page 2 to be selected.
The plurality of target pages may include target pages corresponding to each of the pages to be selected.
According to the page generation method provided by the embodiment of the invention, the initial template can be determined according to the request type of the page generation request, the request type, the target business logic and the input component information, and the preset component is called to generate a plurality of target pages according to a plurality of to-be-selected pages in the initial template, so that the automatic generation of the target pages according to the page generation request can be realized, and the efficiency of designing the target pages is improved.
For ease of understanding, the following further describes steps S307 and S309 provided in the embodiment of the present application in connection with fig. 4, where the execution process of determining the initial template is based on the target logic information and the input component information.
Fig. 4 is a schematic flow chart of determining an initial template according to an embodiment of the present application. Referring to fig. 4, the method may include:
s401, determining a plurality of pages to be selected according to target logic information and input component information.
The identification of at least one input component required by the target service in the input component information can be added into a plurality of pages to be generated according to the target logic information according to the purpose of each input component in the input component information, so that a plurality of pages to be selected are obtained.
The candidate page may include therein an identification of a plurality of functional components and a location of each functional component.
S402, determining the link relation between the functional component and each page to be selected according to the target logic information and the component information of the functional component.
Component information for a functional component may include component type and component usage.
For example, assuming that there are 3 candidate pages, namely a candidate page 1, a candidate page 2 and a candidate page 3, and assuming that the candidate page 1 includes a function component 1, the component type of the function component 1 is a button component type, and the component use is information for verification, it may be determined that the candidate page 2 is the next page of the function component 1 according to the target logic information, that is, after receiving the operation of clicking the function component 1 by the user, the user jumps to the candidate page 2.
For example, assuming that there are 3 functional components and 3 pages to be selected in total, the link relationship of each functional component and each page to be selected may be as shown in table 5.
TABLE 5
S403, determining an initial template according to the link relation between the functional component and each page to be selected.
The ordering of the multiple candidate interfaces can be determined according to the link relation between the functional component and each candidate page, and an initial template is obtained.
According to the page generation method provided by the embodiment of the invention, a plurality of pages to be selected can be determined according to the target logic information and the input component information, the link relation between the functional component and each target page is determined according to the target logic information and the component information of the functional component, and the initial template is determined according to the link relation between the functional component and each page to be selected, so that the efficiency of designing the page can be improved.
Fig. 5 is a schematic structural diagram of a page generating method according to an embodiment of the present application. Referring to fig. 5, after obtaining a page generation request, determining target service logic and input component information, and obtaining a history service information table, determining a request type of the page generation request according to the target service logic and the history service information table, and if the request type is a service function optimization type, determining an initial template according to the history service information table, the target service logic and the input component information; if the request type is the newly added service type, determining an initial template according to the target service logic and the input component information. And calling a preset component in the component library according to the initial template to generate a plurality of target pages.
Fig. 6 is a schematic structural diagram of a page generating apparatus according to an embodiment of the present application. Referring to fig. 6, the page generating apparatus 10 may include an acquisition module 11, a first determination module 12, a second determination module 13, and a generation module 14:
the acquiring module 11 is configured to acquire a page generation request of a target service, where the page generation request includes target service logic and input component information, and the input component information includes an identifier of at least one input component required by the target service and a purpose of each input component, and the target service logic is configured to describe a processing flow of the target service;
The first determining module 12 is configured to determine, according to the target service logic and the history service information table, a request type of a page generation request, where the request type includes a service function optimization type and a newly added service type;
the second determining module 13 is configured to determine an initial template according to the target service logic, the input component information and the request type;
the generating module 14 is configured to invoke a preset component according to the initial template to generate a plurality of target pages.
The page generating device provided in the embodiment of the present application may execute the technical solution shown in the foregoing method embodiment, and its implementation principle and beneficial effects are similar, and will not be described herein again.
In one possible embodiment, the second determining module 13 is specifically configured to:
if the request type is a service function optimization type, determining an initial template according to a historical service information table, target service logic and input component information;
if the request type is the newly added service type, determining an initial template according to the target service logic and the input component information.
In one possible embodiment, the second determining module 13 is specifically configured to:
determining historical logic information of a target service in a historical service information table;
Updating the historical logic information according to the target business logic to obtain target logic information, wherein the target logic information comprises a plurality of pages to be generated, a plurality of components to be determined and the relation between each page to be generated and each component to be determined;
and determining an initial template according to the target logic information and the input component information.
In one possible embodiment, the second determining module 13 is specifically configured to:
determining target logic information according to the target business logic;
and determining an initial template according to the target logic information and the input component information.
In one possible embodiment, the second determining module 13 is specifically configured to:
determining a plurality of pages to be selected according to the target logic information and the input component information, wherein the pages to be selected comprise identifiers of a plurality of functional components and positions of each functional component;
determining the link relation between the functional component and each page to be selected according to the target logic information and the component information of the functional component;
and determining an initial template according to the link relation between the functional component and each page to be selected.
In one possible implementation, the first determining module 12 is specifically configured to:
acquiring a history service information table, wherein the history service information table comprises identifiers of a plurality of service systems and service logic information of a plurality of services in each service system;
If the service logic information of the target service exists in the historical service information table, determining that the request type of the page generation request is a service function optimization type;
if the service logic information of the target service does not exist in the history service information table, determining that the request type of the page generation request is the newly added service type.
In one possible implementation, the initial template includes a plurality of pages to be selected; aiming at any page to be selected; the generation module 14 has a function for:
determining a target service system in which a target service is located;
if the identification of the input component exists in the page to be selected, calling the identifications of the functional components and preset components corresponding to the identifications of the input components in a component library through a target service system to generate a target page corresponding to the page to be selected;
if the identification of the input component does not exist in the page to be selected, calling preset components corresponding to the identification of the functional components in a component library through a target service system to generate a target page corresponding to the page to be selected; the target pages comprise target pages corresponding to each page to be selected.
The page generating device provided in the embodiment of the present application may execute the technical solution shown in the foregoing method embodiment, and its implementation principle and beneficial effects are similar, and will not be described herein again.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 7, the electronic device 20 may include a processor 21 and a memory 22. The processor 21, the memory 22, and the like are illustratively interconnected by a bus 23.
Memory 22 stores computer-executable instructions;
the processor 21 executes computer-executable instructions stored in the memory 22, causing the processor 21 to perform the page generation method as shown in the method embodiments described above.
Accordingly, embodiments of the present application provide a computer-readable storage medium having stored therein computer-executable instructions for implementing the variant page generation method of the above-described method embodiments when the computer-executable instructions are executed by a processor.
Accordingly, embodiments of the present application may also provide a computer program product, including a computer program, which, when executed by a processor, may implement the page generation method shown in the foregoing method embodiments.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
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 storage media for a computer 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 disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should be noted that the method, the device, the equipment and the storage medium for generating the page disclosed in the disclosure can be used in the technical field of artificial intelligence, and can also be used in the technical field of finance and technology or other related fields. The page generation method, device, equipment and application field of the storage medium are not limited.
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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A page generation method, comprising:
acquiring a page generation request of a target service, wherein the page generation request comprises target service logic and input assembly information, the input assembly information comprises an identification of at least one input assembly required by the target service and the purpose of each input assembly, and the target service logic is used for describing the processing flow of the target service;
determining a request type of the page generation request according to the target service logic and the historical service information table, wherein the request type comprises a service function optimization type and a newly added service type;
determining an initial template according to the target business logic, the input component information and the request type;
and calling a preset component according to the initial template to generate a plurality of target pages.
2. The method of claim 1, wherein determining an initial template based on the target business logic, the input component information, and the request type comprises:
if the request type is a service function optimization type, determining the initial template according to the historical service information table, the target service logic and the input component information;
And if the request type is the newly added service type, determining the initial template according to the target service logic and the input assembly information.
3. The method of claim 2, wherein determining the initial template based on the historical business information table, the target business logic, and the input component information comprises:
determining historical logic information of the target service in the historical service information table;
updating the historical logic information according to the target business logic to obtain target logic information, wherein the target logic information comprises a plurality of pages to be generated, a plurality of components to be determined and a relation between each page to be generated and each component to be determined;
and determining the initial template according to the target logic information and the input component information.
4. The method of claim 2, wherein determining the initial template based on the target business logic and the input component information comprises:
determining target logic information according to the target business logic;
and determining the initial template according to the target logic information and the input component information.
5. The method of claim 3 or 4, wherein determining the initial template from the target logic information and the input component information comprises:
determining a plurality of pages to be selected according to the target logic information and the input assembly information, wherein the pages to be selected comprise identifiers of a plurality of functional assemblies and positions of each functional assembly;
determining the link relation between the functional component and each page to be selected according to the target logic information and the component information of the functional component;
and determining the initial template according to the link relation between the functional component and each page to be selected.
6. The method of any of claims 1-5, wherein determining the request type of the page generation request from the target service logic and history service information table comprises:
acquiring a history service information table, wherein the history service information table comprises identifiers of a plurality of service systems and service logic information of a plurality of services in each service system;
if the service logic information of the target service exists in the historical service information table, determining that the request type of the page generation request is the service function optimization type;
And if the service logic information of the target service does not exist in the history service information table, determining that the request type of the page generation request is the newly added service type.
7. The method of any of claims 1-6, wherein the initial template includes a plurality of candidate pages therein; aiming at any page to be selected; calling a preset component according to the page to be selected to generate a target page corresponding to the page to be selected, wherein the target page comprises:
determining a target service system in which the target service is located;
if the identification of the input component exists in the page to be selected, calling the identifications of the functional components and preset components corresponding to the identifications of the input components in a component library through the target service system to generate a target page corresponding to the page to be selected;
if the identification of the input component does not exist in the page to be selected, calling preset components corresponding to the identification of the functional components in a component library through the target service system so as to generate a target page corresponding to the page to be selected; the target pages comprise target pages corresponding to each page to be selected.
8. The page generating device is characterized by comprising an acquisition module, a first determining module, a second determining module and a generating module:
The acquisition module is used for acquiring a page generation request of a target service, wherein the page generation request comprises target service logic and input assembly information, the input assembly information comprises an identifier of at least one input assembly required by the target service and the purpose of each input assembly, and the target service logic is used for describing the processing flow of the target service;
the first determining module is used for determining a request type of the page generation request according to the target service logic and the historical service information table, wherein the request type comprises a service function optimization type and a newly added service type;
the second determining module is used for determining an initial template according to the target business logic, the input component information and the request type;
the generating module is used for calling a preset component according to the initial template to generate a plurality of target pages.
9. An electronic device, comprising: a memory and a processor, wherein the memory is configured to store,
the memory stores computer-executable instructions;
the processor executing computer-executable instructions stored in the memory, causing the processor to perform the page generation method of any one of claims 1 to 7.
10. A computer readable storage medium having stored therein computer executable instructions for implementing the page generation method of any of claims 1 to 7 when the computer executable instructions are executed by a processor.
CN202311091702.0A 2023-08-28 2023-08-28 Page generation method, device, equipment and storage medium Pending CN117435195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311091702.0A CN117435195A (en) 2023-08-28 2023-08-28 Page generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311091702.0A CN117435195A (en) 2023-08-28 2023-08-28 Page generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117435195A true CN117435195A (en) 2024-01-23

Family

ID=89554266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311091702.0A Pending CN117435195A (en) 2023-08-28 2023-08-28 Page generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117435195A (en)

Similar Documents

Publication Publication Date Title
CN107450979B (en) Block chain consensus method and device
CN107644286B (en) Workflow processing method and device
CN106899666B (en) Data processing method and device for service identification
CN110704037B (en) Rule engine implementation method and device
CN110781165B (en) Method, device and equipment for processing service data
CN108599973B (en) Log association method, device and equipment
CN112015739A (en) Data verification and data query method and device
CN111539739A (en) Risk detection method, device and equipment
CN107578338B (en) Service publishing method, device and equipment
CN111383106B (en) Credit processing method, device, equipment and system
CN110851207B (en) State transition management method and device, electronic equipment and storage medium
US20240126758A1 (en) Run-time performance of a database
CN111988429A (en) Algorithm scheduling method and system
CN117435195A (en) Page generation method, device, equipment and storage medium
CN116188020A (en) Abnormal account identification method, device and storage medium
US10509659B1 (en) Input processing logic to produce outputs for downstream systems using configurations
CN107291439B (en) Target incremental data construction method and device
CN110245115B (en) File processing method, engine and system
CN109636324B (en) Electronic service contract processing method and device
CN114281377A (en) Block chain system management method and device based on metadata
CN117195909A (en) Task complexity determining method, device, equipment and storage medium
CN110968552B (en) Application information storage method and device
CN117193976A (en) Task processing method and device and electronic equipment
CN117272114A (en) Verification method, device and equipment for report data and storage medium
CN114063999A (en) Data processing method, device, equipment and medium

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