Business processing method and device, electronic equipment and storage medium

By receiving the scenario information of the business request, dynamically loading the plug-in file and generating the plug-in instance object, the business request is processed, which solves the problem of high coupling of system-level software functions and shortens the software development cycle.

CN120596064APending Publication Date: 2025-09-05BGI HANGZHOU CYCLONESEQ TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410240719.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-04
Publication Date
2025-09-05

AI Technical Summary

Technical Problem

The system-level software functions of existing devices are highly coupled, resulting in a long development cycle.

Method used

By receiving the scenario information carried in the business request, dynamically loading the corresponding plug-in file, generating the plug-in instance object and processing the business request based on its attribute information, the functional coupling is reduced.

Benefits of technology

It reduces the coupling between functions and shortens the software development cycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120596064A_ABST
    Figure CN120596064A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a business processing method and device, electronic equipment and a storage medium. The method comprises the following steps: receiving a to-be-processed service request, wherein the to-be-processed service request carries service scene information; determining a target plug-in file corresponding to the business scene information according to the business scene information, and loading the target plug-in file; a plug-in instance object is generated based on the loaded target plug-in file, a target plug-in class corresponding to the plug-in instance object is determined, and the target plug-in class is a self-defined plug-in class for achieving a preset plug-in abstract interface class under a preset application development frame; and generating a business processing object based on the object attribute information defined in the target plug-in class, and processing the to-be-processed business request based on the business processing object. According to the technical scheme provided by the embodiment of the invention, the service request is processed by dynamically loading the plug-in file corresponding to the scene information of the service request, so that the coupling between functions is reduced, and the software development period is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a service processing method, device, electronic device, and storage medium. Background Art

[0002] As the demand for device processing capabilities continues to grow, device functionality becomes increasingly complex, and the scale of system-level software grows. This leads to stronger coupling between system software functions, making system-level software design increasingly difficult and the development cycle lengthening. Reducing this coupling and shortening the development cycle are pressing challenges. Summary of the Invention

[0003] In view of the above problems, the present invention provides a business processing method, device, electronic device and storage medium, so as to realize processing of the business request by dynamically loading the plug-in file corresponding to the scenario information of the business request, thereby reducing the coupling between functions and shortening the software development cycle.

[0004] According to one aspect of the present invention, a service processing method is provided, the method comprising:

[0005] receiving a pending business request, wherein the pending business request carries business scenario information;

[0006] Determining a target plug-in file corresponding to the business scenario information according to the business scenario information, and loading the target plug-in file;

[0007] Generate a plug-in instance object based on the loaded target plug-in file, and determine a target plug-in class corresponding to the plug-in instance object, wherein the target plug-in class is a custom plug-in class that implements a preset plug-in abstract interface class under a preset application development framework;

[0008] A business processing object is generated based on the object attribute information defined in the target plug-in class, and the pending business request is processed based on the business processing object.

[0009] According to another aspect of the present invention, a service processing device is provided. The device includes:

[0010] A scenario information determination module, configured to receive a pending service request, wherein the pending service request carries service scenario information;

[0011] A plug-in file loading module, configured to determine a target plug-in file corresponding to the business scenario information according to the business scenario information, and load the target plug-in file;

[0012] A plug-in instance generation module is used to generate a plug-in instance object based on the loaded target plug-in file and determine a target plug-in class corresponding to the plug-in instance object, wherein the target plug-in class is a custom plug-in class that implements a preset plug-in abstract interface class under a preset application development framework;

[0013] The business request processing module is used to generate a business processing object based on the object attribute information defined in the target plug-in class, and process the pending business request based on the business processing object.

[0014] According to another aspect of the present invention, an electronic device is provided, comprising:

[0015] at least one processor; and

[0016] a memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the business processing method described in any embodiment of the present invention.

[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the service processing method according to any embodiment of the present invention when executed.

[0019] The technical solution of an embodiment of the present invention receives a pending business request, wherein the pending business request carries business scenario information. Based on the business scenario information, a target plug-in file corresponding to the business scenario information is determined, and the target plug-in file is loaded. This technical solution implements the function of dynamically loading plug-in files according to the specific usage scenario of the plug-in. Then, a plug-in instance object is generated based on the loaded target plug-in file, and a target plug-in class corresponding to the plug-in instance object is determined. The target plug-in class is a custom plug-in class that implements a preset plug-in abstract interface class under a preset application development framework. In this technical solution, the plug-in function is enriched by the custom plug-in class, a business processing object is generated based on the object attribute information defined in the target plug-in class, and the pending business request is processed based on the business processing object. The technical solution of the embodiment of the present invention solves the technical problems of high coupling between existing software functions and long development cycles. It realizes processing of the business request by dynamically loading the plug-in file corresponding to the scenario information of the business request, reducing the coupling between functions and shortening the software development cycle.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 A flowchart of a service processing method provided in Example 1 of the present invention;

[0023] Figure 2 A schematic diagram of a class relationship applicable to a business processing method provided in the first embodiment of the present invention;

[0024] Figure 3 A schematic diagram of another class relationship applicable to the business processing method provided in the first embodiment of the present invention;

[0025] Figure 4 A flowchart of a service processing method provided in Embodiment 2 of the present invention;

[0026] Figure 5 A schematic diagram of the structure of a service processing device provided in Embodiment 3 of the present invention;

[0027] Figure 6 This is a structural diagram of an electronic device provided in Example 4 of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products or apparatuses.

[0030] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.

[0031] Example 1

[0032] Figure 1 This is a flow chart of a business processing method provided in Example 1 of the present invention. This embodiment is applicable to situations where business requests are processed, and is particularly applicable to scenarios where business requests are processed by dynamically loading custom plug-ins. The method can be executed by a business processing device, which can be implemented in the form of hardware and / or software, and can be configured in electronic devices such as computers or servers.

[0033] like Figure 1 As shown, the method of this embodiment includes:

[0034] S110: Receive a pending service request, wherein the pending service request carries service scenario information.

[0035] Among them, the pending business request can be understood as a business request that needs to be processed. The number of pending business requests can be one, two, or more than two. In an embodiment of the present invention, the pending business request can carry business scenario information. Among them, the business scenario information can be understood as the scenario information of the business request that needs to be processed. The business scenario information can be used to determine the plug-in file that can process the business request. In an embodiment of the present invention, when there are multiple pending business requests, the business scenario information carried by different pending business requests can be the same or different.

[0036] Specifically, a pending business request is received and each pending business request is parsed to obtain business scenario information of the pending business request.

[0037] S120: Determine a target plug-in file corresponding to the business scenario information according to the business scenario information, and load the target plug-in file.

[0038] The target plug-in file can be understood as the plug-in file used to process the pending service request. Optionally, the target plug-in file can be an .exe plug-in file or a .lib plug-in file. The correspondence between service scenario information and plug-in files can be one-to-one or many-to-one. In other words, one plug-in file can be used to process service requests with at least one service scenario information.

[0039] Specifically, after determining the business scenario information of the service request to be processed, the plug-in file corresponding to the business scenario information can be determined based on the correspondence between the business scenario information and the plug-in file, that is, the target plug-in file corresponding to the business scenario information can be determined. After determining the target plug-in file corresponding to the business scenario information, the target plug-in file can be loaded.

[0040] In an embodiment of the present invention, loading the target plug-in file may specifically be performed by dynamically loading the target plug-in file by calling a plug-in loading class. It should be noted that the target plug-in file can be independent of the program framework and can be bound and associated with the program framework through an interface, thereby enriching the functionality of the program framework and meeting the requirements of functional plug-inization.

[0041] S130: Generate a plug-in instance object based on the loaded target plug-in file, and determine a target plug-in class corresponding to the plug-in instance object, wherein the target plug-in class is a custom plug-in class that implements a preset plug-in abstract interface class under a preset application development framework.

[0042] Among them, the plug-in instance object can be an instance object generated based on the loaded target plug-in file. In an embodiment of the present invention, the target plug-in class is a custom plug-in class that implements the preset plug-in abstract interface class under the preset application development box. The preset application development box can be an application development framework set according to actual needs. Optionally, the preset application development box can be a QT plug-in framework. The preset plug-in abstract interface class can be understood as a plug-in abstract interface class defined under the preset application development box. Optionally, the preset plug-in abstract interface class can be an abstract interface class under the Qt plug-in mechanism, which can be used to declare the attribute information of the custom plug-in. In an embodiment of the present invention, all custom plug-ins need to independently implement this interface declaration method to provide their own different functional services.

[0043] In this embodiment of the present invention, the target plug-in class can be understood as a custom class that implements the preset plug-in abstract interface class. It is understood that a custom plug-in class is a class that implements the preset plug-in abstract interface class, that is, an implementation class of the preset plug-in abstract interface class. In other words, the target plug-in class can be understood as a subclass that inherits the preset plug-in abstract interface class and can be used to declare detailed plug-in information. Optionally, the plug-in details may include at least one of the plug-in name, plug-in type, plug-in version, plug-in description, plug-in communication interface, service methods provided by the plug-in, and service objects provided by the plug-in.

[0044] Specifically, a plug-in instance object can be generated by loading the target plug-in file into memory. After the plug-in instance object is generated, a plug-in class that matches the target plug-in instance object can be matched from predefined plug-in classes, i.e., the target plug-in class corresponding to the plug-in instance object. In an embodiment of the present invention, the predefined plug-in class can be a custom plug-in class that implements a predefined plug-in abstract interface class under a predefined application development framework. The number of predefined plug-in classes can be one, two, or more.

[0045] In an embodiment of the present invention, determining the target plug-in class corresponding to the plug-in instance object may specifically include determining a preset plug-in abstract interface class under a preset application development framework. Furthermore, based on an inheritance relationship between classes, a custom class that implements the preset plug-in abstract interface class may be used as the target plug-in class corresponding to the plug-in instance object.

[0046] To facilitate the extension of plugin functionality, first, you can define a plugin base class that implements the default plugin abstract interface class. Then, you can define a subclass that inherits from the plugin base class as the target plugin class corresponding to the plugin instance object. For example, see Figure 2 The plug-in base class is the PluginProduct class, and the default plug-in abstract interface class can be the BasePluginInterface class. Figure 3 , the target plugin class can be Protocol0P8 or Protocol1P1. In addition, see Figure 3 The plugin base class can also be the MonitorPlugin class, in which case the target plugin class can be SystemMonitor. It should be noted that Protocol0P8, Protocol1P1, and SystemMonitor are all functional classes, and their corresponding objects all inherit the QObject object in the Qt object model.

[0047] In the embodiment of the present invention, the generating of the plug-in instance object based on the loaded target plug-in file may specifically be to instantiate the loaded target plug-in file by calling an object instantiation method, thereby obtaining the plug-in instance object.

[0048] S140: Generate a business processing object based on the object attribute information defined in the target plug-in class, and process the pending business request based on the business processing object.

[0049] The object attribute information may be attribute information of an object defined in the target plug-in class for processing business requests. The object attribute information may include at least one of object name information, object category information, and object function information. It is understood that the object name information may be understood as the name information of the object. The object category information may be understood as information about the category to which the object belongs. The object function information may be understood as information about the functions possessed by the object. The business processing object may be an object generated based on the object attribute information defined in the target plug-in class. Optionally, the business processing object may be a non-interface object, or may be an interface object.

[0050] Specifically, a business processing object having the object attribute information defined in the target plug-in class is generated. After the business processing object is generated, the pending business request can be processed by the business processing object.

[0051] In this embodiment of the present invention, the preset plug-in abstract interface class predefines an object attribute information acquisition method and a business processing object creation method. The object attribute information acquisition method can be understood as a method for acquiring object attribute information defined in the target plug-in class. The business processing object creation method can be understood as a method for creating a business processing object based on the object attribute information.

[0052] In the case where an object attribute information acquisition method and a business processing object creation method are defined in the preset plug-in abstract interface class, generating a business processing object based on the object attribute information defined in the target plug-in class may include: acquiring the object attribute information defined in the target plug-in class by calling the object attribute information acquisition method, and assigning the object attribute information to the entry parameter of the business processing object creation method; after the parameter assignment is completed, creating a business processing object according to the object attribute information by calling the business processing object creation method.

[0053] Specifically, by calling the object attribute information acquisition method, the object attribute information defined in the target plug-in class is determined, and the object attribute information is read, that is, the object attribute information defined in the target plug-in class is acquired. After acquiring the object attribute information, the object attribute information can be assigned to the entry parameters of the business processing object creation method, that is, the object attribute information is assigned as an actual parameter to the formal parameter of the business processing object creation method. After the parameter assignment is completed, the business processing object creation method can be called to create a business processing object using the object attribute information.

[0054] In an embodiment of the present invention, the preset plug-in abstract interface class may also pre-define a method for obtaining plug-in category information and / or a method for obtaining a plug-in name. The method for obtaining plug-in category information may be understood as a method for obtaining plug-in category information defined in the target plug-in class. The method for obtaining a plug-in name may be understood as a method for obtaining the plug-in name defined in the target plug-in class.

[0055] Based on the above embodiment, if a plugin category information acquisition method is predefined in the preset plugin abstract interface class, the plugin category information defined in the target plugin class can be acquired by calling the plugin category information acquisition method predefined in the preset plugin abstract interface class. If a plugin name acquisition method is predefined in the preset plugin abstract interface class, the plugin name defined in the target plugin class can be acquired by calling the plugin name acquisition method predefined in the preset plugin abstract interface class.

[0056] It should be noted that the technical solutions of the embodiments of the present invention can be applied to various operating systems (e.g., Windows, Linux, embedded operating systems, etc.) and various Qt plug-in-based electronics and computer fields. Furthermore, based on the Qt plug-in framework, modifications can be made to the communication method and the structure of the communication content to enrich the interface description.

[0057] The technical solution of an embodiment of the present invention receives a pending business request, wherein the pending business request carries business scenario information. Based on the business scenario information, a target plug-in file corresponding to the business scenario information is determined, and the target plug-in file is loaded. This technical solution implements the function of dynamically loading plug-in files according to the specific usage scenario of the plug-in. Then, a plug-in instance object is generated based on the loaded target plug-in file, and a target plug-in class corresponding to the plug-in instance object is determined. The target plug-in class is a custom plug-in class that implements a preset plug-in abstract interface class under a preset application development framework. In this technical solution, the plug-in function is enriched by the custom plug-in class, a business processing object is generated based on the object attribute information defined in the target plug-in class, and the pending business request is processed based on the business processing object. The technical solution of the embodiment of the present invention solves the technical problems of high coupling between existing software functions and long development cycles. It realizes processing of the business request by dynamically loading the plug-in file corresponding to the scenario information of the business request, reducing the coupling between functions and shortening the software development cycle.

[0058] Example 2

[0059] Figure 4 A flowchart of a business processing method provided in the second embodiment of the present invention, based on the above embodiment, optionally, the processing of the pending business request based on the business processing object includes: establishing a data communication connection with the business processing object; based on the data communication connection, processing the pending business request through the business processing object. Among them, the technical features that are the same or similar to those in the above embodiment are not repeated here. Figure 4 As shown, the method of this embodiment specifically includes:

[0060] S210: Receive a pending service request, wherein the pending service request carries service scenario information.

[0061] S220: Determine a target plug-in file corresponding to the business scenario information according to the business scenario information, and load the target plug-in file.

[0062] S230: Generate a plug-in instance object based on the loaded target plug-in file, and determine a target plug-in class corresponding to the plug-in instance object, wherein the target plug-in class is a custom plug-in class that implements a preset plug-in abstract interface class under a preset application development framework.

[0063] S240: Generate a business processing object based on the object attribute information defined in the target plug-in class.

[0064] S250: Establish a data communication connection with the business processing object, and process the pending business request through the business processing object based on the data communication connection.

[0065] In an embodiment of the present invention, after obtaining a business processing object, a data communication connection can be established with the business processing object. Furthermore, based on the data communication connection, the pending business request can be processed by the business processing object. Specifically, processing the pending business request by the business processing object based on the data communication connection can include sending the pending business request to the business processing object via the data communication connection. The business processing object can then process the pending business request to obtain a business processing result, which can then be fed back via the data communication connection.

[0066] In an embodiment of the present invention, establishing a data communication connection with the business processing object may include: acquiring a target communication mechanism set for the business processing object; and establishing a data communication connection with the business processing object based on the target communication mechanism.

[0067] The target communication mechanism can be understood as a communication mechanism used to communicate with a business processing object. The target communication mechanism can be a communication mechanism set for the business processing object. In embodiments of the present invention, the target communication mechanism can be a communication mechanism established based on signals and slots. Specifically, the target communication mechanism set for the business processing object is obtained. After determining the target communication mechanism, the target communication mechanism can be used to establish a data communication connection with the business processing object. This allows the business processing object to process pending business requests via the communication connection under the target communication mechanism.

[0068] The technical solution of the embodiment of the present invention establishes a data communication connection with the business processing object; based on the data communication connection, the business processing object processes the pending business request, thereby realizing the function of processing the business request in a data communication connection manner.

[0069] Example 3

[0070] Figure 5 This is a structural diagram of a service processing device provided by the third embodiment of the present invention. Figure 5 As shown, the device includes: a scenario information determination module 310, a plug-in file loading module 320, a plug-in instance generation module 330 and a service request processing module 340.

[0071] Among them, the scenario information determination module 310 is used to receive a pending business request, wherein the pending business request carries business scenario information; the plug-in file loading module 320 is used to determine the target plug-in file corresponding to the business scenario information according to the business scenario information, and load the target plug-in file; the plug-in instance generation module 330 is used to generate a plug-in instance object based on the loaded target plug-in file, and determine the target plug-in class corresponding to the plug-in instance object, wherein the target plug-in class is a custom plug-in class that implements a preset plug-in abstract interface class under a preset application development frame; the business request processing module 340 is used to generate a business processing object based on the object attribute information defined in the target plug-in class, and process the pending business request based on the business processing object.

[0072] The technical solution of the embodiment of the present invention is to receive a pending business request through a scenario information determination module, wherein the pending business request carries business scenario information; determine a target plug-in file corresponding to the business scenario information based on the business scenario information through a plug-in file loading module, and load the target plug-in file; generate a plug-in instance object based on the loaded target plug-in file through a plug-in instance generation module, and determine a target plug-in class corresponding to the plug-in instance object, wherein the target plug-in class is a custom plug-in class that implements a preset plug-in abstract interface class under a preset application development framework; generate a business processing object based on object attribute information defined in the target plug-in class through a business request processing module, and process the pending business request based on the business processing object. The technical solution of the embodiment of the present invention solves the technical problems of high coupling between existing software functions and long development cycles, and realizes processing of the business request by dynamically loading the plug-in file corresponding to the scenario information of the business request, thereby reducing the coupling between functions and shortening the software development cycle.

[0073] Optionally, the preset plug-in abstract interface class pre-defines an object attribute information acquisition method and a business processing object creation method; the business request processing module 340 is used to: obtain the object attribute information defined in the target plug-in class by calling the object attribute information acquisition method, and assign the object attribute information to the entry parameter of the business processing object creation method; after the parameter assignment is completed, create a business processing object according to the object attribute information by calling the business processing object creation method.

[0074] Optionally, the business request processing module 340 is configured to establish a data communication connection with the business processing object; and process the pending business request through the business processing object based on the data communication connection.

[0075] Optionally, the business request processing module 340 is used to obtain a target communication mechanism set for the business processing object; wherein the target communication mechanism is a communication mechanism established based on signals and slots; and based on the target communication mechanism, establish a data communication connection with the business processing object.

[0076] Optionally, a plug-in category information acquisition method and / or a plug-in name acquisition method is pre-defined in the preset plug-in abstract interface class, and the device further includes: a plug-in information acquisition module, configured to acquire the plug-in category information defined in the target plug-in class by calling the plug-in category information acquisition method pre-defined in the preset plug-in abstract interface class; and / or acquire the plug-in name defined in the target plug-in class by calling the plug-in name acquisition method pre-defined in the preset plug-in abstract interface class.

[0077] Optionally, the business processing object is a non-interface object or an interface object.

[0078] Optionally, the preset application development framework is a QT plug-in framework.

[0079] The service processing device provided by the embodiment of the present invention can execute the service processing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0080] It is worth noting that the various units and modules included in the above-mentioned business processing device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.

[0081] Example 4

[0082] Figure 6 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention 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 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0083] like Figure 6As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0084] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0085] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the business processing method.

[0086] In some embodiments, the business processing method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the business processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the business processing method in any other appropriate manner (e.g., via firmware).

[0087] Various embodiments of the systems and techniques described 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), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0088] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0089] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0090] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the 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 acoustic input, voice input, or tactile input).

[0091] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0092] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0093] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0094] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A business processing method, characterized in that: include: receiving a pending business request, wherein the pending business request carries business scenario information; Determining a target plug-in file corresponding to the business scenario information according to the business scenario information, and loading the target plug-in file; Generate a plug-in instance object based on the loaded target plug-in file, and determine a target plug-in class corresponding to the plug-in instance object, wherein the target plug-in class is a custom plug-in class that implements a preset plug-in abstract interface class under a preset application development framework; A business processing object is generated based on the object attribute information defined in the target plug-in class, and the pending business request is processed based on the business processing object.

2. The method according to claim 1, characterized in that The preset plug-in abstract interface class pre-defines an object attribute information acquisition method and a business processing object creation method; generating a business processing object based on the object attribute information defined in the target plug-in class includes: Acquire the object attribute information defined in the target plug-in class by calling the object attribute information acquisition method, and assign the object attribute information to the entry parameter of the business processing object creation method; After the parameter assignment is completed, the business processing object is created according to the object attribute information by calling the business processing object creation method.

3. The method according to claim 1, characterized in that The processing of the pending business request based on the business processing object includes: Establishing a data communication connection with the business processing object; Based on the data communication connection, the pending service request is processed by the service processing object.

4. The method according to claim 3, characterized in that The establishing of a data communication connection with the business processing object includes: Acquire a target communication mechanism set for the business processing object; wherein the target communication mechanism is a communication mechanism established based on signals and slots; Based on the target communication mechanism, a data communication connection is established with the business processing object.

5. The method according to claim 1, wherein The preset plug-in abstract interface class pre-defines a method for obtaining plug-in category information and / or a method for obtaining a plug-in name, and the method further includes: Acquire the plug-in category information defined in the target plug-in class by calling a plug-in category information acquisition method predefined in the preset plug-in abstract interface class; and / or, The plug-in name defined in the target plug-in class is obtained by calling a plug-in name acquisition method predefined in the preset plug-in abstract interface class.

6. The method according to claim 1, characterized in that The business processing object is a non-interface object or an interface object.

7. The method according to claim 1, characterized in that The preset application development framework is the QT plug-in framework.

8. A business processing device, characterized in that: include: A scenario information determination module, configured to receive a pending service request, wherein the pending service request carries service scenario information; A plug-in file loading module, configured to determine a target plug-in file corresponding to the business scenario information according to the business scenario information, and load the target plug-in file; A plug-in instance generation module is used to generate a plug-in instance object based on the loaded target plug-in file and determine a target plug-in class corresponding to the plug-in instance object, wherein the target plug-in class is a custom plug-in class that implements a preset plug-in abstract interface class under a preset application development framework; The business request processing module is used to generate a business processing object based on the object attribute information defined in the target plug-in class, and process the pending business request based on the business processing object.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the business processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the business processing method according to any one of claims 1 to 7 when executed.