A method and device for generating a page form
By dynamically generating form configuration information on the FaaS function platform, the problems of low efficiency, high cost and poor user experience in the existing technology are solved, and more efficient and lower-cost page form generation is achieved, and applicable scenarios are expanded.
Patent Information
- Application Number
- CN202210777563.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-01
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2042-07-01
AI Technical Summary
The method of generating page forms in the prior art has problems such as high development cost, low generation efficiency, narrow applicable scenarios and poor user experience.
By receiving page form generation requests, generating form numbers, and dynamically generating form configuration information using the FaaS function platform, thereby rendering and generating page forms.
It improves the efficiency of page forms generation, reduces development costs, expands applicable scenarios, and improves user experience.
Smart Images

Figure CN115146202B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a page form generation method and device. Background Art
[0002] The front-end Form can solve the problems of data acquisition, data verification and data assignment. Currently, the form components in the middle and back-end are not only input (input box component) and select (multi-select drop-down box component), but also extended to range selector, date selector and other components. By doing multi-layer encapsulation on the native components, more elegant UI (User Interface) and more complex interactions can be achieved.
[0003] However, since forms involve complex scenarios such as linkage, verification, and layout, how to quickly and dynamically generate page forms that meet user needs is a technical problem that developers urgently need to solve.
[0004] There are at least the following problems in the prior art:
[0005] Existing methods usually generate page forms by writing form codes or configuration files, which has technical problems such as high development costs, low page form generation efficiency, narrow application scenarios of page form generation methods, and poor user experience. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides a page form generation method and device, which can be combined with the FaaS function platform to dynamically generate form configuration information, and then render and generate a page form, thereby improving the generation efficiency of the page form, reducing the development cost, expanding the applicable scenarios of the page form generation method, and improving the user experience.
[0007] To achieve the above object, according to one aspect of an embodiment of the present invention, a page form generation method is provided, comprising:
[0008] receiving a page form generation request, and generating a form number when it is determined that the page form generation request does not include user form configuration information; wherein the page form generation request includes a form type;
[0009] Obtain the platform form configuration information from the FaaS function platform based on the form number and form type;
[0010] The platform form configuration information is parsed and processed, and the parsing result is rendered to obtain a page form.
[0011] Furthermore, before the step of obtaining the platform form configuration information from the FaaS function platform, the method further includes:
[0012] Use the FaaS function platform to create a form submission function and configure the parameter fields corresponding to the form submission function. Use the FaaS function platform to create a form query function and configure the simulated data corresponding to the parameter fields in the form query function.
[0013] Receive the form submission function interface parameters and form query function interface parameters sent by the FaaS function platform.
[0014] Furthermore, according to the form number and the form type, the step of obtaining the platform form configuration information from the FaaS function platform includes:
[0015] Determine the target form submission function and target form query function according to the form number and form type;
[0016] According to the target form submission function, the target form query function, the form submission function interface parameters and the form query function interface parameters, the platform form configuration information is obtained from the FaaS function platform; wherein the platform form configuration information includes the target parameter fields and their corresponding target simulation data.
[0017] Furthermore, the steps of parsing the platform form configuration information and rendering the parsing result to obtain a page form include:
[0018] The target parameter fields and target simulation data in the platform form configuration information are parsed and processed, and the parsing result is rendered to obtain a page form; wherein the parsing result indicates the form component type corresponding to the target simulation data.
[0019] Furthermore, the user form configuration information includes a form component type and form data in each form component; after the step of receiving a page form generation request, if it is determined that the page form generation request includes the user form configuration information, the method further includes:
[0020] Render the user form configuration information to obtain the page form.
[0021] Furthermore, the method further comprises:
[0022] Receive user form configuration update information, and update the page form according to the user form configuration update information.
[0023] According to another aspect of an embodiment of the present invention, a page form generating device is provided, characterized in that it includes:
[0024] A receiving module, used for receiving a page form generation request, and generating a form number when it is determined that the page form generation request does not include user form configuration information; wherein the page form generation request includes a form type;
[0025] The acquisition module is used to obtain the platform form configuration information from the FaaS function platform according to the form number and form type;
[0026] The page generation module is used to parse the platform form configuration information and render the parsing results to obtain the page form.
[0027] Furthermore, a function construction module is included. Before the step of obtaining the platform form configuration information from the FaaS function platform, the function construction module is used to:
[0028] Use the FaaS function platform to create a form submission function and configure the parameter fields corresponding to the form submission function. Use the FaaS function platform to create a form query function and configure the simulated data corresponding to the parameter fields in the form query function.
[0029] Receive the form submission function interface parameters and form query function interface parameters sent by the FaaS function platform.
[0030] According to another aspect of an embodiment of the present invention, there is provided an electronic device for generating a page form, comprising:
[0031] one or more processors;
[0032] a storage device for storing one or more programs,
[0033] When one or more programs are executed by one or more processors, the one or more processors implement any of the above-mentioned page form generation methods.
[0034] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, any of the above-mentioned page form generation methods is implemented.
[0035] An embodiment of the above invention has the following advantages or beneficial effects: because a page form generation request is received and it is determined that the page form generation request does not include user form configuration information, a form number is generated; wherein the page form generation request includes a form type; according to the form number and the form type, the platform form configuration information is obtained from the FaaS function platform; the platform form configuration information is parsed and processed, and the parsed processing result is rendered to obtain a page form. Therefore, the technical problem of generating a page form by writing form code or writing configuration files in the existing method is overcome, which has the technical problems of high development cost, low page form generation efficiency, narrow applicable scenarios of the page form generation method, and poor user experience. Therefore, the FaaS function platform can be combined to dynamically generate form configuration information, and then render and generate a page form, thereby improving the generation efficiency of the page form, reducing the development cost, expanding the applicable scenarios of the page form generation method, and improving the technical effect of user experience.
[0036] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0038] Figure 1 is a schematic diagram of the main process of a page form generation method provided according to an embodiment of the present invention;
[0039] Figure 2a is a schematic diagram of the main process of a page form generation method provided according to another embodiment of the present invention;
[0040] Figure 2b yes Figure 2a Schematic diagram of data value parsing rules in ;
[0041] Figure 3 is a schematic diagram of main modules of a page form generating device provided according to an embodiment of the present invention;
[0042] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0043] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0045] Figure 1 FIG. 1 is a schematic diagram of the main process of a page form generation method provided according to an embodiment of the present invention; Figure 1 As shown, the page form generation method provided by the embodiment of the present invention mainly includes:
[0046] Step S101, receiving a page form generation request, and generating a form number when it is determined that the page form generation request does not include user form configuration information; wherein the page form generation request includes a form type.
[0047] Specifically, according to an embodiment of the present invention, after receiving a page form generation request, it is first determined whether the page form generation request includes user form configuration information. Since the user form configuration information includes the form component type indicated by the user and the form data in each form component, the corresponding page form can be generated by subsequently directly rendering the user form configuration information. If the user form configuration information does not exist, it is necessary to subsequently associate the FaaS function to obtain the platform form configuration information from the FaaS (Function as a service) function platform to generate the page form. The embodiment of the present invention provides two page form generation methods, one is that the user transmits the full amount of data (user form configuration information) by himself when initiating a page form generation request, and the other is to dynamically generate a page form in combination with the FaaS platform. Through the above settings, the efficiency of page form generation is improved, the applicable scenarios of the page form method are expanded, and the user experience is improved.
[0048] According to a specific implementation of an embodiment of the present invention, a unique form number is generated for the received page form generation request, so as to subsequently associate the FaaS function according to the form number and the form type in the page form generation request, and then obtain the corresponding platform form configuration information from the FaaS function to generate the page form.
[0049] Step S102: Obtain platform form configuration information from the FaaS function platform according to the form number and form type.
[0050] Specifically, according to an embodiment of the present invention, the step of obtaining platform form configuration information from the FaaS function platform according to the form number and the form type includes:
[0051] Determine the target form submission function and target form query function according to the form number and form type;
[0052] According to the target form submission function, the target form query function, the form submission function interface parameters and the form query function interface parameters, the platform form configuration information is obtained from the FaaS function platform; wherein the platform form configuration information includes the target parameter fields and their corresponding target simulation data.
[0053] According to an embodiment of the present invention, for each form number, the corresponding FaaS function (target form submission function and target form query function) can be determined according to its corresponding form type, and then the platform form configuration information is obtained from the FaaS function platform through the form submission function interface parameters and the form query function interface parameters. Through the above settings, the technical problem of high cost of generating page forms caused by writing form codes is avoided, the efficiency, accuracy and matching degree of obtaining form configuration information (the matching degree of the generated page form with user needs) are improved, and the user experience is improved.
[0054] Furthermore, according to an embodiment of the present invention, before the step of obtaining platform form configuration information from the FaaS function platform, the method further includes:
[0055] Use the FaaS function platform to create a form submission function and configure the parameter fields corresponding to the form submission function. Use the FaaS function platform to create a form query function and configure the simulated data corresponding to the parameter fields in the form query function.
[0056] Receive the form submission function interface parameters and form query function interface parameters sent by the FaaS function platform.
[0057] Specifically, according to an embodiment of the present invention, FaaS functions (form submission function and form query function) can be created separately for multiple different form types on the FaaS function platform to meet the diverse needs of users.
[0058] Step S103, parse the platform form configuration information, and render the parsing result to obtain a page form.
[0059] Specifically, according to an embodiment of the present invention, the above-mentioned step of parsing the platform form configuration information and rendering the parsing result to obtain a page form includes:
[0060] The target parameter fields and target simulation data in the platform form configuration information are parsed and processed, and the parsing result is rendered to obtain a page form; wherein the parsing result indicates the form component type corresponding to the target simulation data.
[0061] Exemplarily, since the platform form configuration information obtained from the FaaS function platform includes the target parameter field and its corresponding target simulation data, and does not limit the form component type corresponding to the target simulation data, the target parameter field and target simulation data in the platform form configuration file can be parsed according to the value parsing rules, and the corresponding form component type can be determined according to the data value type of the target simulation data, and then the page form is obtained through rendering.
[0062] Further, according to an embodiment of the present invention, the user form configuration information includes a form component type and form data in each form component; after the step of receiving a page form generation request, if it is determined that the page form generation request includes the user form configuration information, the method further includes:
[0063] Render the user form configuration information to obtain the page form.
[0064] Since the form component type and the form data in each form component are directly transmitted in the user form configuration information, they can be directly rendered to obtain the page form, further improving the generation efficiency of the page form.
[0065] Preferably, according to an embodiment of the present invention, the method further includes:
[0066] Receive user form configuration update information, and update the page form according to the user form configuration update information.
[0067] Through the above settings, the present invention also supports a page form update function, and can adaptively update the generated page form directly according to the user form configuration update information sent by the user, thereby further improving the user experience.
[0068] According to the technical solution of the embodiment of the present invention, a form number is generated when a page form generation request is received and it is determined that the page form generation request does not include user form configuration information; wherein the page form generation request includes a form type; according to the form number and the form type, the platform form configuration information is obtained from the FaaS function platform; the platform form configuration information is parsed and processed, and the parsing result is rendered to obtain a page form. Therefore, the technical problems of generating page forms by writing form codes or configuration files in the existing methods are overcome, such as high development costs, low page form generation efficiency, narrow applicable scenarios of page form generation methods, and poor user experience. Therefore, the FaaS function platform can be combined to dynamically generate form configuration information, and then render and generate page forms, thereby improving the generation efficiency of page forms, reducing the development costs, expanding the applicable scenarios of page form generation methods, and improving the technical effects of user experience.
[0069] Figure 2a FIG. 1 is a schematic diagram of the main process of a page form generation method provided according to another embodiment of the present invention; Figure 2a As shown, the page form generation method provided by the embodiment of the present invention mainly includes:
[0070] Step S201, use the FaaS function platform to create a form submission function, and configure the parameter fields corresponding to the form submission function; use the FaaS function platform to create a form query function, and configure the simulation data corresponding to the parameter fields in the form query function.
[0071] Specifically, according to an embodiment of the present invention, FaaS functions (form submission function and form query function) can be created separately for multiple different form types on the FaaS function platform to meet the diverse needs of users.
[0072] According to a specific embodiment of the present invention, a form submission function is created on the FaaS function platform, and parameter fields can be configured, such as two fields, name (name) and age (age); then a form query function is created on the FaaS function platform, and parameters are configured for the form query function as follows:
[0073] Name: string
[0074] Age:number
[0075] Then configure the simulation data according to the data type corresponding to the parameter field, for example:
[0076] Name: 'Zhang San'
[0077] Age: '18'
[0078] At the same time, determine the form submission function interface information and the form query function interface information.
[0079] Step S202: Receive the form submission function interface parameters and form query function interface parameters sent by the FaaS function platform.
[0080] With the above settings, when a page form generation request is received and associated with the FaaS function according to the form number and form type, the corresponding platform form configuration information can be obtained from the FaaS function platform according to the form submission function interface parameters and the form query function interface parameters, and then the page form can be generated.
[0081] Step S203: receiving a page form generation request and generating a form number.
[0082] According to a specific implementation of an embodiment of the present invention, a unique form number is generated for the received page form generation request, so as to subsequently associate the FaaS function according to the form number and the form type in the page form generation request, and then obtain the corresponding platform form configuration information from the FaaS function to generate the page form.
[0083] Step S204, determine whether the page form generation request includes user form configuration information. If not, that is, the page form generation request does not include user form configuration information, execute step S205; if yes, that is, the page form generation request includes user form configuration information, execute step S208.
[0084] Specifically, according to an embodiment of the present invention, after receiving a page form generation request, it is first determined whether the page form generation request includes user form configuration information. Since the user form configuration information includes the form component type indicated by the user and the form data in each form component, the corresponding page form can be generated by subsequently directly rendering the user form configuration information. If the user form configuration information does not exist, it is necessary to subsequently associate the FaaS function to obtain the platform form configuration information from the FaaS (Function as a service) function platform to generate the page form. The embodiment of the present invention provides two page form generation methods, one is that the user transmits the full amount of data (user form configuration information) by himself when initiating a page form generation request, and the other is to dynamically generate a page form in combination with the FaaS platform. Through the above settings, the efficiency of page form generation is improved, the applicable scenarios of the page form method are expanded, and the user experience is improved.
[0085] Step S205: determining a target form submission function and a target form query function according to the form number and the form type.
[0086] According to an embodiment of the present invention, for each form number, a corresponding FaaS function (target form submission function and target form query function) can be determined according to its corresponding form type. Subsequently, according to an embodiment of the present invention, for each form number, a corresponding FaaS function (target form submission function and target form query function) can be determined according to its corresponding form type.
[0087] Step S206, obtaining platform form configuration information from the FaaS function platform according to the target form submission function, the target form query function, the form submission function interface parameters and the form query function interface parameters; wherein the platform form configuration information includes the target parameter field and its corresponding target simulation data.
[0088] Through the above settings, the technical problem of high cost of generating page forms caused by writing form codes is avoided, the efficiency, accuracy and matching degree of obtaining form configuration information (the matching degree of the generated page form with user needs) are improved, and the user experience is improved.
[0089] Step S207, parsing the target parameter fields and target simulation data in the platform form configuration information, and rendering the parsing result to obtain a page form.
[0090] Exemplarily, since the platform form configuration information obtained from the FaaS function platform includes the target parameter field and its corresponding target simulation data, and does not limit the form component type corresponding to the target simulation data, the target parameter field and target simulation data in the platform form configuration file can be parsed according to the value parsing rules, and the corresponding form component type can be determined according to the data value type of the target simulation data, and then the page form is obtained through rendering.
[0091] According to a specific implementation of an embodiment of the present invention, a value parsing rule (mockdata parsing) is used for the platform form configuration information, taking the data value type "string" as an example. Figure 2b As shown, regular matching is performed on string type simulation data. If the matching result matches the date, the form component type corresponding to this part of the simulation data is determined to be a date selector; if the matching result shows that the data is long, a multi-line text box form component is determined; if the matching result shows that the data is short, a single-line text box is determined. The judgment standard for more or less data is determined by the amount of data that can be accommodated in a single-line text box.
[0092] Step S208: Render the user form configuration information to obtain a page form.
[0093] Since the form component type and the form data in each form component are directly transmitted in the user form configuration information, they can be directly rendered to obtain the page form, further improving the generation efficiency of the page form.
[0094] Furthermore, according to an embodiment of the present invention, the method further includes:
[0095] Receive user form configuration update information, and update the page form according to the user form configuration update information.
[0096] Through the above settings, the present invention also supports a page form update function, and can adaptively update the generated page form directly according to the user form configuration update information sent by the user, thereby further improving the user experience.
[0097] Exemplarily, according to an embodiment of the present invention, the above rendering operation can be implemented by a form rendering engine (drip-form), or by using any solution that configures the form in json.
[0098] According to the technical solution of the embodiment of the present invention, a form number is generated when a page form generation request is received and it is determined that the page form generation request does not include user form configuration information; wherein the page form generation request includes a form type; according to the form number and the form type, the platform form configuration information is obtained from the FaaS function platform; the platform form configuration information is parsed and processed, and the parsing result is rendered to obtain a page form. Therefore, the technical problems of generating page forms by writing form codes or configuration files in the existing methods are overcome, such as high development costs, low page form generation efficiency, narrow applicable scenarios of page form generation methods, and poor user experience. Therefore, the FaaS function platform can be combined to dynamically generate form configuration information, and then render and generate page forms, thereby improving the generation efficiency of page forms, reducing the development costs, expanding the applicable scenarios of page form generation methods, and improving the technical effects of user experience.
[0099] Figure 3 Schematic diagram of main modules of a page form generating device provided according to an embodiment of the present invention; Figure 3 As shown, the page form generating device 300 provided by the embodiment of the present invention mainly includes:
[0100] The receiving module 301 is used to receive a page form generation request, and generate a form number when it is determined that the page form generation request does not include user form configuration information; wherein the page form generation request includes a form type.
[0101] Specifically, according to an embodiment of the present invention, after receiving a page form generation request, it is first determined whether the page form generation request includes user form configuration information. If the user form configuration information does not exist, it is necessary to subsequently associate the FaaS function, obtain the platform form configuration information from the FaaS function platform, and then generate the page form. Through the above settings, the efficiency of page form generation is improved, the applicable scenarios of the page form method are expanded, and the user experience is improved.
[0102] According to a specific implementation of an embodiment of the present invention, a unique form number is generated for the received page form generation request, so as to subsequently associate the FaaS function according to the form number and the form type in the page form generation request, and then obtain the corresponding platform form configuration information from the FaaS function to generate the page form.
[0103] The acquisition module 302 is used to obtain platform form configuration information from the FaaS function platform according to the form number and form type.
[0104] Specifically, according to an embodiment of the present invention, the acquisition module 302 is further used for:
[0105] Determine the target form submission function and target form query function according to the form number and form type;
[0106] According to the target form submission function, the target form query function, the form submission function interface parameters and the form query function interface parameters, the platform form configuration information is obtained from the FaaS function platform; wherein the platform form configuration information includes the target parameter fields and their corresponding target simulation data.
[0107] According to an embodiment of the present invention, for each form number, the corresponding FaaS function (target form submission function and target form query function) can be determined according to its corresponding form type, and then the platform form configuration information is obtained from the FaaS function platform through the form submission function interface parameters and the form query function interface parameters. Through the above settings, the technical problem of high cost of generating page forms caused by writing form codes is avoided, the efficiency, accuracy and matching degree of obtaining form configuration information (the matching degree of the generated page form with user needs) are improved, and the user experience is improved.
[0108] Further, according to an embodiment of the present invention, the page form generating device 300 further includes a function creation module. Before the step of obtaining the platform form configuration information from the FaaS function platform, the function creation module is used to:
[0109] Use the FaaS function platform to create a form submission function and configure the parameter fields corresponding to the form submission function. Use the FaaS function platform to create a form query function and configure the simulated data corresponding to the parameter fields in the form query function.
[0110] Receive the form submission function interface parameters and form query function interface parameters sent by the FaaS function platform.
[0111] Specifically, according to an embodiment of the present invention, FaaS functions (form submission function and form query function) can be created separately for multiple different form types on the FaaS function platform to meet the diverse needs of users.
[0112] The page generation module 303 is used to parse the platform form configuration information and render the parsing result to obtain a page form.
[0113] Specifically, according to an embodiment of the present invention, the page generation module 303 is further used for:
[0114] The target parameter fields and target simulation data in the platform form configuration information are parsed and processed, and the parsing result is rendered to obtain a page form; wherein the parsing result indicates the form component type corresponding to the target simulation data.
[0115] Exemplarily, since the platform form configuration information obtained from the FaaS function platform includes the target parameter field and its corresponding target simulation data, and does not limit the form component type corresponding to the target simulation data, the target parameter field and target simulation data in the platform form configuration file can be parsed according to the value parsing rules, and the corresponding form component type can be determined according to the data value type of the target simulation data, and then the page form is obtained through rendering.
[0116] Further, according to an embodiment of the present invention, the user form configuration information includes a form component type and form data in each form component; after the step of receiving a page form generation request, if it is determined that the page form generation request includes the user form configuration information, the page generation module 303 is further used to:
[0117] Render the user form configuration information to obtain the page form.
[0118] Since the form component type and the form data in each form component are directly transmitted in the user form configuration information, they can be directly rendered to obtain the page form, further improving the generation efficiency of the page form.
[0119] Preferably, according to an embodiment of the present invention, the page form generating device 300 further includes an updating module, which is used to:
[0120] Receive user form configuration update information, and update the page form according to the user form configuration update information.
[0121] Through the above settings, the present invention also supports a page form update function, and can adaptively update the generated page form directly according to the user form configuration update information sent by the user, thereby further improving the user experience.
[0122] According to the technical solution of the embodiment of the present invention, a form number is generated when a page form generation request is received and it is determined that the page form generation request does not include user form configuration information; wherein the page form generation request includes a form type; according to the form number and the form type, the platform form configuration information is obtained from the FaaS function platform; the platform form configuration information is parsed and processed, and the parsing result is rendered to obtain a page form. Therefore, the technical problems of generating page forms by writing form codes or configuration files in the existing methods are overcome, such as high development costs, low page form generation efficiency, narrow applicable scenarios of page form generation methods, and poor user experience. Therefore, the FaaS function platform can be combined to dynamically generate form configuration information, and then render and generate page forms, thereby improving the generation efficiency of page forms, reducing the development costs, expanding the applicable scenarios of page form generation methods, and improving the technical effects of user experience.
[0123] Figure 4 An exemplary system architecture 400 is shown to which the page form generation method or page form generation apparatus according to the embodiment of the present invention can be applied.
[0124] like Figure 4 As shown, the system architecture 400 may include terminal devices 401, 402, 403, a network 404 and a server 405 (this architecture is only an example, and the components included in the specific architecture may be adjusted according to the specific application). The network 404 is used to provide a medium for a communication link between the terminal devices 401, 402, 403 and the server 405. The network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0125] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, 403, such as data processing applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0126] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0127] The server 405 may be a server that provides various services, such as a server that (generates a page form / processes data) for users using the terminal devices 401, 402, and 403 (for example only). The server may analyze and process the received data such as the page form generation request, and feed back the processing result (such as the page form - for example only) to the terminal device.
[0128] It should be noted that the page form generating method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the page form generating device is generally disposed in the server 405 .
[0129] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0130] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device or a server suitable for implementing an embodiment of the present invention. Figure 5 The terminal device or server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0131] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0132] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0133] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0134] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0135] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0136] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be arranged in a processor, for example, they may be described as: a processor includes a receiving module, an acquisition module and a page generation module. The names of these modules do not constitute a limitation on the modules themselves in certain cases, for example, the receiving module may also be described as "a module for receiving a page form generation request, determining that the page form generation request does not include user form configuration information, and generating a form number".
[0137] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: receiving a page form generation request, and generating a form number when determining that the page form generation request does not include user form configuration information; wherein the page form generation request includes a form type; according to the form number and form type, obtaining the platform form configuration information from the FaaS function platform; parsing the platform form configuration information, and rendering the parsing result to obtain a page form.
[0138] According to the technical solution of the embodiment of the present invention, a form number is generated when a page form generation request is received and it is determined that the page form generation request does not include user form configuration information; wherein the page form generation request includes a form type; according to the form number and the form type, the platform form configuration information is obtained from the FaaS function platform; the platform form configuration information is parsed and processed, and the parsing result is rendered to obtain a page form. Therefore, the technical problems of generating page forms by writing form codes or configuration files in the existing methods are overcome, such as high development costs, low page form generation efficiency, narrow applicable scenarios of page form generation methods, and poor user experience. Therefore, the FaaS function platform can be combined to dynamically generate form configuration information, and then render and generate page forms, thereby improving the generation efficiency of page forms, reducing the development costs, expanding the applicable scenarios of page form generation methods, and improving the technical effects of user experience.
[0139] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A page form generation method, characterized in that: include: receiving a page form generation request, and generating a form number when it is determined that the page form generation request does not include user form configuration information; wherein the page form generation request includes a form type; According to the form number and the form type, obtain platform form configuration information from the FaaS function platform; Parsing the platform form configuration information, and rendering the parsing result to obtain a page form; Before the step of obtaining platform form configuration information from the FaaS function platform, the method further includes: Using the FaaS function platform to create a form submission function, and configuring parameter fields corresponding to the form submission function; using the FaaS function platform to create a form query function, and configuring simulation data corresponding to the parameter fields in the form query function; Receive the form submission function interface parameters and the form query function interface parameters sent by the FaaS function platform.
2. The page form generation method according to claim 1, characterized in that: The step of obtaining platform form configuration information from the FaaS function platform according to the form number and the form type includes: Determine a target form submission function and a target form query function according to the form number and the form type; According to the target form submission function, the target form query function, the form submission function interface parameters and the form query function interface parameters, platform form configuration information is obtained from the FaaS function platform; wherein the platform form configuration information includes target parameter fields and their corresponding target simulation data.
3. The page form generation method according to claim 2, characterized in that: The step of parsing the platform form configuration information and rendering the parsing result to obtain a page form includes: The target parameter field and the target simulation data in the platform form configuration information are parsed and processed, and the parsing result is rendered to obtain the page form; wherein the parsing result indicates the form component type corresponding to the target simulation data.
4. The page form generation method according to claim 1, characterized in that: The user form configuration information includes a form component type and form data in each form component; after the step of receiving a page form generation request, if it is determined that the page form generation request includes the user form configuration information, the method further includes: The user form configuration information is rendered to obtain the page form.
5. The page form generation method according to claim 1, characterized in that: The method further comprises: Receive user form configuration update information, and update the page form according to the user form configuration update information.
6. A page form generating device, characterized in that: include: A receiving module, configured to receive a page form generation request, and generate a form number when it is determined that the page form generation request does not include user form configuration information; wherein the page form generation request includes a form type; An acquisition module, used to acquire platform form configuration information from the FaaS function platform according to the form number and the form type; A page generation module is used to parse the platform form configuration information and render the parsing result to obtain a page form; The method further includes a function construction module. Before the step of obtaining the platform form configuration information from the FaaS function platform, the function construction module is used to: Using the FaaS function platform to create a form submission function, and configuring parameter fields corresponding to the form submission function; using the FaaS function platform to create a form query function, and configuring simulation data corresponding to the parameter fields in the form query function; Receive the form submission function interface parameters and the form query function interface parameters sent by the FaaS function platform.
7. An electronic device for generating a page form, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
8. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Method and apparatus for generating an electronic form
CN109062882A
Form rendering method, device and equipment, and storage medium
CN111178012A