CN117608575A - Application development method, system, equipment and storage medium - Google Patents

Application development method, system, equipment and storage medium Download PDF

Info

Publication number
CN117608575A
CN117608575A CN202311651171.6A CN202311651171A CN117608575A CN 117608575 A CN117608575 A CN 117608575A CN 202311651171 A CN202311651171 A CN 202311651171A CN 117608575 A CN117608575 A CN 117608575A
Authority
CN
China
Prior art keywords
development
code
persistent layer
layer code
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311651171.6A
Other languages
Chinese (zh)
Inventor
余永博
宋子琪
倪少平
刘亮
王林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202311651171.6A priority Critical patent/CN117608575A/en
Publication of CN117608575A publication Critical patent/CN117608575A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

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

Abstract

The invention discloses an application development method, a system, equipment and a storage medium, wherein the application development system comprises a code development module and an interpretation engine module, and the application development method comprises the following steps: acquiring a development operation request transmitted by a client through the code development module, generating a corresponding persistent layer code according to the development operation request, and transmitting the persistent layer code to the interpretation engine module; and storing the persistent layer code as a file through the interpretation engine module, generating a corresponding application page according to the persistent layer code file, and visually presenting the application page to the client. According to the technical scheme, the problem of code generation and engraving in the existing application development method is solved, the workload of the application in the development stage is reduced, the application development efficiency is improved, and the application development time is shortened.

Description

Application development method, system, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an application development method, system, device, and storage medium.
Background
With the development of information technology, there is an increasing demand for software applications, and thus, various application systems need to be developed to meet the increasing functional demands of people. During the application of software, there is always a series of requirements for adding, deleting and checking.
The application with the functions of adding, deleting and checking has a fixed code structure, a great amount of codes are required to be written for directly developing the application of adding, deleting and checking, and the existing low-code application development method is mainly used for designing a code generator for the application of adding, deleting and checking, and quickly developing the application of adding, deleting and checking by a template generation mode. However, the method has the problems of simple application generating function, difficult modification and customization of the code templates, and the like, so that a large amount of coding work still needs to be done after the addition, deletion and investigation type application is generated, the development efficiency and the application scene are limited, the workload of the addition, deletion and investigation type application in the development stage is larger, and the efficiency is lower.
Disclosure of Invention
The invention provides an application development method, an application development system, an application development device and a storage medium, which solve the problem of code generation and patterning in the existing application development method, reduce the workload of an application in a development stage, improve the application development efficiency and reduce the application development time.
In a first aspect, an embodiment of the present disclosure provides an application development method applied to an application development system, where the system includes a code development module and an interpretation engine module, the method includes:
Acquiring a development operation request transmitted by a client through the code development module, generating a corresponding persistent layer code according to the development operation request, and transmitting the persistent layer code to the interpretation engine module;
and storing the persistent layer code as a file through the interpretation engine module, generating a corresponding application page according to the persistent layer code file, and visually presenting the application page to the client.
In a second aspect, an embodiment of the present disclosure provides an application development system connected to a client through an external interface, where the system includes: the system comprises a code development module and an interpretation engine module, wherein the code development module is connected with the interpretation engine module through an internal interface;
the code development module is used for acquiring a development operation request transmitted by a client, generating a corresponding persistent layer code according to the development operation request, and transmitting the persistent layer code to the interpretation engine module;
and the interpretation engine module is used for storing the persistent layer code as a file, generating a corresponding application page according to the persistent layer code file, and visually presenting the application page to the client.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the application development method provided by the embodiments of the first aspect described above.
In a fourth aspect, embodiments of the present disclosure provide a computer readable storage medium storing computer instructions for causing a processor to execute the application development method provided in the above-described embodiment of the first aspect.
The embodiment of the invention discloses an application development method, a system, equipment and a storage medium, wherein the application development system comprises a code development module and an interpretation engine module, and the application development method comprises the following steps: acquiring a development operation request transmitted by a client through the code development module, generating a corresponding persistent layer code according to the development operation request, and transmitting the persistent layer code to the interpretation engine module; and storing the persistent layer code as a file through the interpretation engine module, generating a corresponding application page according to the persistent layer code file, and visually presenting the application page to the client. According to the technical scheme, the problem of code generation and engraving in the existing application development method is solved, the workload of the application in the development stage is reduced, the application development efficiency is improved, and the application development time is shortened.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an application development method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of an application development method according to a second embodiment of the present invention;
fig. 3 is an exemplary display diagram of a query page involved in an application development method according to a second embodiment of the present invention;
fig. 4 is an exemplary display diagram of a view page involved in an application development method according to a second embodiment of the present invention;
fig. 5 is an exemplary display diagram of an edit page involved in an application development method provided in the second embodiment of the present invention;
Fig. 6 is an exemplary display diagram of a newly added page involved in an application development method according to a second embodiment of the present invention;
fig. 7 is a data interaction example display diagram of an application development method according to a second embodiment of the present invention;
fig. 8 is a schematic structural diagram of an application development system according to a third embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and "object" in the description of the present invention and the claims and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of an application development method according to an embodiment of the present invention, where the embodiment is applicable to a case of developing application software with a function of adding, deleting and checking, and the method may be performed by an application development system, and the application development system may be implemented in a form of hardware and/or software.
Along with the rapid development of the digitizing process, the demand of the Web application is also increasing, wherein the adding, deleting and modifying application occupies a larger proportion, and the functions of the adding, deleting and modifying application are as follows: queries, modifications, additions or deletions of certain types of information, the form of applications including, but not limited to, web applications, pc or mobile clients, applets, etc. The adding, deleting and modifying application has the following characteristics: 1. the application is generally based on a relational database, provides an adding, deleting and modifying function for data, and has the functional core of adding, deleting and modifying the data, wherein the database layer corresponds to adding, deleting and modifying operations of a plurality of data tables, and the applied function and the data tables have a stronger mapping relation; 2. applications have highly similar structures and functions, applications typically include a page layer, a logic layer, a data persistence layer, and have higher similarity at the code level; 3. the application has wider scene and larger development requirement, almost every system has the addition, deletion and investigation application, or needs the function, and even for some systems based on data management, the addition, deletion and investigation application is required to be developed for hundreds of data tables, thereby generating larger development workload.
In order to rapidly and safely develop the add-delete-check application, the invention provides an application development method, and provides an add-delete-check application low-code mode of a fusion code generation and interpretation engine. The code generation module only generates basic persistent layer (DAO layer) codes, and realizes the expansion and customization of functions through the interpretation engine module, so that the complementary advantages of the code generation and the interpretation engine are realized, the development efficiency is fully improved, and better expansibility and safety are achieved.
As shown in fig. 1, the method includes:
s101, acquiring a development operation request transmitted by a client through a code development module, generating a corresponding persistent layer code according to the development operation request, and transmitting the persistent layer code to an interpretation engine module.
In this embodiment, the development operation request is sent by a developer through a client, and can be understood as a request for performing application development, where the development operation request includes information such as a data table type to be called. The persistent layer code may be understood as a code for performing an add-drop-check operation by accessing a database, and is a code corresponding to a persistent layer in a web three-layer architecture, and provides an add-drop-check API (Application Programming Interface, interface) for an application-related data table, where an API interface refers to an interface provided by a program, and may be called by an external program and return a result.
Specifically, the code development module receives a development operation request sent by a developer through a client, analyzes data information of the development operation request, determines a data table corresponding to the development operation request, accesses the corresponding data table based on the code generator, generates a corresponding persistent layer code according to the data table and a preset persistent layer code generation template, and transmits the persistent layer code to the interpretation engine module.
S102, storing the persistent layer code as a file through an interpretation engine module, generating a corresponding application page according to the persistent layer code file, and visually presenting the application page to a client.
In this embodiment, the interpretation engine module is a code module that performs a specific operation on input data according to a certain configuration, and includes a back-end interpretation engine that processes, converts, processes, etc. the input data according to a certain configuration, and generates data output, and a page interpretation engine that renders the input data into a specific page according to a certain configuration. The persistent layer code file is file data that converts the persistent layer code into a file format. An application page may be understood as an interface that visually presents functionality provided by an interpretation engine module to a client, and is capable of interacting with a user of the client.
Specifically, the interpretation engine module comprises a back-end interpretation engine and a page interpretation engine, the back-end interpretation engine receives the persistent layer codes transmitted by the code generation module through an API interface, the persistent layer codes are stored as files, the data content of the corresponding data table is converted into unified data objects based on the persistent layer code files, the unified data objects are sent to the page interpretation engine, the page interpretation engine generates corresponding application pages according to the unified data objects, and the application interfaces are visualized on the client side based on interfaces between the application pages and the client side.
According to the application development method provided by the embodiment of the invention, a development operation request transmitted by a client is obtained through a code development module, a corresponding persistent layer code is generated according to the development operation request, and the persistent layer code is transmitted to an interpretation engine module; and storing the persistent layer code as a file through an interpretation engine module, generating a corresponding application page according to the persistent layer code file, and visually presenting the application page to the client. According to the technical scheme, fewer codes are used for rapid development and application, the code generation module only generates basic persistent layer (DAO layer) codes, and the function expansion and customization are realized through the interpretation engine module, so that the complementary advantages of the code generation and interpretation engine are realized, the development efficiency is fully improved, and better expansibility and safety are achieved. The method solves the problem of code generation and engraving in the existing application development method, reduces the workload of the application in the development stage, improves the application development efficiency and reduces the application development time.
Optionally, after the code generating module generates the persistent layer code in the development process, the interpretation engine module stores the corresponding persistent layer code file to generate the corresponding add-drop-check application. And in the practical application level, the application development system only interacts with the client through the interpretation engine module to realize the business practical application of the adding, deleting and checking type application software. Specifically, after completing the steps of the development level as shown in steps 101-102, at the application level, the method further includes:
s103, acquiring a service operation request transmitted by the client through the interpretation engine module, calling a corresponding pre-stored persistent layer code file according to the service operation request, and accessing a corresponding service data table according to the persistent layer code file.
In this embodiment, the service operation request is sent by the user through the client, which can be understood as a request for performing an actual application, where the service operation request includes information such as a data table type to be called. A persistent layer code file may be understood as a file of persistent layer code of a corresponding data table that has been stored during development, as a code file for an add-drop-check operation by accessing a database. The service data table may be understood as a data table of a service layer, and stores specific service data, and at least includes a meta information data table model, a field meta information data table, an external key relation information data table, and the like.
Specifically, the client sends a service operation request to the interpretation engine module, the interpretation engine module receives the service operation request transmitted by the client, analyzes the service operation request, determines a corresponding operation corresponding to the service operation request and a corresponding service data table, and calls a persistent layer code file corresponding to the service data table, wherein the persistent layer code file is stored in the interpretation engine module in the application development process, and the interpretation engine module further stores an API interface between the persistent layer code file and the corresponding data table. And accessing a corresponding service data table according to the API interface of the persistent layer code file, and determining and calling the service data required in the service data table according to the service operation request.
S104, generating corresponding business data object information according to the business data table through an interpretation engine module, visually presenting the business data object information to the client through an application page, and responding to the operation of adding, deleting, modifying and expanding the business data object information by the client.
In this embodiment, the service data object information may be understood as data information corresponding to a service operation request in the service data table.
Specifically, after accessing a corresponding service data table and determining corresponding service data in the service data table according to a service operation request, forming corresponding service data object information according to the service data, visually presenting the service data object on the client through a unified data interface between the service data object and the client, and performing corresponding service operations, such as basic operations including addition, deletion, modification, check, etc., and extended operations, such as authority management, data verification, data desensitization, XML generation, etc., by a client user based on the presented page.
Example two
Fig. 2 is a flowchart of an application development method provided in the second embodiment of the present invention, where any of the foregoing embodiments is further optimized, and the method may be implemented by an application development system, and the application development system may be implemented in hardware and/or software.
As shown in fig. 2, the method includes:
s201, acquiring a development operation request transmitted by a client, analyzing the development operation request, and accessing a corresponding bottom data table according to an analysis result.
In this embodiment, the analysis result may be understood as information of the underlying data table corresponding to the development operation request determined after the analysis is performed on the development operation request. The bottom data table is used for storing various information required by the application development method of the low code development mode, is a bottom logic data table of a development level, stores data information with logic properties, and at least comprises a metadata data table, a field metadata data table, an external key relation information data table and the like. The bottom data table is a bottom logic table of the service data table, and the service data table is the bottom data table filled with specific service data.
It can be understood that, in addition to the data tables of the above three basic information, an extension field is reserved, so that dictionary information, a desensitization rule, a desensitization enabling state, a check rule, an XML node name and the like can be conveniently stored additionally, and a corresponding bottom data table is formed.
Specifically, when software development is performed on the addition, deletion and modification search application, a development operation request transmitted by a client is acquired and analyzed, an analysis result is obtained, and the analysis result comprises a bottom data table and required data information which are specifically corresponding to the development operation request. And accessing the corresponding bottom data table according to the analysis result, and determining the corresponding data information in the bottom data table.
Illustratively, the meta information data table stores data table names, chinese names, and extension information, as shown in the following table:
the field meta information data table stores the table to which the field belongs, the field name, the field chinese name, whether the key is a primary key, and other extension information, as shown in the following table:
fields Description of the invention
Field ID Uniquely identifying a field
Table ID Identifying which data table a field belongs to
Field name Storage field name (English character)
Field Chinese name Storing field chinese names
Whether or not to use the primary key Whether the field is a primary key
Other information Storing other extension information about fields by json
The foreign key relation information data table stores foreign key relation and expansion information among different table fields, as shown in the following table:
fields Description of the invention
Foreign key relation ID Uniquely identifying a foreign key relationship
Table ID Identifying which data table a field belongs to
Field ID Storage field name (English character)
Reference table ID Storing field chinese names
Reference field ID Field data type
Other information Storing other extension information about foreign key relationships via json
S202, generating a persistent layer code and an intra-pair interface corresponding to the bottom layer data table through a code generator, wherein the intra-pair interface has the functions of inquiring, screening, inserting, updating and deleting.
In this embodiment, the intra-pair interface may be understood as an API interface having functions of query, filtering, insertion, update and deletion generated by the code generating module according to the corresponding underlying data table.
Specifically, the code generation module is designed with a code generator, data information obtained by accessing the bottom data table is input into the code generator, the code generator generates corresponding persistent layer codes and an API interface according to the data information of the bottom data table, and the API interface can directly access the corresponding bottom data table to execute corresponding query, screening, insertion, updating and deleting operations.
Wherein the API interface is as follows:
further, generating, by the code generator, persistent layer code corresponding to the underlying data table, including:
s2021, reading the persistent layer code template through a code generator.
In this embodiment, the persistence layer code template may be understood as a code template that the code generator is self-contained with.
Specifically, in the code generator, a series of code templates are provided, the code to be generated in the scheme is a code of a persistent layer, and correspondingly, the code templates of the persistent layer are read.
S2022, reading the variables required by development corresponding to the development operation request from the underlying data table.
In this embodiment, the development-required variable may be understood as data information corresponding to the analysis result determined by the analysis development operation request.
Specifically, the analysis and development operation request obtains an analysis result, determines a corresponding bottom data table according to the analysis result, accesses the data corresponding to the data information of the analysis result in the bottom data table, and determines the data corresponding to the data information of the analysis result as a variable required for development as necessary data for generating the persistent layer code.
S2023, filling variables required by development into a persistent layer code template to generate corresponding persistent layer codes.
In this embodiment, the development-required variables are combined with the persistent layer code template, and the persistent layer code and API interface matched with the underlying data table corresponding to the development operation request is generated by filling the development-required variables into the fixed persistent layer code template. Based on the generated persistent layer code and the API interface, the corresponding bottom data table can be directly accessed and subjected to operations such as deletion, correction and the like.
S203, the persistent layer code is transmitted to the interpretation engine module through the on-pair internal interface.
In this embodiment, the API interface corresponding to the persistent layer code may further transmit the persistent layer code to the interpretation engine module, so that the persistent layer code may be directly invoked to implement deletion and verification of service data when applied.
Specifically, after the code generation module generates the persistent layer code and the API through the code generator, the persistent layer code is transmitted to the interpretation engine module through the API.
S204, receiving the persistent layer code through the internal interface and storing the persistent layer code as a file.
In this embodiment, the interpretation engine module includes a back-end interpretation engine and a page interpretation engine. The back-end interpretation engine builds a unified adding, deleting and checking API in an adapter mode on the basis of the DAO layer API, and an upper layer can execute adding, deleting and checking operation only by inputting table names and data.
Specifically, in the interpretation engine module, the back-end interpretation engine receives the persistent layer code sent by the code generation module through the internal interface, and stores the persistent layer code in a file format so as to be directly called in a subsequent application layer.
S205, generating an application page according to the persistent layer code file and the corresponding development data object information.
In this embodiment, the development data object information may be understood as data information corresponding to a development operation request, which is a unified data object structure and is substantially the same as the service data object information of the actual application layer, but the service data object information has substantial service data. The interpretation engine module also comprises a page interpretation engine, wherein the page interpretation engine generates an application page according to the development data object information transmitted by the back end, and the page interpretation engine is a front end interpretation engine.
Specifically, in the interpretation engine module, the back-end interpretation engine further obtains the data information of the corresponding bottom data table according to the corresponding persistent layer code and the API interface thereof, determines the data information as development data object information, and sends the development data object information to the page interpretation engine, wherein the development data object information is an interaction object between the back-end interpretation engine and the page interpretation engine, and has the structure and information shown in the following table:
The page interpretation engine receives the development data object information sent by the back-end interpretation engine, and at least generates a query page, a view page, an edit page and a newly added page according to the development data object information.
Fig. 3 is an exemplary display diagram of a query page involved in an application development method according to a second embodiment of the present invention. As shown in fig. 3, the query page mainly includes a screening area, a table area, a paging area, and an operation button. The screening conditions of the screening area are automatically generated by the page interpretation engine according to the field meta information of the data table and the configuration of the user, and the form head and the form column of the form area are automatically generated by the page interpretation engine according to the field source information, and meanwhile, the query result is filled; the paging area provides paging control for data queries; the operation buttons comprise adding, checking, editing and deleting; clicking a new adding button and then entering a new adding page; entering a view page after clicking a view button; editing pages after clicking the editing buttons; and deleting the data content of the corresponding row after clicking the delete button.
Fig. 4 is an exemplary display diagram of a view page involved in an application development method according to a second embodiment of the present invention. As shown in fig. 4, the viewing page includes a main table record area and an associated sub-table record area, the main table record area displaying currently viewed data; the related sub-table record area displays sub-table data related to the main table data; are automatically generated by the page interpretation engine.
Fig. 5 is an exemplary display diagram of an edit page involved in an application development method according to a second embodiment of the present invention. As shown in fig. 5, the editing page mainly includes a field editing area providing an editing function for each field; the editing area field and the editing frame are automatically generated by a page interpretation engine; the page interpretation engine analyzes the attribute in the field source information to judge whether the field is a primary key or not and whether the field can be edited or not.
Fig. 6 is an exemplary display diagram of a newly added page involved in an application development method according to a second embodiment of the present invention. As shown in fig. 6, the newly added page includes a field newly added area, a newly added data function, a field and an input box are automatically generated by the page engine, and the page interpretation engine selects a corresponding component for display according to the field type by analyzing the attribute in the field source information, such as selecting the input box or an option drop-down box or a boolean value for display.
S206, generating an external interface facing the client according to the internal interface, and visually presenting the application page to the client through the external interface.
In this embodiment, the back-end interpretation engine expands the data operation function based on the on-the-fly interface (unified add-drop-check API corresponding to the persistent layer code) and provides a unified external interface to the outside. After the page interpretation engine generates the application page, the application page is visually presented on the client through a unified external interface.
Optionally, the method further comprises:
and the function comprises at least authority checking, data checking and data desensitizing according to the function expansion of the external interface by the interpretation engine module.
Specifically, the back-end interpretation engine also has the function of data operation extension, and the function extension can be realized by a user according to the needs (such as authority checking, data desensitization, XML generation and the like). Information required for realizing the function expansion is stored in the field of 'other information' in the data table and is maintained by a user.
Fig. 7 is a diagram illustrating an example of data interaction of an application development method according to a second embodiment of the present invention. As shown in fig. 7, after receiving a development operation request of a client, the code generating module calls the bottom data table through the code generator to generate DAO layer codes (persistent layer codes) and corresponding API interfaces, sends the persistent layer codes to the interpretation engine module through the API interfaces, and the interpretation engine module receives and stores the persistent layer codes and the API interfaces, and generates a unified external interface according to the API interfaces so as to realize data interaction. In the interpretation engine module, the back-end interpretation engine accesses the corresponding data table through the persistent layer code, forms a unified data object (development data object information/business data object information) according to the data in the data table, sends the unified data object to the front-end interpretation engine, and the front-end interpretation engine performs page display and style expansion to display an application page on a client. The back-end interpretation engine also has the function of expanding the data operation function. Under the subsequent application scene, the interpretation engine module can directly access the corresponding service data table according to the persistent layer code and the API interface without regenerating the code by the code generating module.
According to the application generation method provided by the embodiment, a development operation request transmitted by a client is taken through a code generation module, the development operation request is analyzed, and a corresponding bottom data table is accessed according to an analysis result; generating a persistent layer code and an intra-pair interface corresponding to the bottom layer data table through a code generator, wherein the intra-pair interface faces to an interpretation engine module and has the functions of inquiring, screening, inserting, updating and deleting; transmitting the persistent layer code to an interpretation engine module through an internal interface; receiving the persistent layer code through the internal interface and storing the persistent layer code as a file through the interpretation engine module; generating an application page according to the persistent layer code file and the corresponding development data object information; and generating an external interface facing the client according to the internal interface, and visually presenting the application page to the client through the external interface. Under the low code mode designed by the invention, the code generator only needs to generate basic DAO layer codes, the page and the back-end interpretation engine are used for realizing the expansion and customization of functions, and the DAO layer codes are generated, so that the data operation can be solidified into codes, SQL injection risks are avoided, the safety is ensured, the interpretation engine is realized based on common codes, and the user can flexibly customize and expand.
The low code mode provided by the invention ensures the function expansion to be very flexible and simple, ensures the safety, realizes the complementary advantages of the code generation and interpretation engine, enables a user to develop the powerful add-delete-modify-check application by only carrying out simple operation (maintaining a bottom data table, a business data table and an operation code generator), does not need to write any code at all, and can effectively improve the development efficiency.
Example III
Fig. 8 is a schematic structural diagram of an application development system according to a third embodiment of the present invention. The system is connected with the client through an external interface, as shown in fig. 8, and the system comprises: the system comprises a code development module and an interpretation engine module, wherein the code development module is connected with the interpretation engine module through an internal interface;
the code development module 31 is configured to obtain a development operation request transmitted by a client, generate a corresponding persistent layer code according to the development operation request, and transmit the persistent layer code to the interpretation engine module;
The interpretation engine module 32 is configured to store the persistent layer code as a file, generate a corresponding application page according to the persistent layer code file, and visually present the application page to the client.
The application development system adopted by the technical scheme solves the problem of code generation and engraving in the existing application development method, reduces the workload of the application in the development stage, improves the application development efficiency and reduces the application development time.
Optionally, the code development module 31 includes:
the data packet access unit is used for analyzing the development operation request and accessing a corresponding bottom data table according to the analysis result;
the code generation unit is used for generating a persistent layer code and an intra-pair interface corresponding to the bottom layer data table through a code generator, wherein the intra-pair interface has the functions of inquiring, screening, inserting, updating and deleting;
and the code transmission unit is used for transmitting the persistent layer code to the interpretation engine module through the intra-pair interface.
Optionally, the code generating unit is specifically configured to:
reading a persistence layer code template by the code generator;
reading a development required variable corresponding to the development operation request from the bottom data table;
And filling the variables required by development into the persistent layer code template to generate corresponding persistent layer codes.
Optionally, the interpretation engine module 32 is specifically configured to:
receiving the persistent layer code through an intra-pair interface and storing the persistent layer code as a file;
generating an application page according to the persistent layer code file and the corresponding development data object information;
and generating an external interface facing the client according to the internal interface, and visually presenting the application page to the client through the external interface.
Optionally, the interpretation engine module is specifically further configured to:
and performing function expansion according to the external interface, wherein the functions at least comprise authority checking, data checking and data desensitizing.
Optionally, the interpretation engine module is specifically further configured to:
acquiring a service operation request transmitted by a client, calling a corresponding pre-stored persistent layer code file according to the service operation request, and accessing a corresponding service data table according to the persistent layer code file;
and generating corresponding service data object information according to the service data table, visually presenting the service data object information to a client through the application page, and responding to the operation of adding, deleting, modifying and expanding the service data object information by the client.
Optionally, the development operation request is sent by a developer through the client, and the service operation request is sent by a user through the client.
The application development system provided by the embodiment of the invention can execute the application development method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 9 shows a schematic diagram of an electronic device 40 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 9, the electronic device 40 includes at least one processor 41, and a memory communicatively connected to the at least one processor 41, such as a Read Only Memory (ROM) 42, a Random Access Memory (RAM) 43, etc., in which the memory stores a computer program executable by the at least one processor, and the processor 41 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 42 or the computer program loaded from the storage unit 48 into the Random Access Memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 may also be stored. The processor 41, the ROM 42 and the RAM 43 are connected to each other via a bus 44. An input/output (I/O) interface 45 is also connected to bus 44.
Various components in electronic device 40 are connected to I/O interface 45, including: an input unit 46 such as a keyboard, a mouse, etc.; an output unit 47 such as various types of displays, speakers, and the like; a storage unit 48 such as a magnetic disk, an optical disk, or the like; and a communication unit 49 such as a network card, modem, wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 41 may be various general and/or special purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 41 performs the respective methods and processes described above, such as an application development method.
In some embodiments, the application development method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 48. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 40 via the ROM 42 and/or the communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the application development method described above may be performed. Alternatively, in other embodiments, processor 41 may be configured to perform the application development method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
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 are possible, depending on 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 (10)

1. An application development method, applied to an application development system, the system including a code development module and an interpretation engine module, the method comprising:
acquiring a development operation request transmitted by a client through the code development module, generating a corresponding persistent layer code according to the development operation request, and transmitting the persistent layer code to the interpretation engine module;
and storing the persistent layer code as a file through the interpretation engine module, generating a corresponding application page according to the persistent layer code file, and visually presenting the application page to the client.
2. The method of claim 1, wherein generating the corresponding persistence layer code from the development operation request and transmitting the persistence layer code to the interpretation engine module comprises:
analyzing the development operation request, and accessing a corresponding bottom data table according to an analysis result;
generating a persistent layer code and an intra-pair interface corresponding to the bottom layer data table through a code generator, wherein the intra-pair interface has the functions of inquiring, screening, inserting, updating and deleting;
the persistence layer code is transmitted to the interpretation engine module through the intra-pair interface.
3. The method of claim 2, wherein the generating, by a code generator, persistent layer code corresponding to the underlying data table comprises:
reading a persistence layer code template by the code generator;
reading a development required variable corresponding to the development operation request from the bottom data table;
and filling the variables required by development into the persistent layer code template to generate corresponding persistent layer codes.
4. The method of claim 1, wherein storing the persistence layer code as a file, generating a corresponding application page from the persistence layer code file, and visually rendering the application page to the client, comprises:
Receiving the persistent layer code through an intra-pair interface and storing the persistent layer code as a file;
generating an application page according to the persistent layer code file and the corresponding development data object information;
and generating an external interface facing the client according to the internal interface, and visually presenting the application page to the client through the external interface.
5. The method as recited in claim 4, further comprising:
and performing function expansion according to the external interface through the interpretation engine module, wherein the functions at least comprise authority checking, data checking and data desensitization.
6. The method as recited in claim 1, further comprising:
acquiring a service operation request transmitted by a client through the interpretation engine module, calling a corresponding pre-stored persistent layer code file according to the service operation request, and accessing a corresponding service data table according to the persistent layer code file;
and generating corresponding service data object information according to the service data table through the interpretation engine module, visually presenting the service data object information to a client through the application page, and responding to the operation of adding, deleting, modifying and searching the service data object information and expanding the service data object information by the client.
7. The method of claim 6, wherein the development operation request is issued by a developer through the client, and wherein the business operation request is issued by a user through the client.
8. An application development system, characterized in that it is connected with a client through an external interface, the system comprising: the system comprises a code development module and an interpretation engine module, wherein the code development module is connected with the interpretation engine module through an internal interface;
the code development module is used for acquiring a development operation request transmitted by a client, generating a corresponding persistent layer code according to the development operation request, and transmitting the persistent layer code to the interpretation engine module;
and the interpretation engine module is used for storing the persistent layer code as a file, generating a corresponding application page according to the persistent layer code file, and visually presenting the application page to the client.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform an application development method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement an application development method according to any one of claims 1-7 when executed.
CN202311651171.6A 2023-12-04 2023-12-04 Application development method, system, equipment and storage medium Pending CN117608575A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311651171.6A CN117608575A (en) 2023-12-04 2023-12-04 Application development method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311651171.6A CN117608575A (en) 2023-12-04 2023-12-04 Application development method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117608575A true CN117608575A (en) 2024-02-27

Family

ID=89949608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311651171.6A Pending CN117608575A (en) 2023-12-04 2023-12-04 Application development method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117608575A (en)

Similar Documents

Publication Publication Date Title
CN112966004B (en) Data query method, device, electronic equipment and computer readable medium
EP3971761A1 (en) Method and apparatus for generating summary, electronic device and storage medium thereof
CN108446313B (en) Data format conversion method and device
CN114610845B (en) Intelligent question-answering method, device and equipment based on multiple systems
CN114579104A (en) Data analysis scene generation method, device, equipment and storage medium
CN117170655A (en) Metadata processing method and device, data processing equipment and storage medium
CN116185389A (en) Code generation method and device, electronic equipment and medium
WO2023103432A1 (en) Code file editing method and apparatus, electronic device, and storage medium
CN116361591A (en) Content auditing method, device, electronic equipment and computer readable storage medium
CN116009847A (en) Code generation method, device, electronic equipment and storage medium
CN117608575A (en) Application development method, system, equipment and storage medium
CN115577689A (en) Table component generation method, device, equipment and medium
CN115510247A (en) Method, device, equipment and storage medium for constructing electric carbon policy knowledge graph
CN114860753A (en) SQL statement generation method, device, equipment, medium and product
CN110852077A (en) Method, device, medium and electronic equipment for dynamically adjusting Word2Vec model dictionary
CN116383454B (en) Data query method of graph database, electronic equipment and storage medium
CN115981657A (en) Code generation method and device, electronic equipment and readable medium
CN117743374A (en) Database text query method, device and equipment based on data examples
CN115495368A (en) Data testing method and device and electronic equipment
CN116595034A (en) Structured query language formatting method, device, electronic equipment and storage medium
CN117931506A (en) Document verification method, device, equipment and storage medium
CN117033402A (en) Data access method, device, equipment and storage medium
CN115454977A (en) Data migration method, device, equipment and storage medium
CN118012897A (en) Heterogeneous database grammar conversion method, device, equipment and storage medium
CN117573677A (en) Data updating method, device, equipment and medium based on transverse table database structure

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