CN110543327A - Service component multiplexing method and device, computer equipment and storage medium - Google Patents
Service component multiplexing method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110543327A CN110543327A CN201910843502.3A CN201910843502A CN110543327A CN 110543327 A CN110543327 A CN 110543327A CN 201910843502 A CN201910843502 A CN 201910843502A CN 110543327 A CN110543327 A CN 110543327A
- Authority
- CN
- China
- Prior art keywords
- component
- service
- interface address
- address information
- packet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a service component multiplexing method, a service component multiplexing device, computer equipment and a storage medium, wherein the method comprises the steps of analyzing a service component loading request to obtain corresponding component characteristic information if the service component loading request is received; calling an initial service component matched with the component from a preset node packet manager according to the component characteristic information; calling an interface address information packet matched with the acquired system characteristic information of the current service system from a preset database according to the acquired system characteristic information of the current service system, and configuring the called interface address information packet into corresponding component parameters of the initial service component to obtain a configured target service component; and analyzing and installing the target service component to the current service system. The invention can effectively improve the reuse rate of the service components, is convenient for modification and upgrade, reduces the maintenance cost and improves the user experience.
Description
Technical Field
the present invention relates to the field of computers, and in particular, to a service component multiplexing method, apparatus, computer device, and storage medium.
background
At present, with the development of scientific technology, service components with certain functions, such as module codes and the like capable of realizing certain functions, are used in a high frequency manner in many service systems, and if each service system includes the same module code, the required storage space is larger, the cost for subsequent maintenance is also higher, and synchronous upgrade is difficult to perform. Moreover, the modules used by high frequency have certain relevance with each service system to which the modules are applied, so that the reusability of the modules is further reduced, and the code maintenance cost is increased. For example, if a module a capable of implementing a certain function is developed for the service system a, when the service system B also needs to be provided with a module capable of implementing the above function, the code of the module a may be copied to the service system B, and then the relevant data in the module a is modified according to the difference requirement of the service system B, so as to meet the requirement of the service system B. Especially, when some set of service system needs to set some function, the maintenance cost of the module corresponding to the function on different service systems will increase several times, and moreover, if the interaction mode of the module realizing some function is changed, it is difficult to modify and upgrade synchronously at one time.
Disclosure of Invention
embodiments of the present invention provide a service component multiplexing method and apparatus, a computer device, and a storage medium, which can effectively improve the multiplexing rate of a service component, facilitate modification and upgrade, reduce maintenance cost, and improve user experience.
In a first aspect, an embodiment of the present invention provides a service component multiplexing method, where the method includes:
If a service component loading request is received, analyzing the service component loading request to obtain corresponding component characteristic information;
Calling an initial service component matched with the component from a preset node packet manager according to the component characteristic information; the preset node packet manager comprises a plurality of different initial service components, different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet;
Calling an interface address information packet matched with the acquired system characteristic information of the current service system from a preset database according to the acquired system characteristic information of the current service system, and configuring the called interface address information packet into corresponding component parameters of the initial service component to obtain a configured target service component; the preset database comprises a plurality of different interface address information packets, different system characteristic information is associated with the different interface address information packets, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters;
And analyzing and installing the target service component to the current service system.
In a second aspect, an embodiment of the present invention further provides a service component multiplexing apparatus, where the apparatus includes:
the analysis unit is used for analyzing the service component loading request to obtain corresponding component characteristic information if the service component loading request is received;
The component calling unit is used for calling the initial service component matched with the component from a preset node packet manager according to the component characteristic information; the preset node packet manager comprises a plurality of different initial service components, different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet;
The processing unit is used for calling an interface address information packet matched with the acquired system characteristic information of the current service system from a preset database and configuring the called interface address information packet into corresponding component parameters of the initial service component so as to obtain a configured target service component; the preset database comprises a plurality of different interface address information packets, different system characteristic information is associated with the different interface address information packets, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters;
And the installation unit is used for analyzing and installing the target service component into the current service system.
in a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the above method when executing the computer program.
In a fourth aspect, the present invention also provides a computer-readable storage medium, which stores a computer program, and the computer program can implement the above method when being executed by a processor.
The embodiment of the invention provides a service component multiplexing method, a service component multiplexing device, computer equipment and a storage medium. Wherein the method comprises the following steps: if a service component loading request is received, analyzing the service component loading request to obtain corresponding component characteristic information; calling an initial service component matched with the component from a preset node packet manager according to the component characteristic information; calling an interface address information packet matched with the acquired system characteristic information of the current service system from a preset database according to the acquired system characteristic information of the current service system, and configuring the called interface address information packet into corresponding component parameters of the initial service component to obtain a configured target service component; and analyzing and installing the target service component to the current service system. The embodiment of the invention not only can effectively improve the reuse rate of the service components, but also is convenient for modification and upgrade, reduces the maintenance cost and improves the user experience.
drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a service component multiplexing method according to an embodiment of the present invention;
fig. 2 is a sub-flow diagram of a service component multiplexing method according to an embodiment of the present invention;
Fig. 3 is a flowchart illustrating a service component multiplexing method according to another embodiment of the present invention;
Fig. 4 is a flowchart illustrating a service component multiplexing method according to another embodiment of the present invention;
fig. 5 is a schematic block diagram of a service component multiplexing apparatus according to an embodiment of the present invention;
Fig. 6 is a schematic block diagram of a processing unit of a service component multiplexing apparatus according to an embodiment of the present invention;
Fig. 7 is another schematic block diagram of a service component multiplexing apparatus according to an embodiment of the present invention;
fig. 8 is another schematic block diagram of a service component multiplexing apparatus provided in an embodiment of the present invention;
Fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Referring to fig. 1, fig. 1 is a schematic flowchart of a service component multiplexing method provided in an embodiment of the present application, where the service component multiplexing method is applied to a management server of a service system. The management server can call a corresponding initial service component from a preset node packet manager according to a service component loading request, simultaneously obtains a corresponding interface address information packet from a preset database, configures the interface address information packet into corresponding component parameters of the initial service component to obtain a configured target service component, and then installs the target service component in a service system, thereby realizing the installation and configuration of different service systems on the required service components, namely realizing the reusability of the service components and improving the efficiency of upgrading and maintaining the service components. The steps of the service component multiplexing method will be described in detail below from the perspective of a management server.
specifically, as shown in fig. 1, the steps of the method include steps S101 to S104.
step S101, if a service component loading request is received, the service component loading request is analyzed to obtain corresponding component characteristic information.
In this embodiment, a user may configure a corresponding service component for a service system according to the user's own requirements. When the management server of the service system receives the service component loading request, the service loading request can be analyzed, and corresponding component characteristic information can be obtained. The component feature information refers to uniquely identifiable feature information of a service component that a user needs to load for a service system, and may be, for example, information such as a name or a storage address of the service component.
Step S102, calling an initial service component matched with the component from a preset node packet manager according to the component characteristic information; the preset node packet manager comprises a plurality of different initial service components, different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet.
In this embodiment, the preset node packet manager may be a preset manager for storing different initial service components. The Node Package Manager is usually called Node Package Manager, NPM for short, and is based on Node. The node packet manager can conveniently realize sharing and reusing of codes of related component modules by developers, so that users can conveniently realize reusing of service components and correspondingly improve and upgrade the service components. In particular, different initial service components are matched and associated with different component characteristic information so as to identify corresponding functions thereof, thereby facilitating selection and calling of users. Furthermore, each initial service package may include a basic service package for implementing some basic functions, and meanwhile, in order to implement different requirements of different users, a plurality of component parameters may be set in association with the basic service package, so that the users may input different component parameters to modify the related functions of the service package, thereby implementing specific functions.
For example, different component parameters may correspond to parameter information such as inputting different interface address information. Specifically, for example, when the business system encapsulates a business component of a video tree, the video tree business component can implement functions of previewing, enlarging, reducing, rotating and viewing a file (such as a picture, a video, or a pdf), renaming, deleting, adding, adjusting a file classification, auditing a file, and the like. However, since the background interface addresses of different service systems may be different, the image tree service component configured for the service system needs to call the background interface address matched with the image tree service component at this time, that is, the configured image tree service component is an initial service component having the above function, which is configured with the background interface address of the current service system as parameter information, that is, the background interface address may be parameter information corresponding to the component parameter of the initial service component.
Step S103, calling an interface address information packet matched with the acquired system characteristic information of the current service system from a preset database according to the acquired system characteristic information of the current service system, and configuring the called interface address information packet into corresponding component parameters of the initial service component to obtain a configured target service component; the preset database comprises a plurality of different interface address information packets, different system characteristic information is associated with the different interface address information packets, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters.
In this embodiment, the preset database may include a plurality of different interface address packets. Different interface address information packets can correspond to different service systems, and each interface address information should be associated with different system characteristic information in order to be identified and called.
Optionally, the preset database is a VUE global variable. The global variable is implemented by declaring the prototype property of vue. The interface addresses of different service systems may be different, so that the interface address of the current service system may be stored through a global variable, and the interface address of the service system does not need to be concerned by the initial service component, thereby shielding the difference of the interfaces of each service system and improving the reusability of each initial service component. Js file, which is used to define the interface address in the service system.
Furthermore, since the service component may need to call a plurality of interface address information in the actual calling process so as to realize different functions, the called interface address information packet can be configured into the corresponding component parameter of the initial service component according to the requirement of the user, so that the user can select the required interface address information from the interface address information packet for configuration according to the requirement, thereby improving the multiplexing flexibility of the service component and reducing the storage space required by the service system.
in an embodiment, as in the present embodiment, as shown in fig. 2, the step S103 may include steps S201 to S205.
Step S201, acquiring system characteristic information of the current service system. In order to determine the uniqueness of the current service system, system characteristic information of the current service system may be obtained, where the system characteristic information is a unique identifier of the current service system, and may be, for example, information such as a name of the current service system.
Step S202, calling an interface address information packet matched with the system characteristic information from a preset database through a preset parameter acquisition component and the system characteristic information. The preset parameter obtaining component may be this, global, addmedia, and the management server may obtain a specific interface address information packet associated with the current service system from the VUE global variable through this, global, addmedia, for example, the obtained interface address information packet may include an interface address of a newly added image tree file, and the interface address of the newly added image tree file may be parameter information that needs to be matched with component parameters in the image tree service component.
Step S203, obtaining the component parameters associated with the basic service packet of the initial service component, so as to determine the component parameters to be configured according to the selection instruction of the user.
In order to configure the initial service component, the component parameters that need to be configured need to be determined according to a selection instruction of a user, and generally, the component parameters associated with the basic service package may be stored in a configuration file of the initial service component, so as to facilitate invoking and adjusting.
Step S204, selecting corresponding interface address information from the called interface address information packet according to the determined component parameters. The management server can select the interface address information matched with the determined component parameter from the called interface address information packet after the component parameter is determined, for example, when the component parameter in the image tree service component is a parameter requiring a newly added file, the newly added image tree file interface address can be selected from the current interface address information packet and configured into the component parameter.
Step S205, correspondingly configuring the selected interface address information into the determined component parameter, so as to obtain the configured target service component. After the selected interface address information is correspondingly configured in the determined component parameters, the configured target service component can be obtained, so that the use of the initial service component in different service systems is realized, namely, the multiplexing of the initial service component is realized, the use and maintenance efficiency is improved, the corresponding upgrade is facilitated, and the workload is reduced.
And step S104, analyzing and installing the target service component to the current service system.
in this embodiment, the management server may parse the target service component, so as to install the target service component to the current service system, so as to implement application of the target service component.
In an embodiment, the target service component includes a basic service packet and related parameter information, so the embodiment further includes the following steps:
Step S105, if a service component upgrading request is detected, updating a basic service package of the current target service component according to the service component upgrading request to obtain an updated target service component.
In this embodiment, if the management server detects a service component upgrade request, the management server may perform corresponding upgrade on the basic service package of the target service component according to the request, so as to obtain an updated target service component. Because the basic service package can realize the basic function of the target service assembly, the whole target service assembly can be upgraded by only upgrading the basic service package, and simultaneously, the target service assemblies of other service systems can also be upgraded, so that the corresponding upgrading efficiency and accuracy are improved. Particularly, the upgrading of the initial service component in the NPM can be realized by executing the command 'NPM install-save component name' in the NPM, so that the subsequent continuous use is facilitated, and the workload of user maintenance is reduced.
In summary, the embodiment of the invention not only can effectively improve the reuse rate of the service component, but also is convenient for modification and upgrade, reduces the maintenance cost and improves the user experience.
referring to fig. 3, fig. 3 is a schematic flow chart of a service component multiplexing method according to another embodiment of the present invention. As shown in fig. 3, the steps of the method include steps S301 a-S304. The related explanations and detailed descriptions of the steps similar to steps S101-S104 in the above embodiment are not repeated herein, and the following detailed descriptions are the added steps in this embodiment.
step S301a, if a service component development request is received, generating a corresponding development interface according to the service component development request.
In this embodiment, if the management server receives the service component development request, the management server may analyze the service component development request to generate a corresponding development interface, so that the user may perform corresponding development as needed.
Step S301b, receiving the component development information input by the user on the development interface, and generating a corresponding basic service package according to the component development information.
In this embodiment, if component development information input by a user on a development interface is received, a corresponding basic service package can be generated according to the component development information, and the basic service package can implement some common functions of a service system, for example, processing files, and the like.
Step S301c, configuring several associated component parameters for the basic service package, and determining the basic service package configured with the component parameters as an initial service component.
In this embodiment, in order to perform personalized configuration on the basic service package, so as to meet multiplexing requirements of different service components, it is necessary to configure and associate a plurality of component parameters for the basic service package, and determine the basic service package configured with the component parameters as an initial service component.
step S301d, storing the determined initial service component in a preset node packet manager.
in this embodiment, in order to facilitate corresponding invoking and managing, the determined initial service component needs to be stored in a preset node packet manager.
step S301, if a service component loading request is received, analyzing the service component loading request to obtain corresponding component characteristic information.
Step S302, calling an initial service component matched with the component from a preset node packet manager according to the component characteristic information; the preset node packet manager comprises a plurality of different initial service components, different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet.
Step S303, calling an interface address information packet matched with the acquired system characteristic information of the current service system from a preset database according to the acquired system characteristic information of the current service system, and configuring the called interface address information packet into corresponding component parameters of the initial service component to obtain a configured target service component; the preset database comprises a plurality of different interface address information packets, different system characteristic information is associated with the different interface address information packets, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters.
And step S304, analyzing and installing the target service component to the current service system.
In an embodiment, as shown in fig. 4, before the step S301, the method further includes:
Step S301e, system characteristic information of different service systems is obtained.
Step S301f, interface address packets of each service system are defined.
step S301g, store the interface address information packet defined by each service system in a preset database after associating with the system feature information. In order to realize the personalized setting of different service systems and improve the application of an initial service component in different service systems, the system characteristic information of different service systems can be acquired by firstly carrying out statistical storage on the relevant interface address information in the service systems, an interface address information packet of each service system is defined, the interface address information packet defined by each system is associated with the system characteristic information of the system, and the associated interface address information packet is stored in a preset database. For example, when the database is a VUE global variable, the interface address information packet may be defined as a global _ variable.js file, and the global _ variable.js file can be mounted under the VUE global variable, so as to facilitate call configuration.
Referring to fig. 5, in response to the above-mentioned service component multiplexing method, an embodiment of the present invention further provides a service component multiplexing apparatus, where the apparatus 100 includes: parsing unit 101, component calling unit 102, processing unit 103, and installing unit 104.
The analyzing unit 101 is configured to, if a service component loading request is received, analyze the service component loading request to obtain corresponding component feature information.
in this embodiment, a user may configure a corresponding service component for a service system according to the user's own requirements. When the management server of the service system receives the service component loading request, the service loading request can be analyzed, and corresponding component characteristic information can be obtained. The component feature information refers to uniquely identifiable feature information of a service component that a user needs to load for a service system, and may be, for example, information such as a name or a storage address of the service component.
The component calling unit 102 is configured to call an initial service component matched with the component from a preset node packet manager according to the component feature information; the preset node packet manager comprises a plurality of different initial service components, different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet.
in this embodiment, the preset node packet manager may be a preset manager for storing different initial service components. The Node Package Manager is usually called Node Package Manager, NPM for short, and is based on Node. The node packet manager can conveniently realize sharing and reusing of codes of related component modules by developers, so that users can conveniently realize reusing of service components and correspondingly improve and upgrade the service components. In particular, different initial service components are matched and associated with different component characteristic information so as to identify corresponding functions thereof, thereby facilitating selection and calling of users. Furthermore, each initial service package may include a basic service package for implementing some basic functions, and meanwhile, in order to implement different requirements of different users, a plurality of component parameters may be set in association with the basic service package, so that the users may input different component parameters to modify the related functions of the service package, thereby implementing specific functions.
For example, different component parameters may correspond to parameter information such as inputting different interface address information. Specifically, for example, when the business system encapsulates a business component of a video tree, the video tree business component can implement functions of previewing, enlarging, reducing, rotating and viewing a file (such as a picture, a video, or a pdf), renaming, deleting, adding, adjusting a file classification, auditing a file, and the like. However, since the background interface addresses of different service systems may be different, the image tree service component configured for the service system needs to call the background interface address matched with the image tree service component at this time, that is, the configured image tree service component is an initial service component having the above function, which is configured with the background interface address of the current service system as parameter information, that is, the background interface address may be parameter information corresponding to the component parameter of the initial service component.
The processing unit 103 is configured to call an interface address information packet matched with the acquired system feature information of the current service system from a preset database, and configure the called interface address information packet into a corresponding component parameter of the initial service component to obtain a configured target service component; the preset database comprises a plurality of different interface address information packets, different system characteristic information is associated with the different interface address information packets, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters.
In this embodiment, the preset database may include a plurality of different interface address packets. Different interface address information packets can correspond to different service systems, and each interface address information should be associated with different system characteristic information in order to be identified and called.
Optionally, the preset database is a VUE global variable. The global variable is implemented by declaring the prototype property of vue. The interface addresses of different service systems may be different, so that the interface address of the current service system may be stored through a global variable, and the interface address of the service system does not need to be concerned by the initial service component, thereby shielding the difference of the interfaces of each service system and improving the reusability of each initial service component. Js file, which is used to define the interface address in the service system.
Furthermore, since the service component may need to call a plurality of interface address information in the actual calling process so as to realize different functions, the called interface address information packet can be configured into the corresponding component parameter of the initial service component according to the requirement of the user, so that the user can select the required interface address information from the interface address information packet for configuration according to the requirement, thereby improving the multiplexing flexibility of the service component and reducing the storage space required by the service system.
In an embodiment, as shown in fig. 6, the processing unit 103 may include a feature obtaining unit 201, a packet invoking unit 202, a parameter obtaining unit 203, an information selecting unit 204, and a component configuring unit 205.
A characteristic obtaining unit 201, configured to obtain system characteristic information of the current service system. In order to determine the uniqueness of the current service system, system characteristic information of the current service system may be obtained, where the system characteristic information is a unique identifier of the current service system, and may be, for example, information such as a name of the current service system.
The packet calling unit 202 is configured to call an interface address packet matched with the system feature information from a preset database through a preset parameter obtaining component and the system feature information. The preset parameter obtaining component may be this, global, addmedia, and the management server may obtain a specific interface address information packet associated with the current service system from the VUE global variable through this, global, addmedia, for example, the obtained interface address information packet may include an interface address of a newly added image tree file, and the interface address of the newly added image tree file may be parameter information that needs to be matched with component parameters in the image tree service component.
A parameter obtaining unit 203, configured to obtain a component parameter associated with the basic service packet of the initial service component, so as to determine a component parameter to be configured according to a selection instruction of a user.
in order to configure the initial service component, the component parameters that need to be configured need to be determined according to a selection instruction of a user, and generally, the component parameters associated with the basic service package may be stored in a configuration file of the initial service component, so as to facilitate invoking and adjusting.
an information selecting unit 204, configured to select corresponding interface address information from the called interface address information packet according to the determined component parameter. The management server can select the interface address information matched with the determined component parameter from the called interface address information packet after the component parameter is determined, for example, when the component parameter in the image tree service component is a parameter requiring a newly added file, the newly added image tree file interface address can be selected from the current interface address information packet and configured into the component parameter.
The component configuring unit 205 is configured to correspondingly configure the selected interface address information into the determined component parameter, so as to obtain the configured target service component. After the selected interface address information is correspondingly configured in the determined component parameters, the configured target service component can be obtained, so that the use of the initial service component in different service systems is realized, namely, the multiplexing of the initial service component is realized, the use and maintenance efficiency is improved, the corresponding upgrade is facilitated, and the workload is reduced.
And the installation unit 104 is configured to parse and install the target service component into the current service system.
In this embodiment, the management server may parse the target service component, so as to install the target service component to the current service system, so as to implement application of the target service component.
In an embodiment, the target service component includes a basic service packet and related parameter information, so the embodiment further includes the following steps:
an updating unit 105, configured to update, if a service component upgrade request is detected, a basic service package of a current target service component according to the service component upgrade request, so as to obtain an updated target service component.
in this embodiment, if the management server detects a service component upgrade request, the management server may perform corresponding upgrade on the basic service package of the target service component according to the request, so as to obtain an updated target service component. Because the basic service package can realize the basic function of the target service assembly, the whole target service assembly can be upgraded by only upgrading the basic service package, and simultaneously, the target service assemblies of other service systems can also be upgraded, so that the corresponding upgrading efficiency and accuracy are improved. Particularly, the upgrading of the initial service component in the NPM can be realized by executing the command 'NPM install-save component name' in the NPM, so that the subsequent continuous use is facilitated, and the workload of user maintenance is reduced.
In summary, the embodiment of the invention not only can effectively improve the reuse rate of the service component, but also is convenient for modification and upgrade, reduces the maintenance cost and improves the user experience.
referring to fig. 7, in response to the above-mentioned service component multiplexing method, another embodiment of the present invention further provides a service component multiplexing apparatus, where the apparatus 300 includes: an interface generating unit 301a, a service package generating unit 301b, a parameter configuring unit 301c, a component storing unit 301d, an analyzing unit 301, a component calling unit 302, a processing unit 303, and an installing unit 304.
The interface generating unit 301a is configured to generate a corresponding development interface according to a service component development request if the service component development request is received.
in this embodiment, if the management server receives the service component development request, the management server may analyze the service component development request to generate a corresponding development interface, so that the user may perform corresponding development as needed.
the service package generating unit 301b is configured to receive component development information input by a user on a development interface, and generate a corresponding basic service package according to the component development information.
In this embodiment, if component development information input by a user on a development interface is received, a corresponding basic service package can be generated according to the component development information, and the basic service package can implement some common functions of a service system, for example, processing files, and the like.
A parameter configuration unit 301c, configured to configure a plurality of associated component parameters for the basic service package, and determine the basic service package configured with the component parameters as an initial service component.
In this embodiment, in order to perform personalized configuration on the basic service package, so as to meet multiplexing requirements of different service components, it is necessary to configure and associate a plurality of component parameters for the basic service package, and determine the basic service package configured with the component parameters as an initial service component.
a component storage unit 301d, configured to store the determined initial service component in a preset node packet manager.
in this embodiment, in order to facilitate corresponding invoking and managing, the determined initial service component needs to be stored in a preset node packet manager.
An analyzing unit 301, configured to, if a service component loading request is received, analyze the service component loading request to obtain corresponding component feature information.
A component calling unit 302, configured to call an initial service component matched with the component feature information from a preset node packet manager according to the component feature information; the preset node packet manager comprises a plurality of different initial service components, different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet.
The processing unit 303 is configured to call, according to the acquired system feature information of the current service system, an interface address information packet matched with the system feature information from a preset database, and configure the called interface address information packet into a corresponding component parameter of the initial service component, so as to obtain a configured target service component; the preset database comprises a plurality of different interface address information packets, different system characteristic information is associated with the different interface address information packets, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters.
And the installation unit 304 is configured to parse and install the target service component into the current service system.
in an embodiment, as shown in fig. 8, before the parsing unit 301, the method further includes:
An information obtaining unit 301e, configured to obtain system feature information of different service systems.
a packet defining unit 301f, configured to define an interface address packet of each service system.
The associating unit 301g is configured to associate the interface address information packet defined by each service system with the system feature information thereof, and store the associated interface address information packet in a preset database. In order to realize the personalized setting of different service systems and improve the application of an initial service component in different service systems, the system characteristic information of different service systems can be acquired by firstly carrying out statistical storage on the relevant interface address information in the service systems, an interface address information packet of each service system is defined, the interface address information packet defined by each system is associated with the system characteristic information of the system, and the associated interface address information packet is stored in a preset database. For example, when the database is a VUE global variable, the interface address information packet may be defined as a global _ variable.js file, and the global _ variable.js file can be mounted under the VUE global variable, so as to facilitate call configuration.
It should be noted that, as can be clearly understood by those skilled in the art, for the specific implementation processes of the service component multiplexing apparatus 100 and each unit, reference may be made to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
As can be seen from the above description, in terms of hardware implementation, the above parsing unit 101, the component calling unit 102, the processing unit 103, and the installation unit 104 may be embedded in a device independent of the life insurance declaration in a hardware form, or may be stored in a memory of the service component multiplexing device in a software form, so that the processor calls to execute operations corresponding to the above units. The processor can be a Central Processing Unit (CPU), a microprocessor, a singlechip and the like.
The service component multiplexing apparatus may be implemented in the form of a computer program, which can be run on a computer device as shown in fig. 9.
Fig. 9 is a schematic structural diagram of a computer device according to the present invention. The device may be a server, where the server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 9, the computer device 600 includes a processor 602, a memory, an internal memory 604, and a network interface 605 connected by a system bus 601, wherein the memory may include a nonvolatile storage medium 603 and an internal memory 604.
The non-volatile storage medium 603 may store an operating system 6031 and a computer program 6032 that, when executed, may cause the processor 602 to perform a service component multiplexing method.
The processor 602 is used to provide computing and control capabilities that support the operation of the overall computer device 600.
The internal memory 604 provides an environment for the execution of a computer program 6032 on the non-volatile storage medium 603, which computer program 6032, when executed by the processor 602, causes the processor 602 to perform a service component multiplexing method.
The network interface 605 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 9 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computing device 600 upon which the present application may be applied, and that a particular computing device 600 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
wherein the processor 602 is configured to run a computer program 6032 stored in the memory to implement the steps of a service component multiplexing method as described above.
it should be understood that, in the embodiment of the present Application, the Processor 602 may be a Central Processing Unit (CPU), and the Processor 602 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program which, when executed by a processor, causes the processor to perform the steps of a service component multiplexing method as described above.
The storage medium is an entity and non-transitory storage medium, and may be various entity storage media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
while the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a method for multiplexing service components, the method comprising:
If a service component loading request is received, analyzing the service component loading request to obtain corresponding component characteristic information;
Calling an initial service component matched with the component from a preset node packet manager according to the component characteristic information; the preset node packet manager comprises a plurality of different initial service components, different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet;
Calling an interface address information packet matched with the acquired system characteristic information of the current service system from a preset database according to the acquired system characteristic information of the current service system, and configuring the called interface address information packet into corresponding component parameters of the initial service component to obtain a configured target service component; the preset database comprises a plurality of different interface address information packets, different system characteristic information is associated with the different interface address information packets, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters;
And analyzing and installing the target service component to the current service system.
2. The method of claim 1, wherein before the step of parsing the service component loading request to obtain corresponding component feature information if the service component loading request is received, further comprising:
if a business component development request is received, generating a corresponding development interface according to the business component development request;
Receiving component development information input by a user on a development interface, and generating a corresponding basic service package according to the component development information;
Configuring a plurality of associated component parameters for the basic service packet, and determining the basic service packet configured with the component parameters as an initial service component;
And storing the determined initial service component into a preset node packet manager.
3. The method of claim 2, wherein the method further comprises:
Acquiring system characteristic information of different service systems;
Defining an interface address information packet of each service system;
And after the interface address information packet defined by each service system is associated with the system characteristic information of the service system, storing the interface address information packet into a preset database.
4. the method of claim 1, wherein the preset database is a VUE global variable, and the interface address information packet is a global _ variable.
5. The method according to claim 1, wherein the step of calling the interface address information packet matched with the acquired system feature information of the current service system from a preset database and configuring the called interface address information packet into the initial service component to obtain the configured target service component comprises:
acquiring system characteristic information of a current service system;
Calling an interface address information packet matched with the system characteristic information from a preset database through a preset parameter acquisition component and the system characteristic information;
Acquiring component parameters associated with a basic service packet of the initial service component, and determining component parameters to be configured according to a selection instruction of a user;
Selecting corresponding interface address information from the called interface address information packet according to the determined component parameters;
and correspondingly configuring the selected interface address information into the determined component parameters to obtain the configured target service component.
6. The method of claim 1, wherein the target service component includes a basic service package and related parameter information, and wherein after the step of parsing and installing the target service component into the current service system, further comprising:
And if the service component upgrading request is detected, updating the basic service package of the current target service component according to the service component upgrading request to obtain the updated target service component.
7. A service component multiplexing device, the device comprising:
the analysis unit is used for analyzing the service component loading request to obtain corresponding component characteristic information if the service component loading request is received;
the component calling unit is used for calling the initial service component matched with the component from a preset node packet manager according to the component characteristic information; the preset node packet manager comprises a plurality of different initial service components, different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet;
The processing unit is used for calling an interface address information packet matched with the acquired system characteristic information of the current service system from a preset database and configuring the called interface address information packet into corresponding component parameters of the initial service component so as to obtain a configured target service component; the preset database comprises a plurality of different interface address information packets, different system characteristic information is associated with the different interface address information packets, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters;
And the installation unit is used for analyzing and installing the target service component into the current service system.
8. The apparatus of claim 7, wherein the first processing unit comprises:
The characteristic acquisition unit is used for acquiring system characteristic information of the current service system;
The information packet calling unit is used for calling an interface address information packet matched with the system characteristic information from a preset database through a preset parameter acquisition component and the system characteristic information;
a parameter obtaining unit, configured to obtain a component parameter associated with a basic service packet of the initial service component, so as to determine a component parameter to be configured according to a selection instruction of a user;
The information selection unit is used for selecting corresponding interface address information from the called interface address information packet according to the determined component parameters;
And the component configuration unit is used for correspondingly configuring the selected interface address information into the determined component parameters to obtain the configured target service component.
9. A computer arrangement, characterized in that the computer arrangement comprises a memory having stored thereon a computer program and a processor implementing the method according to any of claims 1-6 when executing the computer program.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, causes the processor to carry out the method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910843502.3A CN110543327B (en) | 2019-09-06 | 2019-09-06 | Service component multiplexing method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910843502.3A CN110543327B (en) | 2019-09-06 | 2019-09-06 | Service component multiplexing method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110543327A true CN110543327A (en) | 2019-12-06 |
CN110543327B CN110543327B (en) | 2023-08-01 |
Family
ID=68712743
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910843502.3A Active CN110543327B (en) | 2019-09-06 | 2019-09-06 | Service component multiplexing method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110543327B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104182A (en) * | 2019-12-17 | 2020-05-05 | 深圳前海环融联易信息科技服务有限公司 | Method and device for quickly arranging business based on componentization, computer equipment and storage medium |
CN112635034A (en) * | 2020-12-30 | 2021-04-09 | 微医云(杭州)控股有限公司 | Service authority system, authority distribution method, electronic device and storage medium |
CN113485771A (en) * | 2021-07-27 | 2021-10-08 | 中国银行股份有限公司 | Method and device for configuring system parameters |
CN113656048A (en) * | 2021-08-25 | 2021-11-16 | 工银科技有限公司 | Business component code installation method, tool and component code sharing system |
CN113765868A (en) * | 2020-08-17 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Service processing method and device |
CN116107561A (en) * | 2023-04-14 | 2023-05-12 | 湖南云畅网络科技有限公司 | Low-code-based action node rapid construction method, system and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273126A (en) * | 2017-06-15 | 2017-10-20 | 中国银行股份有限公司 | Application and development method and apparatus |
CN107798617A (en) * | 2017-04-07 | 2018-03-13 | 平安科技(深圳)有限公司 | Insurance business treating method and apparatus |
CN108419089A (en) * | 2018-02-08 | 2018-08-17 | 广州虎牙信息科技有限公司 | Module data processing method, device, equipment and storage medium |
CN109582303A (en) * | 2018-10-31 | 2019-04-05 | 平安科技(深圳)有限公司 | General purpose module call method, device, computer equipment and storage medium |
CN110007902A (en) * | 2019-03-12 | 2019-07-12 | 中国平安财产保险股份有限公司 | The method and device of business processing flow configuration |
CN110109712A (en) * | 2019-04-04 | 2019-08-09 | 平安科技(深圳)有限公司 | Service Component loading method, device, computer equipment and storage medium |
-
2019
- 2019-09-06 CN CN201910843502.3A patent/CN110543327B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107798617A (en) * | 2017-04-07 | 2018-03-13 | 平安科技(深圳)有限公司 | Insurance business treating method and apparatus |
CN107273126A (en) * | 2017-06-15 | 2017-10-20 | 中国银行股份有限公司 | Application and development method and apparatus |
CN108419089A (en) * | 2018-02-08 | 2018-08-17 | 广州虎牙信息科技有限公司 | Module data processing method, device, equipment and storage medium |
CN109582303A (en) * | 2018-10-31 | 2019-04-05 | 平安科技(深圳)有限公司 | General purpose module call method, device, computer equipment and storage medium |
CN110007902A (en) * | 2019-03-12 | 2019-07-12 | 中国平安财产保险股份有限公司 | The method and device of business processing flow configuration |
CN110109712A (en) * | 2019-04-04 | 2019-08-09 | 平安科技(深圳)有限公司 | Service Component loading method, device, computer equipment and storage medium |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104182A (en) * | 2019-12-17 | 2020-05-05 | 深圳前海环融联易信息科技服务有限公司 | Method and device for quickly arranging business based on componentization, computer equipment and storage medium |
CN113765868A (en) * | 2020-08-17 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Service processing method and device |
CN113765868B (en) * | 2020-08-17 | 2023-08-08 | 北京沃东天骏信息技术有限公司 | Service processing method and device |
CN112635034A (en) * | 2020-12-30 | 2021-04-09 | 微医云(杭州)控股有限公司 | Service authority system, authority distribution method, electronic device and storage medium |
CN113485771A (en) * | 2021-07-27 | 2021-10-08 | 中国银行股份有限公司 | Method and device for configuring system parameters |
CN113485771B (en) * | 2021-07-27 | 2024-05-24 | 中国银行股份有限公司 | Configuration method and device of system parameters |
CN113656048A (en) * | 2021-08-25 | 2021-11-16 | 工银科技有限公司 | Business component code installation method, tool and component code sharing system |
CN116107561A (en) * | 2023-04-14 | 2023-05-12 | 湖南云畅网络科技有限公司 | Low-code-based action node rapid construction method, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110543327B (en) | 2023-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110543327B (en) | Service component multiplexing method, device, computer equipment and storage medium | |
JP5658283B2 (en) | Application operating method, apparatus and system | |
CN110688232B (en) | Application program calling method, terminal equipment and computer readable storage medium | |
CN111752637B (en) | Multi-service inspection management method and device, computer equipment and storage medium | |
CN104834541B (en) | Function module hanging method, carry system and the method for updating carry system | |
CN107291481B (en) | Component updating method, device and system | |
CN110780897A (en) | Code changing method and device | |
JP4286798B2 (en) | Method for installing driver file on hard drive, computer and computer-readable storage medium | |
CN106953746A (en) | Clustered node upgrade-system and method | |
CN113835713B (en) | Source code packet downloading method, device, computer equipment and storage medium | |
US20050091259A1 (en) | Framework to build, deploy, service, and manage customizable and configurable re-usable applications | |
JP5315128B2 (en) | Process request destination management apparatus, process request destination management program, and process request destination management method | |
CN108920157B (en) | Nginx software installation method and device, computer equipment and storage medium | |
CN111200744B (en) | Multimedia playing control method and device and intelligent equipment | |
JP6002302B2 (en) | Web application generation system, Web application generation system control method, Web application generation system program, Web application generation device, Web application generation device control method, and Web application generation device program | |
CN107239303B (en) | Application program update package generation method and device and application program update method and device | |
CN112416384A (en) | Software upgrading method and device and computer equipment | |
CN117235017A (en) | Data upgrading method, device, equipment and storage medium | |
CN111475226B (en) | Electronic device, micro-service calling method, and computer-readable storage medium | |
WO2016206437A1 (en) | Rom package generation method and device | |
CN113326052A (en) | Method and device for upgrading service component, computer equipment and storage medium | |
CN111026466A (en) | File processing method and device, computer readable storage medium and electronic equipment | |
CN113050962A (en) | Mobile service upgrading method, device and terminal | |
CN116382796B (en) | Plug-in management method and device of H5 applet runner and electronic equipment | |
CN111666165B (en) | Method, device, equipment and storage medium for calling functions between applications |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |