Service framework architecture method and device, computer equipment, readable storage medium and program product
By adopting a hierarchical design business framework architecture method in front-end business development, the problem that the existing development framework cannot cover existing projects during subsequent updates is solved, and more efficient development efficiency and maintainability are achieved.
Patent Information
- Application Number
- CN202411770658.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-02-28
AI Technical Summary
The development framework for existing front-end business development cannot effectively cover existing projects during subsequent updates, resulting in time-consuming updates of basic libraries and tool chains and reducing development efficiency.
Provide a business framework architecture method, by obtaining the framework core setting information of the business scenario, constructing the core layer of the business framework and configuring the core library and general tool chain, and then configuring business components and business settings information at the upper level of the business framework layer to realize the layered design of the business framework.
Through layered design, the business framework architecture related to business scenarios is realized, with stronger long-term maintenance and business management capabilities, and the development efficiency of the front-end business development process is improved.
Smart Images

Figure CN119536702A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a business framework architecture method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] With the development of computer technology and software technology, the requirements for front-end business development are getting higher and higher. Front-end development is the process of creating front-end interfaces such as WEB pages or APPs to present to users. Through HTML, CSS and JavaScript and various derived technologies, frameworks, and solutions, the user interface interaction of Internet products is realized. Most modern front-end business development requires the use of front-end rendering engines and related libraries (such as vue / react). For performance and engineering considerations, it is also necessary to use front-end specific construction tools. In order to unify the interactive experience, UI libraries (such as AntDesign / Element) will be introduced. The entire development and delivery process also involves knowledge such as Nodejs environment configuration, npm third-party library introduction, and tool chain use.
[0003] At present, for the development framework of front-end business development, scaffolding from the open source community can generally be selected. However, the scaffolding only serves the initialization stage of the entire life cycle of application development. Subsequent updates cannot effectively cover existing projects, and updates to basic libraries and tool chains are often the most time-consuming. These technical details cannot be shielded from business developers through scaffolding solutions, thereby reducing development efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a business framework architecture method, device, computer equipment, computer-readable storage medium and computer program product that can improve the development efficiency of the front-end business development process in response to the above technical problems.
[0005] In a first aspect, the present application provides a business framework architecture method, including:
[0006] Get the framework core setting information of the business scenario;
[0007] Based on the framework core, a core layer of the information architecture business framework is set, and a core library and a general tool chain of the business scenario are configured in the core layer;
[0008] The architecture is based on the upper business framework layer of the core layer, and the business components and business setting information of the business scenario are configured in the upper business framework layer;
[0009] A business framework of the business scenario is obtained based on the upper business framework layer.
[0010] In one of the embodiments, the core layer includes a core layer based on the Vue technology stack;
[0011] Configure the core library and general tool chain of the business scenario in the core layer:
[0012] Get the Vue ecosystem library configuration information and Vue tool chain configuration information of the Vue technology stack;
[0013] Based on the Vue ecological library configuration information and the Vue tool chain configuration information, the core library and the general tool chain of the business scenario are configured in the core layer of the Vue technology stack.
[0014] In one embodiment, the method further comprises:
[0015] Get directory loading constraint information;
[0016] Based on the directory loading constraint information, a loader mechanism is constructed in the core layer of the business framework.
[0017] In one embodiment, the architecture is based on the upper service framework layer of the core layer and includes:
[0018] Acquire software package information corresponding to the core layer;
[0019] An upper business framework layer based on the software package information architecture and based on the core layer.
[0020] In one of the embodiments, the service setting information includes page routing information, page implementation information, and console layout information.
[0021] In one embodiment, the method further comprises:
[0022] Obtaining domain expansion information corresponding to the business scenario;
[0023] Based on the domain expansion information, a business domain expansion framework layer based on the upper business framework layer is constructed.
[0024] In a second aspect, the present application also provides a business framework architecture device, including:
[0025] Information acquisition module, used to obtain the framework core setting information of the business scenario;
[0026] A core layer architecture module, used to set the core layer of the information architecture business framework based on the framework core, and configure the core library and general tool chain of the business scenario in the core layer;
[0027] A business framework layer architecture module, used to construct an upper business framework layer based on the core layer, and configure business components and business setting information of the business scenario in the upper business framework layer;
[0028] A framework acquisition module is used to acquire the business framework of the business scenario based on the upper business framework layer.
[0029] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0030] Get the framework core setting information of the business scenario;
[0031] Based on the framework core, a core layer of the information architecture business framework is set, and a core library and a general tool chain of the business scenario are configured in the core layer;
[0032] The architecture is based on the upper business framework layer of the core layer, and the business components and business setting information of the business scenario are configured in the upper business framework layer;
[0033] A business framework of the business scenario is obtained based on the upper business framework layer.
[0034] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0035] Get the framework core setting information of the business scenario;
[0036] Based on the framework core, a core layer of the information architecture business framework is set, and a core library and a general tool chain of the business scenario are configured in the core layer;
[0037] The architecture is based on the upper business framework layer of the core layer, and the business components and business setting information of the business scenario are configured in the upper business framework layer;
[0038] A business framework of the business scenario is obtained based on the upper business framework layer.
[0039] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0040] Get the framework core setting information of the business scenario;
[0041] Based on the framework core, a core layer of the information architecture business framework is set, and a core library and a general tool chain of the business scenario are configured in the core layer;
[0042] The architecture is based on the upper business framework layer of the core layer, and the business components and business setting information of the business scenario are configured in the upper business framework layer;
[0043] A business framework of the business scenario is obtained based on the upper business framework layer.
[0044] The above-mentioned business framework architecture method, device, computer equipment, computer-readable storage medium and computer program product, by obtaining the framework core setting information of the business scenario; constructing the core layer of the business framework based on the framework core setting information, and configuring the core library and general tool chain of the business scenario in the core layer; constructing the upper business framework layer based on the core layer, and configuring the business components and business setting information of the business scenario in the upper business framework layer; obtaining the business frame of the business scenario based on the upper business framework layer. The present application constructs the core layer of the business framework based on the framework core setting information of the business scenario, and implements the core library and general tool chain configuration of the business scenario in the core layer, and then constructs the upper business framework layer based on the core layer, completes the configuration of the business components and business setting information of the business scenario, and realizes the business framework architecture related to the business scenario through a layered design method, which has stronger long-term maintainability and business management and control capabilities. It is more suitable for the requirements of enterprise-level project development for efficiency and quality, thereby improving the development efficiency of the front-end business development process. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0046] FIG1 is an application environment diagram of a business framework architecture method in one embodiment;
[0047] FIG2 is a schematic diagram of a process flow of a business framework construction method in one embodiment;
[0048] FIG3 is a schematic diagram of a layered architecture of a service framework in one embodiment;
[0049] FIG4 is a block diagram of a service framework architecture device in one embodiment;
[0050] FIG. 5 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] The business framework architecture method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. When the user of the terminal 102 needs to implement the business framework architecture under the business scenario, the framework core setting information of the business scenario can be submitted to the server 104 through the terminal 102. Then the server 104 obtains the framework core setting information of the business scenario; the core layer of the business framework is constructed based on the framework core setting information, and the core library and general tool chain of the business scenario are configured in the core layer; the upper business framework layer based on the core layer is constructed, and the business components and business setting information of the business scenario are configured in the upper business framework layer; the business framework of the business scenario is obtained based on the upper business framework layer. Users can implement front-end development processing related to business scenarios based on the constructed business framework. Among them, the terminal 102 can be, but not limited to, various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. The portable wearable device may be a smart watch, a smart bracelet, a head-mounted device, etc. The head-mounted device may be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. The server 104 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0053] In an exemplary embodiment, as shown in FIG2 , a service framework architecture method is provided, and the method is applied to the server 104 in FIG1 as an example for description, including the following steps 201 to 207. Among them:
[0054] Step 201, obtaining the framework core setting information of the business scenario.
[0055] Step 203, setting the core layer of the information architecture business framework based on the framework core, and configuring the core library and general tool chain of the business scenario in the core layer.
[0056] Among them, business scenarios refer to specific business scenarios for front-end development, such as the business scenario of the public cloud product console, which means that the front-end development processing of products related to the public cloud product console needs to be completed. Framework core setting information refers to the relevant information for setting the core layer of the framework (core), including the selected ecological library and configuration, and the selected general tool chain.
[0057] Exemplarily, when a user wants to develop a relevant business framework under a specified business scenario, the terminal 102 can initiate a corresponding business framework architecture request to the server 104. The server 104 performs framework core settings based on the user request to perform architecture processing of the business framework. In the front-end development process, the front-end development generally has various requirements, such as ensuring the UI style and interaction design of various product consoles are unified, and ensuring the consistency of experience for customers is the minimum requirement; at the same time, engineering means are required for sustainable maintenance. Business developers should not pay too much attention to business-irrelevant matters such as underlying dependencies, tool chain ecology, and build configuration. There needs to be a front-end development framework to serve the upper-level business development; and for team architects, there is enough room for framework construction and technical support. The business framework needs to precipitate best practices and constrain the business to avoid repeated implementation of the same type of work. At the same time, the framework should have inheritable extensibility, and the core part is not strongly bound to a certain technology selection (such as UI library). It should be used as a "framework of frameworks", and based on the basic conventions of the core, the upper layer can inherit and implement the business framework of various different scenarios. To this end, this application provides an architectural method for an upper-level business framework to meet the requirements of user experience consistency, front-end development experience, and development efficiency improvement encountered in enterprise-level project development. The first thing that needs to be completed in framework development is the architecture of the core layer. For the core layer, it only does core technology selection and general tool chain configuration + loading and injection logic of the agreed directory. The application does not directly depend on it. Therefore, the core layer of the information architecture business framework can be set based on the framework core, and the core library and general tool chain of the business scenario can be configured at the core layer.
[0058] Step 205 , construct an upper business framework layer based on the core layer, and configure business components and business setting information of the business scenario in the upper business framework layer.
[0059] Step 207: Acquire a business framework of the business scenario based on the upper business framework layer.
[0060] Exemplarily, after the core layer architecture is completed, it is also necessary to build an upper business framework layer, which will depend on and inherit the core layer. The upper business framework layer is mainly responsible for integrating the injection of third-party libraries, tool chain configuration extension, precipitation of upper business components, precipitation of general business logic, etc. in the corresponding business scenarios, and each application directly depends on it. Therefore, when building the upper business framework layer, it is necessary to configure the business components and business setting information of the business scenario in the upper business framework layer, so as to realize the general functions such as injection of third-party libraries, expansion of tool chain configuration, precipitation of upper business components, and precipitation of general business logic through configuration. In addition, on the basis of the upper business framework layer, the expansion and subdivision of business scenarios can also be realized, and a higher-level framework of the upper business framework layer can be constructed to ensure the business execution effect. Business development has obtained a fully functional upper-level development framework, which provides out-of-the-box configuration for console scenarios; at the same time, the framework is based on the inheritance + extensible design method, which not only guarantees the demand for unified management and control, but also meets the flexibility of business expansion. This inheritance + extensible design is reflected in many aspects. In one embodiment, the specific business level architecture can be shown in Figure 3.
[0061] The above-mentioned business framework architecture method obtains the framework core setting information of the business scenario; constructs the core layer of the business framework based on the framework core setting information, and configures the core library and general tool chain of the business scenario in the core layer; constructs the upper business framework layer based on the core layer, and configures the business components and business setting information of the business scenario in the upper business framework layer; obtains the business framework of the business scenario based on the upper business framework layer. This application constructs the core layer of the business framework based on the framework core setting information of the business scenario, and implements the core library and general tool chain configuration of the business scenario in the core layer, and then constructs the upper business framework layer based on the core layer to complete the configuration of the business components and business setting information of the business scenario, and realizes the business framework architecture related to the business scenario through a layered design method, which has stronger long-term maintainability and business control capabilities. It is more suitable for the requirements of enterprise-level project development for efficiency and quality, thereby improving the development efficiency of the front-end business development process.
[0062] In one embodiment, the core layer includes a core layer based on the Vue technology stack. Configuring the core library and general tool chain of the business scenario in the core layer in step 203 includes: obtaining Vue ecological library configuration information and Vue tool chain configuration information of the Vue technology stack; based on the Vue ecological library configuration information and the Vue tool chain configuration information, configuring the core library and general tool chain of the business scenario in the core layer of the Vue technology stack.
[0063] Exemplarily, Vue is an open source JavaScript library for building user interfaces. Through its responsive system and componentized architecture, developers can efficiently build interactive web pages, and this application uses the Vue technology stack to implement the architecture of the core layer of the business framework. The core layer needs to include Vue ecological libraries such as vite, vue-router, and vue-i18n, and the library needs to be configured according to the Vue ecological library configuration information. Vite is a new front-end building tool that provides lightweight and fast module building capabilities based on native ES features. In addition, it is also necessary to complete the Vue tool chain, that is, to configure a general tool chain in the core layer of the Vue technology stack by obtaining the Vue tool chain configuration information. In this embodiment, the configuration of the core layer is completed through the Vue ecological library configuration information and the Vue tool chain configuration information, so that the application does not directly depend on it, thereby ensuring the domain boundary of the core layer.
[0064] Furthermore, the method also includes: obtaining directory loading constraint information; based on the directory loading constraint information, constructing a loader mechanism in the core layer of the business framework. Loader is a core component in Webpack, which is mainly used to convert different types of files into modules that can be recognized by Webpack. The function of the loader is to convert a source code string into another source code string, usually in the compilation process, after reading the file content and before the AST abstract syntax tree analysis. Loaders play a vital role in front-end development. They enable Webpack to process various types of files, including JavaScript, CSS, pictures, etc. By using different loaders, developers can easily integrate these resources into the project and use the powerful functions of Webpack for modularization, packaging and optimization. This not only improves development efficiency, but also makes the project structure clearer and easier to maintain and manage. In the solution of this application, it is also necessary to implement a loader mechanism in the core layer, which stipulates the directory loading constraints of the upper framework and business applications. Relying on this mechanism of automatic loading of the agreed directory, the upper framework can have built-in best practices in business scenarios, so that the actual business project can be used directly at runtime without additional configuration. In this embodiment, by implementing loader constraints at the core layer, the core layer business can be effectively managed and controlled, thereby ensuring development efficiency.
[0065] In one embodiment, constructing the upper business framework layer based on the core layer in step 205 includes: acquiring software package information corresponding to the core layer; and constructing the upper business framework layer based on the core layer based on the software package information.
[0066] Exemplarily, the software package is NPM (Node Package Manager), which is a package management and distribution tool installed with Node.js, mainly used for package management in JavaScript development. NPM is the official package manager of Node.js and has become the unofficial standard for publishing Node modules. It provides a wealth of functions, including installing, sharing, publishing JavaScript code and software packages, and managing the dependencies required for the project. In the scheme of this application, after the core layer architecture is completed, the core layer can be published as an NPM package, and the upper business framework depends on and inherits it. In addition, for the upper business framework layer, it can also be published as an NPM package after the architecture is completed, and the business developer only needs to perceive the framework as a dependency. The framework is delivered in source code and compiled and built together with the application code when the application is built. In a specific embodiment, the business framework architecture method of this application is implemented based on Vue and vite. The dev (development) of vite is fast enough to be built on demand, and there is a complete pre-build and cache mechanism, which will not have much impact on the local development build time experience; the production build runs on a high-performance server, and the speed difference can be ignored. The framework is delivered in the form of code through the software package, which makes it easier to debug the framework code and locate problems, and the third-party dependencies can be updated in real time instead of being locked in the built framework library (Lib). For some core dependencies, security updates or bug fixes will be followed up in a timely manner. In this embodiment, the core layer and the upper business framework layer are published through the software package information to ensure the effectiveness of the business framework.
[0067] In one embodiment, the business setting information includes page routing information, page implementation information, and console layout information. In a specific embodiment, the present application is specifically applied to the business scenario based on the public cloud product console. At this time, a large number of reusable components and business practices will be precipitated, and this information can be configured in the upper business framework layer. For example, the EfEditor.vue component is built in the src / components directory in the framework, which is a vue encapsulation of monaco-editor. In the past, almost every console project would encounter a scenario where editor components were used, and each would select and do a lot of introduction work; based on the upper framework, this vue component can be used globally directly in the business code. For example, 2. The page routing and implementation of 403 / 404 / 500 are built in the src / views directory in the framework, and the business can use it as needed according to the actual situation. Or the default layout of the console is built in the framework, and almost all console pages require top navigation and left menus. It is this global business element that needs to be abstracted, reused, and globally controlled.
[0068] In an exemplary embodiment, the method further includes: acquiring domain expansion information corresponding to the business scenario; and constructing a business domain expansion framework layer based on the upper business framework layer based on the domain expansion information.
[0069] Exemplarily, the layered business framework architecture solution of the present application also retains the expansion method of the upper-level framework in the upper-level business framework layer. The upper-level framework specifically needs to be expanded according to the business scenario to realize the abstract segmentation of the business field. When the user needs to build an architecture based on the upper-level business framework layer, the expansion direction can be provided through the field expansion information. Thus, based on the field expansion information, the architecture is based on the business field expansion framework layer of the upper-level business framework layer. In this way, there is no limit to the expansion of the framework, which depends on the abstraction of the business. In this embodiment, the business framework has inheritable extensibility, and the core part is not strongly bound to a certain technology selection (such as a UI library). It should be used as a "framework of the framework", and based on the basic conventions of the core, the upper layer can inherit the business framework that implements each different scenario, so that the business framework can be expanded through the field expansion information to ensure the availability of the business framework.
[0070] In a specific embodiment, the business framework architecture method of the present application includes: obtaining framework core setting information of the business scenario;
[0071] Set up the core layer of the information architecture business framework based on the framework core, and obtain the Vue ecosystem library configuration information and Vue tool chain configuration information of the Vue technology stack;
[0072] Based on the Vue ecosystem configuration information and Vue toolchain configuration information, configure the core library and general toolchain of the business scenario in the core layer of the Vue technology stack; obtain the directory loading constraint information; based on the directory loading constraint information, construct the loader mechanism in the core layer of the business framework. Obtain the software package information corresponding to the core layer; based on the software package information, construct the upper business framework layer based on the core layer, and configure the business components and business setting information of the business scenario in the upper business framework layer; obtain the business framework of the business scenario based on the upper business framework layer. Obtain the domain expansion information corresponding to the business scenario; based on the domain expansion information, construct the business domain expansion framework layer based on the upper business framework layer.
[0073] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0074] Based on the same inventive concept, the embodiment of the present application also provides a business framework architecture device for implementing the business framework architecture method involved above. The implementation solution for solving the problem provided by the device is similar to the implementation solution recorded in the above method, so the specific limitations in one or more business framework architecture device embodiments provided below can refer to the limitations of the business framework architecture method above, and will not be repeated here.
[0075] In an exemplary embodiment, as shown in FIG4 , a service framework architecture device is provided, including:
[0076] The information acquisition module 401 is used to acquire the framework core setting information of the business scenario.
[0077] The core layer architecture module 403 is used to set the core layer of the information architecture business framework based on the framework core, and configure the core library and general tool chain of the business scenario in the core layer.
[0078] The business framework layer architecture module 405 is used to construct an upper business framework layer based on the core layer, and configure business components and business setting information of the business scenario in the upper business framework layer.
[0079] The framework acquisition module 407 is used to acquire the business framework of the business scenario based on the upper business framework layer.
[0080] In one embodiment, the core layer includes a core layer based on the Vue technology stack; the core layer architecture module 403 is specifically used to: obtain the Vue ecological library configuration information and the Vue tool chain configuration information of the Vue technology stack; based on the Vue ecological library configuration information and the Vue tool chain configuration information, configure the core library and general tool chain of the business scenario in the core layer of the Vue technology stack.
[0081] In one embodiment, the core layer architecture module 403 is further used to: obtain directory loading constraint information; and construct a loader mechanism in the core layer of the business framework based on the directory loading constraint information.
[0082] In one embodiment, the business framework layer architecture module 405 is specifically used to: obtain software package information corresponding to the core layer; and construct an upper business framework layer based on the core layer based on the software package information.
[0083] In one embodiment, the service setting information includes page routing information, page implementation information, and console layout information.
[0084] In one embodiment, it also includes a domain expansion module, which is used to: obtain domain expansion information corresponding to the business scenario; and based on the domain expansion information, construct a business domain expansion framework layer based on the upper business framework layer.
[0085] Each module in the above-mentioned business framework architecture device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0086] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG5. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store business framework architecture data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a business framework architecture method is implemented.
[0087] Those skilled in the art will understand that the structure shown in FIG. 5 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0088] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0089] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0090] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.
[0091] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0092] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0093] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0094] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A business framework architecture method, characterized in that: The method comprises: Get the framework core setting information of the business scenario; Based on the framework core, a core layer of the information architecture business framework is set, and a core library and a general tool chain of the business scenario are configured in the core layer; The architecture is based on the upper business framework layer of the core layer, and the business components and business setting information of the business scenario are configured in the upper business framework layer; A business framework of the business scenario is obtained based on the upper business framework layer.
2. The method according to claim 1, characterized in that The core layer includes a core layer based on the Vue technology stack; The core library and general tool chain for configuring the business scenario at the core layer include: Get the Vue ecosystem library configuration information and Vue tool chain configuration information of the Vue technology stack; Based on the Vue ecological library configuration information and the Vue tool chain configuration information, the core library and the general tool chain of the business scenario are configured in the core layer of the Vue technology stack.
3. The method according to claim 1, characterized in that The method further comprises: Get directory loading constraint information; Based on the directory loading constraint information, a loader mechanism is constructed in the core layer of the business framework.
4. The method according to claim 1, characterized in that: The architecture is based on the upper business framework layer of the core layer and includes: Acquire software package information corresponding to the core layer; An upper business framework layer based on the software package information architecture and based on the core layer.
5. The method according to claim 1, characterized in that The business setting information includes page routing information, page implementation information and console layout information.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Obtaining domain expansion information corresponding to the business scenario; Based on the domain expansion information, a business domain expansion framework layer based on the upper business framework layer is constructed.
7. A business framework architecture device, characterized in that: The device comprises: Information acquisition module, used to obtain the framework core setting information of the business scenario; A core layer architecture module, used to set the core layer of the information architecture business framework based on the framework core, and configure the core library and general tool chain of the business scenario in the core layer; A business framework layer architecture module, used to construct an upper business framework layer based on the core layer, and configure business components and business setting information of the business scenario in the upper business framework layer; A framework acquisition module is used to acquire the business framework of the business scenario based on the upper business framework layer.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Business framework architecture method and apparatus, computer device, readable storage medium, and program product
WO2026118900A1