[go: up one dir, main page]

CN115146202B - A method and device for generating a page form - Google Patents

A method and device for generating a page form Download PDF

Info

Publication number
CN115146202B
CN115146202B CN202210777563.6A CN202210777563A CN115146202B CN 115146202 B CN115146202 B CN 115146202B CN 202210777563 A CN202210777563 A CN 202210777563A CN 115146202 B CN115146202 B CN 115146202B
Authority
CN
China
Prior art keywords
page
platform
function
configuration information
faas
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.)
Active
Application number
CN202210777563.6A
Other languages
Chinese (zh)
Other versions
CN115146202A (en
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
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 Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202210777563.6A priority Critical patent/CN115146202B/en
Publication of CN115146202A publication Critical patent/CN115146202A/en
Application granted granted Critical
Publication of CN115146202B publication Critical patent/CN115146202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Image Generation (AREA)
  • Document Processing Apparatus (AREA)

Abstract

本发明公开了一种页面表单生成方法和装置,涉及计算机技术领域。该方法的一具体实施方式包括:接收页面表单生成请求,确定页面表单生成请求中不包括用户表单配置信息时,生成表单编号;其中,页面表单生成请求中包括表单类型;根据表单编号和表单类型,从FaaS函数平台中获取平台表单配置信息;对平台表单配置信息进行解析处理,并对解析处理结果进行渲染得到页面表单。该实施方式提高了页面表单的生成效率,降低了所耗费的开发成本,拓展了页面表单生成方法的适用场景,提升了用户体验。

The present invention discloses a page form generation method and device, and relates to the field of computer technology. A specific implementation of the method 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 the 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. This implementation improves the generation efficiency of the page form, reduces the development cost consumed, expands the applicable scenarios of the page form generation method, and improves the user experience.

Description

Page form generation method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a page form.
Background
The Form at the front end can solve the problems of data acquisition, data verification and data assignment. The form components in the background and middle have not only input (input box component) and select (multiple choice drop-down box component), but also components such as a range selector, a date selector and the like, and more elegant UI (User Interface) and more complex interaction can be realized by performing multi-layer packaging on the original components through the components.
However, how to quickly and dynamically generate a page form meeting the user needs through complex scenes such as linkage, verification, layout and the like is a technical problem to be solved by a developer.
The prior art has at least the following problems:
in the existing method, a page form is generally generated by writing form codes or writing configuration files, and the technical problems of more consumption and development cost, lower generation efficiency of the page form, narrower applicable scene of the page form generation method and poorer user experience exist.
Disclosure of Invention
In view of the above, the embodiment of the invention provides a method and a device for generating a page form, which can dynamically generate form configuration information by combining FaaS function platforms, further render and generate the page form, improve the generation efficiency of the page form, reduce the consumed development cost, expand the applicable scene of the page form generation method and improve the user experience.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a page form generating method including:
receiving a page form generation request, and generating a form number when the page form generation request does not contain user form configuration information, wherein the page form generation request contains a form type;
According to the form number and the form type, obtaining platform form configuration information from FaaS function platforms;
And analyzing the platform form configuration information, and rendering the analysis result to obtain the page form.
Further, before the step of obtaining the platform form configuration information from the FaaS function platform, the method further includes:
Creating a form submitting function by utilizing a FaaS function platform, and configuring parameter fields corresponding to the form submitting function;
And receiving FaaS form submitting function interface parameters and form inquiring function interface parameters sent by the function platform.
Further, the step of obtaining platform form configuration information from FaaS function platforms according to the form number and form type includes:
determining a target form submitting function and a target form inquiring function according to the form numbers and the form types;
And obtaining platform form configuration information from FaaS function platforms according to the target form submitting function, the target form inquiring function, the form submitting function interface parameter and the form inquiring function interface parameter, wherein the platform form configuration information comprises target parameter fields and corresponding target simulation data.
Further, the step of analyzing the platform form configuration information and rendering the analysis result to obtain the page form includes:
And analyzing the target parameter field and the target simulation data in the platform form configuration information, and rendering an analysis result to obtain a page form, wherein the analysis result indicates the form component type corresponding to the target simulation data.
Further, after the step of receiving the page form generation request, if it is determined that the page form generation request includes the user form configuration information, the method further includes:
and rendering the user form configuration information to obtain the page form.
Further, the method further comprises:
And receiving the user form configuration updating information, and updating the page form according to the user form configuration updating information.
According to still another aspect of the embodiment of the present invention, there is provided a page form generating apparatus, including:
The receiving module is used for receiving a page form generation request, and generating a form number when the page form generation request does not contain user form configuration information, wherein the page form generation request contains a form type;
the acquisition module is used for acquiring platform form configuration information from FaaS function platforms according to the form numbers and the form types;
The page generation module is used for analyzing the platform form configuration information and rendering the analysis result to obtain a page form.
Further, the method also comprises a function construction module, which is used for, before the step of acquiring the platform form configuration information from the FaaS function platform:
Creating a form submitting function by utilizing a FaaS function platform, and configuring parameter fields corresponding to the form submitting function;
And receiving FaaS form submitting function interface parameters and form inquiring function interface parameters sent by the function platform.
According to another aspect of an embodiment of the present invention, there is provided an electronic device for generating a page form, including:
one or more processors;
storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement any of the page form generation methods described above.
According to still another aspect of an embodiment of the present invention, there is provided a computer-readable medium having stored thereon a computer program which, when executed by a processor, implements a page form generating method as any one of the above.
The embodiment of the invention has the advantages that the technical problems that the cost of development is high, the generation efficiency of the page form is low, the application scene of the page form generation method is narrow and the user experience is poor are solved, the technical problems that the page form can be combined with the FaaS function platform to dynamically generate the form configuration information, the generation efficiency of the page form is improved, the development cost of the page form is reduced, the application scene of the page form generation method is applicable, and the user experience is improved are solved.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main flow of a page form generation method provided according to one embodiment of the present invention;
FIG. 2a is a schematic diagram of the main flow of a page form generation method according to another embodiment of the present invention;
FIG. 2b is a schematic diagram of the data value resolution rule in FIG. 2 a;
FIG. 3 is a schematic diagram of main modules of a page form generating apparatus provided according to an embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
Fig. 5 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of main flow of a page form generating method according to an embodiment of the present invention, and as shown in fig. 1, the page form generating method according to the embodiment of the present invention mainly includes:
Step S101, receiving a page form generation request, and generating a form number when the page form generation request does not contain user form configuration information, wherein the page form generation request contains a form type.
Specifically, according to the embodiment of the invention, after receiving the page form generation request, whether the page form generation request includes the user form configuration information is firstly judged, and the user form configuration information includes the form component type indicated by the user and the form data in each form component, so that the corresponding page form can be generated by directly rendering the user form configuration information subsequently. If the user form configuration information does not exist, then the FaaS functions are required to be associated later, the platform form configuration information is obtained from a FaaS (Function AS A SERVICE ) Function platform, and then the page form is generated. The embodiment of the invention provides two page form generation methods, namely, one is that a user transmits full data (user form configuration information) by himself when initiating a page form generation request, and the other is that a FaaS platform is combined to dynamically generate a page form, and through the arrangement, the page form generation efficiency is improved, the application scene of the page form generation method is expanded, and the user experience is improved.
According to a specific implementation of the embodiment of the invention, for the received page form generation request, a unique form number is generated so as to facilitate the subsequent acquisition of corresponding platform form configuration information from FaaS functions according to the form number and the form type association FaaS functions in the page form generation request, so as to generate the page form.
Step S102, according to the form number and the form type, obtaining platform form configuration information from FaaS function platforms.
Specifically, according to an embodiment of the present invention, the step of obtaining platform form configuration information from FaaS function platforms according to the form number and the form type includes:
determining a target form submitting function and a target form inquiring function according to the form numbers and the form types;
And obtaining platform form configuration information from FaaS function platforms according to the target form submitting function, the target form inquiring function, the form submitting function interface parameter and the form inquiring function interface parameter, wherein the platform form configuration information comprises target parameter fields and corresponding target simulation data.
According to the embodiment of the invention, for each form number, corresponding FaaS functions (a target form submitting function and a target form inquiring function) can be determined according to the corresponding form type, and further platform form configuration information is obtained from the FaaS function platform through form submitting function interface parameters and form inquiring function interface parameters. Through the arrangement, the technical problem of high cost for generating the page form due to writing of the form codes is avoided, the efficiency, accuracy and matching degree (matching degree between the generated page form and the user requirement) of acquiring the form configuration information are improved, and the user experience is improved.
Further, according to an embodiment of the present invention, before the step of obtaining the platform form configuration information from the FaaS function platform, the method further includes:
Creating a form submitting function by utilizing a FaaS function platform, and configuring parameter fields corresponding to the form submitting function;
And receiving FaaS form submitting function interface parameters and form inquiring function interface parameters sent by the function platform.
Specifically, according to the embodiment of the present invention, at FaaS, the function platform may create FaaS functions (form submission functions and form query functions) for a plurality of different form types, respectively, to meet the diversity requirements of users.
And step S103, analyzing the platform form configuration information, and rendering the analysis result to obtain the page form.
Specifically, according to an embodiment of the present invention, the steps of analyzing the platform form configuration information and rendering the analysis result to obtain the page form include:
And analyzing the target parameter field and the target simulation data in the platform form configuration information, and rendering an analysis result to obtain a page form, wherein the analysis result indicates the form component type corresponding to the target simulation data.
For example, the platform form configuration information obtained from the FaaS function platform includes the target parameter field and the target simulation data corresponding to the target parameter field, and the form component type corresponding to the target simulation data is not limited, so that the target parameter field and the target simulation data in the platform form configuration file can be analyzed according to the value analysis rule, the corresponding form component type is determined according to the data value type of the target simulation data, and then the page form is obtained through rendering.
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, and after the step of receiving the page form generation request, if it is determined that the page form generation request includes the user form configuration information, the method further includes:
and rendering the user form configuration information to obtain the page form.
Because the form component types and the form data in each form component are directly transmitted in the user form configuration information, the form data can be directly rendered to obtain a page form, and the generation efficiency of the page form is further improved.
Preferably, according to an embodiment of the present invention, the method further includes:
And receiving the user form configuration updating information, and updating the page form according to the user form configuration updating information.
Through the setting, the invention also supports the page form updating function, and can carry out adaptive updating on the generated page form directly according to the user form configuration updating information sent by the user, thereby further improving the user experience.
According to the technical scheme, the technical problems that the cost development cost is high, the generation efficiency of the page form is low, the application scene of the page form generation method is narrow and the user experience is poor are solved, the technical problems that the FaaS function platform can be combined, the dynamic generation of the form configuration information is realized, the page form generation method is rendered and generated, the generation efficiency of the page form is improved, the development cost of the page form is reduced, the application scene of the page form generation method is expanded, and the technical effect of user experience is improved are solved.
Fig. 2a is a schematic diagram of main flow of a page form generating method according to another embodiment of the present invention, and as shown in fig. 2a, the page form generating method according to the embodiment of the present invention mainly includes:
And step S201, creating a form submitting function by using the FaaS function platform, configuring parameter fields corresponding to the form submitting function, creating a form inquiring function by using the FaaS function platform, and configuring simulation data corresponding to the parameter fields in the form inquiring function.
Specifically, according to the embodiment of the present invention, at FaaS, the function platform may create FaaS functions (form submission functions and form query functions) for a plurality of different form types, respectively, to meet the diversity requirements of users.
According to one embodiment of the invention, a form submit function is created at FaaS on the function platform, and further parameters fields, such as name and age, are configurable, then a form query function is created at FaaS on the function platform, and the parameters are configured for the form query function as follows:
Name:string
Age:number
Then, for the data type corresponding to the parameter field, the simulation data is configured, for example:
Name, 'Zhang Sano'
Age:‘18’
And meanwhile, determining the form submitting function interface information and the form inquiring function interface information.
Step S202, receiving FaaS form submitting function interface parameters and form inquiring function interface parameters sent by the function platform.
Through the setting, after a page form generation request is received subsequently and is associated to FaaS functions according to the form numbers and the form types, corresponding platform form configuration information can be acquired from the FaaS function platform according to the form submitting function interface parameters and the form inquiring function interface parameters, and then the page form is generated.
Step S203, receiving a page form generation request and generating a form number.
According to a specific implementation of the embodiment of the invention, for the received page form generation request, a unique form number is generated so as to facilitate the subsequent acquisition of corresponding platform form configuration information from FaaS functions according to the form number and the form type association FaaS functions in the page form generation request, so as to generate the page form.
Step S204, judging whether the page form generation request comprises user form configuration information. If not, the step S205 is executed if the page form generation request does not include the user form configuration information, and if yes, the step S208 is executed if the page form generation request includes the user form configuration information.
Specifically, according to the embodiment of the invention, after receiving the page form generation request, whether the page form generation request includes the user form configuration information is firstly judged, and the user form configuration information includes the form component type indicated by the user and the form data in each form component, so that the corresponding page form can be generated by directly rendering the user form configuration information subsequently. If the user form configuration information does not exist, then the FaaS functions are required to be associated later, the platform form configuration information is obtained from a FaaS (Function AS A SERVICE ) Function platform, and then the page form is generated. The embodiment of the invention provides two page form generation methods, namely, one is that a user transmits full data (user form configuration information) by himself when initiating a page form generation request, and the other is that a FaaS platform is combined to dynamically generate a page form, and through the arrangement, the page form generation efficiency is improved, the application scene of the page form generation method is expanded, and the user experience is improved.
Step S205, determining a target form submitting function and a target form inquiring function according to the form numbers and the form types.
According to the embodiment of the invention, for each form number, a corresponding FaaS function (a target form submitting function and a target form querying function) can be determined according to the corresponding form type, and further, for each form number, a corresponding FaaS function (a target form submitting function and a target form querying function) can be determined according to the corresponding form type according to the embodiment of the invention.
Step S206, obtaining platform form configuration information from FaaS function platforms according to the target form submitting function, the target form inquiring function, the form submitting function interface parameter and the form inquiring function interface parameter, wherein the platform form configuration information comprises target parameter fields and corresponding target simulation data.
Through the arrangement, the technical problem of high cost for generating the page form due to writing of the form codes is avoided, the efficiency, accuracy and matching degree (matching degree between the generated page form and the user requirement) of acquiring the form configuration information are improved, and the user experience is improved.
Step S207, analyzing the target parameter field and the target simulation data in the platform form configuration information, and rendering the analysis result to obtain the page form.
For example, the platform form configuration information obtained from the FaaS function platform includes the target parameter field and the target simulation data corresponding to the target parameter field, and the form component type corresponding to the target simulation data is not limited, so that the target parameter field and the target simulation data in the platform form configuration file can be analyzed according to the value analysis rule, the corresponding form component type is determined according to the data value type of the target simulation data, and then the page form is obtained through rendering.
According to an embodiment of the present invention, a value parsing rule (mockdata parsing) is adopted for the platform form configuration information, taking a data value type "string" as an example. As shown in FIG. 2b, regular matching is performed on string type simulation data, if the matching result is matched with the date, the form component type corresponding to the part of simulation data is determined to be a date selector, if the matching result display data is longer, a plurality of lines of text box form components are determined, and if the matching result display data is shorter, a single line of text boxes are determined. Where the decision criteria for more or less data is determined by the amount of data that can be accommodated by a single line of text boxes.
And step S208, rendering the user form configuration information to obtain a page form.
Because the form component types and the form data in each form component are directly transmitted in the user form configuration information, the form data can be directly rendered to obtain a page form, and the generation efficiency of the page form is further improved.
Further, according to an embodiment of the present invention, the method further includes:
And receiving the user form configuration updating information, and updating the page form according to the user form configuration updating information.
Through the setting, the invention also supports the page form updating function, and can carry out adaptive updating on the generated page form directly according to the user form configuration updating information sent by the user, thereby further improving the user experience.
Illustratively, the above-described rendering operations may be implemented by a form rendering engine (drip-form), or any scheme that configures forms in json, in accordance with embodiments of the present invention.
According to the technical scheme, the technical problems that the cost development cost is high, the generation efficiency of the page form is low, the application scene of the page form generation method is narrow and the user experience is poor are solved, the technical problems that the FaaS function platform can be combined, the dynamic generation of the form configuration information is realized, the page form generation method is rendered and generated, the generation efficiency of the page form is improved, the development cost of the page form is reduced, the application scene of the page form generation method is expanded, and the technical effect of user experience is improved are solved.
Fig. 3 is a schematic diagram of main modules of a page form generating device according to an embodiment of the present invention, and as shown in fig. 3, a page form generating device 300 according to an embodiment of the present invention mainly includes:
The receiving module 301 is 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, where the page form generation request includes a form type.
Specifically, according to the embodiment of the invention, after receiving the page form generation request, whether the page form generation request includes user form configuration information is first determined. If the user form configuration information does not exist, then the FaaS functions are required to be associated later, the platform form configuration information is obtained from the FaaS function platform, and then the page form is generated. Through the arrangement, the page form generation efficiency is improved, the application scene of the page form method is expanded, and the user experience is improved.
According to a specific implementation of the embodiment of the invention, for the received page form generation request, a unique form number is generated so as to facilitate the subsequent acquisition of corresponding platform form configuration information from FaaS functions according to the form number and the form type association FaaS functions in the page form generation request, so as to generate the page form.
And the obtaining module 302 is configured to obtain platform form configuration information from the FaaS function platform according to the form number and the form type.
Specifically, according to an embodiment of the present invention, the acquiring module 302 is further configured to:
determining a target form submitting function and a target form inquiring function according to the form numbers and the form types;
And obtaining platform form configuration information from FaaS function platforms according to the target form submitting function, the target form inquiring function, the form submitting function interface parameter and the form inquiring function interface parameter, wherein the platform form configuration information comprises target parameter fields and corresponding target simulation data.
According to the embodiment of the invention, for each form number, corresponding FaaS functions (a target form submitting function and a target form inquiring function) can be determined according to the corresponding form type, and further platform form configuration information is obtained from the FaaS function platform through form submitting function interface parameters and form inquiring function interface parameters. Through the arrangement, the technical problem of high cost for generating the page form due to writing of the form codes is avoided, the efficiency, accuracy and matching degree (matching degree between the generated page form and the user requirement) of acquiring the form configuration information are improved, and the user experience is improved.
Further, according to an embodiment of the present invention, the page form generating device 300 further includes a function creating module, before the step of obtaining the platform form configuration information from the FaaS function platform, the function creating module is configured to:
Creating a form submitting function by utilizing a FaaS function platform, and configuring parameter fields corresponding to the form submitting function;
And receiving FaaS form submitting function interface parameters and form inquiring function interface parameters sent by the function platform.
Specifically, according to the embodiment of the present invention, at FaaS, the function platform may create FaaS functions (form submission functions and form query functions) for a plurality of different form types, respectively, to meet the diversity requirements of users.
The page generating module 303 is configured to parse the platform form configuration information, and render the parsing result to obtain a page form.
Specifically, according to an embodiment of the present invention, the page generation module 303 is further configured to:
And analyzing the target parameter field and the target simulation data in the platform form configuration information, and rendering an analysis result to obtain a page form, wherein the analysis result indicates the form component type corresponding to the target simulation data.
For example, the platform form configuration information obtained from the FaaS function platform includes the target parameter field and the target simulation data corresponding to the target parameter field, and the form component type corresponding to the target simulation data is not limited, so that the target parameter field and the target simulation data in the platform form configuration file can be analyzed according to the value analysis rule, the corresponding form component type is determined according to the data value type of the target simulation data, and then the page form is obtained through rendering.
Further, according to the embodiment of the present invention, the user form configuration information includes a form component type and form data in each form component, and after the step of receiving the 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 configured to:
and rendering the user form configuration information to obtain the page form.
Because the form component types and the form data in each form component are directly transmitted in the user form configuration information, the form data can be directly rendered to obtain a page form, and the generation efficiency of the page form is further improved.
Preferably, according to an embodiment of the present invention, the page form generating device 300 further includes an updating module, configured to:
And receiving the user form configuration updating information, and updating the page form according to the user form configuration updating information.
Through the setting, the invention also supports the page form updating function, and can carry out adaptive updating on the generated page form directly according to the user form configuration updating information sent by the user, thereby further improving the user experience.
According to the technical scheme, the technical problems that the cost development cost is high, the generation efficiency of the page form is low, the application scene of the page form generation method is narrow and the user experience is poor are solved, the technical problems that the FaaS function platform can be combined, the dynamic generation of the form configuration information is realized, the page form generation method is rendered and generated, the generation efficiency of the page form is improved, the development cost of the page form is reduced, the application scene of the page form generation method is expanded, and the technical effect of user experience is improved are solved.
Fig. 4 illustrates an exemplary system architecture 400 to which the page form generating method or page form generating apparatus of embodiments of the present invention may be applied.
As shown in fig. 4, a system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405 (this architecture is merely an example, and the components contained in a particular architecture may be tailored to the application specific case). The network 404 is used as a medium to provide communication links 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 fiber optic cables, among others.
A user may interact with the server 405 via the network 404 using the terminal devices 401, 402, 403 to receive or send messages or the like. Various communication client applications, such as a data processing class application, a web browser application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only) may be installed on the terminal devices 401, 402, 403.
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 405 may be a server providing various services, such as a server (by way of example only) that utilizes terminal devices 401, 402, 403 (performs page form generation/data processing) for a user. The server may analyze and process the received data such as the page form generation request, and feed back the processing result (e.g., the page form—only an example) to the terminal device.
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.
It should be understood that the number of terminal devices, networks and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, there is illustrated a schematic diagram of a computer system 500 suitable for use in implementing a terminal device or server in accordance with an embodiment of the present invention. The terminal device or server shown in fig. 5 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present invention.
As shown in fig. 5, 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 section 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Connected to the I/O interface 505 are an input section 506 including a keyboard, a mouse, and the like, an output section 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like, a storage section 508 including a hard disk, and the like, and a communication section 509 including a network interface card such as a LAN card, a modem, and the like. The communication section 509 performs communication processing via a network such as the internet. The 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, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 501.
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 two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, a processor may be described as including a receiving module, an obtaining module, and a page generating module. The names of these modules do not limit the module itself in some 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".
As a further aspect, the invention also provides a computer readable medium which may be comprised in the device described in the above embodiments or may be present alone without being fitted into the device. The computer readable medium carries one or more programs, and when the one or more programs are executed by the equipment, the equipment comprises a step of receiving a page form generation request, and generating a form number when the page form generation request does not comprise user form configuration information, wherein the page form generation request comprises a form type, a step of acquiring platform form configuration information from a FaaS function platform according to the form number and the form type, and a step of analyzing the platform form configuration information and rendering analysis results to obtain a page form.
According to the technical scheme, the technical problems that the cost development cost is high, the generation efficiency of the page form is low, the application scene of the page form generation method is narrow and the user experience is poor are solved, the technical problems that the FaaS function platform can be combined, the dynamic generation of the form configuration information is realized, the page form generation method is rendered and generated, the generation efficiency of the page form is improved, the development cost of the page form is reduced, the application scene of the page form generation method is expanded, and the technical effect of user experience is improved are solved.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (8)

1.一种页面表单生成方法,其特征在于,包括:1. A page form generation method, characterized by comprising: 接收页面表单生成请求,确定所述页面表单生成请求中不包括用户表单配置信息时,生成表单编号;其中,所述页面表单生成请求中包括表单类型;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; 根据所述表单编号和所述表单类型,从FaaS函数平台中获取平台表单配置信息;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; 在所述从FaaS函数平台中获取平台表单配置信息的步骤之前,所述方法还包括:Before the step of obtaining platform form configuration information from the FaaS function platform, the method further includes: 利用所述FaaS函数平台创建表单提交函数,配置所述表单提交函数对应的参数字段;利用所述FaaS函数平台创建表单查询函数,在所述表单查询函数中配置与所述参数字段对应的模拟数据;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; 接收所述FaaS函数平台发送的表单提交函数接口参数和表单查询函数接口参数。Receive the form submission function interface parameters and the form query function interface parameters sent by the FaaS function platform. 2.根据权利要求1所述的页面表单生成方法,其特征在于,所述根据所述表单编号和所述表单类型,从FaaS函数平台中获取平台表单配置信息的步骤,包括:2. The page form generation method according to claim 1 is 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 comprises: 根据所述表单编号和所述表单类型,确定目标表单提交函数和目标表单查询函数;Determine a target form submission function and a target form query function according to the form number and the form type; 根据所述目标表单提交函数、所述目标表单查询函数、所述表单提交函数接口参数和所述表单查询函数接口参数,从所述FaaS函数平台中获取平台表单配置信息;其中,所述平台表单配置信息中包括目标参数字段及其对应的目标模拟数据。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.根据权利要求2所述的页面表单生成方法,其特征在于,所述对所述平台表单配置信息进行解析处理,并对解析处理结果进行渲染得到页面表单的步骤,包括: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 the page form comprises: 对所述平台表单配置信息中的所述目标参数字段和所述目标模拟数据进行解析处理,对解析处理结果进行渲染得到所述页面表单;其中,所述解析结果指示了所述目标模拟数据对应的表单组件类型。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.根据权利要求1所述的页面表单生成方法,其特征在于,所述用户表单配置信息包括表单组件类型以及每个表单组件内的表单数据;在所述接收页面表单生成请求的步骤之后,若确定所述页面表单生成请求中包括所述用户表单配置信息,所述方法还包括: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 the 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.根据权利要求1所述的页面表单生成方法,其特征在于,所述方法还包括: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.一种页面表单生成装置,其特征在于,包括:6. A page form generating device, characterized by comprising: 接收模块,用于接收页面表单生成请求,确定所述页面表单生成请求中不包括用户表单配置信息时,生成表单编号;其中,所述页面表单生成请求中包括表单类型;A receiving module, configured to receive a page form generation request, and generate 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; 获取模块,用于根据所述表单编号和所述表单类型,从FaaS函数平台中获取平台表单配置信息;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, used to parse the platform form configuration information and render the parsing result to obtain a page form; 还包括函数构建模块,在所述从FaaS函数平台中获取平台表单配置信息的步骤之前,所述函数构建模块用于: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: 利用所述FaaS函数平台创建表单提交函数,配置所述表单提交函数对应的参数字段;利用所述FaaS函数平台创建表单查询函数,在所述表单查询函数中配置与所述参数字段对应的模拟数据;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; 接收所述FaaS函数平台发送的表单提交函数接口参数和表单查询函数接口参数。Receive the form submission function interface parameters and the form query function interface parameters sent by the FaaS function platform. 7.一种页面表单生成的电子设备,其特征在于,包括:7. An electronic device for generating a page form, characterized by comprising: 一个或多个处理器;one or more processors; 存储装置,用于存储一个或多个程序,a storage device for storing one or more programs, 当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-5中任一所述的方法。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.一种计算机可读介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现如权利要求1-5中任一所述的方法。8. A computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
CN202210777563.6A 2022-07-01 2022-07-01 A method and device for generating a page form Active CN115146202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210777563.6A CN115146202B (en) 2022-07-01 2022-07-01 A method and device for generating a page form

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210777563.6A CN115146202B (en) 2022-07-01 2022-07-01 A method and device for generating a page form

Publications (2)

Publication Number Publication Date
CN115146202A CN115146202A (en) 2022-10-04
CN115146202B true CN115146202B (en) 2025-03-18

Family

ID=83410768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210777563.6A Active CN115146202B (en) 2022-07-01 2022-07-01 A method and device for generating a page form

Country Status (1)

Country Link
CN (1) CN115146202B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062882A (en) * 2018-07-17 2018-12-21 郑州云海信息技术有限公司 A kind of electronic spreadsheet generation method and device
CN111178012A (en) * 2019-12-03 2020-05-19 腾讯云计算(北京)有限责任公司 Form rendering method, device and equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3256965A4 (en) * 2015-02-13 2018-08-08 Millieable IP Pty Ltd. Data structure, model for populating a data structure and method of programming a processing device utilising a data structure
US11875110B2 (en) * 2020-01-31 2024-01-16 Salesforce, Inc. Seamless addition and removal of form fields

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062882A (en) * 2018-07-17 2018-12-21 郑州云海信息技术有限公司 A kind of electronic spreadsheet generation method and device
CN111178012A (en) * 2019-12-03 2020-05-19 腾讯云计算(北京)有限责任公司 Form rendering method, device and equipment and storage medium

Also Published As

Publication number Publication date
CN115146202A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
CN107832045B (en) Method and apparatus for cross programming language interface conversion
CN109683998A (en) Internationalize implementation method, device and system
CN113536748B (en) A method and device for generating chart data
CN110471848B (en) Method and device for dynamically returning message
CN112527649A (en) Test case generation method and device
CN112486482B (en) Page display method and device
CN113779004A (en) A method and device for data verification
CN113626223A (en) Interface calling method and device
CN113342450A (en) Page processing method and device, electronic equipment and computer readable medium
CN112947919B (en) Method and device for building business model and processing business request
CN110705271B (en) System and method for providing natural language processing service
CN114125067A (en) Grayscale publishing method, front-end server and configuration server with front-end and back-end separation
CN115328627A (en) Data processing method and device
CN113010405A (en) Application program testing method and device
CN115617420B (en) Application program generation method, device, equipment and storage medium
CN111382953A (en) Dynamic process generation method and device
CN108804442B (en) Serial number generation method and device
CN113743425B (en) Method and device for generating classification model
CN115146202B (en) A method and device for generating a page form
CN113779018A (en) A data processing method and device
CN114896244B (en) Method, apparatus, device and computer readable medium for configuring database tables
CN113746661B (en) A business processing method and device
CN113779448B (en) A page processing method and device
CN113722548A (en) Method and device for processing reference relationship in business system
CN110727739B (en) Data storage method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant