Disclosure of Invention
The embodiment of the disclosure provides a method and a device for adjusting a system architecture, which can solve at least some problems in the prior art.
In a first aspect of the embodiments of the present disclosure, a method for adjusting a system architecture is provided, including:
acquiring access information of a user through a standardized front-end system, judging that the user belongs to a customized system or an un-customized system based on the access information,
if the user belongs to the non-customized system, adjusting a system architecture based on a pre-constructed universal component;
and if the user belongs to the customized system, adjusting the system architecture based on the pre-constructed customized component.
In an alternative embodiment of the method according to the invention,
the system architecture comprises a presentation layer, a gateway layer and a system layer,
the method for adjusting the system architecture based on the pre-constructed customized components comprises the following steps:
based on the customization requirements of users, selecting corresponding customized components from the customized component containers of the presentation layer, and carrying out component configuration on a gateway layer by calling a dynamic gateway;
and transmitting the container identifier, the system level data and the merchant identifier of the presentation layer into a system layer, determining a business component corresponding to the merchant, adjusting the system architecture by calling the business component, and outputting the adjusted system architecture to the presentation layer.
In an alternative embodiment of the method according to the invention,
the method further comprises the following steps:
and acquiring access information of a user based on the customized component, performing buried point statistics and rendering statistics, and uploading the acquired data to a background server.
In an alternative embodiment of the method according to the invention,
the customization component comprises a login module component and a user module component,
the login module component comprises a login basic layout component;
the user module component comprises at least one of an enterprise butt joint layout/top menu component, a name setting popup component, an account name setting popup component and a password setting popup component.
In an alternative embodiment of the method according to the invention,
the customized component is custom developed based on an application platform as a service NEXUS architecture.
In a second aspect of the embodiments of the present disclosure, a system architecture adjusting apparatus is provided, including:
a first unit for acquiring access information of a user through a standardized front-end system, judging that the user belongs to a customized system or an un-customized system based on the access information,
a second unit, configured to adjust a system architecture based on a pre-built generic component if the user belongs to an off-the-shelf system;
a third unit, configured to adjust a system architecture based on a pre-constructed customized component if the user belongs to a customized system.
In an alternative embodiment of the method according to the invention,
the system architecture comprises a presentation layer, a gateway layer and a system layer,
the third unit is further configured to:
based on the customization requirements of users, selecting corresponding customized components from the customized component containers of the presentation layer, and carrying out component configuration on a gateway layer by calling a dynamic gateway;
and transmitting the container identifier, the system level data and the merchant identifier of the presentation layer into a system layer, determining a business component corresponding to the merchant, adjusting the system architecture by calling the business component, and outputting the adjusted system architecture to the presentation layer.
In an alternative embodiment of the method according to the invention,
the apparatus further comprises a fourth unit for:
and acquiring access information of a user based on the customized component, performing buried point statistics and rendering statistics, and uploading the acquired data to a background server.
In an alternative embodiment of the method according to the invention,
the customization component comprises a login module component and a user module component,
the login module component comprises a login basic layout component;
the user module component comprises at least one of an enterprise butt joint layout/top menu component, a name setting popup component, an account name setting popup component and a password setting popup component.
In an alternative embodiment of the method according to the invention,
the customized component is custom developed based on an application platform as a service NEXUS architecture.
The present disclosure provides a system architecture adjustment method, including:
acquiring access information of a user through a standardized front-end system, judging that the user belongs to a customized system or an un-customized system based on the access information,
if the user belongs to the non-customized system, adjusting a system architecture based on a pre-constructed universal component;
and if the user belongs to the customized system, adjusting the system architecture based on the pre-constructed customized component.
The system architecture adjusting method disclosed by the invention completely does not need to merge codes, and performs the function customization of the system by using the architecture of the nexus; the components can be standardized, so that the maintenance of the components in the future is facilitated; in the component market, some micro-components can be used for the second time, and repeated development is avoided.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present disclosure and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein.
It should be understood that, in various embodiments of the present disclosure, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the inherent logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
It should be understood that in the present disclosure, "including" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present disclosure, "plurality" means two or more. "and/or" is merely an association describing an associated object, meaning that three relationships may exist, for example, and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "comprises A, B and C" and "comprises A, B, C" means that all three of A, B, C comprise, "comprises A, B or C" means that one of A, B, C comprises, "comprises A, B and/or C" means that any 1 or any 2 or 3 of A, B, C comprises.
It should be understood that in the present disclosure, "B corresponding to A", "A and B
The corresponding "or" B corresponds to A "means that B is associated with A, from which B can be determined. Determining B from a does not mean determining B from a alone, but may be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context.
The technical solution of the present disclosure is explained in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 exemplarily shows a flow chart of a method for adjusting a system architecture provided by an embodiment of the present disclosure, as shown in fig. 1, the method includes:
step S101, obtaining the access information of the user through a standardized front-end system, judging that the user belongs to a customized system or an un-customized system based on the access information,
step S102, if the user belongs to an un-customized system, adjusting a system architecture based on a general component constructed in advance;
and S103, if the user belongs to the customized system, adjusting the system architecture based on the customized component constructed in advance.
In an alternative embodiment of the method according to the invention,
the system architecture comprises a presentation layer, a gateway layer and a system layer,
the method for adjusting the system architecture based on the pre-constructed customized components comprises the following steps:
based on the customization requirements of users, selecting corresponding customized components from the customized component containers of the presentation layer, and carrying out component configuration on a gateway layer by calling a dynamic gateway;
and transmitting the container identifier, the system level data and the merchant identifier of the presentation layer into a system layer, determining a business component corresponding to the merchant, adjusting the system architecture by calling the business component, and outputting the adjusted system architecture to the presentation layer.
In an alternative embodiment of the method according to the invention,
the method further comprises the following steps:
and acquiring access information of a user based on the customized component, performing buried point statistics and rendering statistics, and uploading the acquired data to a background server.
In an alternative embodiment of the method according to the invention,
the customization component comprises a login module component and a user module component,
the login module component comprises a login basic layout component;
the user module component comprises at least one of an enterprise butt joint layout/top menu component, a name setting popup component, an account name setting popup component and a password setting popup component.
In an alternative embodiment of the method according to the invention,
the customized component is custom developed based on an application platform as a service NEXUS architecture.
Fig. 2a-2c schematically illustrate a system architecture diagram provided by the embodiment of the present disclosure, and as shown in fig. 2a-2c, the system architecture diagram includes:
a presentation layer, a gateway layer, and a system layer,
fig. 2a exemplarily shows a schematic diagram of a presentation layer in a system architecture, wherein the presentation layer can quickly access to customized requirements, specifically, each merchant in a customer base can access a standardized front-end system, and when a merchant accesses, it can know which system the merchant belongs to, and the widget container can selectively load the widgets of the current system according to the system configuration by invoking a dynamic gateway.
Further, the presentation layer may pass the container identifier, the system-level data, and the merchant identifier to the system layer.
Fig. 2b exemplarily shows a schematic diagram of a gateway layer in a system architecture, where the gateway layer includes a configuration system, and the gateway layer may report data of a buried point, where the data may include uv and pv.
In addition, the configuration system further includes a corresponding relationship between the components and the merchants, where the corresponding relationship may include a many-to-many relationship, that is, a plurality of components correspond to a plurality of merchants.
Fig. 2c exemplarily shows a schematic diagram of a system layer in a system architecture, wherein, taking a merchant a customized system as an example, a system architecture adjustment can be realized by acquiring customized business components according to merchants through a dynamic component engine, and then injecting, compiling and running system-level data through business components/modules, such as a questionnaire module, an action record, a user selection component, and the like, in combination with basic components, such as a form component, a table component, a quick search component, and the like.
Fig. 3 is an interface diagram schematically illustrating a customization component according to an embodiment of the present disclosure, and as shown in fig. 3, the customization component may include a login module component, a user module component,
the login module component comprises a login basic layout component;
the user module component comprises at least one of an enterprise butt joint layout/top menu component, a name setting popup component, an account name setting popup component and a password setting popup component.
The present disclosure provides a system architecture adjustment method, including:
acquiring access information of a user through a standardized front-end system, judging that the user belongs to a customized system or an un-customized system based on the access information,
if the user belongs to the non-customized system, adjusting a system architecture based on a pre-constructed universal component;
and if the user belongs to the customized system, adjusting the system architecture based on the pre-constructed customized component.
The system architecture adjusting method disclosed by the invention completely does not need to merge codes, and performs the function customization of the system by using the architecture of the nexus; the components can be standardized, so that the maintenance of the components in the future is facilitated; in the component market, some micro-components can be used for the second time, and repeated development is avoided.
Fig. 4 is a schematic structural diagram of a system architecture adjustment device according to an embodiment of the present disclosure, as shown in fig. 4, the system architecture adjustment device includes:
a first unit 41 for acquiring access information of a user through a standardized front-end system, determining that the user belongs to a customized system or an un-customized system based on the access information,
a second unit 42, configured to adjust a system architecture based on a pre-constructed generic component if the user belongs to an un-customized system;
a third unit 43, configured to adjust the system architecture based on the pre-constructed customized component if the user belongs to the customized system.
In an alternative embodiment of the method according to the invention,
the system architecture comprises a presentation layer, a gateway layer and a system layer,
the third unit 43 is further configured to:
based on the customization requirements of users, selecting corresponding customized components from the customized component containers of the presentation layer, and carrying out component configuration on a gateway layer by calling a dynamic gateway;
and transmitting the container identifier, the system level data and the merchant identifier of the presentation layer into a system layer, determining a business component corresponding to the merchant, adjusting the system architecture by calling the business component, and outputting the adjusted system architecture to the presentation layer.
In an alternative embodiment of the method according to the invention,
the apparatus further comprises a fourth unit for:
and acquiring access information of a user based on the customized component, performing buried point statistics and rendering statistics, and uploading the acquired data to a background server.
In an alternative embodiment of the method according to the invention,
the customization component comprises a login module component and a user module component,
the login module component comprises a login basic layout component;
the user module component comprises at least one of an enterprise butt joint layout/top menu component, a name setting popup component, an account name setting popup component and a password setting popup component.
In an alternative embodiment of the method according to the invention,
the customized component is custom developed based on an application platform as a service NEXUS architecture.
The present disclosure also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device. The readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In the above embodiments of the terminal or the server, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present disclosure may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present disclosure, and not for limiting the same; while the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present disclosure.