CN118192954A - System, method, electronic device and storage medium for generating function code - Google Patents
System, method, electronic device and storage medium for generating function code Download PDFInfo
- Publication number
- CN118192954A CN118192954A CN202410410381.4A CN202410410381A CN118192954A CN 118192954 A CN118192954 A CN 118192954A CN 202410410381 A CN202410410381 A CN 202410410381A CN 118192954 A CN118192954 A CN 118192954A
- Authority
- CN
- China
- Prior art keywords
- function
- target
- preset
- component
- function code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000006870 function Effects 0.000 claims abstract description 259
- 238000012800 visualization Methods 0.000 claims abstract description 24
- 238000004590 computer program Methods 0.000 claims description 15
- 238000006243 chemical reaction Methods 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 14
- 238000013523 data management Methods 0.000 claims description 13
- 238000011161 development Methods 0.000 claims description 10
- 238000012790 confirmation Methods 0.000 claims description 5
- 238000004806 packaging method and process Methods 0.000 claims description 5
- 238000012423 maintenance Methods 0.000 abstract description 10
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000012545 processing Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 238000007726 management method Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a system, a method, electronic equipment and a storage medium for generating functional codes. Wherein, this system includes: a visualization module for displaying the at least one component and the at least one designer; the configurator module is connected with the visualization module and is used for receiving a first operation instruction for a target component in at least one component and a second operation instruction for a target designer in at least one designer, configuring the target component by using the target designer based on preset configuration parameters and generating an initial function code of a corresponding preset function of an application program; the generator module is connected with the configurator module and used for receiving the initial function codes, and converting the format of the initial function codes according to a preset language format to obtain target function codes, wherein the target function codes are used for representing the function codes of the preset functions to be issued. The invention solves the technical problem of lower efficiency of generating the power grid operation and maintenance business application program in the related technology.
Description
Technical Field
The present invention relates to the field of code generation, and in particular, to a system, a method, an electronic device, and a storage medium for generating a function code.
Background
Aiming at the application program of operation and maintenance management and monitoring of the power system, the analysis and management of the operation data of the power grid are required to be realized, the operation data of the power grid are analyzed and counted, the inspection plan, record and management functions of the power grid equipment are provided, the analysis and counting of the data of the power grid equipment are performed, the functions of generating relevant reports, charts and the like are generated, and the application program of the operation and maintenance business class of the power grid is of great significance.
At present, an application program for operation and maintenance management and monitoring of a power system generally needs to realize a plurality of functions, a traditional software generation system or tool is used for generating the application program according to a traditional software development method or step, the period of generating the application program is long, the independence among the functions of the generated application program is poor, if one function of the application program is modified or adjusted, the operation of other functions can be influenced, namely, the maintainability of the application program is poor, namely, the efficiency of generating the power grid operation and maintenance application program is low.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a system, a method, electronic equipment and a storage medium for generating functional codes, which at least solve the technical problem of low efficiency of generating power grid operation and maintenance service class application programs in related technologies.
According to an aspect of an embodiment of the present invention, there is provided a function code generating system including: a visualization module for displaying at least one component for implementing at least one function of the application and at least one designer for editing the at least one function; the configurator module is connected with the visualization module and is used for receiving a first operation instruction for a target component in at least one component and a second operation instruction for a target designer in at least one designer, configuring the target component by using the target designer based on preset configuration parameters and generating an initial function code of a corresponding preset function of an application program; the generator module is connected with the configurator module and used for receiving the initial function codes, and converting the format of the initial function codes according to a preset language format to obtain target function codes, wherein the target function codes are used for representing the function codes of the preset functions to be issued.
Optionally, the system for generating a function code further includes: and the component library module is connected with the visualization module and used for packaging the preset code segments carried by the component updating instruction under the condition that the component updating instruction is received to obtain a component to be displayed, wherein the component to be displayed is used for displaying in the visualization module according to the component display instruction.
Optionally, the system for generating a function code further includes: the data management module is connected with the generator module and is used for generating an operation instruction of the target function code at the client, wherein the operation instruction comprises the type of the client; and the server is connected with the data management module and is used for running the target function code at the client according to the running instruction.
Optionally, the system for generating a function code further includes: the template library module is connected with the configurator module and the generator module and is used for receiving development instructions of preset functions, calling tool templates corresponding to the preset functions and generating preset function codes corresponding to the preset functions by using the tool templates.
According to another aspect of the embodiment of the present invention, there is also provided a method for generating a function code, including: in response to receiving a generation instruction of a preset function of the application program, displaying at least one component and at least one designer, wherein the at least one component is used for realizing the at least one function of the application program, and the at least one designer is used for editing the at least one function; in response to receiving a first operation instruction for a target component in the at least one component and a second operation instruction for a target designer in the at least one designer, configuring the target component with the target designer based on preset configuration parameters, generating an initial function code of a preset function; and in response to receiving a confirmation instruction of the initial function code, performing format conversion on the initial function code according to a preset language format to obtain a target function code, wherein the target function code is used for representing the function code of the preset function to be issued.
Optionally, the method for generating the function code further includes: in response to receiving the execution instruction of the target function code, the target function code is executed at the client based on the type of the client included in the execution instruction.
Optionally, the method for generating the function code further includes: responding to the received automatic generation instruction of the preset function of the application program, and calling a tool template corresponding to the preset function; and generating a preset function code corresponding to the preset function by using the tool template.
Optionally, the method for generating the function code further includes: constructing adjustment information of a tool template based on a preset function code and a target function code; the tool template is updated based on the adjustment information.
According to another aspect of the embodiment of the present invention, there is also provided a generating device of a function code, including: the display module is used for responding to the received generation instruction of the preset function of the application program, displaying at least one component and at least one designer, wherein the at least one component is used for realizing the at least one function of the application program, and the at least one designer is used for editing the at least one function; the generating module is used for responding to the received first operation instruction of the target component in the at least one component and the received second operation instruction of the target designer in the at least one designer, configuring the target component by the target designer based on preset configuration parameters, and generating initial function codes of preset functions; and the conversion module is used for responding to the received confirmation instruction of the initial function code, carrying out format conversion on the initial function code according to a preset language format to obtain a target function code, wherein the target function code is used for representing the function code of the preset function to be issued.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device, including: a memory storing an executable program; and a processor for running a program, wherein the program when run performs the methods of the various embodiments of the present invention.
According to another aspect of the embodiments of the present invention, there is also provided a computer readable storage medium including a stored executable program, where the executable program when run controls a device in which the computer readable storage medium is located to perform the method in the embodiments of the present invention.
According to another aspect of embodiments of the present invention, there is also provided a computer program product comprising a computer program which, when executed by a processor, implements the methods of the various embodiments of the invention.
According to another aspect of embodiments of the present invention, there is also provided a computer program product comprising a non-volatile computer readable storage medium storing a computer program which, when executed by a processor, implements the method in various embodiments of the invention.
According to another aspect of embodiments of the present invention, there is also provided a computer program which, when executed by a processor, implements the methods of the various embodiments of the invention.
In an embodiment of the present application, there is provided a system for generating a function code, including: a visualization module for displaying at least one component for implementing at least one function of the application and at least one designer for editing the at least one function; the configurator module is connected with the visualization module and is used for receiving a first operation instruction for a target component in at least one component and a second operation instruction for a target designer in at least one designer, configuring the target component by using the target designer based on preset configuration parameters and generating an initial function code of a corresponding preset function of an application program; the generator module is connected with the configurator module and used for receiving the initial function codes and carrying out format conversion on the initial function codes according to a preset language format to obtain target function codes, wherein the target function codes are used for representing the function codes of the preset functions to be issued.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic diagram of a system for generating functional code according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of generating a function code according to an embodiment of the invention;
fig. 3 is a schematic diagram of a function code generating apparatus according to an embodiment of the present application.
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 the like in the description and the claims of the present invention 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
According to an embodiment of the present application, there is provided a function code generating system, fig. 1 is a schematic diagram of a function code generating system according to the present application, and as shown in fig. 1, a function code generating system 102 includes:
A visualization module 104 for displaying the at least one component and the at least one designer.
Wherein the at least one component is for implementing at least one function of the application and the at least one designer is for editing the at least one function.
The application program may refer to a software program for operation and maintenance service in the power industry, and the application program may run on various devices, including a computer, a smart phone, a tablet computer, and the like.
In an alternative embodiment, an application program may have multiple functions, where the independence between the functions of the application program generated by the conventional software generating system or tool is poor, if one function of the application program is modified or adjusted, the operation of other functions may be affected, that is, the maintainability of the application program is poor.
Specifically, in the application program design stage, one component can be used for representing one function of the application program, each component corresponds to an independent function, a plurality of components can form a more complex or perfect function, finally, a plurality of components can form a complete application program, components corresponding to common functions can be finished in advance, each component can be finished at the same time, when the application program is generated, the corresponding component can be directly called based on the functions required to be realized by the application program, the application program can be more conveniently and rapidly generated by using the componentization method, the generation efficiency of the application program is improved, the reusability of each function in the application program is increased, when the application program needs to modify or adjust a certain function, only the components corresponding to the function need to be modified or adjusted, too many functions do not need to be changed, and the maintainability of the application program is enhanced.
The above-described visualization module may be used for the creation, editing, configuration, modification, etc. of the visualization display component.
The designer can edit, configure, modify and the like each component, and the editing, configuring, modifying and the like of each component can be independently completed.
And the configurator module 106 is connected with the visualization module and is used for receiving a first operation instruction for a target component in at least one component and a second operation instruction for a target designer in at least one designer, configuring the target component by using the target designer based on preset configuration parameters, and generating initial function codes of the corresponding preset functions of the application program.
The first operation instruction described above may refer to an instruction or a command for creating a corresponding target component based on a functional requirement of an application program, for example, a corresponding login function component may be created based on a login function requirement of the application program.
The second operation instruction described above may refer to an instruction or a command employed for configuring the target component based on the target designer.
The above-mentioned preset function may refer to a preset or current function requirement to be implemented, where the preset function corresponds to the target component.
The target component is used for representing a component which needs to be generated currently, namely a component corresponding to a preset function, and the target component can be determined by a first operation instruction.
The target designer may correspond to a target component, and be used for performing operations such as configuration on the target component.
The initial function code may be initial code for implementing the target component, and the initial function code may be pseudo code or the like, and the form of the initial function code is not limited herein.
In an alternative embodiment, when the configurator module receives the first operation instruction, the generated component may be created or initialized, and when the configurator module receives the second operation instruction, the target component may be configured by using the target designer to generate an initial function code of the application program corresponding to the preset function.
The generator module 108 is connected to the configurator module, and is configured to receive the initial function code, and perform format conversion on the initial function code according to a preset language format, so as to obtain a target function code.
The target function code is used for representing the function code of the preset function to be issued.
The target function code may be a code that can directly implement a preset function, and the form of the target function code may be determined according to actual needs, which is not limited herein.
In an alternative embodiment, the initial function code may be input to a generator module, and the generator module may perform format conversion on the initial function code to obtain a corresponding target function code, where the target function code may be used to implement a preset function of the application program.
In an embodiment of the present application, there is provided a system for generating a function code, including: a visualization module for displaying at least one component for implementing at least one function of the application and at least one designer for editing the at least one function; the configurator module is connected with the visualization module and is used for receiving a first operation instruction for a target component in at least one component and a second operation instruction for a target designer in at least one designer, configuring the target component by using the target designer based on preset configuration parameters and generating an initial function code of a corresponding preset function of an application program; the generator module is connected with the configurator module and used for receiving the initial function codes and carrying out format conversion on the initial function codes according to a preset language format to obtain target function codes, wherein the target function codes are used for representing the function codes of the preset functions to be issued.
Optionally, the system for generating a function code further includes: and the component library module is connected with the visualization module and used for packaging the preset code segments carried by the component updating instruction under the condition that the component updating instruction is received to obtain a component to be displayed, wherein the component to be displayed is used for displaying in the visualization module according to the component display instruction.
The above-described component update instruction may refer to an instruction or command for updating a component.
The above-mentioned preset code segment may refer to a pre-completed code segment, which may be used to compose a component.
In an alternative embodiment, the component library module may perform operations such as generating, updating, and packaging the component, and when the component library module receives the component update instruction, the component library module may encapsulate the preset code segment, that is, may form the component to be displayed by the preset code segment, where the component to be displayed may be displayed in the visualization module.
Optionally, the system for generating a function code further includes: the data management module is connected with the generator module and is used for generating an operation instruction of the target function code at the client, wherein the operation instruction comprises the type of the client; and the server is connected with the data management module and is used for running the target function code at the client according to the running instruction.
In an alternative embodiment, the data management module may generate an operation instruction of the target function code at the client, the server may operate the target function code, the data management module may be further configured to store and manage data of the application program, the data management module may be deployed in the server, may be responsible for processing background data and communication logic, manage and invoke the local service to perform data and logic processing on a form formed by the visual configuration, and the front-end application program may be responsible for displaying and interacting logic of a client interface, support multiple client types, including a browser, an application program, and the like.
Optionally, the system for generating a function code further includes: the template library module is connected with the configurator module and the generator module and is used for receiving development instructions of preset functions, calling tool templates corresponding to the preset functions and generating preset function codes corresponding to the preset functions by using the tool templates.
The template library module can be used for generating a preset function code, can be determined according to actual needs, is not limited in this regard, can receive a development instruction of a preset function, and can call a tool template corresponding to the preset function and generate a corresponding preset function code by using the tool template.
In an alternative embodiment, the present application provides a system and a method for developing a functional code related to operation and maintenance of a power grid, which can be applied to an operation and maintenance scene of the power grid, and the system can include: the system comprises a visualization module, a component library module, a configurator module, a generator module, a data management module and the like, wherein the visualization module can provide a visual interface, an application program can be constructed in a mode of dragging, configuring and connecting components, and the visualization module can comprise a form designer, a flow designer, a report designer and the like, so that a user can intuitively design and edit various aspects of the application; the component library module can be used for encapsulating the predefined conventionally used code fragments into components to form a component library; the configurator module can be used for combining data sources, interfaces and components, namely page elements, selecting required components from pages and editing the components, and configuring different types of components and packages through the configurator so as to form a form, the pages and service logic processing functions; the generator module can be used for automatically combining the application generated automation tools, can realize functions of automatically generating codes, automatically testing, automatically deploying and the like, can generate the codes into languages in a preset format to form page data, is used for compiling and packaging the page data to generate publishable static codes, can reduce the workload of developers, can simplify and accelerate the development process, and can improve the development efficiency and quality; the system is characterized in that the application provides a system for developing operation and maintenance of a power grid without manually writing a large number of codes with reproducibility or high similarity by a developer, improves the development efficiency in the development process, and reduces the development workload and technical difficulty of the system.
Example 2
According to another aspect of the embodiments of the present invention, there is also provided a method of generating functional code, it being noted that the steps shown in the flowcharts of the figures may + be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
Fig. 2 is a flowchart of a method for generating a function code according to an embodiment of the present invention, as shown in fig. 2, the method includes the steps of:
Step S202, in response to receiving a generation instruction of a preset function of an application program, displaying at least one component and at least one designer.
Wherein the at least one component is for implementing at least one function of the application and the at least one designer is for editing the at least one function.
In an alternative embodiment, an application may have multiple functions, and the application provides a system for generating function codes, namely, an application with better maintainability can be generated.
In step S204, in response to receiving the first operation instruction for the target component in the at least one component and the second operation instruction for the target designer in the at least one designer, the target designer is utilized to configure the target component based on the preset configuration parameters, and an initial function code of the preset function is generated.
In an alternative embodiment, when the configurator module receives the first operation instruction, the generated component may be created or initialized, and when the configurator module receives the second operation instruction, the target component may be configured by using the target designer to generate an initial function code of the application program corresponding to the preset function.
Step S206, in response to receiving the confirmation instruction of the initial function code, format conversion is performed on the initial function code according to the preset language format, and the target function code is obtained.
The target function code is used for representing the function code of the preset function to be issued.
In an alternative embodiment, the initial function code may be input to a generator module, and the generator module may perform format conversion on the initial function code to obtain a corresponding target function code, where the target function code may be used to implement a preset function of the application program.
Optionally, the method for generating the function code further includes: in response to receiving the execution instruction of the target function code, the target function code is executed at the client based on the type of the client included in the execution instruction.
Optionally, the method for generating the function code further includes: responding to the received automatic generation instruction of the preset function of the application program, and calling a tool template corresponding to the preset function; and generating a preset function code corresponding to the preset function by using the tool template.
In an alternative embodiment, the template library module may be used to generate a preset function code, where the template library module may be determined according to actual needs, and is not limited herein, and the template library module may receive a development instruction of the preset function, call a tool template corresponding to the preset function, and generate a corresponding preset function code using the tool template.
Optionally, the method for generating the function code further includes: constructing adjustment information of a tool template based on a preset function code and a target function code; the tool template is updated based on the adjustment information.
The adjustment information described above may be used to update the tool template.
In an alternative embodiment, the adjustment information of the tool template can be constructed based on the preset function code and the target function code, and then the tool template is updated based on the adjustment information, so that the generation efficiency of the preset function code can be improved, and the generation efficiency of the target component is improved.
Example 3
According to another aspect of the embodiments of the present invention, there is further provided a device for generating a function code, where the device may execute the method for generating a function code in the foregoing embodiments, and the specific implementation method and the preferred application scenario are the same as those in the foregoing embodiments, which are not described herein.
Fig. 3 is a schematic diagram of a device for generating a function code according to an embodiment of the present application, as shown in fig. 3, the device includes the following: a display module 302, a generation module 304, and a conversion module 306.
Wherein, the display module 302 is configured to display at least one component and at least one designer in response to receiving a generation instruction of a preset function of the application program, where the at least one component is configured to implement at least one function of the application program, and the at least one designer is configured to edit the at least one function; a generating module 304, configured to generate an initial function code of a preset function by configuring a target component based on preset configuration parameters by using the target designer in response to receiving a first operation instruction for the target component in the at least one component and a second operation instruction for the target designer in the at least one designer; and the conversion module 306 is configured to perform format conversion on the initial function code according to a preset language format in response to receiving a confirmation instruction on the initial function code, so as to obtain a target function code, where the target function code is used to represent a function code of a preset function to be issued.
The conversion module is further configured to respond to receiving an operation instruction of the target function code, and operate the target function code on the client based on a type of the client included in the operation instruction.
In an alternative embodiment, the data management module may generate an operation instruction of the target function code at the client, the server may operate the target function code, the data management module may be further configured to store and manage data of the application program, the data management module may be deployed in the server, may be responsible for processing background data and communication logic, manage and invoke the local service to perform data and logic processing on a form formed by the visual configuration, and the front-end application program may be responsible for displaying and interacting logic of a client interface, support multiple client types, including a browser, an application program, and the like.
The generating module is further used for responding to the received automatic generating instruction of the preset function of the application program and calling a tool template corresponding to the preset function; and generating a preset function code corresponding to the preset function by using the tool template.
The generating module is further used for constructing adjustment information of the tool template based on the preset function code and the target function code; the tool template is updated based on the adjustment information.
Example 4
The embodiment of the application also provides electronic equipment, which comprises: a memory storing an executable program; and a processor for running a program, wherein the program when run performs the methods of the various embodiments of the present application.
The above-mentioned memory may refer to a device for storing data and programs inside a computer, and may include a memory, a hard disk, etc., where the memory may be used to temporarily store the running programs and data, the hard disk may be used to store the programs and data for a long period of time, and the memory may be used to enable the computer to read and write data, and execute the programs; the processor described above may be responsible for executing instructions in a computer program and performing data processing, and may be responsible for controlling and performing various operations, including arithmetic operations, logical operations, data transmission, and the like.
Example 5
Embodiments of the present application also provide a computer-readable storage medium including a stored executable program, wherein the executable program when run controls a device in which the computer-readable storage medium resides to perform the methods of the embodiments of the present application.
The computer storage medium may be a medium for storing a certain discrete physical quantity in a computer memory, and the computer storage medium mainly includes a semiconductor, a magnetic core, a magnetic drum, a magnetic tape, a laser disk, and the like; the computer readable storage medium may include a stored program which may be a set of instructions which can be recognized and executed by a computer, running on an electronic computer, and which may be an informative tool for meeting certain needs of a person.
Example 6
Embodiments of the application also provide a computer program product comprising a computer program which, when executed by a processor, implements the methods of the various embodiments of the application.
The computer program product may refer to a software program written, tested and distributed and may be run on a computer or other device, and may include application programs, operating systems, tools software, etc. for implementing specific functions or solving specific problems.
Example 7
Embodiments of the present application also provide a computer program product comprising a non-volatile computer readable storage medium for storing a computer program which, when executed by a processor, implements the methods of the various embodiments of the application.
The above-mentioned non-volatile computer readable storage medium may refer to a medium for storing data, where the non-volatile computer readable storage medium can keep data from being lost when power is off, and may be used for storing data stored for a long period of time, such as an operating system, an application program, and a user file, and the non-volatile storage medium may include a hard disk drive, a solid state disk, an optical disk, a flash memory storage device, and the like.
Example 8
Embodiments of the present application also provide a computer program which, when executed by a processor, implements the methods of the various embodiments of the application described above.
The above-described computer program may refer to a set of instructions for instructing a computer to perform a particular task or operation, may be written by a programmer using a particular programming language, and may include algorithms, data structures, logic, control flows, etc., and may be used for a variety of purposes, including application software, operating systems, etc.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a Read-only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.
Claims (11)
1. A system for generating a function code, comprising:
a visualization module for displaying at least one component for implementing at least one function of an application and at least one designer for editing the at least one function;
The configurator module is connected with the visualization module and is used for receiving a first operation instruction for a target component in the at least one component and a second operation instruction for a target designer in the at least one designer, configuring the target component by utilizing the target designer based on preset configuration parameters and generating an initial function code of a preset function corresponding to the application program;
The generator module is connected with the configurator module and used for receiving the initial function codes, and converting the format of the initial function codes according to a preset language format to obtain target function codes, wherein the target function codes are used for representing the function codes of the preset functions to be issued.
2. The system of claim 1, wherein the system further comprises:
And the component library module is connected with the visualization module and used for packaging the preset code segments carried by the component updating instruction under the condition that the component updating instruction is received to obtain a component to be displayed, wherein the component to be displayed is used for displaying in the visualization module according to the component display instruction.
3. The system of claim 2, wherein the system further comprises:
The data management module is connected with the generator module and is used for generating an operation instruction of the target function code at the client, wherein the operation instruction comprises the type of the client;
and the server is connected with the data management module and is used for running the target function code at the client according to the running instruction.
4. The system of claim 1, wherein the system further comprises:
And the template library module is connected with the configurator module and the generator module and is used for receiving the development instruction of the preset function, calling a tool template corresponding to the preset function and generating a preset function code corresponding to the preset function by utilizing the tool template.
5. A method for generating a function code, comprising:
In response to receiving a generation instruction of a preset function of an application program, displaying at least one component and at least one designer, wherein the at least one component is used for realizing at least one function of the application program, and the at least one designer is used for editing the at least one function;
In response to receiving a first operation instruction for a target component in the at least one component and a second operation instruction for a target designer in the at least one designer, configuring the target component by using the target designer based on preset configuration parameters, and generating initial function codes of the preset functions;
And in response to receiving a confirmation instruction of the initial function code, performing format conversion on the initial function code according to a preset language format to obtain a target function code, wherein the target function code is used for representing the function code of the preset function to be issued.
6. The method of claim 5, wherein the method further comprises:
and responding to the received operation instruction of the target function code, and operating the target function code on the client based on the type of the client included in the operation instruction.
7. The method of claim 5, wherein the method further comprises:
Responding to receiving an automatic generation instruction of a preset function of an application program, and calling a tool template corresponding to the preset function;
And generating a preset function code corresponding to the preset function by using the tool template.
8. The method of claim 7, wherein the method further comprises:
constructing adjustment information of the tool template based on the preset function code and the target function code;
And updating the tool template based on the adjustment information.
9. An electronic device, comprising:
A memory storing an executable program;
A processor for executing the program, wherein the program when run performs the method of any of claims 5 to 8.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored executable program, wherein the executable program when run controls a device in which the storage medium is located to perform the method of any one of claims 5 to 8.
11. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 5 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410410381.4A CN118192954A (en) | 2024-04-07 | 2024-04-07 | System, method, electronic device and storage medium for generating function code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410410381.4A CN118192954A (en) | 2024-04-07 | 2024-04-07 | System, method, electronic device and storage medium for generating function code |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118192954A true CN118192954A (en) | 2024-06-14 |
Family
ID=91398112
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410410381.4A Pending CN118192954A (en) | 2024-04-07 | 2024-04-07 | System, method, electronic device and storage medium for generating function code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118192954A (en) |
-
2024
- 2024-04-07 CN CN202410410381.4A patent/CN118192954A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109542556B (en) | Method and system for interaction between process and form based on Activiti | |
US7743362B2 (en) | Automatic generation of application domain specific graphical programs | |
CN110058856A (en) | Page configuration method and device | |
CN106775744B (en) | Method and device for generating static library | |
CN108345265B (en) | Programming method of hardware device, visual programming platform, memory and processor | |
CN110851134A (en) | Low-code page design device and page design method | |
US20060036799A1 (en) | Multi-platform development and execution of graphical programs | |
CN104615541A (en) | Simulation testing modeling system and method based on flow chart | |
CN109144511B (en) | Method and system for automatically generating numerical simulation graphical user interface | |
TW201642058A (en) | Program generation device, program generation method, and program generation program | |
CN115495069B (en) | Model-driven coal industry software process implementation method, device and equipment | |
CN112650966A (en) | Method, generator and medium for generating dynamic list page of online design | |
KR101408280B1 (en) | Apparatus and method for logic creation of development tools, and storage medium recording program for implementing method thereof | |
CN114912897A (en) | Workflow execution method, workflow arrangement method and electronic equipment | |
WO2023004806A1 (en) | Device deployment method for ai model, system, and storage medium | |
CN110806891B (en) | Method and device for generating software version of embedded device | |
CN118192954A (en) | System, method, electronic device and storage medium for generating function code | |
CN114265595B (en) | Cloud native application development and deployment system and method based on intelligent contracts | |
CN113867714A (en) | Automatic code generation method adaptive to multiple languages | |
CN115145634A (en) | System management software self-adaption method, device and medium | |
CN114238072A (en) | HIL requirement design method, HIL requirement design device, computer equipment and storage medium | |
CN114518875A (en) | Graphical programming system and programming method thereof | |
KR101907199B1 (en) | Device and method for driving program in instrumentation and control facility | |
EP3462309A1 (en) | Method for generating user interfaces from a manufacturing application model | |
CN116661767B (en) | File generation method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination |