Application request processing method, device, system and medium

By establishing a connection relationship between the main branch business and the tenant branch business in cloud computing, the problem of application version management complexity in the multi-tenant model is solved, and the rapid processing of tenant business requests and the reduction of development, operation and maintenance workload is achieved.

CN114153488BActive Publication Date: 2024-12-24CCB FINTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111328729.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-10
Publication Date
2024-12-24
Estimated Expiration
2041-11-10

AI Technical Summary

Technical Problem

In the field of cloud computing technology, with the increase of tenant customized services, software suppliers need to manage multiple version branches, resulting in a significant increase in the complexity of application version management and an increase in development, operation and maintenance workload.

Method used

By obtaining the business request initiated in the tenant custom application function of the current tenant client, determining the business interface version information associated with the view component based on the tenant information, and calling the corresponding business interface to return the business data, establishing the main branch business and the tenant branch business. The connection relationship between the two realizes the rapid processing of tenant business requests.

Benefits of technology

It reduces the application development, operation and maintenance workload, improves the efficiency and accuracy of business request processing, and simplifies the version management and maintenance process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114153488B_ABST
    Figure CN114153488B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses an application request processing method, device, system and medium, which relates to the field of cloud computing technology. The method includes: obtaining the first business request initiated by the current view component in the tenant customized application function of the current tenant client; determining the current business interface version information associated with the current view component according to the current tenant information; calling the current business interface according to the current business interface version information to determine the current business data, and returning the current business data to the current tenant client; when the current view component belongs to the public view component, the current business interface belongs to the main branch business interface; when the current view component belongs to the tenant customized view component, the current business interface belongs to the tenant branch business interface. The embodiment of the present invention establishes a connection relationship between the main branch business and the tenant branch business in the multi-tenant mode, reducing the workload of application development and operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of cloud computing technology, and in particular to an application request processing method, device, system and medium. Background Art

[0002] In the field of cloud computing technology, ideally, software vendors only need to manage one trunk version. When software service providers receive tenant customization requirements, they usually directly create a separate branch for each tenant on the trunk version configuration library to manage application versions. However, with the increase in tenant customization services, vendors need to manage multiple version branches, which greatly increases the complexity of application version management. Summary of the invention

[0003] Embodiments of the present invention provide an application request processing method, device, system and medium to reduce the workload of development and operation of application versions in a multi-tenant mode.

[0004] In a first aspect, an embodiment of the present invention provides a method for processing an application request, the method comprising:

[0005] Obtain the first business request initiated by the current view component in the tenant customized application function of the current tenant client;

[0006] According to the current tenant information, determine the current business interface version information associated with the current view component;

[0007] According to the current service interface version information, calling the current service interface to determine the current service data, and returning the current service data to the current tenant client;

[0008] When the current view component belongs to a public view component, the current business interface belongs to a main branch business interface; when the current view component belongs to a tenant customized view component, the current business interface belongs to a tenant branch business interface.

[0009] In a second aspect, an embodiment of the present invention further provides an application request processing device, the device comprising:

[0010] A first business request acquisition module, used to acquire a first business request initiated by a current view component in a tenant customized application function of a current tenant client;

[0011] The business interface version information module is used to determine the current business interface version information associated with the current view component according to the current tenant information;

[0012] A business data returning module, configured to call the current business interface to determine the current business data according to the current business interface version information, and return the current business data to the current tenant client;

[0013] When the current view component belongs to a public view component, the current business interface belongs to a main branch business interface; when the current view component belongs to a tenant customized view component, the current business interface belongs to a tenant branch business interface.

[0014] In a third aspect, an embodiment of the present invention further provides an application request processing system, the system comprising:

[0015] one or more processors;

[0016] a storage device for storing one or more programs,

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the application request processing method as described in any embodiment of the present invention.

[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the application request processing method described in any embodiment of the present invention.

[0019] The embodiment of the present invention determines the current business interface version information associated with the current view component through the first business request initiated by the current tenant using the current view component and the current tenant information, and calls the current business interface to determine and return the current business data. According to the association relationship between the current view component and the current business interface, a connection relationship between the main branch business and the tenant branch business is established, thereby realizing rapid processing of tenant business requests and reducing the workload of application development and operation and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1a A flowchart of an application request processing method provided in Embodiment 1 of the present invention;

[0021] Figure 1b A schematic diagram of a tenant customized application function version control method provided in the first embodiment of the present invention;

[0022] Figure 1c A schematic diagram of the relationship between a main branch version and a tenant branch version provided in the first embodiment of the present invention;

[0023] Figure 2a A flowchart of an application request processing method provided in Embodiment 2 of the present invention;

[0024] Figure 2b A schematic diagram of an application request processing method provided in Embodiment 2 of the present invention;

[0025] Figure 3aA flowchart of an application request processing method provided in Embodiment 3 of the present invention;

[0026] Figure 3b A schematic diagram of the relationship between a main branch version and a tenant branch version provided in Embodiment 3 of the present invention;

[0027] Figure 4 A schematic diagram of the structure of an application request processing device provided in Embodiment 4 of the present invention;

[0028] Figure 5 A structural diagram of an application request processing system provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0029] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0030] Embodiment 1

[0031] Figure 1a This is a flowchart of an application request processing method provided in Embodiment 1 of the present invention. This embodiment is applicable to application request processing situations. The method can be executed by an application request processing device, which can be implemented in software. The device can be configured in a terminal device and / or a server. The method specifically includes:

[0032] S110: Obtain a first business request initiated by a current view component in a tenant customized application function of a current tenant client.

[0033] Among them, the current tenant client refers to the client used by the current tenant. The current tenant can be any tenant, and the client can be a terminal device such as a mobile phone and a computer. The current tenant client can include at least one of a tenant customized application function and a standard application function. The standard application function refers to the application function provided by the software supplier. The tenant customized application function refers to the application function that the tenant modifies and adjusts based on the standard application function provided by the software supplier according to its own needs. The tenant customized application function does not specifically refer to a specific function, and may include several types of functions customized by the tenant or a combination thereof. For example, human resource planning, performance, compensation, recruitment, etc. in human resource management can be divided according to the actual business categories of the tenants in actual business.

[0034] In this embodiment, Figure 1bA schematic diagram of a tenant customized application function version control method provided in the first embodiment of the present invention, taking a certain A1 function as an example, divides the business function architecture into a front-end view and a back-end business interface. The main branch implements the A1 main branch business interface, and accesses the A1 main branch business interface through the main branch A1 standard front-end view. In order to achieve front-end view reuse, the A1 standard front-end view is split into an A1 public view component and an A1 custom view component. The A1 public view component can be reused by all tenant branches A1. Tenants can implement customized functions through the A1 custom view component to form an A1 tenant custom view component, and call the A1 tenant branch business interface in the A1 tenant custom view component.

[0035] The current view component refers to the component that builds the view presented to the tenant client by the application function currently used by the tenant. It can be understood as Figure 1b The components in the tenant front-end view of tenant branch A1 are shown. Among them, the current view components can be divided into public view components and custom view components. Public view components refer to the default view components that do not support tenant customization, that is, view components that will not be adjusted according to tenant needs. Custom view components refer to view components that can be customized by tenants, that is, view components that can be adjusted and modified according to tenant needs.

[0036] The first business request refers to the business request sent by the tenant to the software vendor through the customized application function. Obtaining the first business request initiated by the current view component in the tenant customized application function of the current tenant client means that if the current tenant uses the tenant customized application function, the software vendor needs to obtain the first business request initiated by the tenant using the view component of the tenant customized application function of the client.

[0037] S120. Determine the current business interface version information associated with the current view component according to the current tenant information.

[0038] The current tenant information refers to information describing the application function used by the current tenant, and the tenant information can be packaged using the tenant information packaging module. Optionally, the current tenant information includes at least one of the following: the tenant customized application function customized by the current tenant, the main branch business interface of the tenant customized application function, the tenant branch business interface, the main branch business interface version information, or the tenant branch business interface version information.

[0039] The main branch business interface of the tenant customized application function refers to the business interface corresponding to the application function corresponding to the public view component in the tenant customized application function. The tenant branch business interface refers to the business interface corresponding to the application function corresponding to the custom view component in the tenant customized application function. The main branch business interface version information refers to the version information corresponding to the main branch business interface, and the main branch business interface can be accessed through the view component of the standard application function and the public view component in the view component of the tenant customized application function. The main branch business refers to the standard application function business provided by the software vendor. The tenant branch business interface version information refers to the version information corresponding to the tenant branch business interface, and the tenant branch business interface can be accessed through the custom view component in the view component corresponding to the tenant customized business function. The tenant branch business refers to the application function business used by the tenant.

[0040] In this embodiment, Figure 1c A schematic diagram of the relationship between the main branch version and the tenant branch version provided in the first embodiment of the present invention. Figure 1c As shown in the figure, the main branch version m2 is an upgrade and update of the main branch version m2, and so on to obtain the main branch versions m3, m4, m5... Figure 1b The front-end view splitting method shown in the figure establishes a tenant branch version based on the main branch version. After the tenant customized application function is developed or reused, the tenant branch is merged into the main branch for management, thereby realizing the connection between the tenant branch and the main branch. Exemplarily, the tenant branch version n1 is generated after the tenant customized application function is developed or reused based on the main branch version m1; the tenant branch version n2 is generated after the tenant customized application function is developed or reused based on the main version m3; the tenant branch version n3 is another version generated after the tenant customized application function is developed or reused based on the main version m3.

[0041] Determining the current business interface version information associated with the current view component based on the current tenant information means that, if the current view component is a public view component, the main-branch business interface version information in the current tenant information is the version information of the business interface associated with the current view component; if the current view component is a custom view component, the main-branch business interface version information associated with the tenant branch business interface can be obtained through the tenant branch business interface version information, and used as the version information of the business interface associated with the current view component.

[0042] S130. According to the current service interface version information, call the current service interface to determine current service data, and return the current service data to the current tenant client.

[0043] Among them, when the current view component belongs to a public view component, the current business interface belongs to the main branch business interface; when the current view component belongs to a tenant custom view component, the current business interface belongs to the tenant branch business interface. The current business interface version information refers to the version information of the business interface corresponding to the current view component used when the current tenant initiates a business request. The current business data refers to the data required by the business request initiated by the current tenant. Calling the current business interface to determine the current business data according to the current business interface version information, and returning the current business data to the current tenant client means that the current business interface required for the business request initiated by the current tenant can be determined according to the current business interface version information, the current business data required for the first business request can be obtained through the current business interface, and the current business data is returned to the current tenant client.

[0044] The technical solution of this embodiment determines the current business interface version information associated with the current view component through the first business request initiated by the current tenant using the current view component and the tenant information, and calls the current business interface to determine and return the current business data. According to the association between the current view component and the current business interface, a connection relationship between the main branch business and the tenant branch business is established, thereby realizing rapid processing of tenant business requests and reducing the workload of application development and operation.

[0045] Based on the above technical solution, optionally, before obtaining the first business request initiated by the current view component of the tenant customized application function in the current tenant client, the method further includes:

[0046] Based on the current tenant information, determine the public view component and tenant customized view component of the tenant customized application function, and obtain the tenant front-end view of the current tenant branch;

[0047] Send the tenant front-end view of the current tenant branch to the current tenant client.

[0048] Among them, the tenant customized view component refers to the view component of the application function customized by the tenant according to his own needs. The tenant front-end view of the current tenant branch refers to the view presented on the tenant client by the view components of all application functions in the application version used by the current tenant. The tenant front-end view of the current tenant branch includes the public view component and the custom view component of the tenant customized application function. Based on the current tenant information, the public view component and the tenant customized view component of the tenant customized application function are determined, and the tenant front-end view of the current tenant branch is obtained, which means that the current tenant information contains the tenant customized application function customized by the current tenant, and the public view component and the tenant customized view component of the tenant customized application function can be determined through the tenant customized application function, and the public view component and the custom view component are combined into the tenant front-end view of the current tenant branch.

[0049] Among them, sending the tenant front-end view of the current tenant branch to the current tenant client means that the tenant front-end view of the current tenant branch needs to be displayed on the current tenant's client, and the tenant front-end view of the current tenant branch can be sent to the tenant client through the tenant view management module.

[0050] By sending the tenant front-end view of the current tenant branch to the tenant client, it is easier for tenants to use and understand application functions, and customize application functions according to their own needs.

[0051] Based on the above technical solution, optionally, the application request processing method further includes:

[0052] Obtain the second service request initiated by the standard application function in the current tenant client;

[0053] The main branch service interface is called to determine standard service data, and the standard service data is returned to the current tenant client.

[0054] Among them, obtaining the second business request initiated by the standard application function in the current tenant client means that if the current tenant uses the standard application function provided by the software supplier, the software supplier obtains the second business request initiated by the current tenant through the view component of the standard application function. Calling the main branch business interface to determine the standard business data and returning the standard business data to the current tenant client means that the view component of the standard application function is associated with the main branch business interface, and the standard business data required for the second business request is determined and returned through the main branch business interface.

[0055] When a tenant uses a standard application function to initiate a business request, the main branch business interface is directly called to determine and return standard business data, which simplifies the business request processing time, establishes the connection between the main branch business and the tenant branch business, and reduces the application development and operation workload.

[0056] Embodiment 2

[0057] Figure 2a A flowchart of an application request processing method provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment optionally calls the current service interface to determine the current service data according to the current service interface version information, including:

[0058] Adding the current service interface version information to the first service request through the routing control module to obtain a new service request, and sending the new service request to the current service interface version control module;

[0059] The current service interface version control module calls the current service interface to determine the current service data according to the current service interface version information in the new service request.

[0060] The specific method is as follows:

[0061] S210: Obtain a first business request initiated by a current view component in a tenant customized application function of a current tenant client.

[0062] S220. Determine the current business interface version information associated with the current view component according to the current tenant information.

[0063] S230. Add the current service interface version information to the first service request through the routing control module to obtain a new service request, and send the new service request to the current service interface version control module.

[0064] Among them, the routing control module is used to determine that the application function that initiates the first business request is a tenant customized application function, determine the current business interface version information according to the public view component and the custom view component of the tenant customized application function, and add the current business interface version information to the first business request to obtain a new business request. The current business interface version control module is used to determine the interface return information format requirements according to the interface version number in the new business request sent by the routing control module, and call the specified business interface. The current business interface version control module can be divided into a business interface version control module and a tenant customized business interface version control module. Adding the current business interface version information to the first business request through the routing control module to obtain a new business request, and sending a new business request to the current business interface version control module means that the routing control module sends the processed new business request to the current business interface version module.

[0065] S240: Call the current service interface to determine current service data according to the current service interface version information in the new service request through the current service interface version control module.

[0066] Among them, calling the current business interface to determine the current business data according to the current business interface version information in the new business request through the current business interface version control module means that the current business interface version control module can obtain the current business interface version information from the new business request, and obtain the current business data required for the first business request by investigating the current business interface.

[0067] S250: Return the current business data to the current tenant client.

[0068] The technical solution of this embodiment associates the service version information with the current service data through the routing control module and the current service interface version control module, thereby ensuring the accuracy of obtaining and returning the current service data and reducing the workload of application development and operation.

[0069] Exemplarily, the working principle of the application request processing method is as follows:

[0070] Figure 2b A schematic diagram of an application request processing method provided in Embodiment 2 of the present invention. Figure 2b As shown, the tenant view management module sends tenant customized application functions and standard application functions to the client, and the tenant customized application functions and standard application functions include tenant front-end views and components and standard front-end views and components, respectively. The client accesses the gateway application interface, namely the gateway API (Application Programming Interface), through the front-end view component. In the gateway, access rights are controlled through authentication and authorization, and the tenant information is packaged through the tenant information packaging module. Then, the business interface proxy is implemented through the routing control module, and the business request is forwarded to the business application interface, namely the business API interface. In business applications, an optional way is to split the business interface by version through local components, and the tenant customized business interface version accesses the main business interface version through remote calls or inheritance. Different tenants can access different main business interface versions, and the customized development of a tenant will not affect the standard business and other tenant businesses.

[0071] Based on the above embodiments, optionally, before the routing control module adds the current service interface version information to the first service request to obtain a new service request, the method further includes:

[0072] Obtaining a packaging result of the current tenant information from a tenant information packaging module; wherein the packaging result of the current tenant information is obtained by packaging the current tenant information;

[0073] The current service interface version information is determined according to the tenant information encapsulation result.

[0074] In this embodiment, the tenant information packaging module can package the tenant information in the gateway or the corresponding view component through the actual deployment environment, and provide it to the routing control module and the tenant client for use, and optionally encapsulate the information into a Base64 string, JSON or binary stream, which can be selected based on the architecture requirements. Obtaining the encapsulation result of the current tenant information from the tenant information packaging module means obtaining the result obtained after the tenant information packaging module encapsulates the current tenant information according to the actual environment. Determining the current business interface version information based on the tenant information encapsulation result means that the current business interface version information can still be obtained after the tenant information is encapsulated.

[0075] By packaging tenant information, it is easier for the routing control module and tenant clients to process and use it, and it is easier for application development and operation and maintenance.

[0076] Embodiment 3

[0077] Figure 3a A flowchart of an application request processing method provided in Embodiment 3 of the present invention. Based on the above embodiments, this embodiment optionally calls the current service interface to determine the current service data according to the current service interface version information in the new service request through the current service interface version control module, including:

[0078] Determine the current service data attribute according to the current service interface version information in the new service request through the current service interface version control module;

[0079] The current service interface is called according to the current service interface version information to obtain initial service data, and the initial service data is processed according to the current service data attributes to obtain current service data.

[0080] The specific method is as follows:

[0081] S310: Obtain a first business request initiated by a current view component in a tenant customized application function of a current tenant client.

[0082] S320. Determine the current business interface version information associated with the current view component according to the current tenant information.

[0083] S330. Add the current service interface version information to the first service request through the routing control module to obtain a new service request, and send the new service request to the current service interface version control module.

[0084] S340, determining the current service data attribute according to the current service interface version information in the new service request through the current service interface version control module;

[0085] Among them, the current business data attribute refers to the business data information format requirement returned by the business interface determined according to the business request initiated by the tenant client. The current business interface version control module determines the current business data attribute according to the current business interface version information in the new business request, which means that different business interface versions correspond to different business data attributes. The current business interface version information can be obtained according to the new business request received by the current business interface version control module, thereby determining the current business data attribute.

[0086] S350: Call the current service interface according to the current service interface version information to obtain initial service data, and process the initial service data according to the current service data attributes to obtain current service data.

[0087] The initial business data refers to the original business data provided by the software supplier according to the initiated business request. The current business interface is called according to the current business interface version information to obtain the initial business data, and the initial business data is processed according to the current business data attributes to obtain the current business data, which means that the business data returned to the tenant client should be the business data processed according to the tenant's requirements. The current business interface obtains the initial business data, and the current business data finally returned to the tenant client is obtained after the initial business data is processed according to the business data attributes corresponding to the current business interface version information.

[0088] S360: Return the current business data to the current tenant client.

[0089] The relationship between the initial business data in the main branch business and the current business data in the tenant branch business is established through the current business interface version information, ensuring the accuracy of the business data sent to the tenant client.

[0090] Based on the above embodiments, optionally, when the current view component belongs to a public view component, the current business interface version information is the current main branch business interface version information, and the current business interface version control module is the main business interface version control module;

[0091] The calling the current service interface according to the current service interface version information to obtain the initial service data includes:

[0092] Through the main business interface version control module, the first main branch business interface associated with the current main branch business interface version information is used as the current business interface, and the first main branch business interface is called to obtain initial business data.

[0093] Among them, the main business interface version control module is used to determine the information format requirements returned by the main branch business interface according to the interface version number of the new business request sent by the routing control module, and call the main branch business interface of the specified version. Through the main business interface version control module, the first main branch business interface associated with the current main branch business interface version information is used as the current business interface, and the first main branch business interface is called to obtain the initial business data. It means that when the current view component belongs to the public view component, the current business interface version control module is the main business interface version control module, the interface version number of the new business request sent by the routing control module is the main branch business interface version information, and the first main branch business interface associated with this main branch business interface version information is the current business interface, and the initial business data can be obtained through the current business interface.

[0094] The main business interface version control module manages the main branch business interface and version number to ensure the accuracy of business data acquisition.

[0095] On the basis of the above embodiments, optionally, when the current view component belongs to a tenant customized view component, the current business interface version information is the current tenant branch business interface version information, and the current business interface version control module is a tenant customized business interface version control module;

[0096] The calling the current service interface according to the current service interface version information to obtain the initial service data includes:

[0097] Obtain the current tenant branch business interface associated with the current tenant branch business interface version information and the second main branch business interface associated with the current tenant branch business interface through the tenant customized business interface version control module, and use the current tenant branch business interface and the second main branch business interface as the current business interface;

[0098] Calling the second main branch service interface to obtain second service data;

[0099] The current tenant branch service interface is called to obtain initial service data according to the second service data.

[0100] Among them, the tenant customized business interface version control module is used to determine the tenant branch business interface return information format requirements according to the interface version number in the new business request sent by the routing control module, and call the specified version of the tenant business interface. The current tenant branch business interface refers to the tenant branch business interface associated with the tenant customized view component in the tenant customized application function. The second main branch business interface refers to the main branch business interface associated with the public component in the tenant customized application function. Through the tenant customized business interface version control module, the current tenant branch business interface associated with the current tenant branch business interface version information and the second main branch business interface associated with the current tenant branch business interface are obtained, and the current tenant branch business interface and the second main branch business interface are used as the current business interface, which means that the current tenant branch business interface and the second main branch business interface obtained by the tenant customized business interface version control module are used as the current business interface. Calling the second main branch business interface to obtain the second business data means obtaining the corresponding second business data according to the second main branch business interface associated with the public view component. Calling the current tenant branch business interface and obtaining initial business data according to the second business data means processing the obtained second business data through the business data attributes corresponding to the current tenant branch business interface to obtain the initial business data obtained by the tenant customized business interface version control module.

[0101] The tenant customized business interface control module associates the main branch business interface with the tenant branch business interface, establishes the connection between the main branch business and the tenant branch business, and reduces the workload of application development and operation and maintenance.

[0102] Based on the above embodiments, optionally, calling the current tenant branch service interface to obtain initial service data according to the second service data includes:

[0103] Calling the current tenant branch service interface to obtain third service data;

[0104] The second service data and the third service data are processed to obtain the initial service data.

[0105] Among them, calling the current tenant branch service interface to obtain the third service data means obtaining the third service data corresponding to the current user branch service interface. Processing the second service data and the third service data to obtain the initial service data means processing the second service data and the third service data through the service data attributes of the current tenant branch service interface to obtain the initial service data.

[0106] Based on the above embodiments, optionally, the current tenant branch service interface remotely calls or inherits the second main branch service interface.

[0107] Among them, the current tenant branch business interface remotely calls or inherits the second main branch business interface, which means that the current tenant branch business interface can remotely control the functions of the second main branch business interface or directly have the functions of the second main branch business interface.

[0108] Based on the above embodiments, optionally, the main business interface version control module is further used to record the version change relationship between at least two main branch business interfaces.

[0109] Among them, the version change relationship refers to the process in which the software vendor updates or develops the main branch business version. Figure 3b A schematic diagram of the relationship between the main branch version and the tenant branch version provided in the third embodiment of the present invention. Figure 3b As shown, according to the business interface reuse and inheritance method, it is necessary to establish a separate tenant main branch, which is directly associated with the version number of the main version main branch through the version number. The tenant main branch is used to manage tenant functions, and the tenant main branch version is updated and repaired through the tenant development branch. After the development is completed, it is merged into the tenant main branch. The main version main branch corresponds to the standard application function, and the main branch version is updated and repaired through the main version development branch. The main business interface version control module is also used to record the version change relationship between at least two main branch business interfaces, which means that the main business interface version control module at least records the version change relationship between the main version main branch and the tenant main branch.

[0110] By recording the version change relationship between at least two main branch business interfaces, tenants can switch to different versions according to their needs, which increases the service life of the version. At the same time, the tenant branch business is formed based on the main branch business, and the version change relationship between the main branch business interfaces is recorded. At the same time, the connection relationship between the tenant branch business and the main branch business is also established, which reduces the workload of application development and operation.

[0111] Embodiment 4

[0112] Figure 4 A structural diagram of an application request processing device provided for Embodiment 4 of the present invention, the device can execute the application request processing method provided in the above embodiments, and the device may include: a first service request acquisition module 401, a service interface version information module 402 and a service data return module 403.

[0113] The first business request acquisition module 401 is used to acquire the first business request initiated by the current view component in the tenant customized application function of the current tenant client;

[0114] The business interface version information module 402 is used to determine the current business interface version information associated with the current view component according to the current tenant information;

[0115] The business data returning module 403 is used to call the current business interface to determine the current business data according to the current business interface version information, and return the current business data to the current tenant client;

[0116] When the current view component belongs to a public view component, the current business interface belongs to a main branch business interface; when the current view component belongs to a tenant customized view component, the current business interface belongs to a tenant branch business interface.

[0117] The technical solution of this embodiment, through the business interface version information module and the business data return module, realizes the accurate return of current business data to the tenant client based on the current tenant information and the current business interface version information, and establishes a connection relationship between the main branch business and the tenant branch business based on the association relationship between the current view component and the current business interface, thereby realizing the rapid processing of tenant business requests and reducing the workload of application development and operation and maintenance.

[0118] In the above device, optionally, the service data returning module 403 includes:

[0119] A new service request sending submodule, configured to add the current service interface version information to the first service request through the routing control module to obtain a new service request, and send the new service request to the current service interface version control module;

[0120] The service data determination submodule is used to call the current service interface to determine the current service data according to the current service interface version information in the new service request through the current service interface version control module.

[0121] In the above device, optionally, the business data determination submodule includes:

[0122] A service data attribute unit, configured to determine the current service data attribute according to the current service interface version information in the new service request through the current service interface version control module;

[0123] The business data processing unit is used to call the current business interface according to the current business interface version information to obtain initial business data, and process the initial business data according to the current business data attributes to obtain current business data.

[0124] In the above device, optionally, when the current view component belongs to a public view component, the current service interface version information is the current main branch service interface version information, and the current service interface version control module is the main service interface version control module;

[0125] Business data processing unit, including:

[0126] The first initial business data acquisition subunit is used to use the first main-branch business interface associated with the current main-branch business interface version information as the current business interface through the main business interface version control module, and call the first main-branch business interface to obtain initial business data.

[0127] In the above device, optionally, when the current view component belongs to a tenant customized view component, the current business interface version information is the current tenant branch business interface version information, and the current business interface version control module is a tenant customized business interface version control module;

[0128] Business data processing unit, including:

[0129] The business interface determination subunit is used to obtain the current tenant branch business interface associated with the current tenant branch business interface version information and the second main branch business interface associated with the current tenant branch business interface through the tenant customized business interface version control module, and use the current tenant branch business interface and the second main branch business interface as the current business interface;

[0130] A second service data acquisition subunit, used for calling a second main branch service interface to acquire second service data;

[0131] The second initial service data acquisition subunit is used to call the current tenant branch service interface and obtain initial service data according to the second service data.

[0132] In the above device, optionally, the initial service data acquisition subunit includes:

[0133] Calling the current tenant branch service interface to obtain third service data;

[0134] The second service data and the third service data are processed to obtain the initial service data.

[0135] In the above device, optionally, the current tenant branch service interface remotely calls or inherits the second main branch service interface.

[0136] In the above device, optionally, the main business interface version control module is also used to record the version change relationship between at least two main branch business interfaces.

[0137] In the above device, optionally, the service data returning module 403 further includes:

[0138] The encapsulation result acquisition submodule is used to obtain the encapsulation result of the current tenant information from the tenant information packaging module; wherein the encapsulation result of the current tenant information is obtained by encapsulating the current tenant information;

[0139] The service interface version information determination submodule is used to determine the current service interface version information according to the tenant information encapsulation result.

[0140] In the above device, optionally, the application request processing device further includes:

[0141] The front-end view acquisition module is used to determine the public view components and tenant customized view custom components of the tenant customized application function based on the current tenant information, and obtain the tenant front-end view of the current tenant branch;

[0142] The tenant view management module is used to send the tenant front-end view of the current tenant branch to the current tenant client.

[0143] In the above device, optionally, the current tenant information includes at least one of the following: a tenant customized application function customized by the current tenant, a main-branch business interface of the tenant customized application function, a tenant branch business interface, a main-branch business interface version information or a tenant branch business interface version information.

[0144] In the above device, optionally, the application request processing device further includes:

[0145] A second service request acquisition module, used to acquire a second service request initiated by a standard application function in the current tenant client;

[0146] The standard business data return module is used to call the main branch business interface to determine the standard business data and return the standard business data to the current tenant client.

[0147] The device provided in this embodiment constructs a module that can implement each step in the application request processing device. The connection between the main branch business and the tenant branch business is established using the routing control module and the current business interface version control module. The main business interface version control module also records the version change relationship between at least two main branch business interfaces, which is convenient for tenants to switch versions according to their own needs, reducing the workload of application development and operation.

[0148] Embodiment 5

[0149] Figure 5 A schematic diagram of the structure of an application request processing system provided in Embodiment 5 of the present invention is shown in FIG5 . The application request processing system includes a processor 50, a memory 51, an input device 52, and an output device 53. The number of processors 50 in the application request processing system may be one or more. Figure 5 A processor 50 is taken as an example; the processor 50, the memory 51, the input device 52 and the output device 53 in the application request processing system can be connected by a bus or other means, Figure 5 The example of connecting through bus is taken in the following.

[0150] The memory 51, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions and / or modules corresponding to the application request processing method in the embodiment of the present invention (for example, the first service request acquisition module 401, the service interface version information module 402 and the service data return module 403). The processor 50 executes various functional applications and data processing of the application request processing system by running the software programs, instructions and modules stored in the memory 51, that is, implements the above-mentioned application request processing method.

[0151] The memory 51 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 51 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 51 may further include a memory remotely arranged relative to the processor 50, and these remote memories may be connected to the device / terminal / server via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0152] The input device 52 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the application request processing system. The output device 53 may include display devices such as a display screen.

[0153] Embodiment 6

[0154] Embodiment 6 of the present invention further provides a computer-readable storage medium containing computer-executable instructions, wherein the computer-executable instructions are used to execute an application request processing method when executed by a computer processor, the method comprising:

[0155] Obtain the first business request initiated by the current view component in the tenant customized application function of the current tenant client;

[0156] According to the current tenant information, determine the current business interface version information associated with the current view component;

[0157] According to the current service interface version information, calling the current service interface to determine the current service data, and returning the current service data to the current tenant client;

[0158] When the current view component belongs to a public view component, the current business interface belongs to a main branch business interface; when the current view component belongs to a tenant customized view component, the current business interface belongs to a tenant branch business interface.

[0159] Of course, the computer executable instructions of the storage medium provided by the embodiment of the present invention are not limited to the method operations described above, but can also perform related operations in the application request processing method provided by any embodiment of the present invention.

[0160] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

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

[0162] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for processing an application request, characterized in that: The method comprises: Obtain the first business request initiated by the current view component in the tenant customized application function of the current tenant client; According to the current tenant information, determine the current business interface version information associated with the current view component; Adding the current service interface version information to the first service request through the routing control module to obtain a new service request, and sending the new service request to the current service interface version control module; Determine the current service data attribute according to the current service interface version information in the new service request through the current service interface version control module; Call the current business interface according to the current business interface version information to obtain initial business data, process the initial business data according to the current business data attributes to obtain current business data, and return the current business data to the current tenant client; wherein, the relationship between the initial business data in the main branch business and the current business data in the tenant branch business is established through the current business interface version information; When the current view component belongs to a public view component, the current business interface belongs to a main branch business interface; when the current view component belongs to a tenant customized view component, the current business interface belongs to a tenant branch business interface; Wherein, in the case where the current view component belongs to a tenant customized view component, the current business interface version information is the current tenant branch business interface version information, and the current business interface version control module is a tenant customized business interface version control module; The calling the current service interface according to the current service interface version information to obtain the initial service data includes: Through the tenant customized business interface version control module, the current tenant branch business interface associated with the current tenant branch business interface version information and the second main branch business interface associated with the current tenant branch business interface are obtained, and the current tenant branch business interface and the second main branch business interface are used as the current business interface; wherein the tenant customized business interface version control module is used to determine the return information format requirement of the tenant branch business interface according to the interface version number in the new business request sent by the routing control module, and call the specified version tenant business interface; the current tenant branch business interface is the tenant branch business interface associated with the tenant customized view component in the tenant customized application function; the second main branch business interface is the main branch business interface associated with the public component in the tenant customized application function; Calling the second main branch service interface to obtain second service data; The current tenant branch service interface is called to obtain the initial service data according to the second service data.

2. The method according to claim 1, characterized in that In the case where the current view component belongs to a public view component, the current business interface version information is the current main branch business interface version information, and the current business interface version control module is the main business interface version control module; The calling the current service interface according to the current service interface version information to obtain the initial service data includes: Through the main business interface version control module, the first main branch business interface associated with the current main branch business interface version information is used as the current business interface, and the first main branch business interface is called to obtain the initial business data.

3. The method according to claim 1, characterized in that The calling the current tenant branch service interface to obtain the initial service data according to the second service data includes: Calling the current tenant branch service interface to obtain third service data; The second service data and the third service data are processed to obtain the initial service data.

4. The method according to claim 1, characterized in that: The current tenant branch service interface remotely calls or inherits the second main branch service interface.

5. The method according to claim 2, characterized in that: The main business interface version control module is also used to record the version change relationship between at least two main branch business interfaces.

6. The method according to claim 1, characterized in that Before the current service interface version information is added to the first service request to obtain a new service request through the routing control module, the method further includes: Obtaining a packaging result of the current tenant information from a tenant information packaging module; wherein the packaging result of the current tenant information is obtained by packaging the current tenant information; The current service interface version information is determined according to the tenant information encapsulation result.

7. The method according to claim 1, characterized in that Before obtaining the first service request initiated by the current view component in the tenant customized application function of the current tenant client, the method further includes: Based on the current tenant information, determine the public view component and the tenant customized view component of the tenant customized application function, and obtain the tenant front-end view of the current tenant branch; The tenant front-end view of the current tenant branch is issued to the current tenant client.

8. The method according to claim 1, 6 or 7, characterized in that: The current tenant information includes at least one of the following: a tenant customized application function customized by the current tenant, a main-branch business interface of the tenant customized application function, a tenant branch business interface, main-branch business interface version information, or tenant branch business interface version information.

9. The method according to claim 1, characterized in that: Also includes: Obtaining a second service request initiated by a standard application function in the current tenant client; The main-branch service interface is called to determine standard service data, and the standard service data is returned to the current tenant client.

10. An application request processing device, characterized in that: include: A first business request acquisition module, used to acquire a first business request initiated by a current view component in a tenant customized application function of a current tenant client; The business interface version information module is used to determine the current business interface version information associated with the current view component according to the current tenant information; The business data return module includes: a new business request sending submodule and a business data determination submodule; The new service request sending submodule is used to add the current service interface version information to the first service request through the routing control module to obtain a new service request, and send the new service request to the current service interface version control module; The business data determination submodule includes: a business data attribute unit and a business data processing unit; The service data attribute unit is used to determine the current service data attribute according to the current service interface version information in the new service request through the current service interface version control module; The business data processing unit is used to call the current business interface according to the current business interface version information to obtain initial business data, and process the initial business data according to the current business data attributes to obtain current business data, and return the current business data to the current tenant client; wherein the relationship between the initial business data in the main branch business and the current business data in the tenant branch business is established through the current business interface version information; When the current view component belongs to a public view component, the current business interface belongs to a main branch business interface; when the current view component belongs to a tenant customized view component, the current business interface belongs to a tenant branch business interface; Wherein, in the case where the current view component belongs to a tenant customized view component, the current business interface version information is the current tenant branch business interface version information, and the current business interface version control module is a tenant customized business interface version control module; The business data processing unit includes: a business interface determination subunit, a second business data acquisition subunit and a second initial business data acquisition subunit; The business interface determination subunit is used to obtain the current tenant branch business interface associated with the current tenant branch business interface version information and the second main branch business interface associated with the current tenant branch business interface through the tenant customized business interface version control module, and use the current tenant branch business interface and the second main branch business interface as the current business interface; wherein the tenant customized business interface version control module is used to determine the return information format requirement of the tenant branch business interface according to the interface version number in the new business request sent by the routing control module, and call the specified version tenant business interface; the current tenant branch business interface is the tenant branch business interface associated with the tenant customized view component in the tenant customized application function; the second main branch business interface is the main branch business interface associated with the public component in the tenant customized application function; The second service data acquisition subunit is used to call the second main branch service interface to acquire the second service data; The second initial service data acquisition subunit is used to call the current tenant branch service interface to obtain the initial service data according to the second service data.

11. An application request processing system, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the application request processing method as described in any one of claims 1-9.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the application request processing method as described in any one of claims 1 to 9 is implemented.