Data processing method and device, equipment and storage medium

By building the main information flow framework and business containers, registering business cards and responding to trigger events, the problem of differences in information flow output capabilities of different business types is solved, and unified development efficiency and output consistency across operating systems and business types are achieved.

CN118656113APending Publication Date: 2024-09-17SHUXING TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410695000.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Information flows of different business types have different output capabilities when responding to the same trigger event, resulting in high development costs and low efficiency.

Method used

Provide a data processing method by obtaining the target software development toolkit, building the main information flow framework and business container, registering business cards in the container, responding to trigger events to determine and render the target business data, and achieving unified output capabilities.

Benefits of technology

It simplifies development across operating systems and business types, improves development efficiency, and ensures the consistency of output capabilities of information flows of different business types in different operating systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656113A
    Figure CN118656113A
Patent Text Reader

Abstract

The embodiment of the invention discloses a data processing method and device, equipment and a storage medium, and the method comprises the steps: obtaining a target software development kit which comprises information flow main frame configuration information and business logic configuration information; and constructing an information flow main frame according to the information flow main frame configuration information, and configuring a service container corresponding to the target service type in the information flow main frame according to the service logic configuration information and the service information flow of the target service type. And registering at least one service card in the service container according to the service information flow. And in response to a trigger event for the service information flow, determining target service data from the service information flow. And rendering the target business data into the target business card, and displaying the target business card. The output capability difference of the information streams of different service types can be flattened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of the Internet, and in particular to a data processing method, device, equipment and storage medium. Background Art

[0002] Information flow refers to a scenario in which data is acquired and displayed in a streaming manner. It is generally used to display real-time or dynamically updated content, such as social media message streams, news website article lists, and video software video streams. With the iterative changes in the market and the diversification of user needs, the demand for adding other business types of information flows to a single information flow scenario is increasing. Whether it is a video information flow scenario or a live broadcast information flow scenario, there is a demand to add another business type of information flow, such as adding an advertising information flow or a live broadcast room information flow to a video information flow scenario. However, information flows of different business types have different external output capabilities in response to the same trigger event. Therefore, how to smooth out the differences in output capabilities of information flows of different business types is an issue worthy of attention. Summary of the invention

[0003] The technical problem to be solved by the embodiments of the present invention is to provide a data processing method, device, equipment and storage medium, which can smooth out the output capacity differences of information flows of different business types.

[0004] In a first aspect, an embodiment of the present invention provides a data processing method, including:

[0005] Obtaining a target software development kit; the target software development kit includes information flow main framework configuration information and business logic configuration information;

[0006] Building an information flow main frame according to the information flow main frame configuration information, and configuring a business container corresponding to the target business type in the information flow main frame according to the business logic configuration information and the business information flow of the target business type;

[0007] registering at least one service card in the service container according to the service information flow;

[0008] In response to a triggering event on the service information flow, determining target service data from the service information flow;

[0009] The target business data is rendered into a target business card, and the target business card is displayed.

[0010] It can be seen that in the embodiment of the present application, a target software development kit including information flow main framework configuration information and business logic configuration information can be provided, and an information flow main framework can be constructed based on the information flow main framework configuration information in the target software development kit. At the same time, according to the business logic configuration information in the target software development kit and the business information flow of the target business type, a business container corresponding to the target business type can be configured in the constructed information flow main framework. At least one business card can be registered in the business container based on the business information, and in response to a triggering event of the business information flow, target business data can be determined in the business information flow, and then the target business data can be rendered into the target business card, and the target business card can be displayed on the device screen. Since the business information flow of the target business type can be the business information flow of any business type, that is, for the business information flow of any business type, the target software development kit including the information flow main framework configuration information and the business logic configuration information can be reused to realize the process of building the information flow main framework and configuring the business container corresponding to any business type, and finally displaying the target business card. Therefore, the information flow main framework configuration information and the business logic configuration information of the business information flow of any business type are the same, and the capabilities of determining the target business data in response to the trigger event and rendering the target business data to the target business card are the same, which can smooth out the output capability differences of information flows of different business types.

[0011] In an optional implementation, the information flow main frame configuration information includes a preset life cycle, and the business logic configuration information is used to configure the sliding business logic of the business container; the method also includes:

[0012] Setting the life cycle of each business card to the preset life cycle;

[0013] The determining target service data from the service information flow in response to a triggering event on the service information flow comprises:

[0014] In response to a trigger event of a currently displayed business card, determining the target business card from the at least one business card according to the trigger event and the sliding business logic of the business container, wherein the target business card is an adjacent card of the currently displayed business card;

[0015] According to the life cycle of the target service card, target service data is determined from the service information flow.

[0016] In an optional implementation, determining the target service data from the service information flow according to the life cycle of the target service card includes:

[0017] If the life cycle of the target service card has not ended, determining that the target service data is the service data currently carried by the target service card;

[0018] If the life cycle of the target business card has ended, it is determined that the business data currently carried by the target business card is in a destroyed state, and the target business data is determined from other business data contained in the business information flow. The other business data includes business data in the business information flow except the business data carried by the currently displayed business card and the business data in a destroyed state.

[0019] In an optional implementation, in response to a trigger event of a currently displayed business card, determining the target business card from the at least one business card according to the trigger event and the sliding business logic of the business container includes:

[0020] According to the correspondence between the service card determination strategy indicated by the sliding service logic and the trigger event, obtaining the service card determination strategy corresponding to the trigger event;

[0021] The target service card is determined from the at least one service card according to the service card determination strategy.

[0022] In an optional implementation manner, determining the target service card from the at least one service card according to the service card determination strategy includes:

[0023] If the service card determination strategy indicates a currently displayed service card, taking the currently displayed service card as the target service card;

[0024] If the service card determination strategy indicates a next service card, taking the next service card of the currently displayed service card in the at least one service card as the target service card;

[0025] If the service card determination strategy indicates a previous service card, the previous service card of the currently displayed service card in the at least one service card is used as the target service card.

[0026] In one embodiment, the method further comprises:

[0027] Under any operating system, if there is a demand for processing the business information flow, the steps of obtaining the target software development kit, building the information flow main framework according to the information flow main framework configuration information, configuring the business container in the information flow main framework according to the business logic configuration information and the business information flow, registering at least one business card in the business container according to the business information flow, determining the target business data from the business information flow in response to a trigger event for the business information flow, rendering the target business data into the target business card, and displaying the target business card are triggered.

[0028] In one embodiment, the method further comprises:

[0029] In business information flows of multiple business types, for any business type of information flow, the business type of the information flow of any business type can be used as the target business type to trigger the execution of the acquisition of the target software development kit; the target software development kit includes information flow main framework configuration information and business logic configuration information; an information flow main framework is constructed according to the information flow main framework configuration information, and a business container corresponding to the target business type is configured in the information flow main framework according to the business logic configuration information and the business information flow of the target business type; at least one business card is registered in the business container according to the business information flow; in response to a trigger event of the business information flow, target business data is determined from the business information flow; the target business data is rendered into a target business card, and the target business card is displayed.

[0030] In a second aspect, an embodiment of the present invention provides a data processing device, the device comprising:

[0031] An acquisition unit, used to acquire a target software development kit; the target software development kit includes information flow main framework configuration information and business logic configuration information;

[0032] A configuration unit, configured to construct an information flow main frame according to the information flow main frame configuration information, and configure a service container corresponding to the target service type in the information flow main frame according to the service logic configuration information and the service information flow of the target service type;

[0033] A registration unit, configured to register at least one service card in the service container according to the service information flow;

[0034] a determining unit, configured to determine target service data from the service information flow in response to a triggering event on the service information flow;

[0035] The display unit is configured to render the target service data into a target service card and display the target service card.

[0036] In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a communication interface and a processor, wherein the memory, the communication interface and the processor are interconnected; the memory stores a computer program, and the processor calls the computer program stored in the memory to implement the method described in the first aspect above.

[0037] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0038] In a fifth aspect, an embodiment of the present invention provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer executes the method described in the first aspect.

[0039] In a sixth aspect, an embodiment of the present invention provides a computer program, which includes a computer program code. When the computer program code runs on a computer, the computer executes the method described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.

[0041] Figure 1 is a flow chart of a data processing method provided in an embodiment of the present application;

[0042] Figure 2 It is another data processing method provided by the embodiment of the present application;

[0043] Figure 3 This is a schematic diagram of a feed flow architecture provided in an embodiment of the present application;

[0044] Figure 4 It is a schematic diagram of the life cycle provided by the embodiment of the present application;

[0045] Figure 5 is a schematic diagram of a data processing device provided in an embodiment of the present application;

[0046] Figure 6 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] Before further describing the embodiments of the present application, the nouns involved in the embodiments of the present application are described as follows.

[0049] Business information flow refers to data and messages transmitted through telecommunications, the Internet or other communication media. For example, on platforms such as email, instant messaging, and social media, business information is sent from one user to another through network transmission.

[0050] Feed refers to a way for users to subscribe and obtain content on platforms such as the Internet and social media. It is a form of information flow that presents content that users are interested in, such as articles, news, blogs, social media posts, etc. in a streaming manner. Users can receive updates on these contents by subscribing or following sources, such as personal accounts, websites, applications, etc.

[0051] Application Programming Interface (API) is a set of predefined functions that aims to provide applications and developers with the ability to access a set of routines based on certain software or hardware without having to access the source code or understand the details of the internal working mechanism.

[0052] Software Development Kit (SDK) is a set of development tools, libraries and documents that can help developers create, test and deploy specific types of software applications. It is used to support specific development environments, platforms or technologies. The software development kit can include component software libraries and frameworks, providing pre-written code modules and functions so that developers can use them in applications. These libraries and frameworks can simplify the development process and provide the implementation of common functions, such as graphical interfaces, network communications, database access, etc. For example, the target software development kit including information flow main framework configuration information and business logic configuration information provided by the embodiment of the present application, developers can use the information flow main framework configuration information provided by the target software development kit to realize the construction of the information flow main framework, and can use the business logic configuration information and the business information flow of the target business type provided by the target software development kit at the same time, configure the business container corresponding to the target business type in the information flow main framework of the construction, wherein the business information flow of the target business type can be obtained from the developer from the actual target business scenario or the corresponding database.

[0053] A data processing method provided in an embodiment of the present application can be applied to application platforms in various business scenarios, such as live broadcast, social media, news, e-commerce, short videos, etc. Take an application software of a social media platform as an example, if the social media platform needs to access the business information flow of the live broadcast business type and the business information flow of the graphic business type. In the development and testing stage of the application software, the developer can obtain the target software development kit through the data processing method provided in the embodiment of the present application, build the information flow main framework according to the information flow main framework configuration information included in the target software development kit, and configure the business container corresponding to the live broadcast business type in the information flow main framework according to the business logic configuration information and the business information flow of the live broadcast business type included in the target software development kit, and register at least one business card in the corresponding business container according to the business information flow of the live broadcast business type, so that the target business card in the at least one business card can undertake the target business data determined from the business information flow of the live broadcast business type, that is, the target business data can be rendered to the target business card, and the target business card can be displayed in the application software.

[0054] At the same time, the target software development kit can be reused for the business information flow of the graphic and text business type, that is, the information flow main framework can be constructed according to the information flow main framework configuration information included in the target software development kit, and the business container corresponding to the graphic and text business type can be configured in the information flow main framework according to the business logic configuration information included in the target software development kit and the business information flow of the graphic and text business type, and at least one business card is registered in the corresponding business container according to the business information flow of the graphic and text business type, so that the target business card in the at least one business card can undertake the target business data determined from the business information flow of the graphic and text business type, and the target business card can be displayed in the application software.

[0055] In the release stage of the application software, the target software development kit and the constructed information flow main framework and business container and other information can be packaged as the target application software so that the user can download the target application software, thereby achieving the steps of obtaining the target software development kit, constructing the information flow main framework according to the information flow main framework configuration information, and configuring the business container corresponding to the target business type in the information flow main framework according to the business logic configuration information and the business information flow of the target business type, registering at least one business card in the business container according to the business information flow, determining the target business data from the business information flow in response to the triggering event of the business information flow, rendering the target business data into the target business card, and displaying the target business card. Among them, the business information flow of the target business type can be obtained from the database or data server through the address of the database or data server defined in the constructed information flow main framework.

[0056] Among them, the information flow main framework configuration information in the target software development kit may include network configuration information, database configuration information, file path and storage configuration information, log and debug configuration information, security configuration information, plug-in configuration information, and interface configuration information. Network configuration information, such as server address, port number, protocol type, etc. Database configuration information, that is, configuration related to database connection, such as database server address, user name, password, etc. File path and storage configuration information, that is, information such as file path, storage directory and access rights. Log and debug configuration information, that is, information such as log record level, log file path, debug switch, etc., is used to debug and record the running log and status information of the application. Security configuration information, that is, encryption algorithm, access control policy, etc. Plug-in configuration information, that is, the configuration parameters of the plug-in or protocol available for call, can be used to integrate and expand the functions and services of the application. Interface configuration information, which may include configuration information of interface style, theme, layout and user interaction behavior, etc. The information flow main framework is constructed according to the information flow main framework configuration information in the target software development kit, that is, the main framework configuration information is customized and adjusted according to the specific business scenario requirements, so that the constructed information flow main framework meets the specific requirements and the business information flow can be processed to meet the specific requirements. The business logic configuration information in the target software development kit may include configuration information of business rules and policies of various business logics, etc. The business logic configuration information can be used to configure the business container so that the business container can implement the sliding business logic based on the business logic configuration information, and implement the management logic of the business card, etc.

[0057] A data processing method provided in an embodiment of the present application can be applied to electronic devices including but not limited to: smart phones using any operating system (such as Android phones, iOS phones or Hongmeng phones, etc.), tablet computers, portable personal computers, mobile Internet devices (Mobile Internet Devices, MID), servers, and other electronic devices.

[0058] Based on the above description, see Figure 1 , Figure 1 is a flow chart of a data processing method provided in an embodiment of the present application, such as Figure 1 The data processing method shown includes but is not limited to steps S101 to S105, wherein:

[0059] S101. Obtain a target software development kit, where the target software development kit includes information flow main framework configuration information and business logic configuration information.

[0060] In one implementation, since different operating systems have different built-in frameworks, such as the view framework View used by the Android system and the view framework UIKit used by the IOS system, and different frameworks have different operation rules, naming rules, and code languages, etc., in the process of developing application software, it is necessary to carry out corresponding development for different operating systems, resulting in increased development costs and low development efficiency. At the same time, since different operating systems use different view frameworks and different view frameworks have different operation rules, the application software developed for different operating systems will have different external output capabilities in response to the same user trigger event. For example, in the display screens of two terminal devices using different operating systems, the same sliding operation is performed on the displayed business card, such as sliding up 1 cm, but because different operating system frameworks have different operation rules, that is, the corresponding relationship between the business card determination strategy and the trigger event is different, the output effect in response to the upward sliding of 1 cm will be different, such as one operating system can respond to the upward sliding of 1 cm, move the currently displayed business card out of the screen, and display the next business card. In response to the upward sliding of 1 cm, the other operating system moves part of the currently displayed business card out of the screen, and the other part remains displayed on the screen.

[0061] A data processing method provided by the embodiment of the present application can solve the above problems without different development for different operating systems, and can make the output capacity of the same business information flow in different operating systems the same. Through a data processing method provided by the embodiment of the present application, the corresponding application software is developed using a target software development kit, and the information flow main framework configuration information and the business logic configuration information in the target software development kit can define unified operation rules, naming rules and code languages, etc., so that developers can write applications based on the target software development kit, and the application can run in any operating system. That is, in the case of any operating system, for the business information flow to be processed, the information flow main framework can be constructed through the information flow main framework configuration information in the target software development kit, and according to the business logic configuration information in the target software development kit and the business information flow to be processed, a business container is configured in the information flow main framework, and then at least one business card can be registered in the business container according to the business information flow to be processed, and in response to the triggering event of the business information flow to be processed, the target business data is determined from the business information flow to be processed, and the target business data is rendered into the target business card, and the processing flow of the target business card is displayed. It greatly simplifies the development process and improves development efficiency. The target software development kit in the embodiment of the present application can be used in scenarios where there is a demand for processing business information flows, for example, pushing live business information flows to user clients according to a set push strategy, pushing advertising information flows to user clients, and pushing graphic information flows to user clients, etc., to achieve the processing requirements for business information flows in these scenarios.

[0062] S102: construct an information flow main framework according to the information flow main framework configuration information, and configure a service container corresponding to the target service type in the information flow main framework according to the service logic configuration information and the service information flow of the target service type.

[0063] In one implementation, the information flow main frame configuration information includes a preset life cycle, and the business logic configuration information can be used to configure the sliding business logic of the business container. The data processing method for the business information flow can be: obtaining a target software development kit, building an information flow main frame according to the information flow main frame configuration information, and configuring a business container corresponding to the target business type in the information flow main frame according to the business logic configuration information and the business information flow of the target business type, registering at least one business card in the business container according to the business information flow and setting the life cycle of each business card to the preset life cycle. In response to a trigger event of a currently displayed business card, a target business card is determined from the at least one business card according to the trigger event and the sliding business logic of the business container, and the target business card is an adjacent card of the currently displayed business card. According to the life cycle of the target business card, the target business data is determined from the business information flow.

[0064] The life cycle of the target business card is the period from carrying the target business data to destroying the target business data. According to the life cycle of the target business card, the target business data is determined from the business information flow. Specifically: if the life cycle of the target business card has not ended, the target business data is determined to be the business data currently carried by the target business card; if the life cycle of the target business card has ended, the business data currently carried by the target business card is determined to be in a destroyed state, and the target business data is determined from other business data contained in the business information flow. Other business data includes business data in the business information flow except the business data carried by the currently displayed business card and the business data in a destroyed state.

[0065] In response to a trigger event of a currently displayed business card, a target business card is determined from the at least one business card according to the trigger event and the sliding business logic of the business container, including: obtaining the business card determination policy corresponding to the trigger event according to the corresponding relationship between the business card determination policy indicated by the sliding business logic and the trigger event, and determining the target business card from the at least one business card according to the business card determination policy. The target business card is determined from the at least one business card according to the business card determination policy. The specific implementation method may be that if the business card determination policy indicates the currently displayed business card, the currently displayed business card is used as the target business card; if the business card determination policy indicates the next business card, the next business card of the currently displayed business card in the at least one business card is used as the target business card; if the business card determination policy indicates the previous business card, the previous business card of the currently displayed business card in the at least one business card is used as the target business card.

[0066] Exemplarily, the triggering event may be a sliding operation of a user on a currently displayed business card. According to the correspondence between the sliding operation of the user on the currently displayed business card and the business card determination policy indicated by the sliding business logic, the business card determination policy corresponding to the sliding operation of the user on the currently displayed business card is obtained, and the target business card is determined from the at least one business card according to the business card determination policy. For example, the corresponding business card determination policy may be to determine the next business card of the currently displayed business card as the target business card.

[0067] S103: Register at least one service card in the service container according to the service information flow.

[0068] In one implementation, a business container can define a view area, register at least one business card in the business container according to the business information flow, that is, according to the target business type of the business information flow, obtain the card business logic information corresponding to the target business type, generate at least one business card in the business container, and the business container specifies the position arrangement relationship of the at least one generated business card in the business container. The card business logic information corresponding to the target business type can be written by the developer according to the requirements when writing the application software, or can also be obtained from the information flow main framework configuration information in the target software development kit, that is, the information flow main framework configuration information can include the card business logic information corresponding to various different business types. The card business logic information can include the layout, interaction logic and data processing logic information of the card. Exemplarily, the card business logic corresponding to the live broadcast business type can be defined. For the business data of each live broadcast business type, the data processing logic included in the card business logic can be used to extract the avatar and user name of the user who publishes the business data, and display the avatar and user of the publishing user above the card according to the layout information included in the card business logic, and display comments, likes, favorites and other controls in the card. According to the interactive logic included in the business logic of the card, corresponding display and processing can be performed in response to the user's interactive operations on the card, such as clicking the comment control to display the comment input control, etc.

[0069] S104: In response to a triggering event on a service information flow, determine target service data from the service information flow.

[0070] The triggering event of the business information flow may be a target triggering event in the push strategy set for the business information flow, and the push strategy may include, for example, a strategy for pushing in the order of the release time of each business data in the business information flow, a strategy for obtaining personalized information such as the user's historical behavior and geographic location, and obtaining business data matching the personalized information in the business information flow according to the personalized information for pushing, a strategy for pushing related business data in the business information flow according to the system time or device type in the user's current device, and a strategy for controlling the push frequency according to the user's historical behavior, etc. Different push strategies may be set for business information flows of different business types, such as a push strategy set for a business information flow of a live broadcast business type, which may be a strategy for pushing in the order of the release time of each business data in the business information flow, and a push strategy set for a business information flow of a text message business type, which may be a strategy for obtaining business data published by users associated with the user in the business information flow of the text message business type according to users associated with the user, such as friend users or follow-up users, and pushing. At the same time, more than one push strategy can be set for a business information flow of a business type. For example, for a business information flow of a live broadcast business type, a strategy can be set to push data in the order of the release time of each business data in the business information flow, as well as a strategy to control the push frequency based on the user's historical behavior.

[0071] If the push strategy of a business information flow is a strategy for pushing data in the order of the release time of each business data in the business information flow, the trigger event included in the push strategy can be the release time of any business data in the business information flow, which is the same as the system time in the device on which the current target software development kit runs, or the time difference between the release time and the system time is not greater than a preset time threshold, then any business data can be determined as the target business data from the business information flow.

[0072] S105: Render the target business data into a target business card, and display the target business card.

[0073] It can be understood that due to the data processing method described in steps S101 to S105, corresponding data processing can be performed on the business information flow of the target business type, wherein the target business type can refer to any business type, that is, the business information flow of any business type can implement the steps of building the information flow main framework, configuring the business container, registering the business card, determining the target business data, rendering the target business data to the target business card, etc. according to the data processing method provided in the embodiment of the present application. Therefore, the information flow main framework configuration information and the business logic configuration information of the business information flow of any business type are the same, and the ability to determine the target business data and render the target business data to the target business card in response to the trigger event is the same, which can achieve the output capability difference of information flows of different business types being smoothed out.

[0074] Furthermore, when processing business information flows of multiple different business types, the data processing method in steps S101 to S105 can be executed for any business information flow of the multiple different business types, or in a business information flow of a business type, the business information flow of another business type can be accessed by executing the data processing method in steps S101 to S105. Exemplarily, if a business information flow of a graphic business type is processed by the data processing method in steps S101 to S105, a business information flow of a short video business type is accessed on this basis, and the data processing method in steps S101 to S105 is repeatedly executed for the business information flow of the short video business type, wherein the repeated execution of step S101 for the business information flow of the short video business type can be understood as the reuse of the target software development kit obtained when executing step S101 for a business information flow of a graphic business type. Therefore, in the information flow scenario of multiple business types, it is possible to smooth out the output capacity differences of information flows of different business types.

[0075] In an optional implementation, the information flow main frame configuration information includes a preset life cycle. To better understand the application of the preset life cycle in the process of the business card carrying the target business data, please refer to Figure 2 , Figure 2 This is another data processing method provided in an embodiment of the present application.

[0076] S201. Obtain a target software development kit, where the target software development kit includes information flow main framework configuration information and business logic configuration information.

[0077] S202: construct an information flow main framework according to the information flow main framework configuration information, and configure a business container corresponding to the target business type in the information flow main framework according to the business logic configuration information and the business information flow of the target business type.

[0078] S203: Register at least one service card in the service container according to the service information flow.

[0079] The view area defined by the business container may be an area larger than the current device screen, and registering at least one business card in the business container may include obtaining the card business logic corresponding to the target business type of the business information flow and the position arrangement relationship of the business cards in the view area defined by the business container, determining the arrangement position of the at least one business card in the business container according to the position arrangement relationship of the business cards in the view area defined by the business container, and implementing the execution logic of the at least one business card based on the obtained card business logic. The arrangement relationship of the business cards defined by the business container may be defined by the developer according to specific requirements during the development process, or may be included in the business logic configuration information of the business container.

[0080] S204: Set the life cycle of each business card to a preset life cycle.

[0081] The preset life cycle defines the entire process from the beginning to the end of the business card, which may include the entire process of displaying, not displaying, and ending the business card. The life cycle of each business card refers to the process from the beginning to the end of each specific business card, such as the life cycle of a business card may include the process of displaying and ending, and the life cycle of another business card may include the process of displaying, not displaying, and ending. Setting the life cycle of each business card as the preset life cycle means that each business card determines the life cycle of each business card according to the entire process from the beginning to the end defined by the preset life cycle. Exemplarily, the preset life cycle defines that the life cycle ends when the business card is not displayed on the device screen for 5 minutes, and the interval between the business cards that are currently displayed on the device screen in response to a sliding operation meets the interval threshold (such as an interval of 5 business cards or an interval of 5 distance units, etc.). The life cycle of a business card instance is set to the preset life cycle, and if it is detected that the business card instance is not displayed on the device screen for 5 minutes and the life cycle end condition defined in the preset life cycle is met, the life cycle of the business card instance ends.

[0082] S205: In response to a trigger event of a currently displayed business card, determine a target business card from at least one business card according to the trigger event and the sliding business logic of the business container, where the target business card is an adjacent card to the currently displayed business card.

[0083] The adjacent card of the currently displayed business card refers to a business card that is spatially adjacent to the currently displayed business card in the view area defined by the business container.

[0084] S206: If the life cycle of the target service card has not ended, determine that the target service data is the service data currently carried by the target service card.

[0085] If the life cycle of the target business card has not ended and the target business card currently does not carry business data, the target business data is determined from the business information flow according to the push strategy set for the business information flow, the target business data is rendered into the target business card, and the target business card is displayed.

[0086] The life cycle of the target business card has not ended, that is, the target business card is displayed on the device screen, or the target business card is not displayed on the device screen but the life cycle end condition is not met.

[0087] S207. If the life cycle of the target business card has ended, it is determined that the business data currently carried by the target business card is in a destroyed state, and the target business data is determined from other business data included in the business information flow. The other business data includes business data in the business information flow except the business data carried by the currently displayed business card and the business data in a destroyed state.

[0088] Among them, the life cycle of the target business card ends, which means that the business data currently carried by the target business card is released and destroyed, and the target business data is determined from other business data contained in the business information flow, which means that according to the push strategy set by the business information flow, the target business data is determined from other business data contained in the business information flow, and the determined target business data is rendered to the target business card.

[0089] S208: Render the target business data into the target business card, and display the target business card.

[0090] It is understandable that different operating systems use different view frames, different view frames have different card life cycles, and the same view frame has different card life cycles for business information flows of different business types. Therefore, for the same business information flow in different operating systems or for business information flows of different business types in the same operating system, in response to the same user trigger event, the external output capabilities will also be different. For example, for the same business information flow in different operating systems, if a business card in one operating system responds to a sliding operation and is not displayed on the screen for 1 minute, the life cycle of the business card ends, and if a business card in another operating system responds to a sliding operation and is not displayed on the screen for 2 minutes, the life cycle of the business card ends. Similarly, for business information flows of different business types in the same operating system, if a business card of one business type responds to a sliding operation and is not displayed on the screen for 1 minute, the life cycle of the business card of the business type ends, and if a business card of another business type responds to a sliding operation and is not displayed on the screen for 2 minutes, the life cycle of the business card ends. The data processing method provided in this embodiment realizes the leveling of the external output differences of business information flows in different operating systems and the external output differences of business information flows of different business types in the same operating system by using the unified preset life cycle defined by the target software development kit in the processing scenarios of business information flows of different operating systems and in the processing scenarios of business information flows of different business types. At the same time, since the construction of business information flows can be realized through the construction method of the unified information flow main framework and the unified preset life cycle defined in the target software development kit in the processing scenarios of business information flows of different operating systems and in the processing scenarios of business information flows of different business types, that is, the developer can directly realize the construction of the target business information flow through the target software development kit, and the constructed target business information flow can be deployed in different operating systems, thereby improving the development efficiency. At the same time, the business information flows of different business types can also be realized through the unified business logic in the target software development kit, thereby realizing the rapid acceptance of multiple types of business in the form of information flow, and completing the expansion of business types faster and with higher quality.

[0091] To better understand the embodiments of the present application, the data processing of a feed stream is taken as an example below.

[0092] The data processing for the feed stream can be divided into four processing modules: Figure 3 This is a schematic diagram of a feed flow architecture provided in an embodiment of the present application, such as Figure 3As shown, the four processing modules may include a Feed main frame, a Feed service container, a Feed card interface, and a Feed service card. The data processing flow in the Feed main frame module may include obtaining a target software development kit, the target software development kit may include Feed stream main frame configuration information and service logic configuration information, and constructing the Feed main frame according to the Feed stream main frame configuration information included in the target software development kit. Then, the data processing flow in the Feed service container module may include configuring a Feed service container corresponding to the target service type in the Feed stream main frame according to the service logic configuration information in the target software development kit and the Feed stream of the target service type, wherein the service logic configuration information is used to configure the sliding service logic of the Feed service container. The Feed business card module may include obtaining the card business logic corresponding to the target business type of the Feed stream and the position arrangement relationship of the Feed business card in the view area defined by the Feed business container, determining the arrangement position of the at least one Feed business card in the business container according to the position arrangement relationship of the Feed business card in the view area defined by the business container, implementing the execution function of the at least one Feed business card based on the acquired card business logic, and setting the life cycle of the at least one Feed business card to the preset life cycle. Wherein, the Feed card interface module may include encapsulating the card business logic and the preset life cycle in a function or defining them through a protocol, and the function or protocol may provide an application programming interface (Application Programming Interface, API), which may be called a Feed card interface, that is, through the Feed card interface, the card business logic of the at least one Feed business card may be directly implemented without understanding the specific card business logic and the preset life cycle code, and the life cycle of the at least one Feed business card may be set to the preset life cycle. Furthermore, the Feed business card module may also include, in response to a triggering event on the Feed stream, determining target business data from the Feed stream, rendering the target business data into a target Feed business card, and displaying the target Feed business card.

[0093] The preset life cycle defines the entire process of the Feed business card from start to finish. Figure 4 , Figure 4It is a life cycle diagram provided by an embodiment of the present application. The preset life cycle defines the entire process of the Feed business card from the beginning to the end, including the completion of the registration of the Feed business card, the exposure of the Feed business card in the display screen, the full display of the Feed business card in the display screen, the swiping of the Feed business card, the sliding back of the Feed business card to be fully displayed in the display screen, the swiping of the Feed business card, and the destruction of the Feed business card, that is, the end of the life cycle of the Feed business card. In this process, the Feed business card completes the registration, the Feed business card is exposed in the display screen, the Feed business card is fully displayed in the display screen, the Feed business card is swiped away a little, the Feed business card is slid back to be fully displayed in the display screen, and the Feed business card is completely swiped away. The destruction of the Feed business card can be achieved by setting the corresponding function and the triggering condition of each function. Therefore, for any type of service feed stream, the target software development kit and the unified preset life cycle can be used to smooth out the external output differences of the Feed stream in different operating systems, as well as the external output differences of the Feed streams of different service types in the same operating system.

[0094] Among them, under any operating system, the data processing method of the feed stream can be used to process the data of any business type. It is also possible to process the data of any business type of feed stream among multiple business types by using the data processing method of the feed stream. This can achieve rapid acceptance of multiple types of business and complete business type expansion faster and with higher quality.

[0095] Based on the description of the related embodiments, the present application also provides a data processing device, which can execute Figures 1 to 4 See Figure 5 As shown, Figure 5 Schematic diagram of a data processing device provided in an embodiment of the present application. Figure 5 As shown, the data processing device may include but is not limited to an acquisition unit 501 , a configuration unit 502 , a registration unit 503 , a determination unit 504 and a display unit 505 .

[0096] The acquisition unit 501 is used to acquire a target software development kit; the target software development kit includes information flow main framework configuration information and business logic configuration information;

[0097] A configuration unit 502 is used to construct an information flow main framework according to the information flow main framework configuration information, and configure a service container corresponding to the target service type in the information flow main framework according to the service logic configuration information and the service information flow of the target service type;

[0098] A registration unit 503, configured to register at least one service card in the service container according to the service information flow;

[0099] A determining unit 504, configured to determine target service data from the service information flow in response to a triggering event on the service information flow;

[0100] The display unit 505 is configured to render the target service data into a target service card and display the target service card.

[0101] In an optional implementation, the information flow main framework configuration information includes a preset life cycle, and the business logic configuration information is used to configure the sliding business logic of the business container; the configuration unit 502 is also used to set the life cycle of each business card to the preset life cycle; the determination unit 504, in response to the triggering event of the business information flow, determines the target business data from the business information flow, including:

[0102] In response to a trigger event of a currently displayed business card, determining the target business card from the at least one business card according to the trigger event and the sliding business logic of the business container, wherein the target business card is an adjacent card of the currently displayed business card;

[0103] According to the life cycle of the target service card, target service data is determined from the service information flow.

[0104] In an optional implementation, the determining unit 504 determines the target service data from the service information flow according to the life cycle of the target service card, including:

[0105] If the life cycle of the target service card has not ended, determining that the target service data is the service data currently carried by the target service card;

[0106] If the life cycle of the target business card has ended, it is determined that the business data currently carried by the target business card is in a destroyed state, and the target business data is determined from other business data contained in the business information flow. The other business data includes business data in the business information flow except the business data carried by the currently displayed business card and the business data in a destroyed state.

[0107] In one implementation, the determining unit 504 determines the target business card from the at least one business card in response to a trigger event of the currently displayed business card according to the trigger event and the sliding business logic of the business container, including:

[0108] According to the correspondence between the service card determination strategy indicated by the sliding service logic and the trigger event, obtaining the service card determination strategy corresponding to the trigger event;

[0109] The target service card is determined from the at least one service card according to the service card determination strategy.

[0110] In one implementation, the determining unit 504 determines the target service card from the at least one service card according to the service card determination strategy, including:

[0111] If the service card determination strategy indicates a currently displayed service card, taking the currently displayed service card as the target service card;

[0112] If the service card determination strategy indicates a next service card, taking the next service card of the currently displayed service card in the at least one service card as the target service card;

[0113] If the service card determination strategy indicates a previous service card, the previous service card of the currently displayed service card in the at least one service card is used as the target service card.

[0114] In an optional embodiment, the data processing device can also be used to, under any operating system, if there is a demand for processing the business information flow, trigger the execution of the steps of obtaining the target software development kit, building the information flow main framework according to the information flow main framework configuration information, configuring the business container in the information flow main framework according to the business logic configuration information and the business information flow; registering at least one business card in the business container according to the business information flow, determining the target business data from the business information flow in response to a trigger event for the business information flow, rendering the target business data into the target business card, and displaying the target business card.

[0115] In an optional embodiment, the data processing device can also be used to, in business information flows of multiple business types, for any business information flow of the ... flow of the business information flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business flow of the business

[0116] It can be seen that in the embodiment of the present application, the acquisition unit 501 can acquire a target software development kit including information flow main framework configuration information and business logic configuration information, and the configuration unit 502 constructs the information flow main framework based on the information flow main framework configuration information in the target software development kit, and can configure the business container corresponding to the target business type in the constructed information flow main framework according to the business logic configuration information in the target software development kit and the business information flow of the target business type. The registration unit 503 can register at least one business card in the business container according to the business information, and in response to the triggering event of the business information flow, the determination unit 504 determines the target business data in the business information flow, and then renders the target business data into the target business card, and the display unit 505 displays the target business card on the device screen. Since the business information flow of the target business type can be the business information flow of any business type, that is, for the business information flow of any business type, the acquisition unit 501 can reuse the target software development toolkit including the information flow main framework configuration information and the business logic configuration information, to realize the process of building the information flow main framework and configuring the business container corresponding to any business type, and finally displaying the target business card. Therefore, it is possible to quickly undertake multiple types of businesses in the form of information flow, and complete the business type expansion faster and with higher quality.

[0117] The present application also provides an electronic device. Figure 6 , Figure 6 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6As shown, the electronic device at least includes a processor 601, a memory 602, and a communication interface 603, which can be connected via a bus 604 or other methods. The embodiment of the present application takes the connection via the bus 604 as an example. The processor 601 of the embodiment of the present application can execute the operation of the electronic device in the aforementioned data processing method by running the computer program stored in the memory 602, for example:

[0118] Obtaining a target software development kit; the target software development kit includes information flow main framework configuration information and business logic configuration information;

[0119] Building an information flow main frame according to the information flow main frame configuration information, and configuring a business container corresponding to the target business type in the information flow main frame according to the business logic configuration information and the business information flow of the target business type;

[0120] registering at least one service card in the service container according to the service information flow;

[0121] In response to a triggering event on the service information flow, determining target service data from the service information flow;

[0122] The target business data is rendered into a target business card, and the target business card is displayed.

[0123] In an optional implementation, the information flow main frame configuration information includes a preset life cycle, and the service logic configuration information is used to configure the sliding service logic of the service container; the processor 601 further performs the following operations:

[0124] Setting the life cycle of each business card to the preset life cycle;

[0125] The determining target service data from the service information flow in response to a triggering event on the service information flow comprises:

[0126] In response to a trigger event of a currently displayed business card, determining the target business card from the at least one business card according to the trigger event and the sliding business logic of the business container, wherein the target business card is an adjacent card of the currently displayed business card;

[0127] According to the life cycle of the target service card, target service data is determined from the service information flow.

[0128] In an optional implementation, the processor 601 determines the target service data from the service information flow according to the life cycle of the target service card, and performs the following operations:

[0129] If the life cycle of the target service card has not ended, determining that the target service data is the service data currently carried by the target service card;

[0130] If the life cycle of the target business card has ended, it is determined that the business data currently carried by the target business card is in a destroyed state, and the target business data is determined from other business data contained in the business information flow. The other business data includes business data in the business information flow except the business data carried by the currently displayed business card and the business data in a destroyed state.

[0131] In an optional implementation, the processor 601 responds to a trigger event of a currently displayed business card, determines the target business card from the at least one business card according to the trigger event and the sliding business logic of the business container, and performs the following operations:

[0132] According to the correspondence between the service card determination strategy indicated by the sliding service logic and the trigger event, obtaining the service card determination strategy corresponding to the trigger event;

[0133] The target service card is determined from the at least one service card according to the service card determination strategy.

[0134] In an optional implementation manner, the processor 601 determines the target service card from the at least one service card according to the service card determination strategy, and performs the following operations:

[0135] If the service card determination strategy indicates a currently displayed service card, taking the currently displayed service card as the target service card;

[0136] If the service card determination strategy indicates a next service card, taking the next service card of the currently displayed service card in the at least one service card as the target service card;

[0137] If the service card determination strategy indicates a previous service card, the previous service card of the currently displayed service card in the at least one service card is used as the target service card.

[0138] In an optional implementation, the processor 601 further performs the following operations:

[0139] Under any operating system, if there is a demand for processing the business information flow, the steps of obtaining the target software development kit, building the information flow main framework according to the information flow main framework configuration information, configuring the business container in the information flow main framework according to the business logic configuration information and the business information flow, registering at least one business card in the business container according to the business information flow, determining the target business data from the business information flow in response to a trigger event for the business information flow, rendering the target business data into the target business card, and displaying the target business card are triggered.

[0140] In an optional implementation, the processor 601 further performs the following operations:

[0141] In business information flows of multiple business types, for any business information flow of a business type, the business type of the business information flow of any business type can be used as the target business type to trigger the execution of the acquisition of the target software development kit; the target software development kit includes information flow main framework configuration information and business logic configuration information; an information flow main framework is constructed according to the information flow main framework configuration information, and a business container corresponding to the target business type is configured in the information flow main framework according to the business logic configuration information and the business information flow of the target business type; at least one business card is registered in the business container according to the business information flow; in response to a trigger event of the business information flow, target business data is determined from the business information flow; the target business data is rendered into a target business card, and the target business card is displayed.

[0142] In the embodiment of the present application, corresponding data processing can be performed for the business information flow of the target business type, wherein the target business type can refer to any business type, that is, the business information flow of any business type can implement the construction of the information flow main framework, the configuration of the business container, the registration of the business card, and the determination of the target business data, and the rendering of the target business data to the target business card and other steps according to the electronic device provided in the embodiment of the present application. Therefore, when processing the business information flow of multiple different business types, the same data processing can be performed by the electronic device for the business information flow of any business type in the business information flow of the multiple different business types, or in the business information flow of one business type, the business information flow of another business type can be accessed in the electronic device by executing the same data processing method. Therefore, it is possible to quickly undertake multiple types of business in the form of information flow, and complete the expansion of business types faster and with higher quality.

[0143] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0144] An embodiment of the present application further provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer executes the steps in any of the above method embodiments.

[0145] An embodiment of the present application also provides a chip, including a memory and a processor, the memory is used to store computer programs, and the processor is used to call and run the computer programs from the memory, so that a device equipped with the chip executes the steps in any of the above method embodiments.

[0146] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.

[0147] The units in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.

Claims

1. A data processing method, characterized in that: include: Get the target software development kit; The target software development kit includes information flow main framework configuration information and business logic configuration information; Building an information flow main frame according to the information flow main frame configuration information, and configuring a business container corresponding to the target business type in the information flow main frame according to the business logic configuration information and the business information flow of the target business type; registering at least one service card in the service container according to the service information flow; In response to a triggering event on the service information flow, determining target service data from the service information flow; The target business data is rendered into a target business card, and the target business card is displayed.

2. The method according to claim 1, characterized in that The information flow main frame configuration information includes a preset life cycle, and the business logic configuration information is used to configure the sliding business logic of the business container; the method also includes: Setting the life cycle of each business card to the preset life cycle; The determining target service data from the service information flow in response to a triggering event on the service information flow comprises: In response to a trigger event of a currently displayed business card, determining the target business card from the at least one business card according to the trigger event and the sliding business logic of the business container, wherein the target business card is an adjacent card of the currently displayed business card; According to the life cycle of the target service card, target service data is determined from the service information flow.

3. The method according to claim 2, characterized in that The determining target service data from the service information flow according to the life cycle of the target service card includes: If the life cycle of the target service card has not ended, determining that the target service data is the service data currently carried by the target service card; If the life cycle of the target business card has ended, it is determined that the business data currently carried by the target business card is in a destroyed state, and the target business data is determined from other business data contained in the business information flow. The other business data includes business data in the business information flow except the business data carried by the currently displayed business card and the business data in a destroyed state.

4. The method according to claim 2, characterized in that The step of responding to a trigger event of a currently displayed business card and determining the target business card from the at least one business card according to the trigger event and the sliding business logic of the business container includes: According to the correspondence between the service card determination strategy indicated by the sliding service logic and the trigger event, obtaining the service card determination strategy corresponding to the trigger event; The target service card is determined from the at least one service card according to the service card determination strategy.

5. The method according to claim 4, characterized in that The determining the target business card from the at least one business card according to the business card determination strategy includes: If the service card determination strategy indicates a currently displayed service card, taking the currently displayed service card as the target service card; If the service card determination strategy indicates a next service card, taking the next service card of the currently displayed service card in the at least one service card as the target service card; If the service card determination strategy indicates a previous service card, the previous service card of the currently displayed service card in the at least one service card is used as the target service card.

6. The method according to claim 1, characterized in that The method further comprises: Under any operating system, if there is a demand for processing the business information flow, the steps of obtaining the target software development kit, building the information flow main framework according to the information flow main framework configuration information, configuring the business container in the information flow main framework according to the business logic configuration information and the business information flow, registering at least one business card in the business container according to the business information flow, determining the target business data from the business information flow in response to a trigger event for the business information flow, rendering the target business data into the target business card, and displaying the target business card are triggered.

7. The method according to claim 1, characterized in that The method further comprises: In business information flows of multiple business types, for any business information flow of a business type, the business type of the business information flow of any business type can be used as the target business type to trigger the execution of the acquisition of the target software development kit; the target software development kit includes information flow main framework configuration information and business logic configuration information; an information flow main framework is constructed according to the information flow main framework configuration information, and a business container corresponding to the target business type is configured in the information flow main framework according to the business logic configuration information and the business information flow of the target business type; at least one business card is registered in the business container according to the business information flow; in response to a trigger event of the business information flow, target business data is determined from the business information flow; the target business data is rendered into a target business card, and the target business card is displayed.

8. A data processing device, characterized in that: The device comprises: An acquisition unit, used to acquire a target software development kit; the target software development kit includes information flow main framework configuration information and business logic configuration information; A configuration unit, configured to construct an information flow main frame according to the information flow main frame configuration information, and configure a service container corresponding to the target service type in the information flow main frame according to the service logic configuration information and the service information flow of the target service type; A registration unit, configured to register at least one service card in the service container according to the service information flow; a determining unit, configured to determine target service data from the service information flow in response to a triggering event on the service information flow; The display unit is configured to render the target service data into a target service card and display the target service card.

9. An electronic device, characterized in that: The electronic device includes a memory, a communication interface and a processor, wherein the memory, the communication interface and the processor are interconnected; the memory stores a computer program, and the processor calls the computer program stored in the memory to implement the method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.