Business project output method and device based on data modularization, medium and equipment
Patent Information
- Application Number
- CN202210925602.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-03
- Publication Date
- 2026-10-20
- Estimated Expiration
- 2042-08-03
AI Technical Summary
[0004]有鉴于此,本申请提供一种基于数据模块化的业务项目输出方法及装置、介质、设备,主要目的在于改善现有业务项目的输出严重依赖应用的开发支持和版本支持并且需要做烦琐的版本兼容的问题
本申请提供了一种基于数据模块化的业务项目输出方法及装置、介质、设备,首先当检测到用户登录客户端的行为时,将全量资源模块化数据发送至所述客户端,所述资源模块化数据是根据各个业务项目预先配置的;其次指示所述客户端基于所述资源模块化数据展示业务项目入口;再次接收目标业务项目入口的触发事件,并发送与所述目标业务项目入口相匹配的业务参数数据到所述客户端,以使得所述客户端基于所述业务参数数据进行目标业务项目的输出。与现有技术相比,本申请实施例通过对资源数据进行模块化处理并存储于搭建的配置平台中,并根据用户的业务需求进行相应的调取,实现了在对资源数据进行修改时无需更新代码以及版本的目的,以使得混编业务完全与native解耦,避免了依赖应用的开发支持和版本支持的问题,从而节省了人力资源的消耗,同时提高了用户体验感。
Smart Images

Figure CN115269051B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus, medium, and equipment for outputting business projects based on data modularization. Background Technology
[0002] Hybrid application development is a common approach in application development today and will continue to play a significant role in future application development. Currently, hybrid programming languages mainly focus on HTML5, Flutter, and React Native, typically integrated into applications as plugins. The application's plugin management entry point then passes the corresponding business parameters to the plugin based on its business requirements to activate the plugin's functionality.
[0003] Currently, existing resource management involves defining which plugin entry points to display and their business parameters within the application's code. However, adding or modifying plugin business parameters requires native code modifications and a new version release to update the application. Furthermore, older versions of the application lack the code for the new business logic, resulting in significant version support gaps. Forcing users to upgrade would severely impact user experience. These limitations make plugin functionality heavily reliant on application development and version support, necessitating cumbersome version compatibility implementations. Summary of the Invention
[0004] In view of this, this application provides a business project output method, apparatus, medium, and equipment based on data modularization. The main purpose is to improve the problem that the output of existing business projects heavily depends on application development support and version support, and requires cumbersome version compatibility.
[0005] According to one aspect of this application, a method for outputting business projects based on data modularization is provided, comprising: When a user is detected logging into the client, all modular resource data is sent to the client. This modular resource data is pre-configured according to each business project. The client is instructed to display the business project entry based on the modular data of the resource; The system receives a trigger event from the entry point of the target business project and sends business parameter data matching the entry point of the target business project to the client, so that the client outputs the target business project based on the business parameter data.
[0006] Preferably, before sending the full set of modular resource data to the client, the method further includes: A configuration platform is established, which supports files used for data exchange; The configuration platform configures resource modules for each of the business projects and configures data content for the resource modules according to the business information of the business projects, generating multiple resource modular data that match the business projects.
[0007] Preferably, instructing the client to display the business project entry based on the modular data of the resource specifically includes: If the user's login to the client is a first-time login, then instruct the client to display the business project entry based on the modular resource data sent to the client; If the user's login behavior to the client is not a first-time login, then the client is instructed to display the business project entry based on the resource modular data stored in the client's local cache area.
[0008] Preferably, after sending the full set of modular resource data to the client, the method further includes: All of the modularized data of the resources are stored in the local cache area of the client in an overlay format.
[0009] Preferably, the trigger event of the business item entry carries the identification identifier of the business item entry, and the step of receiving the trigger event of the target business item entry and sending business parameter data matching the target business item entry to the client specifically includes: The identification identifier of the target business project entry carried by the triggering event of the target business project entry is parsed to obtain the target operating environment and the target business project name that match the target business project entry. Retrieve business parameter data that matches the target operating environment and the target business project name, and send it to the client.
[0010] Preferably, the method further includes: Receive update instructions for the aforementioned business item; The update instruction revises the full set of resource modular data contained in the configuration platform so that when a user login is detected again, the updated full set of resource modular data is sent to the client.
[0011] Preferably, the update instruction includes adding, deleting, and modifying items for the business project.
[0012] According to another aspect of this application, a business project output device based on data modularization is provided, comprising: The sending module is used to send the full set of modular resource data to the client when the user's login behavior is detected. The modular resource data is pre-configured according to each business project. The display module is used to instruct the client to display the business project entry based on the modular data of the resource; The output module is used to receive the trigger event of the target business project entry and send business parameter data matching the target business project entry to the client, so that the client outputs the target business project based on the business parameter data.
[0013] Preferably, before the transmitting module, the device further includes: A setup module is used to build a configuration platform, which supports files for data exchange. The configuration module is used to configure resource modules for each of the business projects on the configuration platform, and to configure data content for the resource modules according to the business information of the business projects, thereby generating multiple resource modular data that match the business projects.
[0014] Preferably, the display module is specifically used for: If the user's login to the client is a first-time login, then instruct the client to display the business project entry based on the modular resource data sent to the client; If the user's login behavior to the client is not a first-time login, then the client is instructed to display the business project entry based on the resource modular data stored in the client's local cache area.
[0015] Preferably, after the transmitting module, the device further includes: The storage module is used to store all the modular data of the resources in an overlay format in the local cache area of the client.
[0016] Preferably, the triggering event of the business item entry carries the identification identifier of the business item entry, and the output module specifically includes: The parsing unit is used to parse the identification identifier of the target business project entry carried by the triggering event of the target business project entry, and obtain the target operating environment and the target business project name that match the target business project entry; The retrieval unit is used to retrieve business parameter data that matches the target operating environment and the target business project name, and send it to the client.
[0017] Preferably, the device further includes: The receiving module is used to receive update instructions for the business project; The revision module is used to revise the full set of resource modular data contained in the configuration platform based on the update instruction, so that when the user login behavior is detected again, the updated full set of resource modular data will be sent to the client.
[0018] Preferably, the update instruction includes adding, deleting, and modifying items for the business project.
[0019] According to another aspect of this application, a storage medium is provided that stores at least one executable instruction, which causes a processor to perform operations corresponding to the above-described data-modular business item output method.
[0020] According to another aspect of this application, a computer device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other through the communication bus; The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the above-described data-modular business project output method.
[0021] By employing the above technical solutions, the technical solutions provided in the embodiments of this application have at least the following advantages: This application provides a method, apparatus, medium, and device for outputting business items based on data modularization. First, when a user login is detected, all modular resource data is sent to the client. This modular resource data is pre-configured according to each business item. Second, the client is instructed to display the business item entry based on the modular resource data. Third, a trigger event for the target business item entry is received, and business parameter data matching the target business item entry is sent to the client, enabling the client to output the target business item based on the business parameter data. Compared with existing technologies, this application's embodiment, by modularizing resource data and storing it in a built configuration platform, and retrieving it according to the user's business needs, achieves the goal of not needing to update code or versions when modifying resource data. This completely decouples mixed-use business from native code, avoiding the problems of relying on application development support and version support, thereby saving human resources and improving the user experience.
[0022] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0023] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This application provides a flowchart of a business project output method based on data modularization, as illustrated in an embodiment of this application. Figure 2 This illustration shows a modular data structure diagram of resources provided in an embodiment of this application; Figure 3 This application illustrates a modular data style for resources provided in an embodiment. Figure 4 This application provides an overall flowchart of the application scenario. Figure 5 This illustration shows a block diagram of a business project output device based on data modularization, as provided in an embodiment of this application. Figure 6 A schematic diagram of the structure of a computer device provided in an embodiment of this application is shown. Detailed Implementation
[0024] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0025] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0026] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.
[0027] Based on this, in one embodiment, such as Figure 1As shown, a method for outputting business projects based on data modularization is provided. Taking the application of this method to computer equipment such as servers as an example, the server can be a standalone server 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, content delivery networks (CDNs), and big data and artificial intelligence platforms, such as intelligent medical systems and digital medical platforms. The above method includes the following steps: 101. When a user is detected logging into the client, all modular data of the resources will be sent to the client.
[0028] The modular resource data is pre-configured according to each business project. The configuration content may include, but is not limited to, business name, business ID, and business parameters applicable to different development languages. The client is client software (APP) installed on a terminal device (such as a mobile phone). In this embodiment, the current execution end can be a server that provides business resource parameters to the client. The user starts the client by logging in, and the client initiates a network request for modular resource data to the server. When this behavior is detected by the server, the server sends the full amount of modular resource data to the client.
[0029] It should be noted that, in order to improve the efficiency of data transmission, the client can store the full resource modular data sent by the server locally after receiving it, so that the full resource modular data can be retrieved from the client's local storage the next time the client is started, thereby reducing the time consumed by data processing.
[0030] 102. Instruct the client to display the business project entry based on resource modular data.
[0031] The business item entry point is used to represent the trigger button for entering a business item. In this embodiment, after the current execution terminal sends resource modularization data to the client, it instructs the client to display the business item entry point based on the received resource modularization data. For example, the resource modularization data includes business travel card business data module, invoice business data module, payment code business data module, etc. Then the client can display the corresponding project entry points based on the above resource modularization data, including: business travel card business entry point, invoice business entry point, payment code business entry point, etc.
[0032] It should be noted that when the client displays the business entry point, it first needs to extract the contents of the applys field in the resource modular data, which is usually in array format. By traversing the array elements (in dictionary format), the client selects the name field to display as the business entry point and the imageUrl field to display the image link of the business entry point. The business entry point is then displayed by loading the image.
[0033] 103. Receive the trigger event of the target business project entry and send the business parameter data that matches the target business project entry to the client so that the client can output the target business project based on the business parameter data.
[0034] In this embodiment, the target business project selected by the user is determined by receiving the trigger event of the project entry, and the type of the target business selected by the user is determined by the dictionary content generated when the user triggers the target business project entry, as well as the programming language of the business project in the client, etc., and then the matching business parameter data is sent to the client so that the client can output the target business project based on the business parameter data. For example, if user A triggers the business travel card business entry, and the business travel card business is developed based on the SDK plugin mode in the client used by user A, then the Cordova plugin business parameter data of the business travel card business project is sent to the client.
[0035] Compared with the prior art, the embodiments of this application modularize resource data and store it in the built configuration platform, and retrieve it according to the user's business needs. This achieves the goal of not needing to update the code and version when modifying resource data, so that the mixed-use business is completely decoupled from the native code, avoiding the problem of relying on application development support and version support, thereby saving human resources and improving the user experience.
[0036] For further explanation and limitation, in this embodiment of the application, before sending the full set of modular resource data to the client, the method further includes: building a configuration platform; configuring resource modules for each business project on the configuration platform, and configuring data content for the resource modules according to the business information of the business projects, thereby generating multiple modular resource data that match the business projects.
[0037] The configuration platform supports files used for data exchange. First, a configuration platform is built to store modular resource data for business projects. It should be noted that the configuration platform only supports static JSON files for data exchange. Second, the configuration platform is used to configure corresponding resource modules for each business project, and data content is configured for each resource module based on the business information of each project, including but not limited to business project ID, business project name, and business project icon. For example, taking the Caizhiyun application APP as an example, the modular resource data it contains is as follows: Figure 2 As shown, this includes the business project ID, business project name, business project icon, and business parameters matching the plugin mode. Based on the above, multiple resource modularization data sets matching each business project are further generated, and the resource modularization data stored on the configuration platform are as follows: Figure 3 As shown.
[0038] To improve the display efficiency of business item entry points, in this embodiment of the application, the client is instructed to display business item entry points based on resource modular data. Specifically, if the user's login behavior is the first login, the client is instructed to display business item entry points based on resource modular data sent to the client; if the user's login behavior is not the first login, the client is instructed to display business item entry points based on resource modular data stored in the client's local cache area.
[0039] It's important to note that each time a user logs into the client, they receive modular resource data from the server and store it in the client's local cache for direct retrieval upon subsequent logins. Specifically, if this is the user's first login, the client's local cache hasn't stored any data yet. In this case, the business entry point is displayed based on the modular resource data received from the server. If this is a subsequent login, the client's local cache already contains modular resource data. In this case, directly displaying the business entry point based on the data stored in the client's local cache saves time spent on data processing, effectively improving the efficiency of business entry point display.
[0040] In a further preferred embodiment of this application, after sending the full resource modular data to the client, the method further includes: storing the full resource modular data in the client's local cache area in an overlay manner.
[0041] It's important to note that storing modular resource data in an overlay manner ensures that the data stored in the client's local cache is up-to-date, reducing the likelihood of errors during business project display. Furthermore, the probability of errors during business project display can be further reduced by pre-setting a cache expiration time. When the cache time exceeds the expiration time, the modular resource data stored in the client's local cache is automatically cleared, ensuring that the business project entry is displayed based on the real-time modular resource data sent by the server, thus guaranteeing the real-time nature of the displayed business project entry.
[0042] For further explanation and limitation, in this embodiment of the application, the triggering event of the business project entry carries the identification identifier of the business project entry. Receiving the triggering event of the target business project entry and sending business parameter data matching the target business project entry to the client specifically includes: parsing the identification identifier of the target business project entry carried in the triggering event of the target business project entry to obtain the target operating environment and the target business project name matching the target business project entry; retrieving the business parameter data matching the target operating environment and the target business project name, and sending it to the client.
[0043] It's important to note that matching the required business item parameter data requires two filtering conditions: first, the name of the target business item, such as a travel card business item or an invoice business item, indicating the user's business needs; and second, the target operating environment, i.e., the plugin mode of the current business item in the current client. Only business parameter data that meets both conditions is considered to match the target business item entry point. Specifically, when a user triggers a business item entry point, the identification identifier of the business item entry point (i.e., the dictionary content corresponding to the business item) is passed to the preset parsing method. The parsing method then parses the linkType field in the dictionary, such as... Figure 2 As shown, the content of the corresponding fields is obtained according to the preset mapping relationship, such as pluginId and businessParams. pluginId is the business project ID, that is, which business project the user needs. businessParams are the parameters required by the business. Based on the above two parameters, the jump to the target business project can be completed.
[0044] Preferably, in this embodiment of the application, the method further includes: receiving an update instruction for a business project; revising the full resource modular data contained in the configuration platform based on the update instruction, so that when the user login behavior is detected again, the updated full resource modular data is sent to the client.
[0045] The update instructions include adding, deleting, and modifying items for business projects.
[0046] It should be noted that in the prior art, the plugin entry point and business parameters are defined in the APP application code. When it is necessary to add, delete or modify the plugin business parameters, the native code needs to be modified and a new version needs to be released to complete the update. The process is cumbersome and prone to mismatch. However, in the embodiment of this application, the update can be completed by modifying the resource modular data in the configuration platform and retrieving the modified resource modular data according to the user's business needs.
[0047] In specific application scenarios, such as Figure 4 As shown, when the app starts, it sends a network request to the server to obtain modular resource data and caches it for direct retrieval upon the next startup. Simultaneously, it reads data from the client's local cache, parses the data, and displays the business project entry to the user. It receives the trigger event of the target business project entry, parses the linktype field, and if it is one of the SDK plugin mode, RN plugin mode, or Flutter plugin mode, it further obtains the pluginId (business parameter) and businessParams (plugin number) by parsing the SDKParams field. If it is an H5 page mode, it creates a web jump link to realize the jump of the business project.
[0048] This application provides a method for outputting business projects based on data modularization. First, when a user login is detected, all modular resource data is sent to the client. This modular resource data is pre-configured according to each business project. Second, the client is instructed to display the business project entry based on the modular resource data. Third, a trigger event for the target business project entry is received, and business parameter data matching the target business project entry is sent to the client, enabling the client to output the target business project based on the business parameter data. Compared with existing technologies, this application's embodiment, by modularizing resource data and storing it in a built configuration platform, and retrieving it according to the user's business needs, achieves the goal of not needing to update code or versions when modifying resource data. This completely decouples hybrid business from native code, avoiding the problems of relying on application development support and version support, thereby saving human resources and improving the user experience.
[0049] Furthermore, as a response to the above Figure 1 The implementation of the method shown in this application provides a business project output device based on data modularization, such as... Figure 5 As shown, the device includes: Sending module 21, display module 22, output module 23.
[0050] The sending module 21 is used to send the full set of modular resource data to the client when the user's login behavior is detected. The modular resource data is pre-configured according to each business project. Display module 22 is used to instruct the client to display the business project entry based on the modular data of the resource; Output module 23 is used to receive the trigger event of the target business project entry and send business parameter data matching the target business project entry to the client, so that the client outputs the target business project based on the business parameter data.
[0051] In specific application scenarios, before the sending module, the device further includes: A setup module is used to build a configuration platform, which supports files for data exchange. The configuration module is used to configure resource modules for each of the business projects on the configuration platform, and to configure data content for the resource modules according to the business information of the business projects, thereby generating multiple resource modular data that match the business projects.
[0052] In specific application scenarios, the display module is specifically used for: If the user's login to the client is a first-time login, then instruct the client to display the business project entry based on the modular resource data sent to the client; If the user's login behavior to the client is not a first-time login, then the client is instructed to display the business project entry based on the resource modular data stored in the client's local cache area.
[0053] In specific application scenarios, after the sending module, the device further includes: The storage module is used to store all the modular data of the resources in an overlay format in the local cache area of the client.
[0054] In specific application scenarios, the triggering event of the business project entry carries the identification identifier of the business project entry, and the output module specifically includes: The parsing unit is used to parse the identification identifier of the target business project entry carried by the triggering event of the target business project entry, and obtain the target operating environment and the target business project name that match the target business project entry; The retrieval unit is used to retrieve business parameter data that matches the target operating environment and the target business project name, and send it to the client.
[0055] In specific application scenarios, the device also includes: The receiving module is used to receive update instructions for the business project; The revision module is used to revise the full set of resource modular data contained in the configuration platform based on the update instruction, so that when the user login behavior is detected again, the updated full set of resource modular data will be sent to the client.
[0056] In specific application scenarios, the update instructions include adding, deleting, and modifying items for the business project.
[0057] This application provides a business project output device based on data modularization. First, when a user login is detected, all modular resource data is sent to the client. This modular resource data is pre-configured according to each business project. Second, the client is instructed to display the business project entry based on the modular resource data. Third, a trigger event for the target business project entry is received, and business parameter data matching the target business project entry is sent to the client, enabling the client to output the target business project based on the business parameter data. Compared with existing technologies, this application's embodiment, by modularizing resource data and storing it in a built configuration platform, and retrieving it according to the user's business needs, achieves the goal of not needing to update code or versions when modifying resource data. This completely decouples hybrid business from native code, avoiding the problems of relying on application development support and version support, thereby saving human resources and improving the user experience.
[0058] According to one embodiment of this application, a storage medium is provided, the storage medium storing at least one executable instruction, the computer-executable instruction being able to execute the data-modular business project output method in any of the above method embodiments.
[0059] Based on this understanding, the technical solution of this application can be embodied in the form of a software product. The software product can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, or portable hard drive), and includes several instructions to cause a computer device (such as a personal computer, server, or network device) to execute the methods described in the various implementation scenarios of this application.
[0060] Figure 6 The diagram shows a structural schematic of a computer device according to one embodiment of the present application. The specific embodiments of the present application do not limit the specific implementation of the computer device.
[0061] like Figure 6As shown, the computer device may include: a processor 302, a communications interface 304, a memory 306, and a communications bus 308.
[0062] The processor 302, communication interface 304, and memory 306 communicate with each other via communication bus 308.
[0063] Communication interface 304 is used to communicate with other network elements such as clients or other servers.
[0064] The processor 302 is used to execute program 310, specifically to execute the relevant steps in the above-described embodiment of the business project output method based on data modularization.
[0065] Specifically, program 310 may include program code that includes computer operation instructions.
[0066] Processor 302 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application. The computer device includes one or more processors, which may be processors of the same type, such as one or more CPUs; or they may be processors of different types, such as one or more CPUs and one or more ASICs.
[0067] Memory 306 is used to store program 310. Memory 306 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0068] Specifically, program 310 can be used to cause processor 302 to perform the following operations: When a user is detected logging into the client, all modular resource data is sent to the client. This modular resource data is pre-configured according to each business project. The client is instructed to display the business project entry based on the modular data of the resource; The system receives a trigger event from the entry point of the target business project and sends business parameter data matching the entry point of the target business project to the client, so that the client outputs the target business project based on the business parameter data.
[0069] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the physical device outputting the aforementioned data-modular business projects, supporting the operation of information processing programs and other software and / or programs. The network communication module is used to enable communication between the various components within the storage medium, as well as communication with other hardware and software in the information processing physical device.
[0070] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For system embodiments, since they largely correspond to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0071] The methods and systems of this application may be implemented in many ways. For example, they may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order of steps for the methods is for illustrative purposes only, and the steps of the methods of this application are not limited to the order specifically described above, unless otherwise specifically stated. Furthermore, in some embodiments, this application may also be implemented as a program recorded on a recording medium, the program including machine-readable instructions for implementing the methods according to this application. Thus, this application also covers recording media storing programs for performing the methods according to this application.
[0072] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0073] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A business project output method based on data modularization, characterized in that, include: When a user is detected logging into the client, all modular resource data is sent to the client. This modular resource data is pre-configured according to each business project. The client is instructed to display the business project entry based on the modular data of the resource; The system receives a trigger event for a target business project entry point, the trigger event of which carries an identification identifier for the business project entry point. The system parses the identification identifier of the target business project entry point carried in the trigger event to obtain the target operating environment and the target business project name matching the target business project entry point. Specifically, when a user triggers the business project entry point, the identification identifier of the business project entry point is passed to a preset parsing method, which parses the linkType field in a dictionary to determine the target operating environment. The system retrieves business parameter data that matches the target operating environment and the target business project name, and sends it to the client so that the client can output the target business project based on the business parameter data. Specifically, if the linkType field is one of SDK plugin mode, RN plugin mode, or Flutter plugin mode, the business parameters pluginId and businessParams are obtained by parsing the SDKParams field to output the target business project. If the linkType field is an H5 page mode, a new web redirect link is created to redirect to the business project.
2. The method according to claim 1, characterized in that, Before sending the full set of modular resource data to the client, the method further includes: A configuration platform is established, which supports files used for data exchange; The configuration platform configures resource modules for each of the business projects and configures data content for the resource modules according to the business information of the business projects, generating multiple resource modular data that match the business projects.
3. The method according to claim 1, characterized in that, The instruction to the client to display the business project entry based on the modular data of the resources specifically includes: If the user's login to the client is a first-time login, then instruct the client to display the business project entry based on the modular resource data sent to the client; If the user's login behavior to the client is not a first-time login, then the client is instructed to display the business project entry based on the resource modular data stored in the client's local cache area.
4. The method according to claim 3, characterized in that, After sending the full set of modular resource data to the client, the method further includes: All of the modularized data of the resources are stored in the local cache area of the client in an overlay format.
5. The method according to any one of claims 1-4, characterized in that, The method further includes: Receive update instructions for the aforementioned business item; The update instruction revises the configuration platform to include all the resource modular data, so that when a user login is detected again, the updated full resource modular data is sent to the client.
6. The method according to claim 5, characterized in that, The update instructions include adding, deleting, and modifying items for the business items.
7. A business project output device based on data modularization, characterized in that, include: The sending module is used to send the full set of modular resource data to the client when the user's login behavior is detected. The modular resource data is pre-configured according to each business project. The display module is used to instruct the client to display the business project entry based on the modular data of the resource; An output module is used to receive a trigger event for a target business project entry point. The trigger event carries an identification identifier for the business project entry point. Specifically, the output module includes: a parsing unit, used to parse the identification identifier of the target business project entry point carried in the trigger event to obtain a target runtime environment and a target business project name matching the target business project entry point; wherein, when a user triggers the business project entry point, the identification identifier of the business project entry point is passed to a preset parsing method, which parses the linkType field in a dictionary to determine the target runtime environment; and a retrieval unit, used to retrieve business parameter data matching the target runtime environment and the target business project name, and send it to the client so that the client outputs the target business project based on the business parameter data; wherein, if the linkType field is one of SDK plugin mode, RN plugin mode, or Flutter plugin mode, the business parameter pluginId and plugin number businessParams are obtained by parsing the SDKParams field to output the target business project; if the linkType field is an H5 page mode, a new web redirect link is created to achieve redirection to the business project.
8. A storage medium storing at least one executable instruction, characterized in that, The executable instructions cause the processor to perform the operations corresponding to the data modularization-based business project output method as described in any one of claims 1-6.
9. A computer device, comprising: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction, characterized in that the executable instruction causes the processor to perform the operation corresponding to the data modular business project output method as described in any one of claims 1-6.
Citation Information
Patent Citations
Front-end development method and device, equipment and medium
CN113703738A
Business processing request management and control method and device, electronic equipment and storage medium
CN114490747A