Resource access method, apparatus, device, storage medium, and product
Patent Information
- Application Number
- CN202210294727.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-23
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2042-03-23
AI Technical Summary
[0004]相关技术中,跨组件接口访问数据的复杂度高
通过显示应用页面能够及时响应针对第一应用组件的操作指令,并向服务器发送相应的第一组件标识以及操作方法标识,服务器获取到的策略路由信息能够表征应用组件与数据服务接口之间的路由关系,因此服务器根据上述策略路由信息以及接收到的第一组件标识以及操作方法标识,可以确定与第一应用组件相关联的第二应用组件以及本次操作对应的至少一个数据服务接口,在上述至少一个数据服务接口包括第二应用组件对应的数据服务接口的情况下,可以跨接口获取第二应用组件对应的数据服务接口返回的资源信息,并生成响应信息发送给终端,通过上述策略路由信息即可实现访问关联应用组件对应的接口资源数据,降低了跨组件接口访问数据的复杂度,提升了跨组件接口访问数据的效率。
Smart Images

Figure CN116842554B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a resource access method, apparatus, device, storage medium, and product. Background Technology
[0002] A Low-Code Development Platform (LCDP) is a development platform that allows for the rapid generation of applications with little or no coding. Developers can create application pages by dragging and dropping components in the graphical user interface provided by the LCDP.
[0003] In related technologies, the components in the aforementioned graphical user interface are front-end page components. If developers want to implement some page functions involving interaction between the front-end and the back-end, they need to configure new component interfaces or perform secondary development such as data adaptation and interface logic development between front-end components and different back-end component interfaces.
[0004] In related technologies, accessing data across component interfaces is highly complex. Summary of the Invention
[0005] This application provides a resource access method, apparatus, device, storage medium, and product that can reduce the complexity of cross-component interface data access and improve the efficiency of cross-component interface data access.
[0006] According to one aspect of the embodiments of this application, a resource access method is provided, the method comprising: Display the first application page corresponding to the first application; In response to an operation instruction for a first application component associated with the first application page, a resource request information is sent to the server. The resource request information includes a first component identifier and an operation method identifier corresponding to the operation instruction. The first component identifier refers to the component identifier corresponding to the first application component. Receive resource response information sent by the server; The resource response information includes resource information returned by the data service interface corresponding to the second application component. The second application component is an application component associated with the first application component. The data service interface corresponding to the second application component is a data service interface among at least one data service interface corresponding to the operation method identifier. The second application component and the at least one data service interface are determined based on the first component identifier, the operation method identifier, and the policy routing information obtained by the server. The policy routing information is used to characterize the routing relationship between at least two application components and the data service interfaces corresponding to the at least two application components. The at least two application components include the first application component and the second application component.
[0007] According to one aspect of the embodiments of this application, a resource access method is provided, the method comprising: Obtain policy routing information, which is used to characterize the routing relationship between at least two application components and the data service interfaces corresponding to the at least two application components, wherein the at least two application components include a first application component and a second application component associated with the first application component; The terminal receives resource request information; wherein the resource request information is information sent by the terminal in response to an operation instruction for the first application component, the first application component is an application component associated with the first application page corresponding to the first application, and the resource request information includes a first component identifier and an operation method identifier corresponding to the operation instruction, wherein the first component identifier refers to the component identifier corresponding to the first application component. Based on the first component identifier, the operation method identifier, and the policy routing information, determine at least one data service interface corresponding to the second application component and the operation method identifier; When the at least one data service interface includes a data service interface corresponding to the second application component, the resource information returned by the data service interface corresponding to the second application component is obtained; Based on the resource information, resource response information is generated; Send the resource response information to the terminal.
[0008] According to one aspect of the embodiments of this application, a resource access apparatus is provided, the apparatus comprising: The page display module is used to display the first application page corresponding to the first application. The request information sending module is used to send resource request information to the server in response to an operation instruction for the first application component associated with the first application page. The resource request information includes a first component identifier and an operation method identifier corresponding to the operation instruction. The first component identifier refers to the component identifier corresponding to the first application component. A response information receiving module is used to receive resource response information sent by the server; The resource response information includes resource information returned by the data service interface corresponding to the second application component. The second application component is an application component associated with the first application component. The data service interface corresponding to the second application component is a data service interface among at least one data service interface corresponding to the operation method identifier. The second application component and the at least one data service interface are determined based on the first component identifier, the operation method identifier, and the policy routing information obtained by the server. The policy routing information is used to characterize the routing relationship between at least two application components and the data service interfaces corresponding to the at least two application components. The at least two application components include the first application component and the second application component.
[0009] According to one aspect of the embodiments of this application, a resource access apparatus is provided, the apparatus comprising: The routing information acquisition module is used to acquire policy routing information, which is used to characterize the routing relationship between at least two application components and the data service interfaces corresponding to the at least two application components. The at least two application components include a first application component and a second application component associated with the first application component. The request information receiving module is used to receive resource request information sent by the terminal; wherein, the resource request information is information sent by the terminal in response to an operation instruction for the first application component, the first application component is an application component associated with the first application page corresponding to the first application, and the resource request information includes a first component identifier and an operation method identifier corresponding to the operation instruction, wherein the first component identifier refers to the component identifier corresponding to the first application component. The component interface determination module is used to determine at least one data service interface corresponding to the second application component and the operation method identifier based on the first component identifier, the operation method identifier and the policy routing information. The resource information acquisition module is used to acquire resource information returned by the data service interface corresponding to the second application component when the at least one data service interface includes the data service interface corresponding to the second application component. The response information generation module is used to generate resource response information based on the resource information. The response information sending module is used to send the resource response information to the terminal.
[0010] According to one aspect of the embodiments of this application, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, the code set or instruction set being loaded and executed by the processor to implement the above-described resource access method.
[0011] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein the storage medium stores at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the above-described resource access method.
[0012] According to one aspect of this application, a computer program product is provided, the computer program product including computer instructions 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, causing the computer device to perform an action to implement the resource access method described above.
[0013] The technical solution provided in this application can bring the following beneficial effects: By displaying the application page, the system can promptly respond to operation commands for the first application component and send the corresponding first component identifier and operation method identifier to the server. The policy routing information obtained by the server can characterize the routing relationship between the application component and the data service interface. Therefore, based on the aforementioned policy routing information and the received first component identifier and operation method identifier, the server can determine the second application component associated with the first application component and at least one data service interface corresponding to this operation. If the aforementioned at least one data service interface includes the data service interface corresponding to the second application component, the server can obtain the resource information returned by the data service interface corresponding to the second application component across interfaces and generate response information to send to the terminal. Through the aforementioned policy routing information, access to the interface resource data corresponding to the associated application component can be achieved, reducing the complexity of cross-component interface data access and improving the efficiency of cross-component interface data access. Attached Figure Description
[0014] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 This is a schematic diagram of an application runtime environment provided in one embodiment of this application; Figure 2 The flowchart of a resource access method provided in one embodiment of this application is shown. Figure 1 ; Figure 3 The flowchart of a resource access method provided in one embodiment of this application is shown. Figure 2 ; Figure 4 An exemplary diagram illustrates a component instantiation process; Figure 5 An example illustration shows a schematic of an application development page. Figure 1 ; Figure 6 An example illustration shows a schematic of an application development page. Figure 2 ; Figure 7 An example illustration shows a schematic of an application development page. Figure 3 ; Figure 8 The flowchart of a resource access method provided in one embodiment of this application is shown. Figure 3 ; Figure 9 The flowchart of a resource access method provided in one embodiment of this application is shown. Figure 4 ; Figure 10 The flowchart of a resource access method provided in one embodiment of this application is shown. Figure 5 ; Figure 11 An exemplary schematic diagram illustrates the workflow of a component operation forwarder; Figure 12 An interactive flowchart of a resource access method provided in one embodiment of this application is shown; Figure 13 An example is shown in the system architecture diagram corresponding to a program development application; Figure 14 This is a block diagram of a resource access device provided in one embodiment of this application. Figure 1 ; Figure 15 This is a block diagram of a resource access device provided in one embodiment of this application. Figure 2 ; Figure 16 This is a structural block diagram of a computer device provided in one embodiment of this application. Figure 1 . Detailed Implementation
[0016] The resource access method provided in this application relates to cloud technology, which will be briefly described below to facilitate understanding by those skilled in the art.
[0017] Cloud technology is a collective term for network technologies, information technologies, integration technologies, management platform technologies, and application technologies based on cloud computing business models. It can form resource pools, providing flexible and convenient on-demand access. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites. With the rapid development and application of the internet industry, every item may have its own identification mark in the future, requiring transmission to backend systems for logical processing. Data at different levels will be processed separately, and various industry data will all require robust system support, which can only be achieved through cloud computing.
[0018] Cloud computing refers to the delivery and usage model of IT infrastructure, specifically obtaining necessary resources through a network in an on-demand and easily scalable manner. In a broader sense, cloud computing also refers to the delivery and usage model of services, specifically obtaining necessary services through a network in an on-demand and easily scalable manner. These services can be IT and software-related, internet-related, or other services. Cloud computing is a product of the development and integration of traditional computer and network technologies such as grid computing, distributed computing, parallel computing, utility computing, network storage technologies, virtualization, and load balancing.
[0019] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0020] Please refer to Figure 1 This diagram illustrates an application runtime environment provided in one embodiment of this application. The application runtime environment may include: terminal 10 and server 20.
[0021] Terminal 10 includes, but is not limited to, mobile phones, computers, smart voice interaction devices, smart home appliances, in-vehicle terminals, game consoles, e-book readers, multimedia playback devices, wearable devices, and other electronic devices. Application clients can be installed on terminal 10.
[0022] In this embodiment, the application can be any application capable of sending resource request information. This resource request information can be sent directly to the server containing the resource to be accessed, or it can be sent to a proxy server and request the resource from the resource server through the proxy server. Typically, this application is an application development program, such as a low-code development platform, or an application developed by an application development program. The target application, quickly generated by the user on the low-code development platform, can be debugged and previewed within the platform. Of course, besides the applications mentioned above, other types of applications can also send resource request information. For example, browser applications, social applications, interactive entertainment applications, virtual reality (VR) applications, augmented reality (AR) applications, 3D map applications, etc., are not limited in this embodiment. Furthermore, the resource request information sent and the requested resource information will differ for different applications, which can be pre-configured according to actual needs, and are not limited in this embodiment. Optionally, the terminal 10 runs the aforementioned application.
[0023] Server 20 provides background services for applications running on terminal 10. For example, server 20 can be a background server for the aforementioned applications. Server 20 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Optionally, server 20 can simultaneously provide background services for applications on multiple terminals 10.
[0024] Optionally, terminal 10 and server 20 can communicate with each other via network 30. Terminal 10 and server 20 can be directly or indirectly connected via wired or wireless communication, which is not limited herein.
[0025] Before introducing the method embodiments provided in this application, a brief introduction will be given on the application scenarios, related terms or nouns that may be involved in the method embodiments of this application, so as to facilitate the understanding of those skilled in the art.
[0026] Policy-Based Routing (PBR) is a mechanism for routing based on user-defined policies. It is divided into local policy routing, interface policy routing, and Smart Policy Routing (SPR). Policy routing has the following advantages: (1) It can select routes according to the user's actual needs, enhancing the flexibility and controllability of routing selection. (2) It can allow different data flows to be sent through different links, improving the utilization efficiency of links.
[0027] Application components: A kind of encapsulation of data and methods. A combination of parts that can be combined with front-end pages for developers to use.
[0028] Composite component: A combination of multiple individual application components that combine business through technology to provide unified service capabilities.
[0029] Instantiate a component: A method for saving component configuration.
[0030] Please refer to Figure 2 It illustrates the flow of a resource access method provided in one embodiment of this application. Figure 1 This method can be applied to computer devices, which refer to electronic devices with data computing and processing capabilities. For example, the entity executing each step can be... Figure 1 Terminal 10 in the application runtime environment shown. The method may include the following steps (210~230).
[0031] Step 210: Display the first application page corresponding to the first application.
[0032] The first application mentioned above can be any application. Optionally, the first application mentioned above is an application developed using a low-code development platform. Optionally, the first application mentioned above is an application developed using a cloud development platform. The first application mentioned above is developed and generated based on multiple application components provided by the application development program.
[0033] In one possible implementation, the aforementioned application components include text components, display components, multimedia components, form components, container components, slot components, tab components, list item components, as well as custom components, role components, and permission components. These application components may include logically coupled or data-coupled composite components. A composite component refers to an application component whose logical and data information is coupled with that of other application components, and these composite components have associated relationships with each other.
[0034] Optionally, display components include button components and carousel components; multimedia components include image components; form components include form containers (used within form scenarios. Their function is to ensure that all content data sources within the form container are interconnected), form input (for typing text information), form radio buttons (for selecting single information), form multi-select buttons (for selecting multiple information), form selection (for drop-down / scroll selection of information), and form switches (which can trigger events when the switch state changes); container components include general containers (not required. General containers allow all content contained within the container to be configured with the same parameters), cards (which can hold text, tables, forms, and charts), and grid layouts (which can implement single-row column layouts).
[0035] Optionally, a component's slot is a node attached to a single component (unlike a container component, which is itself an independent node). Slots are used differently in different components: in a tab component, slots are used to store the content of each tab item. In a list item component, slots can be used to store list icons and title text, etc.
[0036] There are several ways to develop the aforementioned custom components, including but not limited to custom components using source code, custom components using low-code, and custom components in the component editor.
[0037] In one possible implementation, on the application development cloud console page, in response to the selection of a component library management option, the component library management page is displayed; in response to the selection of a new component library option, a new component library is created.
[0038] Optionally, the component library management page mentioned above includes three options: Publish Component Library, Add Component, and Import Component. Publish Component Library is used to change the component library from edit mode to published mode; Add Component is used to add components generated by dragging and dropping in the online editor; and Import Component is used to import components developed using local code.
[0039] In the implementation of custom components based on source code, after completing the above component library configuration, users can configure custom components by editing the source code, rebuild the customized component logic and style, and freely drag and drop them within the application as needed to better realize rich business customization needs.
[0040] In the implementation of customizing components in the component editor, existing components are edited and combined into new components through the component editor. The process may include: displaying the component editor in response to a component addition command or component editing command. The component editor includes a component selection area (used to display preset components and custom components), a component editing area (through the component selection area, components can be quickly selected, their positions can be adjusted by dragging, and they can be previewed in real time), and a component configuration area (including both element editing and component editing).
[0041] Optionally, the above element editing refers to modifying the data, style, or events of a single component element used.
[0042] Optionally, the above component editing refers to editing all components used in this editing, and can only be done in the form of source code.
[0043] In an exemplary embodiment, such as Figure 3 As shown, the implementation process of step 210 above may include the following steps (211~212). Figure 3 The flowchart of a resource access method provided in one embodiment of this application is shown. Figure 2 .
[0044] Step 211: Display the second application page corresponding to the second application.
[0045] The second application is the program development application corresponding to the first application. The second application page includes a component page area and an application preview area. The component page area includes the first page options corresponding to the first application page and the first component options corresponding to the first application component.
[0046] The first page options mentioned above are the page options corresponding to the first application page mentioned above, used to jump to the first application page mentioned above.
[0047] The first component option mentioned above is the component option corresponding to the first application component mentioned above, and is used to select the first component option mentioned above.
[0048] Optionally, the aforementioned program development application includes low-code development platforms, application development cloud platforms, etc., and this application embodiment does not limit this. The aforementioned program development application is a visual development application, and the provided application components can be dragged and dropped, and the dragged application components can be combined to form the aforementioned first application.
[0049] Step 212: In response to the selection instruction for the first page option, the first application page is displayed in the application preview area.
[0050] The second application page described above allows for a real-time preview of the currently developing first application. This application preview area is used for debugging and previewing the application pages of the first application.
[0051] Optionally, such as Figure 3 As shown, the above method may also include the following step 213.
[0052] Step 213: In response to the drag trajectory for the first component option, the first application component is identified as the application component associated with the first application page.
[0053] The drag trajectory described above points to the first application page. In one possible implementation, the user can select the first component option and drag the first application component, thus forming the drag trajectory. If the drag trajectory points to the first application page, for example, if the endpoint of the drag trajectory is on the first application page, then the first application component is bound to the first application page. In this way, the first application component becomes an application component associated with the first application page.
[0054] In an exemplary embodiment, such as Figure 3 As shown, the second application page also includes an application editing area, and the method may also include the following steps (214~216).
[0055] Step 214: Receive component configuration operations based on the application editing area.
[0056] Optionally, the aforementioned component editor can be triggered and displayed in the application editing area, and the component editor can receive the aforementioned component configuration operations.
[0057] Optionally, a code editor can be triggered and displayed in the application editing area, and this code editor can receive component source code editing operations. The component configuration operations include the component source code editing operations. Component source code editing operations refer to the operations of editing the source code corresponding to the component.
[0058] Step 215: In response to the component configuration operation for the first application component, obtain the first component configuration information corresponding to the first application component.
[0059] Optionally, the aforementioned component configuration operations include attribute configuration operations, custom configuration operations, data source configuration operations, permission configuration operations, role configuration operations, general configuration operations, and source code configuration operations for application components. Correspondingly, the aforementioned first component configuration information includes attribute configuration information, custom configuration information, data source configuration information, permission configuration information, role configuration information, general configuration information, and source code configuration information corresponding to the first application component.
[0060] Step 216: In response to the save instruction for the configuration information of the first component, send the configuration information of the first component to the server corresponding to the second application.
[0061] The server corresponding to the aforementioned second application can be referred to as the second server. The aforementioned second server can provide background services for the aforementioned second application.
[0062] Or, such as Figure 3 As shown, the above method may also include the following steps (217~218).
[0063] Step 217: In response to the component configuration operation for the second application component, obtain the second component configuration information corresponding to the second application component.
[0064] Optionally, the aforementioned component configuration operations include attribute configuration operations, custom configuration operations, data source configuration operations, permission configuration operations, role configuration operations, general configuration operations, and source code configuration operations for application components. Correspondingly, the aforementioned first component configuration information includes attribute configuration information, custom configuration information, data source configuration information, permission configuration information, role configuration information, general configuration information, and source code configuration information corresponding to the second application component.
[0065] Step 218: In response to the instruction to save the configuration information of the second component, send the configuration information of the second component to the server corresponding to the second application.
[0066] In one possible implementation, after receiving the first component configuration information and the second component configuration information, the server corresponding to the second application can enter the component instantiation process and perform component instantiation operations. Based on the first component configuration information and the second component configuration information, the second server can generate policy routing information, which is used to characterize the routing relationship between at least two application components and the corresponding data service interfaces of at least two application components.
[0067] Optionally, the above save command can be triggered by the save button.
[0068] In one example, such as Figure 4 As shown, this example illustrates a component instantiation process. After a developer triggers the aforementioned save command, the development frontend initiates a component instantiation operation, sending component configuration information to the development backend server. Upon receiving the component configuration information, the development backend server can perform the following operations.
[0069] Optionally, the development backend server performs extended configuration of components, such as saving instance association configurations.
[0070] Optionally, the development backend server configures instances of the component library, and instance matching is divided into public configuration and private configuration.
[0071] Optionally, the development backend server configures the permission set of the component library and compares and updates the permission configuration after multiple instantiations.
[0072] Optionally, the development backend server configures the permissions for the current component on the page and associates the permission configuration primary key.
[0073] Step 220: In response to the operation instruction for the first application component associated with the first application page, send resource request information to the server.
[0074] The resource request information includes the identifier of the first component and the identifier of the operation method corresponding to the operation instruction. The identifier of the first component refers to the component identifier corresponding to the first application component.
[0075] The embodiments of this application do not limit the operation instructions, and can be operation instructions corresponding to any application operation, such as operation instructions triggered by drag operation, click operation, touch operation, gesture operation, voice control operation, etc.
[0076] In one possible implementation, the first application page is a role management page, the first application component is a role component, and the second application component is a permission component. Correspondingly, such as... Figure 3 As shown, the implementation process of step 220 above may include the following step 221.
[0077] Step 221: In response to the role information operation instruction for the role component associated with the role management page, send the role component identifier corresponding to the role component and the role information operation method identifier corresponding to the role information operation instruction to the server.
[0078] The resource request information includes the role component identifier and the role information operation method identifier.
[0079] In one example, such as Figure 5 As shown, it exemplifies a schematic of an application development page. Figure 1 . Figure 5 The application development page 50 shown can be a page corresponding to the application development process through the application editor interface workbench. The application development page 50 includes a top navigation bar 51, a component page area 52, and an editing preview area 53. The top navigation bar 51 contains basic functions for using the application editor; the component page area 52 is used to manage the application page and component relationship logic; and the editing preview area 53 is used to edit and preview the components on the page. Figure 5In the aforementioned editing preview area 53, the application preview area 531 displays the role management page 54 of the first application. Developers can configure role information for the first application on the role management page 54, such as pre-creating roles, creating roles, editing roles, deleting roles, viewing and defining roles, and publishing roles. Each configuration operation can trigger corresponding operation commands. Specifically, in the operation of viewing and defining roles, permissions such as application access permissions, page access permissions, data source access permissions, process access permissions, and workbench access permissions can be assigned to the roles.
[0080] Developers can manage all pages under the current application in Component Page Area 52, and can perform operations such as adding, deleting, cloning, and setting attributes for pages. Component Page Area 52 can also display official platform components and custom components.
[0081] The editing preview area 53 also includes an application editing area 532, which includes a component editing option 5321. When the terminal responds to the selection operation of the component editing option 5321, the application editing area 532 is updated to the component editing area corresponding to the role component. The component editing area can display the component name, component identifier, attribute configuration bar, custom configuration bar, and general configuration bar of the role component associated with the role management page 54.
[0082] Optionally, the terminal can receive component configuration operations based on the aforementioned attribute configuration bar, custom configuration bar, and general configuration bar. In response to a component configuration operation on the attribute configuration bar, the terminal can obtain the attribute configuration information corresponding to the aforementioned role component. This attribute configuration information includes, but is not limited to, the instance identifier corresponding to the component library instance corresponding to the role component. In response to a component configuration operation on the custom configuration bar, the terminal can obtain the custom configuration information corresponding to the aforementioned role component. This custom configuration information includes, but is not limited to, the role information corresponding to the current application. For example, if the role information is "super administrator," then the content of the role management page 54 will be rendered and previewed in the application preview area 531 with the super administrator's permissions. In response to a component configuration operation on the general configuration bar, the terminal can obtain the general configuration information corresponding to the aforementioned role component. This general configuration information includes, but is not limited to, the instance identifier of the associated component, the scope information of the associated application, and the component permission setting information.
[0083] In another possible implementation, the first application page is a permission management page, the first application component is a permission component, and the second application component is a role component. Correspondingly, such as... Figure 3 As shown, the implementation process of step 220 above may include the following step 222.
[0084] Step 222: In response to the permission information operation instruction for the permission component associated with the permission management page, send the permission component identifier corresponding to the permission component and the permission information operation method identifier corresponding to the permission information operation instruction to the server.
[0085] The resource request information includes the permission component identifier and the permission information operation method identifier.
[0086] In one example, such as Figure 6 As shown, it exemplifies a schematic of an application development page. Figure 2 . Figure 6 The application development page 60 shown can be a page corresponding to the application development process through the application editor interface workbench. The application development page 60 also includes the aforementioned top navigation bar 51, component page area 52, and editing preview area 53. Figure 6 In the above-mentioned editing preview area 53, the application preview area 531 displays the permission management page 64 of the first application. Since the application component associated with the permission management page 64 is a permission component, the application editing area 532 is updated to the component editing area corresponding to the permission component. In the component editing area corresponding to the permission component, the component name, component identifier, attribute configuration bar, custom configuration bar, and general configuration bar corresponding to the permission component can be displayed.
[0087] Optionally, the terminal can receive component configuration operations based on the aforementioned attribute configuration bar, custom configuration bar, and general configuration bar. In response to a component configuration operation on the attribute configuration bar, the terminal can obtain the attribute configuration information corresponding to the aforementioned permission component. This attribute configuration information includes, but is not limited to, the instance identifier corresponding to the component library instance corresponding to the permission component. In response to a component configuration operation on the custom configuration bar, the terminal can obtain the custom configuration information corresponding to the aforementioned permission component. This custom configuration information includes, but is not limited to, the role information corresponding to the current application. For example, if the role information is super administrator, then the content of the preview permission management page 64 will be rendered and previewed in the application preview area 531 with super administrator permissions. In response to a component configuration operation on the general configuration bar, the terminal can obtain the general configuration information corresponding to the aforementioned permission component. This general configuration information includes, but is not limited to, the instance identifier of the associated component. The associated component can be a role component corresponding to the permission component.
[0088] In one example, such as Figure 7 As shown, it exemplifies a schematic of an application development page. Figure 3 . Figure 7 The application development page 70 shown can be a page corresponding to the application development process through the application editor interface workbench. The application development page 70 also includes the aforementioned top navigation bar 51, component page area 52, and editing preview area 53. Figure 7In the aforementioned editing preview 53, the application preview area 531 displays the permission management page 74 of the first application. The permission management page 74 displays a role permission editing window 741. This role permission editing window 741 displays the role management component associated with the homepage and its corresponding permission options, including a new option 7411, an edit option 7412, and a delete option 7413. The edit option 7412 is currently checked. In response to a trigger command for the confirm option 7414, the editing permission corresponding to the edit option 7412 is added to the corresponding role management component, and the permission information for that role management component includes the aforementioned editing permission.
[0089] Step 230: Receive resource response information sent by the server.
[0090] The resource response information includes resource information returned by the data service interface corresponding to the second application component. The second application component is an application component associated with the first application component. The data service interface corresponding to the second application component is a data service interface among at least one data service interface corresponding to the operation method identifier. The second application component and at least one data service interface are determined based on the first component identifier, the operation method identifier, and the policy routing information obtained by the server. The policy routing information is used to characterize the routing relationship between at least two application components and at least two data service interfaces corresponding to the application components. The at least two application components include the first application component and the second application component.
[0091] In the implementation where the first application page is a role management page, the first application component is a role component, and the second application component is a permission component, the implementation process of step 230 may include the following step 231.
[0092] Step 231: Receive the role information returned by the data service interface corresponding to the role component, and the permission information returned by the data service interface corresponding to the permission component.
[0093] Resource response information includes role information and permission information.
[0094] In the implementation where the first application page is a permission management page, the first application component is a permission component, and the second application component is a role component, the implementation process of step 230 may further include the following step 232.
[0095] Step 232: Receive permission information returned by the data service interface corresponding to the permission component, and role information returned by the data service interface corresponding to the role component.
[0096] Resource response information includes permission information and role information.
[0097] In summary, the technical solution provided in this application embodiment can respond promptly to operation instructions for the first application component by displaying the application page, and send the corresponding first component identifier and operation method identifier to the server. The policy routing information obtained by the server can characterize the routing relationship between the application component and the data service interface. Therefore, based on the above policy routing information and the received first component identifier and operation method identifier, the server can determine the second application component associated with the first application component and at least one data service interface corresponding to this operation. When the above at least one data service interface includes the data service interface corresponding to the second application component, the resource information returned by the data service interface corresponding to the second application component can be obtained across interfaces, and response information can be generated and sent to the terminal. Through the above policy routing information, access to the interface resource data corresponding to the associated application component can be realized, reducing the complexity of cross-component interface data access and improving the efficiency of cross-component interface data access.
[0098] Furthermore, in this embodiment, composite components can be formed through the association relationships between different components. The page of the first application can be previewed during the development of the first application, and the composite components corresponding to the first application can be instantiated and configured, such as the aforementioned role component and permission component. This avoids the need to develop different interfaces for different components, forming a standard calling method for components. At the same time, the aforementioned strategy routing information also enables the components to have backend business logic. Developers only need to drag and drop components on the page and perform simple configurations to provide independent business logic, which greatly reduces development complexity, front-end and back-end coordination difficulty, shortens the application development cycle, and improves application development efficiency.
[0099] Please refer to Figure 8 It illustrates the flow of a resource access method provided in one embodiment of this application. Figure 3 This method can be applied to computer devices, which refer to electronic devices with data computing and processing capabilities. For example, the entity executing each step can be... Figure 1 The application runtime environment shown is server 20. The method may include the following steps (810~860).
[0100] Step 810: Obtain policy routing information.
[0101] The policy routing information is used to characterize the routing relationship between at least two application components and the corresponding data service interfaces of at least two application components. The at least two application components include a first application component and a second application component associated with the first application component.
[0102] Optionally, the policy routing information includes component routing information, composite component information, and permission routing information corresponding to at least one application component.
[0103] The component routing information is used to characterize the correspondence between the application component and at least one operation method instruction set. The operation method instruction set is used to call the resource information corresponding to the data service interface. Therefore, the correspondence between the application component and at least one operation method instruction set can characterize the routing relationship between the data service interfaces corresponding to the component.
[0104] The aforementioned composite component information is used to characterize the relationships between at least two application components. Application components with relationships are logically and data-wise coupled. For example, a role component and a permission component are related and are composite components. On one hand, creating a role through the role component requires assigning corresponding permissions, and creating permissions requires assigning those permissions to the role; logically, they are coupled. On the other hand, responding to an instruction to view information about the role component displays relevant information about the role. This information includes not only role attribute information but also the role's corresponding permission information. However, permission information needs to be obtained from the data source corresponding to the permission component, and vice versa. Viewing permission-related information includes not only permission attribute information but also the corresponding role information; data-wise, they are coupled. Therefore, component configuration information can be used to determine which of multiple application components are composite components with relationships, thus generating the aforementioned composite component information based on the component configuration information.
[0105] Policy routing information includes permission routing information, which represents the correspondence between at least one object identifier and at least one permission. Component configuration defines information such as data operation method configuration, data service interface configuration, data source configuration, application page configuration, and application configuration. Based on this information, permission routing information can be determined to ascertain whether the current operation instruction has the corresponding permission to execute subsequent steps.
[0106] In an exemplary embodiment, such as Figure 9 As shown, the implementation process of step 810 above includes the following step 811. Figure 9 The flowchart of a resource access method provided in one embodiment of this application is shown. Figure 4 .
[0107] Step 811: Receive policy routing information sent by the server corresponding to the second application.
[0108] The second application is the program development application corresponding to the first application, and the policy routing information is generated by the server based on the configuration information of the first component corresponding to the first application component and the configuration information of the second component corresponding to the second application component.
[0109] Optionally, the first application component and the second application component are associated composite components.
[0110] Step 820: Receive resource request information sent by the terminal.
[0111] The resource request information is the information sent by the terminal in response to the operation instruction for the first application component. The first application component is the application component associated with the first application page corresponding to the first application. The resource request information includes the identifier of the first component and the operation method identifier corresponding to the operation instruction. The identifier of the first component refers to the component identifier corresponding to the first application component.
[0112] Step 830: Based on the first component identifier, the operation method identifier, and the policy routing information, determine at least one data service interface corresponding to the second application component and the operation method identifier.
[0113] In an exemplary embodiment, the policy routing information includes component routing information and composite component information corresponding to the first application component. The component routing information is used to characterize the correspondence between the first application component and at least one operation method instruction set, and the composite component information is used to characterize the association between at least two application components.
[0114] Correspondingly, such as Figure 9 As shown, the implementation process of step 830 above may include the following steps (831~833).
[0115] Step 831: Determine the second application component based on the first component identifier and the composite component information.
[0116] Optionally, the composite component information includes correspondence information between component identifiers. Therefore, the second component identifier associated with the first component identifier can be found in the composite component information, and the second application component can be determined based on the second component identifier.
[0117] Step 832: Based on the operation method identifier and component routing information, determine the operation method instruction set corresponding to the operation method identifier.
[0118] Optionally, the component routing information includes an operation method identifier corresponding to the component identifier and path information of the operation method instruction set corresponding to the operation method identifier. Therefore, the path information of the operation method instruction set corresponding to the operation method identifier can be found in the component routing information, and the operation method instruction set corresponding to the operation method identifier can be determined based on the path information.
[0119] Step 833: Determine at least one data service interface corresponding to the operation method instruction set.
[0120] Optionally, each instruction in the above operation method instruction set is obtained, and the fields in each instruction are identified and processed to obtain at least one data service interface.
[0121] Step 840: If at least one data service interface includes a data service interface corresponding to the second application component, obtain the resource information returned by the data service interface corresponding to the second application component.
[0122] In an exemplary embodiment, the policy routing information mentioned above includes permission routing information, which is used to characterize the correspondence between at least one object identifier and at least one permission. Accordingly, as... Figure 9 As shown, the implementation process of step 840 above may include the following steps (841~843).
[0123] Step 841: If at least one data service interface includes the data service interface corresponding to the second application component, obtain the target object identifier.
[0124] The target object identifier is the current object identifier corresponding to the first application. For example, the current logged-in account corresponding to the first application is the target object identifier mentioned above.
[0125] Step 842: Based on the target object identifier and permission routing information, determine the permission information corresponding to the target object identifier.
[0126] Optionally, the permission routing information includes role information and corresponding permission information for each object identifier. Optionally, the aforementioned permission information includes, but is not limited to, interface access permissions and method execution permissions. The aforementioned interface access permissions and method execution permissions are used to restrict application operations such as application access, page access, data source access, process access, and workbench access.
[0127] Optionally, the role information corresponding to the target object can be determined based on the target object identifier mentioned above, and the permission information corresponding to the target object identifier can be determined based on the permissions corresponding to the target object identifier and the permissions corresponding to the role information.
[0128] In one possible implementation, the policy routing information includes at least one permission routing information corresponding to a component library instance identifier. The permission routing information required in step 842 may be the permission routing information corresponding to a target component library instance identifier, where the target component library instance identifier is the instance identifier of the component library instance corresponding to the first application component received by the server. Optionally, based on the first component identifier, the target component library instance identifier corresponding to the first application component is determined; and the permission routing information corresponding to the target component library instance identifier is obtained.
[0129] Step 843: If the permission information meets the target permission conditions, obtain the resource information returned by the data service interface corresponding to the second application component.
[0130] The appeal target permission conditions include the target permission in the permission information. The aforementioned target permission is determined based on the aforementioned resource information. For example, to obtain the aforementioned resource information, it is necessary to execute the relevant operation methods and successfully access the data server interface. Therefore, it is necessary to determine whether the target object identifier has the method execution permission corresponding to the aforementioned relevant operation methods and the access permission corresponding to the aforementioned data service interface.
[0131] In an exemplary embodiment, such as Figure 10 As shown, the implementation process of step 843 above includes the following step 8431, Figure 10 The flowchart of a resource access method provided in one embodiment of this application is shown. Figure 5 .
[0132] Step 8431: If the permission information includes the access permissions of the data service interface corresponding to the second application component and the method execution permissions of the operation method instruction set corresponding to the operation method identifier, then execute the operation method instruction set to obtain the resource information returned by the data service interface corresponding to the second application component.
[0133] If the permission information includes access permissions for the data service interface corresponding to the second application component, it means that the data service interface can be accessed; if the permission information includes method execution permissions for the operation method instruction set corresponding to the operation method identifier, it means that the operation method instruction set can be executed; only when both the access permissions and method execution permissions are present can the operation method instruction set be executed to access the data service interface and obtain resource information.
[0134] If you only have one of the two types of permissions mentioned above, for example, even if you have access to the data service interface, but cannot execute the above operation method instruction set, you will not be able to obtain resource information; or even if you have the method execution permission of the operation method instruction set, but do not have the right to access the data service interface, you will not be able to obtain resource information.
[0135] In one example, such as Figure 11As shown, this example illustrates a flowchart of a component operation forwarder's workflow. Before initialization, the front-end and back-end define the application component identifier and service action identifier (i.e., the aforementioned operation method identifier) associated with the application component. During initialization, the service action identifier corresponding to the application component is initialized into the service action routing table corresponding to the application component. Optionally, the aforementioned component routing information includes the aforementioned service action routing table. If the application component is associated with other application components, or has a dependency relationship with other application components, the application component identifier corresponding to the application component associated with the application component is determined, and its correspondence information is added to the component dependency control list. Optionally, the aforementioned composite component information includes the component dependency control list, which can also be understood as the component dependency control list recording composite component information.
[0136] During component development, it's necessary to configure the routing strategy for component instances. This involves instantiating the component library instance configuration, component library instance permissions, and component permission configuration to obtain component library instance configuration information, component library instance permission information, and component permission configuration information. Simultaneously, the public and private configuration information for the application component, as well as the component authorization management application information, are configured and stored. Based on the aforementioned component library instance configuration information, component library instance permission information, component permission configuration information, and the public and private configuration information and component authorization management application information for the application component, permission routing information can be generated.
[0137] The method for determining the data service interface that developers need to call in the configuration state (the usage state and the debug preview state of the first application) is as follows: The server looks up the service action routing table corresponding to the received application component identifier. It then searches the service action routing table for the operation method instruction set corresponding to the received service action identifier. The data service interface corresponding to this operation method instruction set is the data service interface that needs to be called in this service action. In addition, the server also looks up the application component associated with the application component in the component dependency control list based on the application component identifier (referred to as the associated application component), and determines the data service interface corresponding to the associated application component. The union of the data service interface corresponding to the associated application component and the data service interface that needs to be called in this service action is then used to determine whether the data service interface required for this service action includes the data service interface corresponding to the associated application component. Then, based on the application component identifier, the corresponding component instance identifier is determined. The instance routing policy configuration information corresponding to the component instance identifier is then found. The permission control and application management information in the current instance's policy configuration are queried for permission verification. If the permission verification is successful, the corresponding service action of the component is forwarded, and the operation method instruction set corresponding to the above service action identifier is executed. In this way, the interface parameters corresponding to the service action are matched with the corresponding data service interface to realize the data service interface call, and the queried resource information is returned to the current application component.
[0138] Figure 11 Service interface action 1, service interface action 2, ..., service interface action M each have their own corresponding service action identifier. Based on these service action identifiers and the routing information, the server can perform data operations from various business data sets. These business data sets include the business data of the application components and their associated application components, in which resource information is retrieved. For example, service interface action 2 can simultaneously retrieve the required data resources from the business data of component A and component B.
[0139] The aforementioned component action forwarder can be deployed on the first server. Based on PBR, it registers component configuration routing information and configures instance routing policies, thereby realizing the mapping between component interfaces and implementations. It utilizes the flexibility and controllability of routing selection to achieve rapid component reuse.
[0140] Step 850: Generate resource response information based on resource information.
[0141] Optionally, the resource response information is generated based on the resource information returned by at least one of the data service interfaces. The resource response information includes the resource information returned by the data service interface corresponding to the second application component.
[0142] Step 860: Send resource response information to the terminal.
[0143] In summary, the technical solution provided in this application embodiment allows the terminal to respond promptly to operation instructions for the first application component through its displayed application page, and send the corresponding first component identifier and operation method identifier to the server. The policy routing information obtained by the server can characterize the routing relationship between the application component and the data service interface. Therefore, based on the above policy routing information and the received first component identifier and operation method identifier, the server can determine the second application component associated with the first application component and at least one data service interface corresponding to this operation. When the above at least one data service interface includes the data service interface corresponding to the second application component, the server can obtain the resource information returned by the data service interface corresponding to the second application component across interfaces and generate response information to send to the terminal. By using the above policy routing information, access to the interface resource data corresponding to the associated application component can be realized, reducing the complexity of cross-component interface data access and improving the efficiency of cross-component interface data access.
[0144] Please refer to Figure 12 The diagram illustrates an interactive flowchart of a resource access method provided in one embodiment of this application. The method may include the following steps (S01~S18).
[0145] S01, the terminal displays the second application page corresponding to the second application.
[0146] S02, the terminal responds to the selection instruction for the first page option and displays the first application page in the application preview area.
[0147] S03, the terminal receives component configuration operations based on the application editing area.
[0148] S04, the terminal responds to the component configuration operation for the first application component and obtains the first component configuration information corresponding to the first application component.
[0149] S05, in response to the instruction to save the configuration information of the first component, the terminal sends the configuration information of the first component to the second server.
[0150] S06, the terminal responds to the component configuration operation for the second application component and obtains the second component configuration information corresponding to the second application component.
[0151] S07, in response to the instruction to save the configuration information of the second component, the terminal sends the configuration information of the second component to the second server.
[0152] S08, the second server generates policy routing information based on the configuration information of the first component and the configuration information of the second component.
[0153] S09, the second server sends policy routing information to the first server.
[0154] S10, in response to the operation instruction for the first application component associated with the first application page, the terminal sends resource request information to the first server.
[0155] S11, the first server determines the second application component based on the first component identifier and the composite component information.
[0156] S12, the first server determines the operation method instruction set corresponding to the operation method identifier based on the operation method identifier and component routing information.
[0157] S13, the first server determines at least one data service interface corresponding to the operation method instruction set.
[0158] S14, the first server obtains the target object identifier when at least one data service interface includes the data service interface corresponding to the second application component.
[0159] S15, the first server determines the permission information corresponding to the target object identifier based on the target object identifier and permission routing information.
[0160] S16, if the permission information of the first server includes the access permissions of the data service interface corresponding to the second application component and the method execution permissions of the operation method instruction set corresponding to the operation method identifier, then the first server executes the operation method instruction set to obtain the resource information returned by the data service interface corresponding to the second application component.
[0161] S17, the first server generates resource response information based on resource information.
[0162] S18, the first server sends resource response information to the terminal.
[0163] In one example, such as Figure 13 As shown, it exemplifies a system architecture diagram corresponding to a program development application. Figure 13 The system architecture shown involves two types of services: a development-mode service, which provides backend development services for the application being developed (the second application), and a configuration-mode service, which provides backend services for the first application being developed. For example, the application page of the development application can display the application page of the first application being developed for debugging and previewing. During the debugging and previewing process, the backend services triggered by operations received by the application page of the first application can be provided by the aforementioned configuration-mode service.
[0164] Developers can create multiple component libraries based on the above system architecture, such as a basic component library (basic configuration components, personnel selector), a role and permission component library (permission components, role components), and a process and form component library (form components, process components), etc. Any of the above component libraries can include composite components with coupled business logic; for example, the permission component and role component in the role and permission component library are composite components with coupled business logic.
[0165] After creating the above component libraries, the components can be configured and instantiated through the development services of the application backend developed by the above program.
[0166] Once the component is instantiated, developers can use the above procedure to develop applications and aggregate business logic by creating a new application, a new application page, and dragging and dropping different application components onto the application page. For example, dragging the role component and permission component onto the application page allows developers to set the roles corresponding to the application and the associated personnel or departments, while the permission component allows developers to assign permissions to the roles in the role component.
[0167] During the debugging and previewing of the first application, the aforementioned role settings and permission allocation all involve corresponding component actions. Every time a component action is triggered on the front-end page, a corresponding identifier is sent to the configuration service. The action forwarder in the configuration service forwards the action based on the instantiated configuration information of the composite component and the identifier corresponding to the received component action, thereby associating the component action with the implemented back-end interface service and returning the business data that needs to be queried to the front-end component.
[0168] In summary, the technical solution provided in this application embodiment allows the terminal to respond promptly to operation instructions for the first application component through its displayed application page, and send the corresponding first component identifier and operation method identifier to the server. The policy routing information obtained by the server can characterize the routing relationship between the application component and the data service interface. Therefore, based on the above policy routing information and the received first component identifier and operation method identifier, the server can determine the second application component associated with the first application component and at least one data service interface corresponding to this operation. When the above at least one data service interface includes the data service interface corresponding to the second application component, the server can obtain the resource information returned by the data service interface corresponding to the second application component across interfaces and generate response information to send to the terminal. By using the above policy routing information, access to the interface resource data corresponding to the associated application component can be realized, reducing the complexity of cross-component interface data access and improving the efficiency of cross-component interface data access.
[0169] In some practical application scenarios, the front-end application distributes the actions of the components to the back-end component library service. The back-end component library service finds the implementation method to be executed according to the service action forwarder and returns the data result corresponding to the action, so that different component service interfaces can transmit and call data through actions.
[0170] In possible application scenarios, the implementation methods corresponding to the above-mentioned program development applications include, but are not limited to, the following: I. Action Forwarding Routing Method The aforementioned action-forwarding routing method is used to obtain resource information from the aforementioned data service interface based on the aforementioned policy routing information. The specific process includes: The action (the execution action corresponding to the above operation method identifier) is distributed to the corresponding instance based on the component library identifier; Get the routing service for actions under the instance; Determine the implementation type of the routing service. Optionally, the implementation type includes: 1. Java execution; 2. Groovy (an agile development language based on the Java Virtual Machine) script execution; If executed in Java, the routing will be based on the service implementation class to the specific implementation interface; If executed as a Groovy script, then parse the Groovy script; Execute the corresponding data service interface and return the matched resource information to the front end.
[0171] II. Methods for obtaining action routing services under an instance Obtain the component library instance identifier and action identifier. In some application scenarios, the operation method identifier is the action identifier, and in some application scenarios, the component library instance identifier is the identifier of the component library where the current component is located. The system queries the authorization relationship of the corresponding action in the component library based on the component library instance identifier and action identifier. If no authorization relationship exists, the system will display the message "The corresponding action is not authorized in the component library". If an authorization relationship exists, check if the action exists in the component library; If the action does not exist, the message "The corresponding action does not exist in the component library!" will be displayed. If the action exists, return the routing service implementation method corresponding to that action.
[0172] III. Cross-component method invocation Based on the component library instance identifier corresponding to the current component, determine whether the current component has an associated component library instance; If the current component has an associated component library instance, it can be called across components; If the current component has no associated component library instance, the message "The current instance is not associated with a call action instance!" will be displayed. IV. Instance Configuration Method Save component library identifier, component library instance identifier, and common configuration data; Verify the configuration data and check if the component library instance configuration is missing component library identifier or instance identifier data; Check if the component library data record corresponding to the component library identifier exists; Save public component configuration data; Verify whether the component library configuration is saved abnormally.
[0173] The following are embodiments of the apparatus of this application, which can be used to execute embodiments of the method of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method of this application.
[0174] Please refer to Figure 14 It illustrates a block diagram of a resource access apparatus provided in one embodiment of this application. Figure 1 This device has the function of implementing the above-described resource access method. This function can be implemented in hardware or by hardware executing corresponding software. The device can be a computer device or can be installed within a computer device. The device 1400 may include: a page display module 1410, a request information sending module 1420, and a response information receiving module 1430.
[0175] Page display module 1410 is used to display the first application page corresponding to the first application; The request information sending module 1420 is used to send resource request information to the server in response to an operation instruction for the first application component associated with the first application page. The resource request information includes a first component identifier and an operation method identifier corresponding to the operation instruction. The first component identifier refers to the component identifier corresponding to the first application component. The response information receiving module 1430 is used to receive resource response information sent by the server; The resource response information includes resource information returned by the data service interface corresponding to the second application component. The second application component is an application component associated with the first application component. The data service interface corresponding to the second application component is a data service interface among at least one data service interface corresponding to the operation method identifier. The second application component and the at least one data service interface are determined based on the first component identifier, the operation method identifier, and the policy routing information obtained by the server. The policy routing information is used to characterize the routing relationship between at least two application components and the data service interfaces corresponding to the at least two application components. The at least two application components include the first application component and the second application component.
[0176] In an exemplary embodiment, the page display module 1410 includes: a first page display unit and a second page display unit.
[0177] The second page display unit is used to display the second application page corresponding to the second application; wherein, the second application is the program development application corresponding to the first application, and the second application page includes a component page area and an application preview area, wherein the component page area includes a first page option corresponding to the first application page and a first component option corresponding to the first application component.
[0178] The first page display unit is configured to display the first application page in the application preview area in response to a selection instruction for the first page option.
[0179] The page display module 1410 also includes a component drag-and-drop unit.
[0180] A component drag-and-drop unit is configured to determine the first application component as an application component associated with the first application page in response to a drag trajectory for the first component option, wherein the drag trajectory points to the first application page.
[0181] In an exemplary embodiment, the second application page further includes an application editing area, and the device 1400 further includes: a configuration operation receiving module, a configuration information acquisition module, and a configuration information sending module.
[0182] A configuration operation receiving module is used to receive component configuration operations based on the application editing area; The configuration information acquisition module is used to acquire the first component configuration information corresponding to the first application component in response to the component configuration operation for the first application component. The configuration information sending module is used to send the configuration information of the first component to the server corresponding to the second application in response to the save instruction for the configuration information of the first component; or, The configuration information acquisition module is further configured to acquire the second component configuration information corresponding to the second application component in response to a component configuration operation for the second application component. The configuration information sending module is further configured to send the configuration information of the second component to the server corresponding to the second application in response to the save instruction for the configuration information of the second component.
[0183] In an exemplary embodiment, the first application page is a role management page, the first application component is a role component, the second application component is a permission component, and the request information sending module 1420 is specifically used to respond to a role information operation instruction for the role component associated with the role management page by sending a role component identifier corresponding to the role component and a role information operation method identifier corresponding to the role information operation instruction to the server. The resource request information includes the role component identifier and the role information operation method identifier. The response information receiving module 1430 is specifically used to receive role information returned by the data service interface corresponding to the role component and permission information returned by the data service interface corresponding to the permission component. The resource response information includes the role information and the permission information.
[0184] In an exemplary embodiment, the first application page is a permission management page, the first application component is a permission component, the second application component is a role component, and the request information sending module 1420 is further specifically used to respond to a permission information operation instruction for the permission component associated with the permission management page, and send to the server a permission component identifier corresponding to the permission component and a permission information operation method identifier corresponding to the permission information operation instruction, wherein the resource request information includes the permission component identifier and the permission information operation method identifier; The response information receiving module 1430 is further specifically used to receive permission information returned by the data service interface corresponding to the permission component and role information returned by the data service interface corresponding to the role component. The resource response information includes the permission information and the role information.
[0185] In summary, the technical solution provided in this application embodiment can respond promptly to operation instructions for the first application component by displaying the application page, and send the corresponding first component identifier and operation method identifier to the server. The policy routing information obtained by the server can characterize the routing relationship between the application component and the data service interface. Therefore, based on the above policy routing information and the received first component identifier and operation method identifier, the server can determine the second application component associated with the first application component and at least one data service interface corresponding to this operation. When the above at least one data service interface includes the data service interface corresponding to the second application component, the resource information returned by the data service interface corresponding to the second application component can be obtained across interfaces, and response information can be generated and sent to the terminal. Through the above policy routing information, access to the interface resource data corresponding to the associated application component can be realized, reducing the complexity of cross-component interface data access and improving the efficiency of cross-component interface data access.
[0186] Please refer to Figure 15 It illustrates a block diagram of a resource access apparatus provided in one embodiment of this application. Figure 2 The device has the function of implementing the above-described resource access method. This function can be implemented in hardware or by hardware executing corresponding software. The device can be a computer device or can be installed within a computer device. The device 1500 may include: a routing information acquisition module 1510, a request information receiving module 1520, a component interface determination module 1530, a resource information acquisition module 1540, a response information generation module 1550, and a response information sending module 1560.
[0187] The routing information acquisition module 1510 is used to acquire policy routing information, which is used to characterize the routing relationship between at least two application components and the data service interfaces corresponding to the at least two application components. The at least two application components include a first application component and a second application component associated with the first application component.
[0188] The request information receiving module 1520 is used to receive resource request information sent by the terminal; wherein, the resource request information is information sent by the terminal in response to an operation instruction for the first application component, the first application component is an application component associated with the first application page corresponding to the first application, and the resource request information includes a first component identifier and an operation method identifier corresponding to the operation instruction, wherein the first component identifier refers to the component identifier corresponding to the first application component.
[0189] The component interface determination module 1530 is used to determine, based on the first component identifier, the operation method identifier, and the policy routing information, at least one data service interface corresponding to the second application component and the operation method identifier.
[0190] The resource information acquisition module 1540 is used to acquire resource information returned by the data service interface corresponding to the second application component when the at least one data service interface includes the data service interface corresponding to the second application component.
[0191] The response information generation module 1550 is used to generate resource response information based on the resource information.
[0192] The response information sending module 1560 is used to send the resource response information to the terminal.
[0193] In an exemplary embodiment, the policy routing information includes component routing information and composite component information corresponding to the first application component. The component routing information is used to characterize the correspondence between the first application component and at least one operation method instruction set, and the composite component information is used to characterize the association between the at least two application components.
[0194] The component interface determination module 1530 includes: a component determination unit, an operation method determination unit, and a data interface determination unit.
[0195] The component determination unit is used to determine the second application component based on the first component identifier and the composite component information.
[0196] The operation method determination unit is used to determine the operation method instruction set corresponding to the operation method identifier based on the operation method identifier and the component routing information.
[0197] A data interface determination unit is used to determine the at least one data service interface corresponding to the operation method instruction set.
[0198] In an exemplary embodiment, the policy routing information includes permission routing information, which is used to characterize the correspondence between at least one object identifier and at least one permission; The resource information acquisition module 1540 includes: an object identifier acquisition unit, an object permission acquisition unit, and a resource information acquisition unit.
[0199] The object identifier acquisition unit is used to acquire a target object identifier when the at least one data service interface includes a data service interface corresponding to the second application component, wherein the target object identifier is the current object identifier corresponding to the first application.
[0200] The object permission acquisition unit is used to determine the permission information corresponding to the target object identifier based on the target object identifier and the permission routing information.
[0201] The resource information acquisition unit is used to acquire the resource information returned by the data service interface corresponding to the second application component when the permission information meets the target permission conditions.
[0202] In an exemplary embodiment, the resource information acquisition unit is specifically used for: If the permission information includes the access permissions corresponding to the data service interface corresponding to the second application component, and the method execution permissions corresponding to the operation method instruction set corresponding to the operation method identifier, then the operation method instruction set is executed to obtain the resource information returned by the data service interface corresponding to the second application component.
[0203] In an exemplary embodiment, the routing information acquisition module 1510 includes a routing information receiving unit.
[0204] The routing information receiving unit is used to receive the policy routing information sent by the server corresponding to the second application.
[0205] Wherein, the second application is the program development application corresponding to the first application, and the policy routing information is generated by the server based on the first component configuration information corresponding to the first application component and the second component configuration information corresponding to the second application component.
[0206] In summary, the technical solution provided in this application embodiment allows the terminal to respond promptly to operation instructions for the first application component through its displayed application page, and send the corresponding first component identifier and operation method identifier to the server. The policy routing information obtained by the server can characterize the routing relationship between the application component and the data service interface. Therefore, based on the above policy routing information and the received first component identifier and operation method identifier, the server can determine the second application component associated with the first application component and at least one data service interface corresponding to this operation. When the above at least one data service interface includes the data service interface corresponding to the second application component, the server can obtain the resource information returned by the data service interface corresponding to the second application component across interfaces and generate response information to send to the terminal. By using the above policy routing information, access to the interface resource data corresponding to the associated application component can be realized, reducing the complexity of cross-component interface data access and improving the efficiency of cross-component interface data access.
[0207] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0208] Please refer to Figure 16 It illustrates the structural block of a computer device provided in one embodiment of this application. Figure 1 The computer device can be a terminal. This computer device is used to implement the resource access method on the terminal side in the above embodiments. Specifically: Typically, computer device 1600 includes a processor 1601 and a memory 1602.
[0209] Processor 1601 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1601 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1601 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1601 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 1601 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0210] The memory 1602 may include one or more computer-readable storage media, which may be non-transitory. The memory 1602 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1602 is used to store at least one instruction, at least one program, code set, or instruction set, configured to be executed by one or more processors to implement the aforementioned terminal-side resource access method.
[0211] In some embodiments, the computer device 1600 may optionally include a peripheral device interface 1603 and at least one peripheral device. The processor 1601, memory 1602, and peripheral device interface 1603 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1603 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1604, a touch display screen 1605, a camera assembly 1606, an audio circuit 1607, a positioning assembly 1608, and a power supply 1609.
[0212] Those skilled in the art will understand that Figure 16The structure shown does not constitute a limitation on the computer device 1600, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0213] In an exemplary embodiment, the computer device may also be a server for executing the server-side resource access method described above. Specifically: Computer equipment includes a central processing unit (CPU), system memory including random access memory (RAM) and read-only memory (ROM), and a system bus connecting the system memory and the CPU. Computer equipment also includes a basic input / output system (I / O system) that facilitates the transfer of information between various components within the computer, and mass storage devices for storing the operating system, application programs, and other program modules. A basic input / output system includes a display for showing information and input devices such as a mouse and keyboard for user input. Both the display and the input devices are connected to the central processing unit via an input / output controller connected to the system bus. The basic input / output system may also include an input / output controller for receiving and processing input from multiple other devices such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller also provides output to a display screen, printer, or other types of output devices. Mass storage devices are connected to the central processing unit via a mass storage controller (not shown) connected to the system bus. Mass storage devices and their associated computer-readable media provide non-volatile storage for computer devices. That is, mass storage devices may include computer-readable media (not shown) such as hard disks or CD-ROM (Compact Disc Read-Only Memory) drives. Without loss of generality, computer-readable media can include computer storage media and communication media. Computer storage media includes volatile and non-volatile, removable and non-removable media implemented using any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other solid-state storage technologies, CD-ROM, DVD (Digital Video Disc) or other optical storage, magnetic tape cassettes, magnetic tape, disk storage, or other magnetic storage devices. Of course, those skilled in the art will recognize that computer storage media are not limited to the above-mentioned types. The aforementioned system memories and mass storage devices can be collectively referred to as memory. According to various embodiments of this application, the computer device can also be connected to a remote computer on a network, such as the Internet, for operation. That is, the computer device can be connected to a network via a network interface unit connected to the system bus, or it can use a network interface unit to connect to other types of networks or remote computer systems (not shown). The memory also includes a computer program stored in the memory and configured to be executed by one or more processors to implement the above-described server-side resource access method.
[0214] In an exemplary embodiment, a computer-readable storage medium is also provided, the storage medium storing at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set, when executed by a processor, implements the resource access method described above.
[0215] Optionally, the computer-readable storage medium may include: ROM (Read Only Memory), RAM (Random Access Memory), SSD (Solid State Drives), or optical disc, etc. The random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0216] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the resource access method described above.
[0217] It should be understood that "multiple" as used herein refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, the step numbers described herein are merely illustrative of one possible execution order. In some other embodiments, the steps may not be executed in numerical order, such as two steps with different numbers being executed simultaneously, or two steps with different numbers being executed in the reverse order of the illustration. This application does not limit this.
[0218] In addition, in the specific embodiments of this application, data such as user information are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0219] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A resource access method, characterized in that, The method includes: Display the first application page corresponding to the first application; In response to an operation instruction for a first application component associated with the first application page, a resource request information is sent to the server. The resource request information includes a first component identifier and an operation method identifier corresponding to the operation instruction. The first component identifier refers to the component identifier corresponding to the first application component. Receive resource response information sent by the server; The resource response information includes resource information returned by the data service interface corresponding to the second application component. The second application component is an application component associated with the first application component. The data service interface corresponding to the second application component is a data service interface among at least one data service interface corresponding to the operation method identifier. The second application component and the at least one data service interface are determined based on the first component identifier, the operation method identifier, and the policy routing information obtained by the server. The policy routing information is used to characterize the routing relationship between at least two application components and the data service interfaces corresponding to the at least two application components. The at least two application components include the first application component and the second application component.
2. The method according to claim 1, characterized in that, The first application page corresponding to the first application is displayed, including: Display the second application page corresponding to the second application; wherein, the second application is the program development application corresponding to the first application, and the second application page includes a component page area and an application preview area, wherein the component page area includes a first page option corresponding to the first application page and a first component option corresponding to the first application component; In response to a selection instruction for the first page option, the first application page is displayed in the application preview area; The method further includes: In response to a drag trajectory for the first component option, the first application component is identified as an application component associated with the first application page, wherein the drag trajectory points to the first application page.
3. The method according to claim 2, characterized in that, The second application page also includes an application editing area, and the method further includes: Based on the application editing area, receive component configuration operations; In response to a component configuration operation for the first application component, obtain the first component configuration information corresponding to the first application component; In response to the save instruction for the configuration information of the first component, the configuration information of the first component is sent to the server corresponding to the second application; or, In response to a component configuration operation for the second application component, obtain the second component configuration information corresponding to the second application component; In response to the instruction to save the configuration information of the second component, the configuration information of the second component is sent to the server corresponding to the second application.
4. The method according to claim 1, characterized in that, The first application page is a role management page, the first application component is a role component, and the second application component is a permission component. The step of sending resource request information to the server in response to an operation instruction for the first application component associated with the first application page includes: In response to a role information operation instruction for the role component associated with the role management page, the resource request information is sent to the server as a role component identifier corresponding to the role component and a role information operation method identifier corresponding to the role information operation instruction. The resource request information includes the role component identifier and the role information operation method identifier. The receipt of resource response information sent by the server includes: The system receives role information returned by the data service interface corresponding to the role component and permission information returned by the data service interface corresponding to the permission component. The resource response information includes the role information and the permission information.
5. The method according to claim 1, characterized in that, The first application page is a permission management page, the first application component is a permission component, and the second application component is a role component. The step of sending resource request information to the server in response to an operation instruction for the first application component associated with the first application page includes: In response to a permission information operation instruction for the permission component associated with the permission management page, the system sends a permission component identifier corresponding to the permission component and a permission information operation method identifier corresponding to the permission information operation instruction to the server. The resource request information includes the permission component identifier and the permission information operation method identifier. The receipt of resource response information sent by the server includes: The system receives permission information returned by the data service interface corresponding to the permission component and role information returned by the data service interface corresponding to the role component. The resource response information includes the permission information and the role information.
6. A resource access method, characterized in that, The method includes: Obtain policy routing information, which is used to characterize the routing relationship between at least two application components and the data service interfaces corresponding to the at least two application components, wherein the at least two application components include a first application component and a second application component associated with the first application component; The terminal receives resource request information; wherein the resource request information is information sent by the terminal in response to an operation instruction for the first application component, the first application component is an application component associated with the first application page corresponding to the first application, and the resource request information includes a first component identifier and an operation method identifier corresponding to the operation instruction, wherein the first component identifier refers to the component identifier corresponding to the first application component. Based on the first component identifier, the operation method identifier, and the policy routing information, at least one data service interface corresponding to the second application component and the operation method identifier is determined. When the at least one data service interface includes a data service interface corresponding to the second application component, the resource information returned by the data service interface corresponding to the second application component is obtained; Based on the resource information, resource response information is generated; Send the resource response information to the terminal.
7. The method according to claim 6, characterized in that, The policy routing information includes component routing information and composite component information corresponding to the first application component. The component routing information is used to characterize the correspondence between the first application component and at least one operation method instruction set. The composite component information is used to characterize the association between the at least two application components. The step of determining at least one data service interface corresponding to the second application component and the operation method identifier based on the first component identifier, the operation method identifier, and the policy routing information includes: The second application component is determined based on the first component identifier and the composite component information; Based on the operation method identifier and the component routing information, determine the operation method instruction set corresponding to the operation method identifier; Determine the at least one data service interface corresponding to the operation method instruction set.
8. The method according to claim 6, characterized in that, The policy routing information includes permission routing information, which is used to represent the correspondence between at least one object identifier and at least one permission; When the at least one data service interface includes a data service interface corresponding to the second application component, obtaining the resource information returned by the data service interface corresponding to the second application component includes: When the at least one data service interface includes a data service interface corresponding to the second application component, the target object identifier is obtained, and the target object identifier is the current object identifier corresponding to the first application. Based on the target object identifier and the permission routing information, determine the permission information corresponding to the target object identifier; If the permission information meets the target permission conditions, obtain the resource information returned by the data service interface corresponding to the second application component.
9. The method according to claim 8, characterized in that, When the permission information meets the target permission conditions, obtaining the resource information returned by the data service interface corresponding to the second application component includes: If the permission information includes the access permissions corresponding to the data service interface corresponding to the second application component, and the method execution permissions corresponding to the operation method instruction set corresponding to the operation method identifier, then the operation method instruction set is executed to obtain the resource information returned by the data service interface corresponding to the second application component.
10. The method according to any one of claims 6 to 9, characterized in that, The acquisition of policy routing information includes: Receive the policy routing information sent by the server corresponding to the second application; Wherein, the second application is the program development application corresponding to the first application, and the policy routing information is generated by the server based on the first component configuration information corresponding to the first application component and the second component configuration information corresponding to the second application component.
11. A resource access device, characterized in that, The device includes: The page display module is used to display the first application page corresponding to the first application. The request information sending module is used to send resource request information to the server in response to an operation instruction for the first application component associated with the first application page. The resource request information includes a first component identifier and an operation method identifier corresponding to the operation instruction. The first component identifier refers to the component identifier corresponding to the first application component. A response information receiving module is used to receive resource response information sent by the server; The resource response information includes resource information returned by the data service interface corresponding to the second application component. The second application component is an application component associated with the first application component. The data service interface corresponding to the second application component is a data service interface among at least one data service interface corresponding to the operation method identifier. The second application component and the at least one data service interface are determined based on the first component identifier, the operation method identifier, and the policy routing information obtained by the server. The policy routing information is used to characterize the routing relationship between at least two application components and the data service interfaces corresponding to the at least two application components. The at least two application components include the first application component and the second application component.
12. The apparatus according to claim 11, characterized in that, The page display module includes: a first page display unit and a second page display unit; The second page display unit is used to display the second application page corresponding to the second application; wherein, the second application is the program development application corresponding to the first application, and the second application page includes a component page area and an application preview area, wherein the component page area includes a first page option corresponding to the first application page and a first component option corresponding to the first application component; The first page display unit is configured to display the first application page in the application preview area in response to a selection instruction for the first page option; The page display module further includes: a component drag-and-drop unit; A component drag-and-drop unit is configured to determine the first application component as an application component associated with the first application page in response to a drag trajectory for the first component option, wherein the drag trajectory points to the first application page.
13. The apparatus according to claim 12, characterized in that, The second application page also includes an application editing area, and the device further includes: a configuration operation receiving module, a configuration information acquisition module, and a configuration information sending module; A configuration operation receiving module is used to receive component configuration operations based on the application editing area; The configuration information acquisition module is used to acquire the first component configuration information corresponding to the first application component in response to the component configuration operation for the first application component. The configuration information sending module is used to send the configuration information of the first component to the server corresponding to the second application in response to the save instruction for the configuration information of the first component; or, The configuration information acquisition module is further configured to acquire the second component configuration information corresponding to the second application component in response to a component configuration operation for the second application component. The configuration information sending module is further configured to send the configuration information of the second component to the server corresponding to the second application in response to the save instruction for the configuration information of the second component.
14. The apparatus according to claim 11, characterized in that, The first application page is a role management page, the first application component is a role component, the second application component is a permission component, and the request information sending module is specifically used to respond to the role information operation instruction for the role component associated with the role management page by sending the role component identifier corresponding to the role component and the role information operation method identifier corresponding to the role information operation instruction to the server. The resource request information includes the role component identifier and the role information operation method identifier. The response information receiving module is specifically used to receive role information returned by the data service interface corresponding to the role component, and permission information returned by the data service interface corresponding to the permission component. The resource response information includes the role information and the permission information.
15. The apparatus according to claim 11, characterized in that, The first application page is a permission management page, the first application component is a permission component, the second application component is a role component, and the request information sending module is further specifically used to respond to the permission information operation instruction for the permission component associated with the permission management page, and send the permission component identifier corresponding to the permission component and the permission information operation method identifier corresponding to the permission information operation instruction to the server. The resource request information includes the permission component identifier and the permission information operation method identifier. The response information receiving module is further specifically used to receive permission information returned by the data service interface corresponding to the permission component and role information returned by the data service interface corresponding to the role component. The resource response information includes the permission information and the role information.
16. A resource access device, characterized in that, The device includes: The routing information acquisition module is used to acquire policy routing information, which is used to characterize the routing relationship between at least two application components and the data service interfaces corresponding to the at least two application components. The at least two application components include a first application component and a second application component associated with the first application component. The request information receiving module is used to receive resource request information sent by the terminal; wherein, the resource request information is information sent by the terminal in response to an operation instruction for the first application component, the first application component is an application component associated with the first application page corresponding to the first application, and the resource request information includes a first component identifier and an operation method identifier corresponding to the operation instruction, wherein the first component identifier refers to the component identifier corresponding to the first application component. The component interface determination module is used to determine at least one data service interface corresponding to the second application component and the operation method identifier based on the first component identifier, the operation method identifier and the policy routing information. The resource information acquisition module is used to acquire resource information returned by the data service interface corresponding to the second application component when the at least one data service interface includes the data service interface corresponding to the second application component. The response information generation module is used to generate resource response information based on the resource information. The response information sending module is used to send the resource response information to the terminal.
17. The apparatus according to claim 16, characterized in that, The policy routing information includes component routing information and composite component information corresponding to the first application component. The component routing information is used to characterize the correspondence between the first application component and at least one operation method instruction set. The composite component information is used to characterize the association between the at least two application components. The component interface determination module includes: a component determination unit, an operation method determination unit, and a data interface determination unit; A component determination unit is configured to determine the second application component based on the first component identifier and the composite component information; An operation method determination unit is used to determine the operation method instruction set corresponding to the operation method identifier based on the operation method identifier and the component routing information; A data interface determination unit is used to determine the at least one data service interface corresponding to the operation method instruction set.
18. The apparatus according to claim 16, characterized in that, The policy routing information includes permission routing information, which is used to represent the correspondence between at least one object identifier and at least one permission; The resource information acquisition module includes: an object identifier acquisition unit, an object permission acquisition unit, and a resource information acquisition unit; An object identifier acquisition unit is used to acquire a target object identifier when the at least one data service interface includes a data service interface corresponding to the second application component, wherein the target object identifier is the current object identifier corresponding to the first application; An object permission acquisition unit is used to determine the permission information corresponding to the target object identifier based on the target object identifier and the permission routing information; The resource information acquisition unit is used to acquire the resource information returned by the data service interface corresponding to the second application component when the permission information meets the target permission conditions.
19. The apparatus according to claim 18, characterized in that, The resource information acquisition unit is specifically used for: If the permission information includes the access permissions corresponding to the data service interface corresponding to the second application component, and the method execution permissions corresponding to the operation method instruction set corresponding to the operation method identifier, then the operation method instruction set is executed to obtain the resource information returned by the data service interface corresponding to the second application component.
20. The apparatus according to any one of claims 16 to 19, characterized in that, The routing information acquisition module includes: a routing information receiving unit; The routing information receiving unit is used to receive the policy routing information sent by the server corresponding to the second application; Wherein, the second application is the program development application corresponding to the first application, and the policy routing information is generated by the server based on the first component configuration information corresponding to the first application component and the second component configuration information corresponding to the second application component.
21. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one instruction, at least one program, a code set, or an instruction set, the at least one instruction, the at least one program, the code set, or the instruction set being loaded and executed by the processor to implement the resource access method as described in any one of claims 1 to 5, or to implement the resource access method as described in any one of claims 6 to 10.
22. A computer-readable storage medium, characterized in that, The storage medium stores at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the resource access method as described in any one of claims 1 to 5, or to implement the resource access method as described in any one of claims 6 to 10.
23. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium, a processor of a computer device reading the computer instructions from the computer-readable storage medium, and the processor executing the computer instructions to cause the computer device to perform to implement the resource access method as described in any one of claims 1 to 5, or to implement the resource access method as described in any one of claims 6 to 10.
Citation Information
Patent Citations
Page static resource access method, device and system
CN111031111A
Computerized system and method for a distributed low-code / no-code computing environment
US20210141616A1