Data processing methods, apparatus, equipment and storage media

By automatically generating application code on the server side, the problems of high labor costs and inconsistent code caused by terminal-side configuration are solved, achieving efficient and standardized code generation.

CN114860247BActive Publication Date: 2026-04-03BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-06
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

In existing technologies, application requirements are configured on the terminal side, resulting in high labor costs, inconsistent coding styles, and low development efficiency.

Method used

Automatic code generation is implemented on the server side. By receiving configuration request information, the configuration data of the target application is obtained, and the target code artifacts are generated in the matching development environment. This includes creating the development environment, generating code data, performing preset processing and packaging, and ensuring consistent code style.

Benefits of technology

It reduced labor costs, improved development efficiency, ensured consistent and standardized coding style, and enhanced code robustness and fault tolerance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114860247B_ABST
    Figure CN114860247B_ABST
Patent Text Reader

Abstract

This disclosure provides data processing methods, apparatus, devices, and storage media, relating to the field of data processing technology, and particularly to the field of cloud computing. The specific implementation scheme is as follows: a server receives configuration request information, the configuration request information including first program version information of a target application; the server obtains target configuration data associated with the first program version information of the target application; the server generates target code artifacts for the target application based on the target configuration data in a target development environment matching the target application. In this way, automatic code generation is achieved on the server side, reducing labor costs and improving development efficiency; at the same time, it effectively ensures the consistency of code style.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and more particularly to the field of cloud computing. Background Technology

[0002] Existing application configuration requirements are all implemented on the terminal side, that is, data requests, data parsing, and data persistence are all completed on the terminal side. This process is all implemented by developers through code writing, which is labor-intensive. Summary of the Invention

[0003] This disclosure provides a data processing method, apparatus, device, and storage medium.

[0004] According to one aspect of this disclosure, a data processing method is provided, comprising:

[0005] The server receives configuration request information, which includes the first program version information of the target application;

[0006] The server obtains target configuration data associated with the first program version information of the target application;

[0007] The server generates target code artifacts for the target application based on the target configuration data within a target development environment that matches the target application.

[0008] According to another aspect of this disclosure, a data processing apparatus is provided, comprising:

[0009] An information receiving unit is used to receive configuration request information, wherein the configuration request information includes the first program version information of the target application;

[0010] The data acquisition unit is used to acquire target configuration data associated with the first program version information of the target application;

[0011] The code generation unit is used to generate target code artifacts for the target application based on the target configuration data in a target development environment that matches the target application.

[0012] According to another aspect of this disclosure, an electronic device is provided, comprising:

[0013] At least one processor; and

[0014] A memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the method described above.

[0016] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform the methods described above.

[0017] According to another aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the methods described above.

[0018] In this way, the proposed solution can automatically generate code on the server side, reducing labor costs and improving development efficiency; at the same time, it effectively ensures the consistency of code style.

[0019] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0020] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0021] Figure 1 This is a diagram illustrating the development requirements for configuration data;

[0022] Figure 2 This is a schematic diagram of the development process for existing terminal-side configuration data;

[0023] Figure 3 This is a schematic diagram of the implementation flow of the data processing method according to the embodiments of this disclosure. Figure 1 ;

[0024] Figure 4 This is a schematic diagram of the implementation flow of the data processing method according to the embodiments of this disclosure. Figure 2 ;

[0025] Figure 5 This is a schematic diagram of the architecture of the data processing method according to an embodiment of the present disclosure in a specific instance;

[0026] Figure 6 This is a flowchart illustrating a specific example of a data processing method according to an embodiment of the present disclosure;

[0027] Figure 7 This is a flowchart of the data processing method according to an embodiment of the present disclosure in a specific instance;

[0028] Figure 8This is a schematic diagram of the structure of a data processing apparatus according to an embodiment of the present disclosure. Figure 1 ;

[0029] Figure 9 This is a schematic diagram of the structure of a data processing apparatus according to an embodiment of the present disclosure. Figure 2 ;

[0030] Figure 10 This is a block diagram of an electronic device used to implement the data processing method of the embodiments of this disclosure. Detailed Implementation

[0031] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0032] To provide a clearer introduction to this disclosed solution, the following terms and concepts will be briefly explained first:

[0033] Configuration refers to a process in software development or system implementation that encapsulates potentially changing data into structural entities. These entities can adjust functionality or control behavior without relying on software updates or releases. A key characteristic of configuration is that data can be updated directly without requiring program redeployment. The data encapsulated in the configuration process can be called configuration data.

[0034] In software architecture, client software requires various types of configuration data. Typically, this processed configuration data is stored locally on the client, for example, in a database or an Extensible Markup Language (XML) file. In typical operational projects, configuration requirements are not maintained or updated based on new client releases. In this case, configuration-related information is stored on a server and maintained and updated by designated personnel.

[0035] An entity refers to an objectively existing object or thing that can be distinguished from one another; in the context of databases, an entity often refers to a collection of a certain type of things. For the purposes of this disclosure, an entity refers to the category to which data belongs in the business context.

[0036] Serialization is the process of converting the state information of an object (or object data) into a form that can be stored or transmitted. During serialization, the object writes its current state to temporary or persistent storage. The object can be recreated by reading or deserializing its state information from storage.

[0037] Deserialization is the reverse process of serialization; it refers to the process of reading data from the storage area and recreating the object.

[0038] Persistence refers to the mechanism of converting program data between a persistent state and a transient state. In simple terms, it refers to the process of perpetuating (i.e., converting) transient data (such as data in memory, which cannot be permanently saved) into persistent data (such as persisting it to a database, which can be stored for a long time).

[0039] Typically, for operational configuration requirements, developers need to configure data on a visual configuration platform. For example, developers develop code based on the data format of the data to be configured. Figure 1 As shown, this is used to complete entity construction, serialization, persistence, and deserialization; for example, such as Figure 2 As shown, the terminal needs to set up a request module, a parsing module, and a persistence module, and complete the code development through these three modules. Here, the request module is used to initiate a request to the server, and the server responds to the request by returning the difference data between the current version information indicated by the request and the historical configuration data. The terminal parses the data returned by the server based on the parsing module and manually writes code to complete entity construction, and then uses the persistence module to complete serialization and persistence processing. In other words, the above-mentioned request module, parsing module, and persistence module all require developers to write code, resulting in high development costs. Moreover, since the configuration class is manually written each time, it is impossible to guarantee a consistent coding style.

[0040] Based on this, in order to improve the efficiency of configuration requirements and enhance the reliability and uniformity of code standards, this public solution proposes a data processing solution that can be automatically implemented in the cloud. It is applicable to all requirements with high dynamism and is not limited to the application development environment, such as Android or iOS systems; nor is it limited to the terminal using the application, such as personal computers or smart TVs.

[0041] Specifically, this disclosure provides a data processing method, such as Figure 3 As shown, it includes:

[0042] Step S301: The server receives configuration request information, which includes the first program version information of the target application.

[0043] The target application described in this disclosure can refer to a computer program that performs a certain function, can interact with the user, and has a visual user interface, etc. In practical applications, the target application described in this disclosure can be a computer program corresponding to one or more functional components in the application software, or it can be all the computer programs that implement the application software. This disclosure does not limit this.

[0044] Step S302: The server obtains target configuration data associated with the first program version information of the target application.

[0045] It is understood that the target configuration data described in this disclosure is the data encapsulated in the configuration process described above, and this disclosure does not restrict the data type of the target configuration data.

[0046] Step S303: The server generates target code artifacts for the target application based on the target configuration data in a target development environment that matches the target application.

[0047] It is understood that this disclosure does not limit the specific type of server; for example, the server described in this disclosure can be a cloud server, etc. Similarly, this disclosure does not specifically limit the target application.

[0048] In a specific example, the configuration request information is generated on the terminal side, for instance, when the terminal needs to configure the target application. In this case, the terminal can send a configuration request to the server side, and the server side will automatically generate the code required for the current configuration (i.e., the target code artifact).

[0049] In this way, the server side achieves automatic code generation, reducing labor costs and improving development efficiency. Moreover, since the code is automatically generated without human intervention, it can effectively ensure the consistency of code style and the standardization of code, while laying the foundation for improving code robustness and fault tolerance.

[0050] In a specific example of the disclosed solution, the configuration request information further includes the type characteristics of the target application; the method further includes:

[0051] Create the target development environment that matches the type characteristics of the target application.

[0052] In other words, in a specific example, such as Figure 4 As shown, the method includes:

[0053] Step S401: The server receives configuration request information, which includes the first program version information of the target application.

[0054] Step S402: The server obtains target configuration data associated with the first program version information of the target application.

[0055] Step S403: The server creates the target development environment that matches the type characteristics of the target application.

[0056] For example, the type feature can specifically refer to the type of the target application, the product line to which the target application belongs, etc. For instance, the type feature can indicate that the target application is an instant messaging software that supports the Android system.

[0057] It is understood that the execution order of steps S402 and S403 can be interchanged, and this disclosure does not restrict this.

[0058] Step S404: The server generates target code artifacts for the target application based on the target configuration data in a target development environment that matches the target application.

[0059] In this way, the disclosed solution can determine the target development environment of the target application based on the type characteristics of the target application. In other words, the disclosed solution fully considers the development environment required by the application, improving the usability of the automatically generated target code artifacts. This lays the foundation for further reducing labor costs, improving development efficiency, and enhancing the fault tolerance and robustness of the automatically generated code.

[0060] In a specific example of the scheme disclosed herein, the target code artifact can be obtained in the following manner. Specifically, the above-described method of generating target code artifacts for the target application based on the target configuration data in a target development environment matching the target application includes:

[0061] In a target development environment that matches the target application, code data for the target application is generated based on the target configuration data; the generated code data is then subjected to preset processing to obtain the target code product. In other words, the target code product is the processed data obtained from the generated code data.

[0062] In practical applications, a preset code template can be set in advance. Then, in a target development environment that matches the target application, the preset code template is used to generate code data for the target application based on the target configuration data. The generated code data is then compressed and packaged to obtain the target code product.

[0063] This provides a specific way to obtain the target code product, and the method is simple and feasible, fully compatible with existing code product generation methods, laying the foundation for the large-scale engineering application of this disclosed solution.

[0064] Moreover, since the code is automatically generated on the server, labor costs are reduced and development efficiency is improved. Furthermore, because the code is automatically generated without human intervention, it can effectively ensure the consistency of code style and the standardization of code, while laying the foundation for improving code robustness and fault tolerance.

[0065] In a specific example of the disclosed solution, after obtaining the target code artifact, it is renamed based on a preset naming rule to ensure a one-to-one correspondence between version information and artifacts, providing support for subsequent development iterations or error localization. Specifically, version information of the target code artifact is generated; for example, version information of the target code artifact is generated based on a preset naming rule, and this version information is used as the second program version information of the target application. That is, the generated version information of the target code artifact is the latest version information of the target application.

[0066] This standardizes the information maintenance process for development iterations, while also providing convenience for subsequent development, thus laying the foundation for improving development efficiency.

[0067] In a specific example of the disclosed solution, after determining the latest program version information (i.e., the second program version information) of the target application, the server sends the second program version information of the target application. For example, the server sends the second program version information of the target application to the terminal that initiated the configuration request, thereby facilitating the terminal to perform subsequent development processing based on the second program version information of the target application.

[0068] Thus, the entire automatic code generation process of this disclosed solution can produce the target code product without developers writing code on the terminal. Obviously, compared with the existing method of developers developing code on the terminal, this disclosed solution effectively reduces labor costs and improves development efficiency.

[0069] In a specific example of the disclosed solution, the server generates a prompt message upon determining the existence of preset anomaly information. Here, the preset anomaly information at least indicates that the data type of the configuration data used by the target code artifact does not match the data type of the target configuration data. For example, to further enhance intelligence, the server can also analyze the target code artifact. For instance, it can set a scheduled task to compare the data type of the configuration data in the generated target code artifact with the data type of the acquired target configuration data when the scheduled task starts, and determine whether the data types of the two are consistent. If they are consistent, the generated target code artifact is considered normal; otherwise, the generated target code artifact is considered to have an error. In this case, the server generates a prompt message and sends the prompt message via email to remind the relevant developers.

[0070] Here, the prompt information may be a preset prompt content, or it may include information on the difference between the data type of the configuration data used by the target code product and the data type of the target configuration data. This disclosure does not limit this and can be set based on actual needs.

[0071] In this way, automated testing can be achieved without the need for testers, ensuring the reliability of the target code output and further laying the foundation for improving development efficiency.

[0072] In this way, the proposed solution can automatically generate code on the server side, reducing labor costs and improving development efficiency. Moreover, since the code is automatically generated without human intervention, it can effectively ensure the consistency of code style and the standardization of code, while laying the foundation for improving code robustness and fault tolerance.

[0073] The following combination Figure 5 The panoramic architecture diagram shown further illustrates the solution disclosed herein, such as... Figure 5 As shown, the present disclosure involves a data warehouse side, a configuration service side, and a terminal side; wherein, the data warehouse side and the configuration service side can both be implemented on a cloud server; it is understood that the data warehouse side and the configuration service side can be located on the same cloud server or on different cloud servers, and the present disclosure does not impose any restrictions on this.

[0074] The terminal integrates an adaptation layer containing preset scripts. These scripts enable processing such as request identifier (ID) construction, file operations, configuration requests, and artifact retrieval. Furthermore, the terminal's development environment can be an Android or iOS system; alternatively, the terminal can be a mobile terminal, a personal computer (PC), or a smart TV. Specifically, when a configuration class needs to be run, simply triggering the preset script automatically executes the following steps: reading the current program version information (i.e., the first program version information) of the target application to be processed, as well as the terminal's type characteristics; constructing a request identifier (ID) based on the terminal's Internet Protocol (IP) address and current timestamp; generating configuration request information; and sending this information to the configuration service side. Here, the configuration request information includes the current program version information of the target application.

[0075] Accordingly, in addition to basic capabilities (such as logging, automated testing, message handling, and persistence), the configuration service can also perform template management (such as managing preset code templates), code generation, artifact construction, artifact analysis, and process control. Specifically, after receiving a configuration request, the configuration service obtains full configuration data (i.e., target configuration data) that matches both the target application's type characteristics and the first program version information, based on the type characteristics of the target application (such as the product line corresponding to the target application; for example, based on the type characteristics, it can be determined that the target application is an instant messaging software supporting the Android system). It also determines the target development environment that matches the type characteristics of the target application. In the target development environment, code is automatically generated based on the full configuration data, and all generated code is compressed and packaged to obtain the target code artifact. Simultaneously, based on naming rules, the target code artifact is renamed to obtain the latest program version information (i.e., the second program version information) of the target code artifact, and the target code artifact is sent to the Maven repository in the configuration service. Figure 5 (Not shown in the image). The configuration service sends the program version information (i.e., the second program version information) of the target code artifact to the adaptation layer.

[0076] It is understood that the configuration service has a preset code template, so that code can be automatically generated based on the preset code template.

[0077] Accordingly, after the configuration server automatically generates the target code artifacts, the adaptation layer obtains the latest program version information (i.e., the second program version information) of the target code artifacts and modifies its own current program version information (i.e., the first program version information). For example, it replaces the original first program version information with the second program version information to complete the version update. Furthermore, the adaptation layer can also pull (i.e. download) the target code artifacts corresponding to the latest program version information through the Maven repository to facilitate maintenance and development by developers.

[0078] At this point, it is understandable that the target code artifacts pulled by the adaptation layer are automatically generated by the configuration service side. Therefore, on the one hand, it can solve the development cost problem, and on the other hand, it ensures the consistency of the code style.

[0079] It is understandable that in practical applications, different program version information may correspond to different configuration requirements, and this public solution does not impose any restrictions on this.

[0080] In practical applications, to further enhance intelligence, the configuration service can also analyze the target code artifacts. For example, a scheduled task can be set up, and when the scheduled task starts, the configuration data in the generated target code artifacts can be compared with the acquired full configuration data to determine whether the data types of the two are consistent. If they are consistent, the generated target code artifacts are considered normal; otherwise, the generated target code artifacts are considered to have errors. In this case, the message notification function is called to send an email to remind the relevant developers.

[0081] On the data warehouse side, it can be used to store configured data through a visual configuration platform.

[0082] Furthermore, in conjunction with the appendix Figure 6 and Figure 7 The specific interaction process of this disclosed solution is described in detail, including:

[0083] Step 1: Execute the script; that is, run the preset script when there is a configuration requirement.

[0084] Step 2: Read the terminal type characteristics and the current program version of the target application (i.e., the first program version information).

[0085] Step 3: Construct a request ID based on the terminal's IP address and current timestamp, and generate configuration request information.

[0086] Step 4: The terminal sends a configuration request to the configuration service.

[0087] Here, steps 1 to 4 are the entire process triggered after running the preset script; in actual applications, this process takes about 10 seconds to complete.

[0088] Step 5: After receiving the configuration request information, the configuration service parses the configuration request information to obtain the current version information of the target application (i.e., the first program version information).

[0089] In practical applications, the configuration service will also determine whether there are concurrent requests (i.e., whether there are multiple configuration request messages). If so, it will enter the concurrency control process. For example, the configuration service will respond to each configuration request message based on preset rules and generate target code artifacts that match each configuration request message. If not, it will determine whether there is a code artifact of the latest version of the target application on the local machine. If so, it will return directly without automatically generating code again.

[0090] Step 6: The configuration service requests the data warehouse to obtain the current version information and full configuration data matching the type characteristics of the target application.

[0091] Step 7: The configuration service receives the full configuration data sent by the data warehouse.

[0092] Step 8: Configure the service based on the type characteristics of the target application and select a development template to create the project (i.e., create the target development environment).

[0093] Step 9: Configure the service under the project and generate code based on the full configuration data.

[0094] Step 10: Based on the generated code, the configuration service builds code artifacts, i.e., target code artifacts, and names them according to naming rules to obtain the latest program version information (i.e., second program version information) of the target code artifact, thus ensuring uniqueness. Then, it is pushed to the Maven repository.

[0095] In practical applications, the project is deleted and resources are released after the entire process is completed.

[0096] Step 11: The configuration service sends the latest program version information of the target code artifact to the terminal.

[0097] Step 12: The terminal updates the version information of the target application. For example, it uses the latest program version information of the target code artifact as the latest version information of the target application and downloads the target code artifact.

[0098] In practical applications, the configuration service can also analyze the target code artifacts, such as analyzing the differences between the target code artifacts and the code artifacts of the previous version of the target application, and sending the information to the terminal so that developers can easily view it.

[0099] Furthermore, the configuration service can also perform automated testing. For example, it can read the data type of the configuration data of the current target code artifact, compare the data type of the configuration data of the target code artifact with the data type of the target configuration data, and generate a prompt message to alert the developers if they are different.

[0100] In this way, for terminal configuration requirements, this publicly available solution can significantly reduce development costs. For example, configuration requirements can be reduced from about 0.5 days to within a few minutes. Moreover, it ensures the reliability of the target code output without requiring testers, while effectively ensuring consistent coding style and code standardization, thus laying the foundation for improving code robustness and fault tolerance.

[0101] This disclosure also provides a data processing apparatus, such as... Figure 8 As shown, it includes:

[0102] The information receiving unit 801 is used to receive configuration request information, the configuration request information including the first program version information of the target application;

[0103] Data acquisition unit 802 is used to acquire target configuration data associated with the first program version information of the target application;

[0104] The code generation unit 803 is used to generate target code artifacts for the target application based on the target configuration data in a target development environment that matches the target application.

[0105] In a specific example of the scheme disclosed herein, the configuration request information further includes the type characteristics of the target application;

[0106] The code generation unit is also used to create the target development environment that matches the type characteristics of the target application.

[0107] In a specific example of the scheme disclosed herein, the code generation unit is specifically used to generate code data for the target application based on the target configuration data in a target development environment that matches the target application; and to perform preset processing on the generated code data to obtain the target code product.

[0108] In a specific example of the disclosed scheme, such as Figure 9 As shown, it also includes:

[0109] Version information processing unit 901 is used to generate version information of the target code product; and to use the version information of the target code product as the second program version information of the target application.

[0110] In a specific example of the disclosed scheme, such as Figure 9 As shown, it also includes:

[0111] The information sending unit 902 is used to send the second program version information of the target application.

[0112] In a specific example of the disclosed scheme, such as Figure 9 As shown, it also includes:

[0113] The prompt information processing unit 903 is used to generate prompt information when it is determined that there is preset abnormal information;

[0114] The preset exception information at least indicates that the data type of the configuration data used by the target code product does not match the data type of the target configuration data.

[0115] The specific functions of each unit in the above device can be described in the above method, and will not be repeated here.

[0116] The acquisition, storage, and application of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0117] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0118] Figure 10 A schematic block diagram of an example electronic device 1000 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0119] like Figure 10As shown, device 1000 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in read-only memory (ROM) 1002 or a computer program loaded from storage unit 1008 into random access memory (RAM) 1003. The RAM 1003 may also store various programs and data required for the operation of device 1000. The computing unit 1001, ROM 1002, and RAM 1003 are interconnected via bus 1004. Input / output (I / O) interface 1005 is also connected to bus 1004.

[0120] Multiple components in device 1000 are connected to I / O interface 1005, including: input unit 1006, such as keyboard, mouse, etc.; output unit 1007, such as various types of monitors, speakers, etc.; storage unit 1008, such as disk, optical disk, etc.; and communication unit 1009, such as network card, modem, wireless transceiver, etc. Communication unit 1009 allows device 1000 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0121] The computing unit 1001 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1001 performs the various methods and processes described above, such as data processing methods. For example, in some embodiments, the data processing method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on device 1000 via ROM 1002 and / or communication unit 1009. When the computer program is loaded into RAM 1003 and executed by the computing unit 1001, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to perform data processing methods by any other suitable means (e.g., by means of firmware).

[0122] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0123] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0124] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0125] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0126] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0127] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.

[0128] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0129] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A data processing method applied to a requirement configuration scenario of a target application, the method comprising: The server receives configuration request information, which belongs to the configuration requirements of the target application and is used to request data configuration of the target application stored locally on the client. The configuration request information includes the first program version information of the target application. The server obtains target configuration data associated with the first program version information of the target application; wherein, the target configuration data is variable data encapsulated by the requirement configuration process of the target application and stored locally on the client. The requirement configuration process of the target application is used to encapsulate the variable data into a structural entity that can adjust or control functions without relying on application updates or releases, so as to use the encapsulated variable data to adjust or control functions without redeploying the application. In a target development environment that matches the target application, the server generates target code artifacts for the target application based on the target configuration data, so as to fulfill the configuration class requirements of the target application on the server side. The step of generating target code artifacts for the target application based on the target configuration data in a target development environment that matches the target application includes: In a target development environment that matches the target application, the server uses a preset code template and generates code data for the target application based on the target configuration data; The server performs pre-processing on the generated code data to obtain the target code product; The method further includes: The server generates version information for the target code artifact; The server uses the version information of the target code artifact as the second program version information of the target application and sends it to the client's adaptation layer so that the client's adaptation layer can retrieve the target code artifact and modify the client's current program version information.

2. The method according to claim 1, wherein, The configuration request information also includes the type characteristics of the target application; the method further includes: Create the target development environment that matches the type characteristics of the target application.

3. The method according to claim 1 or 2, further comprising: If a preset abnormality is detected, a prompt message is generated; The preset exception information at least indicates that the data type of the configuration data used by the target code product does not match the data type of the target configuration data.

4. A data processing apparatus, applied on a server side, comprising: The information receiving unit is used to receive configuration request information, which belongs to the configuration requirements of the target application and is used to request data configuration of the target application stored locally on the client. The configuration request information includes the first program version information of the target application. The data acquisition unit is used to acquire target configuration data associated with the first program version information of the target application; wherein, the target configuration data is variable data encapsulated by the requirement configuration process of the target application and stored locally on the client. The requirement configuration process of the target application is used to encapsulate the variable data into a structural entity that can adjust or control functions without relying on application updates or releases, so as to use the encapsulated variable data to adjust or control functions without redeploying the application. The code generation unit is used to generate target code artifacts for the target application based on the target configuration data in a target development environment that matches the target application, so as to fulfill the configuration class requirements of the target application on the server side. Specifically, the code generation unit is used to generate code data for the target application in a target development environment that matches the target application, using a preset code template and based on the target configuration data; and to perform preset processing on the generated code data to obtain the target code product. The device further includes: The version information processing unit is used to generate version information of the target code product; use the version information of the target code product as the second program version information of the target application, and send it to the client's adaptation layer so that the client's adaptation layer can pull the target code product and modify the client's current program version information.

5. The apparatus according to claim 4, wherein, The configuration request information also includes the type characteristics of the target application; The code generation unit is also used to create the target development environment that matches the type characteristics of the target application.

6. The apparatus according to claim 4 or 5, further comprising: The prompt information processing unit is used to generate prompt information when it is determined that there is preset abnormal information; The preset exception information at least indicates that the data type of the configuration data used by the target code product does not match the data type of the target configuration data.

7. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 or 2.

8. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1 or 2.

9. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1 or 2.

Citation Information

Patent Citations

  • Automatic construction and uploading method and device for application program, computer equipment and storage medium

    CN110851135A

  • Service code generation method and device, electronic equipment and readable storage medium

    CN113515271A