A data processing method, apparatus, storage medium, and computer device

By pre-defining the data interface and generating target arrays, the problems of waste of resources and inefficient development in the existing technology are solved, and the data upload efficiency is improved and code reuse is achieved.

CN114428625BActive Publication Date: 2025-08-05HUIZHOU TCL MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210067177.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-20
Publication Date
2025-08-05
Estimated Expiration
2042-01-20

AI Technical Summary

Technical Problem

In the prior art, backend developers need to constantly design new data reporting interfaces for products that are constantly iterating and upgrading, resulting in waste of resources and inefficient development.

Method used

The data interface is predefined, including multiple data dimensions and dimension parameters, and a target array is generated based on the attribute information of the data to be uploaded, and data storage is performed based on the array.

Benefits of technology

It improves data upload efficiency, reduces the waste of resources for repeated development, and improves development efficiency and code reusability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114428625B_ABST
    Figure CN114428625B_ABST
Patent Text Reader

Abstract

The present invention discloses a data processing method, apparatus, storage medium, and computer device. This solution predefines a data interface that includes multiple data dimensions and multiple dimensional parameters for each data dimension. Upon receiving a data upload request, the data to be uploaded is obtained, and an array comprising multiple data elements is generated based on the predefined data interface and the data content of the data to be uploaded. The data to be uploaded is stored based on the array, thereby improving data upload efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal applications, and specifically to a data processing method, apparatus, storage medium, and computer equipment. Background Art

[0002] With the development of computer technology, using smart wearable devices to provide users with the data information they care about (such as pedometer, body temperature measurement, heart rate monitoring, etc.) has become a basic and common product demand and function.

[0003] In related technologies, backend developers develop corresponding data interaction interfaces based on product requirements, allowing front-end devices to transmit collected data to backend servers. However, as products continue to iterate and upgrade, new functional requirements will continue to emerge. As a result, during the actual development process, backend developers need to develop corresponding data reporting interfaces for each new requirement. Because they cannot predict new requirements in advance, developers often design the same type of business interfaces multiple times and repeatedly develop the same type of functions in the code, resulting in a waste of manpower and time resources. Summary of the Invention

[0004] The embodiments of the present application provide a data processing method, apparatus, storage medium, and computer equipment, which can improve data uploading efficiency.

[0005] The present invention provides a data processing method, including:

[0006] Receiving a data upload request for a target business, and obtaining the data to be uploaded of the target business according to the data upload request;

[0007] Generate a target array corresponding to the data to be uploaded according to the attribute information of the data to be uploaded and a preset data interface;

[0008] The data of the target business is updated based on the target array.

[0009] Accordingly, an embodiment of the present application further provides a data processing device, including:

[0010] A receiving unit, configured to receive a data upload request for a target service, and obtain the data to be uploaded of the target service according to the data upload request;

[0011] A generating unit, configured to generate a target array corresponding to the data to be uploaded according to the attribute information of the data to be uploaded and a preset data interface;

[0012] An updating unit is configured to update the data of the target business based on the target array.

[0013] In some embodiments, the generating unit includes:

[0014] a determination subunit, configured to determine a data element according to the attribute information and the preset data interface;

[0015] A construction subunit is used to construct the target array based on the data elements.

[0016] In some embodiments, the determining subunit is specifically configured to:

[0017] determining target dimension parameters from preset dimension parameters according to the attribute information;

[0018] The data element is obtained based on the target dimension parameter.

[0019] In some embodiments, the determining subunit is specifically configured to:

[0020] Obtaining the data category corresponding to each preset dimension parameter; determining a preset dimension parameter whose data category is the same as the data category of the data to be uploaded from the preset dimension parameters, and obtaining the target dimension parameter;

[0021] The data element is obtained based on the target dimension parameter.

[0022] In some embodiments, the determining subunit is specifically configured to:

[0023] Determine the business type of the target business based on the attribute information; determine the preset dimension parameters corresponding to the business type from the preset dimension parameters to obtain the target dimension parameters;

[0024] The data element is obtained based on the target dimension parameter.

[0025] In some embodiments, the updating unit includes:

[0026] The first storage subunit is configured to store the target business data based on the target array if the target business data does not exist in the database.

[0027] In some embodiments, the updating unit includes:

[0028] an acquiring subunit, configured to acquire the current array corresponding to the stored target business from the database if the target business data exists in the database;

[0029] an updating subunit, configured to update the current array according to the target array to obtain an updated array of the target service;

[0030] The second storage subunit is configured to store the data of the target business based on the updated array.

[0031] Correspondingly, an embodiment of the present application further provides a storage medium, which stores a plurality of instructions, and the instructions are suitable for loading by a processor to execute the data processing method as described above.

[0032] Correspondingly, an embodiment of the present application further provides a terminal, including a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to implement the data processing method as described above.

[0033] In an embodiment of the present application, a data interface is predefined, which includes multiple data dimensions and multiple dimensional parameters under each data dimension. When a data upload request is received, the data to be uploaded is obtained, and an array including multiple data elements is generated according to the predefined data interface and the data content of the data to be uploaded. The data to be uploaded is stored based on the array, which can improve the data upload efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0035] Figure 1 A flowchart of a data processing method provided in an embodiment of the present application.

[0036] Figure 2 A flowchart of another data processing method provided in an embodiment of the present application.

[0037] Figure 3 A structural block diagram of a data processing device provided in an embodiment of the present application.

[0038] Figure 4 A schematic diagram of the structure of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of this application.

[0040] The embodiments of the present application provide a data processing method, apparatus, storage medium and computer equipment. Specifically, the data processing method of the embodiments of the present application can be executed by a computer device, wherein the computer device can be a terminal or server or other equipment. The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA), etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0041] For example, the computer device can be a terminal, which can receive a data upload request for a target business, obtain the data to be uploaded of the target business according to the data upload request; generate a target array corresponding to the data to be uploaded according to the attribute information of the data to be uploaded and a preset data interface; and update the data of the target business based on the target array.

[0042] Based on the above problems, the embodiments of the present application provide a first data processing method, apparatus, computer equipment and storage medium, which can improve the efficiency of data uploading.

[0043] It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.

[0044] An embodiment of the present application provides a data processing method, which can be executed by a terminal or a server. The embodiment of the present application is described by taking the execution of the data processing method by a terminal as an example.

[0045] See also Figure 1 , Figure 1 This is a flow chart of a data processing method provided in an embodiment of the present application. The specific flow of the data processing method can be as follows:

[0046] 101. Receive a data upload request for a target business, and obtain the to-be-uploaded data of the target business according to the data upload request.

[0047] In an embodiment of the present application, user data is collected through a smart wearable device, and the collected user data may include multiple types of user data, for example, user motion data, user physical condition data, etc.

[0048] Among them, the target business refers to the type of user data, and the data upload request is sent to the terminal through the smart wear. The data upload request indicates that the data of the target business is uploaded to the database, which is used to store user data.

[0049] The data to be uploaded refers to the user data under the target business collected by the smart wearable device.

[0050] For example, the target service may be a user exercise data type, and the data to be uploaded includes the user's exercise data, such as exercise duration, exercise quantity, and the like.

[0051] 102. Generate a target array corresponding to the data to be uploaded according to the attribute information of the data to be uploaded and the preset data interface.

[0052] Among them, the preset data interface is also the data interface pre-defined in the embodiment of the present application. The preset data interface may include multiple preset data dimensions and dimensional parameters under each data dimension. There may be multiple dimensional parameters under each data dimension, and the number of dimensional parameters under different data dimensions may be different, which can be set specifically according to actual conditions.

[0053] For example, the preset data dimensions may include: a first data dimension, a second data dimension, a third data dimension, a fourth data dimension, etc. The dimension parameters under the first data dimension may include: a first parameter, a second parameter, a third parameter, etc.; the dimension parameters under the second data dimension may include: a fourth parameter, a fifth parameter; the dimension parameters under the third data dimension may include: a sixth parameter, a seventh parameter, an eighth parameter, etc.; the dimension parameters under the fourth data dimension may include: a ninth parameter, a tenth parameter, etc.

[0054] In an embodiment of the present application, the data to be uploaded is converted into an array that meets the data upload requirements according to the preset data interface based on the attribute information of the data to be uploaded, that is, the data to be uploaded is stored in the form of an array.

[0055] In some embodiments, to improve the processing efficiency of the data to be uploaded, the step of "generating a target array corresponding to the data to be uploaded based on the attribute information of the data to be uploaded and the preset data interface" may include the following operations:

[0056] Determine data elements based on attribute information and preset data interfaces;

[0057] Constructs the destination array based on the data elements.

[0058] The data element refers to at least one data element corresponding to the data to be uploaded, and the target array is composed of at least one data element.

[0059] In some embodiments, the step of “determining the data element based on the attribute information and the preset data interface” may include the following operations:

[0060] determining target dimension parameters from preset dimension parameters according to the attribute information;

[0061] Gets data elements based on the target dimension parameters.

[0062] Among them, there can be multiple preset data dimensions, and each preset data dimension corresponds to multiple dimension parameters. Specifically, according to the attribute information, the target dimension parameter corresponding to the preset data dimension is determined from the multiple preset dimension parameters of each preset data dimension, and multiple target dimension parameters are obtained, and the target dimension parameters are used as data elements.

[0063] In some embodiments, the attribute information includes the data category of the data to be uploaded. To improve the accuracy of determining the target dimension parameters, the step of "determining the target dimension parameters from the preset dimension parameters based on the attribute information" may include the following operations:

[0064] Get the data category corresponding to each preset dimension parameter;

[0065] Determine from the preset dimension parameters a preset dimension parameter whose data category is the same as the data category of the data to be uploaded, and obtain the target dimension parameter.

[0066] In the embodiment of the present application, the data category of the preset dimension parameter can be determined according to the parameter name of the preset dimension parameter. For example, the parameter name of the preset dimension parameter can be: time, and the data category of the preset dimension parameter can be determined to be: time category.

[0067] The attribute information of the data to be uploaded includes the data category of the data to be uploaded. For example, the data category of the data to be uploaded obtained from the attribute information of the data to be uploaded may be: time category.

[0068] For example, the preset data dimension may include a first data dimension. The preset dimension parameters for the first data dimension may include a first parameter and a second parameter. The data category of the first parameter may be the first category, and the data category of the second parameter may be the second category. In the attribute information of the data to be uploaded, the data category corresponding to the first data dimension may be the first category. Based on the same data category, the target dimension parameter in the first data dimension may be determined to be the first parameter.

[0069] In some embodiments, in order to quickly determine the target dimension parameters, the step of "determining the target dimension parameters from the preset dimension parameters according to the attribute information" may include the following operations:

[0070] Determine the business type of the target business based on the attribute information;

[0071] Determine the preset dimension parameters corresponding to the business type from the preset dimension parameters to obtain the target dimension parameters.

[0072] The attribute information includes the service type of the data to be uploaded, and the service type refers to the type of user data corresponding to the target service.

[0073] In an embodiment of the present application, preset dimension parameters corresponding to each business type are pre-set. After determining the business type of the target business, the target dimension parameters corresponding to the data to be uploaded can be selected based on the preset dimension parameters corresponding to the business type.

[0074] For example, the business type may include: a first business type, a second business type, etc., and the preset dimension data may include: first dimension data, second dimension data, etc. Among them, the first dimension data corresponds to: a first parameter, a second parameter; the second dimension data corresponds to: a third parameter, a fourth parameter. In an embodiment of the present application, parameters corresponding to different preset dimension data for each business type may be pre-set, for example, the parameter corresponding to the first business type under the first dimension data may be the first parameter, and the parameter corresponding to the second dimension data may be the third parameter; the parameter corresponding to the second business type under the first dimension data may be the second parameter, and the parameter corresponding to the second dimension data may be the fourth parameter.

[0075] Furthermore, when the business type of the target business is the first business type, the target dimension parameters can be determined as: a first parameter and a second parameter, so that the target dimension parameters can be quickly determined according to the business type of the target business.

[0076] 103. Update the data of the target business based on the target array.

[0077] In the embodiment of the present application, updating the data of the target service based on the target array may include multiple ways, for example, updating the existing array of the target service, or adding an array of the target service.

[0078] First, the target business data can be searched from the database, and the target array of the target business can be processed according to the search result. In some embodiments, the step of "updating the target business data based on the target array" can include the following operations:

[0079] If the target business data does not exist in the database, the target business data is stored based on the target array.

[0080] When the data of the target business is not found in the database, the data of the target business may be stored in the database based on the target array, that is, the target array and the target business may be associated and stored.

[0081] In some embodiments, the step of “updating the target business data based on the target array” may include the following operations:

[0082] If the target business data exists in the database, the current array corresponding to the stored target business is obtained from the database;

[0083] Update the current array according to the target array to obtain the updated array of the target business;

[0084] The target business data is stored based on the updated array.

[0085] When the target business data is found in the database, the array of the target business stored in the database, that is, the current array, can be obtained. Then, the current array is updated according to the target array to obtain an updated array.

[0086] Updating the current array based on the target array can be done in a variety of ways, such as overwriting the current array with the target array or superimposing the target array on the current array, depending on the actual data upload situation. Furthermore, the updated array is associated with the target service and stored in the database, completing the upload request for the target service's pending data.

[0087] The embodiment of the present application discloses a data processing method, which includes: receiving a data upload request for a target business, obtaining the target business's data to be uploaded according to the data upload request; generating a target array corresponding to the data to be uploaded according to the attribute information of the data to be uploaded and a preset data interface; and updating the data of the target business based on the target array. The embodiment of the present application predefines a data interface, which includes multiple data dimensions and multiple dimensional parameters under each data dimension. When a data upload request is received, the data to be uploaded is obtained, and an array including multiple data elements is generated according to the predefined data interface and the data content of the data to be uploaded. The data to be uploaded is stored based on the array, which can improve data upload efficiency.

[0088] refer to Figure 2 , Figure 2 This is a flow chart of another data processing method provided in an embodiment of the present application. Taking the data processing method applied to a terminal as an example, the data processing method can be as follows:

[0089] 201. The terminal receives target service data sent by the smart wearable device.

[0090] Among them, smart wearable devices can be used to collect user data, for example, smart wearable devices can be: smart bracelets, smart watches, etc. User data can include various types, for example, user data types can include: exercise data type, physical status data type, etc.

[0091] The target service data refers to the type of user data that needs to be uploaded to the terminal for storage. Different types of user data represent different service data. For example, the target service data may be a sports data type.

[0092] 202. The terminal generates a data array corresponding to the target service data according to the data information of the target service data and a preset data interface.

[0093] The data information refers to the data content of the target business data. For example, the target business data may be a motion data type, and the data information of the target business data may include: motion time, motion count, and the like.

[0094] In an embodiment of the present application, the preset data interface includes multiple data dimensions, each data dimension corresponds to multiple data parameters, and different data parameters represent different data formats.

[0095] For example, see Table 1, which is an array parameter model table provided in an embodiment of the present application:

[0096]

[0097]

[0098] Table 1

[0099] In an embodiment of the present application, the data interface definition data can be reported in the form of an array, and the specific data content is placed in the array for reporting.

[0100] As shown in Table 1, data dimensions may include: time, time correction, service type, service value, statistical mode, and others.

[0101] For the time data dimension, the data interface provides two time statistics dimensions: "time" and "start_time / end_time." You can select the appropriate time parameter for reporting data based on the specific business scenario. For example, if the data is point-in-time data, select "time"; if the data is interval data, select "start_time / end_time." The terminal can store data based on the selected time. Fields not uploaded need to be filtered in the backend program and not stored in the database to save disk space.

[0102] For example, in the temperature measurement scenario to obtain the body status data type, "time" can be selected as the data time parameter; in the pedometer scenario to obtain motion data, "start_time / end_time" can be selected to record the number of motion steps generated within a certain time period.

[0103] The "timezone" and "dst" data dimensions for time correction: "timezone" refers to the time zone excluding daylight saving time, and "dst" indicates whether daylight saving time is in effect. The backend uses the "timezone" or "dst" parameters to correct data dates. These parameters are suitable for product scenarios involving time zones and can be used selectively based on product requirements. Data not passing these parameters should also be filtered out by the backend to conserve disk space for data storage.

[0104] Among them, for the data dimension of the business type, the parameter name is "type", and the "type" parameter is the core key parameter for the data interface implementation of the embodiment of the present application, which implements the core idea of the data interface. "Type" represents the data business type, and the value of "type" can be in the form of: nnn[...].n. Among them, n takes the value [1, ∞); the parameter type can be designed as string. Specifically, n can represent the data type, and the symbol "." (dot) is used to connect the next level type to indicate a data type with multiple levels of classification, namely: data first level classification. Data second level classification. Data third level classification. Data fourth level classification. [...]. Data nth level classification.

[0105] By setting the "type" parameter, type can use multiple n's and multiple "." to connect to represent hierarchical data types, which can be infinitely expanded and compatible with data types divided by various businesses.

[0106] For example, in functions such as step counting and body temperature measurement, n=1 can be used to represent step counting data, and n=2 can be used to represent body temperature data, without using the second-level representation.

[0107] For example, in a business scenario where sleep statistics are divided into deep sleep and light sleep, sleep can be defined as the first-level classification data, represented by n = 3. Deep sleep and light sleep are represented by 1 and 2, respectively, in the second-level classification data, that is, n = 3.1 represents deep sleep and n = 3.2 represents light sleep.

[0108] Therefore, for the data reporting function of different businesses, by using type, various classified data of different businesses are represented and distinguished with a unified standard, so that different data businesses can upload data through one interface, achieving abstraction and backward compatibility.

[0109] For business value data dimensions, use value and commonly used statistical dimensions such as max, min, and avg as data value keys. These can be defined and expanded based on specific business needs.

[0110] For example, in a temperature measurement service, if a single temperature measurement is being reported, the value field can be used. However, if the maximum, minimum, and average temperatures need to be reported, max, min, and avg fields can be used. Pre-defining the key names required for these commonly used data values in the interface can generally meet the needs of various daily data reporting scenarios. The backend needs to dynamically identify value, max, min, and avg fields. Unused fields in the service need to be filtered in the backend program and not stored in the database with the corresponding value of 0 to save disk space.

[0111] Among them, for the data dimension of the statistical mode, "count_mode" represents the counting mode and "count_unit" represents the counting unit.

[0112] For example, in count_mode, a value of 0 may indicate update, that is, the terminal may directly update the data reported by the smart wearable device in the database; a value of 1 indicates accumulation, that is, the terminal may accumulate the data reported by the smart wearable device based on the existing data in the database.

[0113] For example, in count_unit, count values 1-5 can respectively indicate that the data reported by the smart wearable device is stored in the counting unit of "hour / day / week / month".

[0114] Among them, count_mode and count_unit can be reported at the same time, please refer to Table 2, which is a data parameter description table provided in the embodiment of this application:

[0115]

[0116]

[0117] Table 2

[0118] Specifically, the settings for count_mode and count_unit take into account backend data processing, enabling the interface to adapt to the data processing requirements of different business scenarios. Backend programs can specify whether each reported data is updated or accumulated based on time, and which time unit is used as the minimum storage unit for this data, based on specific business implementation requirements. Setting statistical mode parameters further abstracts the data reporting interface, making it flexible and compatible with a wider range of business needs.

[0119] For other data dimensions, version can be set to the data format version. Data of the same type can be upgraded. For example, in temperature measurement (type = 2), product v1.0 only needs to report the temperature each time, so the version can be recorded as version = v1.0. In product 2.0, the temperature measurement function has added the highest temperature, lowest temperature, and average temperature, and the version can be set to version = 2.0. In this way, when the client obtains the temperature value, it can pass in the corresponding version value according to the demand to obtain the required temperature data, which can avoid redeveloping a new interface to return version 2.0 data.

[0120] 203. The terminal stores the target business data based on the data array.

[0121] For example, the target business data may contain the following information: reporting exercise steps, starting time 1629244825, ending time 1629248425, count value 800, count mode update, and count unit daily. The following array can be generated based on the data information and the data interface:

[0122] {"start_time":1629244825,"end_time":1629248425,"type":"1","value":8000,"count_mode":0,"count_unit":2}.

[0123] For example, the target business data may contain the following information: reported temperature measurement, time point 1629255185, average count value 36.6, maximum count value 36.8, minimum count value 36.4, counting mode update, and counting unit daily. The following array can be generated based on the data information and data interface:

[0124] {"time":1629255185,"type":"2","avg":36.6,"max":36.8,"min":36.4,"count_mode":0,"count_unit":2}.

[0125] For example, the target business data may contain the following information: reporting deep sleep time, with a start time of 1629226800, an end time of 1629227100, a count value of 300, an update mode, and a daily count unit. The following array can be generated based on the data information and the data interface:

[0126] {"start_time":1629226800,"end_time":1629227100,"type":"3.1","value":300,"count_mode":0,"count_unit":2}.

[0127] For example, the target business data may include: reporting light sleep time, start time 1629227100, end time 1629227700, count value 600, count mode update, and count unit day. The following array can be generated based on the data information and data interface:

[0128] {"start_time":1629227100,"end_time":1629227700,"type":"3.2","value":600,"count_mode":0,"count_unit":2}.

[0129] In the embodiment of the present application, the defined data interface does not require a separate interface URL to be designed for each business. The data parameters are pre-defined, and only the value of type needs to be changed to adapt to most multi-level classification data reporting businesses, which can achieve one-time development and multiple applications.

[0130] The present application embodiment discloses a data processing method, which includes: a terminal receiving target business data sent by a smart wearable device, generating a data array corresponding to the target business data based on data information of the target business data and a preset data interface, and storing the target business data based on the data array. The present application embodiment defines abstract data reporting parameters and reporting formats to meet and unify the data reporting requirements of different product functions. Unifying data reporting through an abstract interface can improve software development efficiency and save development costs.

[0131] To facilitate better implementation of the data processing method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above data processing method. The meanings of the terms are the same as those in the above data processing method, and the specific implementation details can be referred to the description in the method embodiment.

[0132] See also Figure 3 , Figure 3This is a block diagram of a data processing device provided in an embodiment of the present application. The data processing device can be applied to terminal devices such as smartphones, tablet computers, laptop computers, touch screens, personal computers (PCs), and personal digital assistants (PDAs). Alternatively, it can be applied to servers. The device includes:

[0133] The receiving unit 301 is configured to receive a data upload request for a target service, and obtain the data to be uploaded of the target service according to the data upload request;

[0134] A generating unit 302 is configured to generate a target array corresponding to the data to be uploaded according to the attribute information of the data to be uploaded and a preset data interface;

[0135] The updating unit 303 is configured to update the data of the target business based on the target array.

[0136] In some embodiments, the generating unit 302 may include:

[0137] a determination subunit, configured to determine a data element according to the attribute information and the preset data interface;

[0138] A construction subunit is used to construct the target array based on the data elements.

[0139] In some embodiments, the determination subunit may be specifically configured to:

[0140] determining target dimension parameters from preset dimension parameters according to the attribute information;

[0141] The data element is obtained based on the target dimension parameter.

[0142] In some embodiments, the determination subunit may be specifically configured to:

[0143] Obtaining the data category corresponding to each preset dimension parameter; determining a preset dimension parameter whose data category is the same as the data category of the data to be uploaded from the preset dimension parameters, and obtaining the target dimension parameter;

[0144] The data element is obtained based on the target dimension parameter.

[0145] In some embodiments, the determination subunit may be specifically configured to:

[0146] Determine the business type of the target business based on the attribute information; determine the preset dimension parameters corresponding to the business type from the preset dimension parameters to obtain the target dimension parameters;

[0147] The data element is obtained based on the target dimension parameter.

[0148] In some embodiments, the updating unit 303 may include:

[0149] The first storage subunit is configured to store the target business data based on the target array if the target business data does not exist in the database.

[0150] In some embodiments, the updating unit 303 may include:

[0151] an acquiring subunit, configured to acquire the current array corresponding to the stored target business from the database if the target business data exists in the database;

[0152] an updating subunit, configured to update the current array according to the target array to obtain an updated array of the target service;

[0153] The second storage subunit is configured to store the data of the target business based on the updated array.

[0154] An embodiment of the present application discloses a data processing device, which receives a data upload request for a target business through a receiving unit 301, obtains the data to be uploaded of the target business according to the data upload request, generates a target array corresponding to the data to be uploaded according to the attribute information of the data to be uploaded and a preset data interface, and updates the data of the target business based on the target array. In this way, the data upload efficiency can be improved.

[0155] Accordingly, the embodiment of the present application also provides a computer device, which may be a terminal. Figure 4 As shown, the terminal may include components such as a radio frequency (RF) circuit 601, a memory 602 including one or more storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a wireless fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. It will be understood by those skilled in the art that Figure 4 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0156] RF circuit 601 is used for signal reception and transmission during the information transmission and reception process. Specifically, it receives downlink information from the base station and transmits it to one or more processors 608 for processing. It also transmits uplink data to the base station. Typically, RF circuit 601 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a low-noise amplifier (LNA), a duplexer, and the like. RF circuit 601 can also communicate with the network and other devices via wireless communication.

[0157] The memory 602 can be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 with access to the memory 602.

[0158] The input unit 603 can be used to receive input digital or character information, and to generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in a specific embodiment, the input unit 603 may include a touch-sensitive surface and other input devices. The touch-sensitive surface, also known as a touch display or touchpad, can collect user touch operations on or near it (such as operations performed by the user using fingers, stylus, or any other suitable object or accessory on or near the touch-sensitive surface) and drive the corresponding connection device according to a pre-set program. In addition to the touch-sensitive surface, the input unit 603 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0159] The display unit 604 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the server, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 604 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch-sensitive surface may cover the display panel. When the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 608 to determine the type of touch event. The processor 608 then provides corresponding visual output on the display panel according to the type of touch event. Although in Figure 4 In the embodiment, the touch-sensitive surface and the display panel are used as two independent components to realize input and output functions, but in some embodiments, the touch-sensitive surface and the display panel can be integrated to realize input and output functions.

[0160] The terminal may also include at least one sensor 605, such as a light sensor, a motion sensor, or other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and backlight when the server is moved to the ear.

[0161] Audio circuit 606, speakers, and microphones provide an audio interface between the user and the server. Audio circuit 606 converts received audio data into electrical signals and transmits them to the speaker, which then converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuit 606 and converted into audio data. The audio data is then processed by output processor 608 and transmitted via RF circuit 601 to, for example, a terminal. Alternatively, the audio data is output to memory 602 for further processing. Audio circuit 606 may also include an earphone jack to allow external headphones to communicate with the server.

[0162] WiFi is a short-range wireless transmission technology. The terminal can help users send and receive emails, browse web pages and access streaming media through the WiFi module 607. It provides users with wireless broadband Internet access. Figure 4 A WiFi module 607 is shown, but it is understandable that it is not an essential component of the terminal and can be omitted as needed without changing the essence of the application.

[0163] Processor 608 is the terminal's control center, connecting all components of the phone using various interfaces and circuits. By running or executing software programs and modules stored in memory 602 and accessing data stored in memory 602, it executes various server functions and processes data, thereby providing overall monitoring of the phone. Optionally, processor 608 may include one or more processing cores; preferably, processor 608 may integrate an application processor and a modem processor, with the application processor primarily handling the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 608.

[0164] The terminal also includes a power supply 609 (e.g., a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 608 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 609 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.

[0165] Specifically, in this embodiment, the processor 608 in the terminal loads the executable files corresponding to one or more application processes into the memory 602 according to the following instructions, and the processor 608 runs the applications stored in the memory 602 to implement various functions:

[0166] Receive a data upload request for a target business, and obtain the data to be uploaded of the target business according to the data upload request;

[0167] Generate a target array corresponding to the data to be uploaded according to the attribute information of the data to be uploaded and the preset data interface;

[0168] Update the target business data based on the target array.

[0169] The present invention discloses a data processing method, apparatus, storage medium, and computer equipment. The data processing method includes: receiving a data upload request for a target service, obtaining the target service's data to be uploaded according to the data upload request; generating a target array corresponding to the data to be uploaded based on attribute information of the data to be uploaded and a preset data interface; and updating the target service's data based on the target array.

[0170] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a storage medium and loaded and executed by a processor.

[0171] To this end, an embodiment of the present application provides a storage medium storing a plurality of instructions that can be loaded by a processor to execute the steps of any data processing method provided in an embodiment of the present application. For example, the instructions can execute the following steps:

[0172] Receive a data upload request for the target business, and obtain the data to be uploaded of the target business according to the data upload request; generate a target array corresponding to the data to be uploaded according to the attribute information of the data to be uploaded and the preset data interface; and update the data of the target business based on the target array.

[0173] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0174] The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0175] Since the instructions stored in the storage medium can execute the steps in any data processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any data processing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0176] The above is a detailed introduction to the data processing method, device, storage medium and computer equipment provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core ideas. At the same time, for those skilled in the art, based on the ideas of the present application, there may be changes in the specific implementation methods and application scope. In summary, the contents of this specification should not be understood as limiting the present application.

Claims

1. A data processing method, characterized in that: The method comprises: Receiving a data upload request for a target business, and obtaining the data to be uploaded of the target business according to the data upload request; Generate a target array corresponding to the data to be uploaded according to the attribute information of the data to be uploaded and a preset data interface; the data interface includes multiple data dimensions and multiple dimension parameters under each data dimension; The generating a target array corresponding to the data to be uploaded according to the attribute information of the data to be uploaded and a preset data interface includes: Determine the data element according to the attribute information and the preset data interface; the attribute information includes the data category of the data to be uploaded; constructing the target array based on the data elements; Updating the data of the target business based on the target array; The updating of the target business data based on the target array includes: If the target business data exists in the database, obtaining the current array corresponding to the target business stored in the database; Update the current array according to the target array to obtain an updated array of the target business; Storing the target business data based on the updated array; The storing of the target business data based on the updated array includes: Data is stored according to the selected time. Fields that are not uploaded need to be filtered in the background program and not stored in the database.

2. The method according to claim 1, characterized in that The preset data interface includes a preset data dimension and at least one preset dimension parameter under the preset data dimension; The determining of the data element according to the attribute information and the preset data interface includes: determining target dimension parameters from preset dimension parameters according to the attribute information; The data element is obtained based on the target dimension parameter.

3. The method according to claim 2, characterized in that The determining the target dimension parameter from the preset dimension parameters according to the attribute information includes: Get the data category corresponding to each preset dimension parameter; A preset dimension parameter having the same data category as the data category of the data to be uploaded is determined from the preset dimension parameters to obtain the target dimension parameter.

4. The method according to claim 2, characterized in that The determining the target dimension parameter from the preset dimension parameters according to the attribute information includes: determining a service type of the target service based on the attribute information; The preset dimension parameters corresponding to the business type are determined from the preset dimension parameters to obtain the target dimension parameters.

5. The method according to claim 1, characterized in that The updating of the target business data based on the target array includes: If the data of the target business does not exist in the database, the data of the target business is stored based on the target array.

6. A data processing device, characterized in that: The device comprises: A receiving unit, configured to receive a data upload request for a target service, and obtain the data to be uploaded of the target service according to the data upload request; A generating unit, configured to generate a target array corresponding to the data to be uploaded according to the attribute information of the data to be uploaded and a preset data interface; the data interface includes multiple data dimensions and multiple dimension parameters under each data dimension; The generating a target array corresponding to the data to be uploaded according to the attribute information of the data to be uploaded and a preset data interface includes: Determine the data element according to the attribute information and the preset data interface; the attribute information includes the data category of the data to be uploaded; constructing the target array based on the data elements; An updating unit, configured to update the data of the target business based on the target array; The updating of the target business data based on the target array includes: If the target business data exists in the database, obtaining the current array corresponding to the target business stored in the database; Update the current array according to the target array to obtain an updated array of the target business; Storing the target business data based on the updated array; The storing of the target business data based on the updated array includes: Data is stored according to the selected time. Fields that are not uploaded need to be filtered in the background program and not stored in the database.

7. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the data processing method according to any one of claims 1 to 5.

8. A computer device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the data processing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Data storage method and device, terminal and computer readable medium

    CN111241172A

  • Data processing method and device, service processing system and computer equipment

    CN112905677A