Data transfer method, interaction method and related device
By obtaining the identification of the transfer party and the recipient, the data transfer process is automatically determined, and automatic transfer of multiple data types is realized, which solves the problems of data transfer complexity and low efficiency in the existing technology, and improves the transfer efficiency and accuracy.
Patent Information
- Application Number
- CN202310358530.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-27
- Publication Date
- 2024-09-27
AI Technical Summary
The data transfer process in the existing technology is complicated and requires understanding of multiple data transfer processes, which results in high difficulty and low efficiency. Especially when transferring multiple data types, manual operations are required, which consumes a lot of time and energy.
By obtaining the identifiers of the transferor and the recipient, the data to be transferred is automatically counted and the corresponding transfer process is determined based on the data type, thereby automating the data transfer without the need for manual operations in each process.
While ensuring the accuracy of data transfer, it also improves the efficiency of data transfer, simplifies the operation process, and reduces learning costs and execution difficulty.
Smart Images

Figure CN118708562A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data transfer method, an interaction method and related devices. Background Art
[0002] There are many scenarios involving data transfer in daily life. For example, when handling business, you may need to transfer specific data to the business initiator. When an employee resigns, the data of the resigned employee needs to be transferred to the employee responsible for receiving the data.
[0003] In the related art, the data to be transferred usually includes multiple data types. Due to the different storage locations of data of different data types and the different data processing methods required for data of different data types during data transfer, the data transfer processes required for data of different data types during transfer may be different. In order to transfer data effectively, the person responsible for data transfer needs to perform the transfer operation for the data of the corresponding data type in each data transfer process.
[0004] Therefore, the data transfer method in the related art requires the person responsible for data transfer to understand the operation of each data transfer process. Data transfer is difficult and requires a lot of time and effort. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides a data transfer method, which can realize the automatic transfer of data of multiple data types, thereby improving the efficiency of data transfer while ensuring the accuracy of data transfer.
[0006] The embodiments of the present application disclose the following technical solutions:
[0007] In a first aspect, an embodiment of the present application discloses a data transfer method, the method comprising:
[0008] Acquire a first data transfer request, wherein the first data transfer request includes a transferor identifier for identifying a transferor and a receiver identifier for identifying a receiver;
[0009] Acquire a data identification set corresponding to the transferor identification, wherein the data identification set includes data identifications corresponding to a plurality of data to be transferred, the plurality of data to be transferred belongs to the transferor, and the plurality of data to be transferred corresponds to a plurality of data types;
[0010] The plurality of data identifiers included in the data identifier set are respectively used as target data identifiers, and a target data transfer process is determined according to the target data type corresponding to the target data to be transferred identified by the target data identifier, wherein the target data transfer process is used to change the owner of the data corresponding to the target data type, and different data types correspond to different data transfer processes;
[0011] According to the transferor identifier, the receiver identifier and the target data identifier, through the target data transfer process, the owner of the target data to be transferred is changed from the transferor to the receiver.
[0012] In a second aspect, an embodiment of the present application discloses an interaction method, the method comprising:
[0013] Displaying a transfer initiation interface, wherein the transfer initiation interface includes transferor identifiers corresponding to a plurality of pending transferors and receiver identifiers corresponding to a plurality of pending receivers;
[0014] In response to obtaining a selection operation for a target transferor identifier and a selection operation for a target recipient identifier, generating a data transfer request, the data transfer request including the target transferor identifier and the target recipient identifier;
[0015] Determine a plurality of to-be-transferred data corresponding to the target transfer party identifier, where the to-be-transferred data belongs to the target transfer party identified by the target transfer party identifier;
[0016] Determine, according to the data types respectively corresponding to the plurality of data to be transferred, the data transfer processes respectively corresponding to the plurality of data to be transferred, the data transfer processes being used to change the owner of the data of the corresponding data type;
[0017] Through the data transfer processes respectively corresponding to the multiple data to be transferred, the multiple to-be-transferred parties are changed from the target transfer party to the target recipient identified by the target recipient identifier.
[0018] In a third aspect, an embodiment of the present application discloses a data transfer device, the device comprising a first acquisition unit, a second acquisition unit, a first determination unit and a first change unit:
[0019] The first acquisition unit is used to acquire a first data transfer request, wherein the first data transfer request includes a transferor identifier for identifying a transferor and a receiver identifier for identifying a receiver;
[0020] The second acquisition unit is used to acquire a data identification set corresponding to the transferor identification, wherein the data identification set includes data identifications corresponding to a plurality of data to be transferred, the plurality of data to be transferred belongs to the transferor, and the plurality of data to be transferred corresponds to a plurality of data types;
[0021] The first determining unit is used to use the multiple data identifiers included in the data identifier set as target data identifiers, and determine the target data transfer process according to the target data type corresponding to the target data to be transferred identified by the target data identifier, wherein the target data transfer process is used to change the owner of the data corresponding to the target data type, and different data types have different corresponding data transfer processes;
[0022] The first changing unit is used to change the owner of the target data to be transferred from the transferor to the receiver through the target data transfer process according to the transferor identifier, the receiver identifier and the target data identifier.
[0023] In a possible implementation manner, the first changing unit is specifically configured to:
[0024] Generate a target data transfer task according to the transferor identifier, the target data identifier and the receiver identifier through the target data transfer process, wherein the target data transfer task is used to change the owner of the target data to be transferred from the transferor to the receiver;
[0025] The target data transfer task is executed through the target data transfer process.
[0026] In a possible implementation manner, the device further includes a third acquisition unit, a first response unit, a second response unit, and a third response unit:
[0027] The third acquisition unit is used to acquire a task identifier corresponding to the target data transfer task, where the task identifier is used to identify the target data transfer task;
[0028] The first response unit is used to obtain the task status corresponding to the target data transfer task according to the task identifier in response to the transfer status corresponding to the target data identifier being an uncompleted state, wherein the uncompleted state is used to indicate that the owner corresponding to the target data to be transferred has not been changed to the recipient;
[0029] The second response unit is used to set the transfer state corresponding to the target data identifier to a completed state in response to the task state being the end state, wherein the completed state is used to indicate that the owner corresponding to the target data to be transferred is changed to the recipient;
[0030] The third response unit is configured to determine that the first data transfer request is completed in response to the transfer states corresponding to the multiple data identifiers included in the data identifier set being all completed.
[0031] In a possible implementation manner, the first response unit is specifically configured to:
[0032] In response to the target data transfer task meeting the task query condition and the transfer status corresponding to the target data identifier being an unfinished state, acquiring the task status corresponding to the target data transfer task according to the task identifier;
[0033] The task query conditions include any one or more combinations of the following:
[0034] The task execution duration corresponding to the target data transfer task reaches a first preset duration;
[0035] A second preset time period has passed after the target time, where the target time is the time when the task status corresponding to the target data transfer task was last acquired according to the task identifier.
[0036] In a possible implementation, a plurality of data transfer processes respectively have corresponding data storage sets, the plurality of data transfer processes include data transfer processes respectively corresponding to the plurality of data types, the target data transfer process is any one of the plurality of data transfer processes, and the data storage set is used to store data of the data type corresponding to the corresponding data transfer process;
[0037] The second acquisition unit is specifically used for:
[0038] Determine a plurality of data corresponding to the transferor identifier in the data storage sets corresponding to the plurality of data transfer processes respectively, the plurality of data belonging to the transferor;
[0039] Determine the multiple data as the multiple data to be transferred, and obtain data identifiers corresponding to the multiple data to generate the data identifier set;
[0040] The second response unit is specifically used for:
[0041] In response to the task status being the end status, determining first target data corresponding to the transferor identifier in a target data storage set corresponding to the target data transfer process, the target data storage set being used to store data corresponding to the target data type, and the first target data belonging to the transferor;
[0042] In response to the data identifier corresponding to the first target data not including the target data identifier, setting the transfer status corresponding to the target data identifier to a completed status.
[0043] In a possible implementation, the multiple data identifiers respectively have corresponding transfer states, and the transfer states are used to identify whether the owner of the data corresponding to the data identifier has completed the change, and the device further includes a fourth response unit, a fourth acquisition unit, a fifth response unit, and a sixth response unit:
[0044] The fourth response unit is configured to, in response to acquiring the data identification set corresponding to the transferor identification, determine the transfer status corresponding to the multiple data identifications included in the data identification set as the unfinished status;
[0045] The fourth acquisition unit is used to acquire a second data transfer request for the target data to be transferred, where the second transfer request is used to change the owner of the target data to be transferred;
[0046] The fifth response unit is configured to reject the second data transfer request in response to the transfer status corresponding to the target data identifier being an uncompleted status;
[0047] The sixth response unit is configured to clear the transfer states corresponding to the multiple data identifiers in response to determining that the first data transfer request is completed.
[0048] In a possible implementation manner, the apparatus further includes a second determining unit, a third determining unit, and a seventh responding unit:
[0049] The second determining unit is used to determine a target data storage set corresponding to the target data flow, wherein the target data storage set is used to store data corresponding to the target data type;
[0050] The third determining unit is used to determine the second target data corresponding to the transferor identifier in the target data storage set corresponding to the target data transfer process, and the owner of the second target data is the transferor;
[0051] the seventh response unit is configured to delete the target data identifier from the data identifier set in response to the data identifier corresponding to the second target data not including the target data identifier;
[0052] The first changing unit is specifically used for:
[0053] In response to the data identifier corresponding to the second target data including the target data identifier, according to the transferor identifier, the receiver identifier and the target data identifier, changing the owner of the target data to be transferred from the transferor to the receiver through the target data transfer process;
[0054] In a possible implementation, the device further includes a deduplication unit:
[0055] The deduplication unit is used to perform deduplication processing on the data identification set so that there are no repeated data identifications in the data identification set.
[0056] In a possible implementation manner, the device further includes a fourth determining unit, a fifth determining unit, and a removing unit:
[0057] The fourth determining unit is used to determine the data receiving authority corresponding to the receiver according to the receiver identifier, wherein the data receiving authority is used to identify data that allows the owner to be changed to the receiver;
[0058] The fifth determining unit is used to determine, according to the data receiving authority, a non-transferable data identifier among the multiple data identifiers included in the data identifier set, wherein the to-be-transferred data corresponding to the non-transferable data identifier is data for which the owner is not allowed to be changed to the receiving party;
[0059] The removing unit is used to remove the non-transferable data identifier in the data identifier set.
[0060] In a possible implementation manner, the second acquiring unit is specifically configured to:
[0061] The multiple data identifiers corresponding to the transferor identifier obtained within a third preset time period are determined as the multiple data identifiers included in the data identifier set to obtain the data identifier set.
[0062] In a fourth aspect, an embodiment of the present application discloses an interactive device, the device comprising a first display unit, an eighth response unit, a sixth determination unit, a seventh determination unit, and a second change unit:
[0063] The first display unit is used to display a transfer initiation interface, wherein the transfer initiation interface includes transferor identifiers corresponding to a plurality of pending transfer parties and receiver identifiers corresponding to a plurality of pending receivers;
[0064] The eighth response unit is used to generate a data transfer request in response to obtaining a selection operation for a target transfer party identifier and a selection operation for a target recipient identifier, wherein the data transfer request includes the target transfer party identifier and the target recipient identifier;
[0065] The sixth determining unit is used to determine a plurality of to-be-transferred data corresponding to the target transfer party identifier, where the to-be-transferred data belongs to the target transfer party identified by the target transfer party identifier;
[0066] The seventh determining unit is used to determine the data transfer processes corresponding to the plurality of data to be transferred respectively according to the data types respectively corresponding to the plurality of data to be transferred, wherein the data transfer processes are used to change the owner of the data of the corresponding data type;
[0067] The second changing unit is used to change the multiple to-be-transferred parties from the target transfer party to the target recipient identified by the target recipient identifier through the data transfer processes respectively corresponding to the multiple to-be-transferred data.
[0068] In a possible implementation, the device further includes a second display unit, a ninth response unit, and a tenth response unit:
[0069] The second display unit is used to display the data identifiers corresponding to the multiple data to be transferred, and to display the transfer status corresponding to each data identifier, wherein the transfer status is used to identify whether the owner of the data corresponding to the data identifier has completed the change;
[0070] The ninth response unit is used to respectively use the multiple data to be transferred as target data to be transferred, and in response to the target data transfer process not changing the owner of the target data to be transferred from the target transfer party to the target recipient, determine that the transfer state corresponding to the target data identifier corresponding to the target data to be transferred is an uncompleted state, and the target data transfer process is a data transfer process corresponding to the target data type corresponding to the target data to be transferred;
[0071] The tenth response unit is used to determine that the transfer status corresponding to the target data identifier is a completed status in response to changing the owner of the target data to be transferred from the target transfer party to the target recipient through the target data transfer process.
[0072] In a possible implementation manner, the sixth determining unit is specifically configured to:
[0073] Determine a plurality of initial data to be transferred corresponding to the target transfer party identifier, wherein the plurality of initial data to be transferred includes the plurality of data to be transferred, and the owner of the plurality of initial data to be transferred is the target transfer party identified by the target transfer party identifier;
[0074] Displaying data identifiers corresponding to the multiple initial data to be transferred respectively;
[0075] In response to obtaining a selection operation for a plurality of data identifiers, the initial to-be-transferred data respectively corresponding to the plurality of data identifiers are determined as the plurality of to-be-transferred data corresponding to the target transfer party identifier.
[0076] In a fifth aspect, an embodiment of the present application discloses a computer device, wherein the computer device includes a processor and a memory:
[0077] The memory is used to store program code and transmit the program code to the processor;
[0078] The processor is used to execute the data transfer method described in any one of the first aspects, or the interaction method described in any one of the second aspects according to the instructions in the program code.
[0079] In a sixth aspect, an embodiment of the present application discloses a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the data transfer method described in any one of the first aspects, or the interaction method described in any one of the second aspects.
[0080] In the seventh aspect, an embodiment of the present application discloses a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the data transfer method described in any one of the first aspects, or the interaction method described in any one of the second aspects.
[0081] It can be seen from the above technical solution that when initiating a data transfer request, it is only necessary to obtain the transferor identifier for identifying the transferor and the receiver identifier for identifying the receiver. The storage of data is associated with the object to which the data belongs. Therefore, according to the transferor identifier, it is possible to know which data to be transferred whose owner is the transferor, thereby obtaining a data identifier set corresponding to the transferor. The data identifier set includes data identifiers corresponding to multiple data to be transferred, respectively, so that the data to be transferred that needs to be transferred in this data transfer can be recorded through the data identifier set. By analyzing the target data type corresponding to the target data to be transferred identified by the target data identifier, the target data transfer process for transferring the target data to be transferred can be determined. Since the target data identifier can identify the target data to be transferred, and the transferor identifier and the receiver identifier can identify the transferor and the receiver of this data transfer, the owner of the target data to be transferred can be changed from the transferor to the receiver through the target data transfer process according to the transferor identifier, the receiver identifier and the target data identifier. It can be seen from this that the present application can automatically count the data to be transferred based on the transferor identifier and the recipient identifier, and automatically call the corresponding data transfer process according to the data type of each data to be transferred. By combining the data identifier, the transferor identifier and the recipient identifier, the data transfer process can be informed of the data whose ownership needs to be changed and the ownership before and after the change, thereby realizing the automatic transfer of data of multiple data types without the need for manual initiation, execution and other operations in each data transfer process, thereby improving the data transfer efficiency while ensuring the accuracy of data transfer. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0083] Figure 1 A schematic diagram of a data transfer method in an actual application scenario provided by an embodiment of the present application;
[0084] Figure 2 A flowchart of a data transfer method provided in an embodiment of the present application;
[0085] Figure 3 A schematic diagram of a data transfer method provided in an embodiment of the present application;
[0086] Figure 4 A flowchart of an interaction method provided in an embodiment of the present application;
[0087] Figure 5 A schematic diagram of an interaction method provided in an embodiment of the present application;
[0088] Figure 6 A schematic diagram of an interaction method provided in an embodiment of the present application;
[0089] Figure 7 A schematic diagram of a data transfer method in an actual application scenario provided by an embodiment of the present application;
[0090] Figure 8 A schematic diagram of a data transfer method in an actual application scenario provided by an embodiment of the present application;
[0091] Fig. 9 A signaling diagram of a data transfer method in an actual application scenario provided by an embodiment of the present application;
[0092] Fig.10 A signaling diagram of a data transfer method in an actual application scenario provided by an embodiment of the present application;
[0093] Fig.11 A structural block diagram of a data transfer device provided in an embodiment of the present application;
[0094] Fig.12 A structural block diagram of an interactive device provided in an embodiment of the present application;
[0095] Fig.13 A structural diagram of a terminal provided in an embodiment of the present application;
[0096] Fig.14 A structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0097] The embodiments of the present application are described below in conjunction with the accompanying drawings.
[0098] In the related art, since the data transfer process for data of different data types is different, when the data to be transferred includes data of multiple data types, the executor who needs to transfer the data initiates data transfer requests in multiple data transfer processes to perform operations. For example, the applications that process data of different data types (such as various virtual value data, schedule data, etc.) are different. When performing data transfer, the executor needs to operate in each application. Therefore, the data transfer in the related art requires the executor to be familiar with each data transfer process, which makes the transfer difficult and has a high learning cost. At the same time, the efficiency of data transfer is also low.
[0099] In order to solve the above technical problems, the present application provides a data transfer method, in which a computer device can count multiple data to be transferred based on a transferor identifier, and determine a data transfer process for data transfer according to the data types corresponding to the multiple data to be transferred. Finally, based on the data identifier that identifies the data to be transferred, the transferor identifier that identifies the transferor, and the receiver identifier that identifies the receiver, the data transfer process is automatically called, thereby realizing automatic transfer of multiple data types of data to be transferred, without the need for manual operation of multiple data transfer processes, thereby improving the efficiency of data transfer while ensuring the accuracy of data transfer.
[0100] It is understandable that the method can be applied to a computer device, which is a computer device capable of data transfer, for example, a terminal device or a server with a data transfer function. The method can be executed independently by a terminal device or a server, or can be applied to a network scenario in which a terminal device and a server communicate, and is executed by the cooperation of the terminal device and the server. Among them, the terminal device can be a computer, a mobile phone and other devices. The server can be understood as an application server or a Web server. In actual deployment, the server can be an independent server or a cluster server.
[0101] In order to facilitate understanding of the technical solution provided in the embodiment of the present application, a data transfer method provided in the embodiment of the present application will be introduced below in combination with an actual application scenario.
[0102] See also Figure 1 , Figure 1A schematic diagram of a data transfer method in an actual application scenario provided in an embodiment of the present application. In the actual application scenario, the computer devices are a terminal device 101 and a server 102 with a data transfer function.
[0103] like Figure 1 As shown, on the terminal device 101, the initiator of data transfer can select the transferor and the receiver. In this actual application scenario, the transferor is object A and the receiver is object B. By triggering the "Confirm" control on the interface of the terminal device 101, a data transfer request can be initiated, and the data transfer request includes a transferor identifier for identifying object A and a receiver identifier for identifying object B. Through the transferor identifier of object A, the terminal device 101 can determine multiple data to be transferred whose owner is object A from the data storage of the server 102 used to perform the data transfer operation, thereby obtaining a data identifier set corresponding to the data identifiers of the multiple data to be transferred.
[0104] exist Figure 1 In the data identification set, the data identification set includes N data identifications, namely, data identification 1, data identification 2, ..., data identification N. Taking data identification 1 as an example, the terminal device 101 will analyze the data type 1 corresponding to the data 1 to be transferred identified by the data identification 1, and then determine the data transfer process 1 corresponding to the data type 1, and the data transfer process 1 is used to change the owner of the data of the data type 1. The terminal device 1 can call the data transfer process 1 to complete the change of the owner of the data 1 to be transferred according to the transferor identification, the receiver identification and the data identification 1. In the actual application scenario, the data transfer process 1 is located in the server 102, so the terminal device 101 can send the transferor identification, the receiver identification and the data identification 1 to the server 102, so that the server 102 can know which object and which data to change the owner to which object, and then through the data transfer process 1, the owner of the data 1 to be transferred can be changed from object A to object B.
[0105] It can be seen from this that when the present application transfers data of multiple data types to be transferred, it only needs to initiate a data transfer request once, and the initiator does not need to initiate it separately in multiple data transfer processes. The data to be transferred can be automatically determined through the transferor identifier, and the data transfer process can be automatically called to perform data transfer based on the data type corresponding to the data to be transferred, thereby improving the data transfer efficiency while ensuring the accuracy of data transfer.
[0106] Next, a data transfer method provided by an embodiment of the present application will be introduced in conjunction with the accompanying drawings. In this embodiment, the computer device may be a terminal device with a data transfer function, such as a mobile phone, a computer, and the like.
[0107] See also Figure 2 , Figure 2 A flowchart of a data transfer method provided in an embodiment of the present application, the method comprising:
[0108] S201: Obtain a first data transfer request.
[0109] When a data transfer requirement is generated, the initiator of the data transfer may initiate a data transfer request, and the first data transfer request may be any data transfer request. The data transfer request may be initiated actively or automatically. Active initiation means that the initiator may initiate a data transfer request through some specific initiation operations, such as Figure 1 The data transfer request can be initiated automatically by the initiator after confirming that certain conditions are met. For example, in a personnel change scenario, when an object applies for resignation, a data transfer request for transferring the object's data can be automatically initiated.
[0110] In the present application, data transfer refers to changing the owner corresponding to the data. The owner of the data refers to the party that has ownership rights to the data, such as file data, schedule data, etc. Therefore, in order to realize automated data transfer, it is necessary to let the computer device know the objects before and after the owner is changed. Based on this, the first data transfer request may include a transferor identifier for identifying the transferor and a receiver identifier for identifying the receiver. The transferor is the owner corresponding to the data to be transferred before the owner is changed, and the receiver is the owner corresponding to the data to be transferred after the owner is changed. The data to be transferred is the data whose owner needs to be changed for this data transfer.
[0111] S202: Acquire a data identifier set corresponding to the transferor identifier.
[0112] In the present application, the data to be transferred all have a corresponding owner. Since the transferor identifier can identify the transferor, the transferor identifier can be used to determine multiple data to be transferred whose owner is the transferor in the data storage, wherein each data to be transferred has a data identifier for identifying it, for example, "Schedule A" is a data identifier, and its corresponding data is a series of behavior arrangements in Schedule A, etc. In order to count which data of the transferor needs to be transferred, the computer device can obtain data identifiers corresponding to multiple data to be transferred as a data identifier set, and the data identifier set includes data identifiers corresponding to multiple data to be transferred, and the owner of the multiple data to be transferred is the transferor, wherein the multiple data to be transferred correspond to multiple data types.
[0113] It should be emphasized that, since the present application only obtains the data identifiers, it is not necessary to obtain the data to be transferred itself, so the amount of data required to be obtained is relatively small, and the difficulty of generating a data identifier set is relatively low; at the same time, the data transfer method of the present application can also be applied in some occasions where it is difficult to directly obtain data. For example, the data to be transferred is usually stored in data sets corresponding to each data type, and in order to protect data security, it is usually not allowed to directly obtain data from the data set.
[0114] S203: taking the multiple data identifiers included in the data identifier set as target data identifiers respectively, and determining the target data transfer process according to the target data type corresponding to the target data to be transferred identified by the target data identifier.
[0115] It is understandable that, due to different management methods for data of different data types, such as different storage locations, different calling methods, different processing methods, etc., when transferring data, the data transfer processes of different data types are usually different. Therefore, in the related art, corresponding data processing applications are developed for data of different data types. By performing data transfer operations in the data processing applications, the corresponding data transfer processes can be called to transfer data. This requires the initiator of the data transfer to be familiar with the operation processes of each data processing application, making data transfer more difficult and less efficient.
[0116] In the present application, in order to use the correct data transfer process to transfer data, the computer device can determine the data transfer process for transferring the data to be transferred based on the data type corresponding to the data to be transferred. Taking the target data identifier in the data identifier set as an example, the target data identifier can be any data identifier, and the computer device can determine the target data type corresponding to the target data to be transferred identified by the target data identifier, and then determine the target data transfer process corresponding to the target data type, and the target data transfer process is used to change the owner of the data corresponding to the target data type, where different data types have different corresponding data transfer processes.
[0117] It should be emphasized that in the relevant technology, since corresponding data processing applications have been developed for data of each data type, and each data will only be stored in a data storage set corresponding to the corresponding data type, that is, stored in the data storage set corresponding to each data processing application, in the relevant technology, when a data transfer request is initiated in a data processing application, data will only be searched in the data storage set corresponding to the data processing application, without paying attention to the data type. Therefore, the action of analyzing the data type itself is also a unique action of this application in order to realize the automation of multi-type data transfer.
[0118] S204: According to the transferor identifier, the receiver identifier and the target data identifier, the owner of the target data to be transferred is changed from the transferor to the receiver through the target data transfer process.
[0119] It is understandable that in order to transfer data, the computer device needs to clearly identify the data to be transferred and the object to receive the data, so that the data transfer process can be used to change the owner. Based on this, the computer device can use the transferor identifier and the target data identifier to make the target data transfer process clearly identify the target data to be transferred this time, wherein the transferor identifier can enable the target data transfer process to know what data the transferor corresponds to, and the target data identifier can be used to determine the target data to be transferred from the data corresponding to the transferor. This data determination method can also avoid the problem that when the same data is held by multiple objects, it is difficult to determine the accurate data to be transferred only by relying on the data identifier. Through the receiver identifier, it can be clear how to change the owner corresponding to the target data to be transferred. Therefore, the computer device can use the transferor identifier, the receiver identifier and the target data identifier to make the target data transfer process clearly identify the data to be transferred and the method of changing the owner, and then change the owner of the target data to be transferred from the transferor to the receiver through the target data transfer process.
[0120] It can be seen from the above technical solution that when initiating a data transfer request, it is only necessary to obtain the transferor identifier for identifying the transferor and the receiver identifier for identifying the receiver. The storage of data is associated with the object to which the data belongs. Therefore, according to the transferor identifier, it is possible to know which data to be transferred whose owner is the transferor, thereby obtaining a data identifier set corresponding to the transferor. The data identifier set includes data identifiers corresponding to multiple data to be transferred, respectively, so that the data to be transferred that needs to be transferred in this data transfer can be recorded through the data identifier set. By analyzing the target data type corresponding to the target data to be transferred identified by the target data identifier, the target data transfer process for transferring the target data to be transferred can be determined. Since the target data identifier can identify the target data to be transferred, and the transferor identifier and the receiver identifier can identify the transferor and the receiver of this data transfer, the owner of the target data to be transferred can be changed from the transferor to the receiver through the target data transfer process according to the transferor identifier, the receiver identifier and the target data identifier. It can be seen from this that the present application can automatically count the data to be transferred based on the transferor identifier and the recipient identifier, and automatically call the corresponding data transfer process according to the data type of each data to be transferred. By combining the data identifier, the transferor identifier and the recipient identifier, the data transfer process can be informed of the data whose ownership needs to be changed and the ownership before and after the change, thereby realizing the automatic transfer of data of multiple data types without the need for manual initiation, execution and other operations in each data transfer process, thereby improving the data transfer efficiency while ensuring the accuracy of data transfer.
[0121] Specifically, in a possible implementation, when the owner of the target data to be transferred is changed from the transferor to the recipient through the target data transfer process based on the transferor identifier, the recipient identifier and the target data identifier, the computer device can generate a target data transfer task through the target data transfer process based on the transferor identifier, the target data identifier and the recipient identifier, and the target data transfer task is used to change the owner of the target data to be transferred from the transferor to the recipient.
[0122] The computer device can execute the target data transfer task through the target data transfer process to change the owner of the target data to be transferred.
[0123] In a possible implementation, in order to know the data transfer progress of each data to be transferred, the computer device can obtain the task identifier corresponding to each data transfer task, and analyze the data transfer progress through the task identifier. For example, the computer device can obtain the task identifier corresponding to the target data transfer task, and the task identifier is used to identify the target data transfer task.
[0124] The multiple data identifiers included in the data identifier set have corresponding transfer states, which are used to identify whether the owner of the data corresponding to the data identifier has completed the change. The transfer state includes two states: completed state and uncompleted state.
[0125] For the target data identifier, the computer device can determine whether the transfer status corresponding to the target data identifier is an unfinished state. If it is not an unfinished state, it means that the target data to be transferred has completed the change of the owner, and there is no need to query the data transfer status of the data. In response to the transfer status corresponding to the target data identifier being an unfinished state, it means that it is still unknown whether the transfer of the target data to be transferred has been completed. Therefore, the computer device can determine the target data transfer task for changing the owner of the target data to be transferred according to the task identifier, thereby obtaining the task status corresponding to the target data transfer task, wherein the unfinished state in the transfer status is used to identify that the owner corresponding to the target data to be transferred has not been changed to the recipient.
[0126] In response to the task status being the ending state, it indicates that the target data transfer task has been completed, and the target data to be transferred has been changed to the recipient, so the computer device can set the transfer status corresponding to the target data identifier to the completed state, and the completed state is used to identify that the target data to be transferred has been changed to the recipient. In response to the task status being the unending state, it indicates that the target data transfer task has not been completed, so it cannot be determined whether the target data to be transferred has been changed to the recipient, so the computer device can keep the transfer status corresponding to the target data identifier as the unfinished state.
[0127] In response to the transfer states corresponding to the multiple data identifiers included in the data identifier set being all completed, it means that the data requested to be transferred in this data transfer request has been transferred, and the computer device can determine that the first data transfer request is completed. It can be seen that through the data identifier and the task identifier, the computer device can record the change of the ownership of each data to be transferred based on the execution status of each data transfer task, so that the data transfer status of each data to be transferred can be accurately known, and respond in time when the data transfer is completed, so that the initiator of the data transfer can know that the data transfer is completed. At the same time, the present application actively queries the execution status of the data transfer task based on the task identifier, and there is no need for the data transfer process to return the task execution status by itself. Therefore, there is no need to make functional improvements to the existing data transfer process, thereby reducing the difficulty of implementing the data transfer method.
[0128] In order to trigger a query on the task status based on the task identifier, in a possible implementation, the computer device can set a task query condition, which is used to determine whether to trigger a query on the task status. In response to the target data transfer task meeting the task query condition, and the transfer status corresponding to the target data identifier is an uncompleted state, indicating that the target data to be transferred has not yet completed the change of the transferor, and the target data to be transferred needs to query the data transfer status. At this time, the computer device can obtain the task status corresponding to the target data transfer task according to the task identifier.
[0129] The task query condition may include multiple conditions, for example, any one or more of the following combinations:
[0130] 1. The task execution time corresponding to the target data transfer task reaches the first preset time. If the target data transfer task meets the task query condition, it means that the target data transfer task has been executed for a long time, so the owner of the target data to be transferred is likely to have changed. At this time, the computer device can initiate a query on the task status of the target data transfer task.
[0131] 2. A second preset time has passed after the target time. The target time is the time when the task status corresponding to the target data transfer task was obtained last time according to the task identifier. If the target data transfer task meets the task query condition, it means that a long time has passed since the last task status query. Since the transfer status corresponding to the target data identifier is an unfinished state, it means that the task status queried for the task identifier last time was an unfinished state, and the target data to be transferred has not yet completed the change of the owner. After the second preset time, the owner change is likely to have been completed. Therefore, the task status query of the target data transfer task can be initiated again through the task identifier.
[0132] By setting the task query conditions reasonably, the task status can be queried in a timely manner while controlling the number of overall task status queries, thereby achieving efficient acquisition and management of the transfer status of the data to be transferred. In addition to being able to trigger the query of the task status by itself through the task query conditions, the computer device can also support the active initiation of task status query. For example, when the task query conditions are not met, if the operation for initiating the task status query is obtained, the task status of the target data transfer task can be obtained through the task identifier.
[0133] As mentioned above, in order to protect data security, data of various data types are usually stored in the data storage set corresponding to the data transfer process. Next, the solution for this data storage method will be introduced.
[0134] In a possible implementation, multiple data transfer processes respectively have corresponding data storage sets, the multiple data transfer processes include data transfer processes corresponding to multiple data types, the target data transfer process is any one of the multiple data transfer processes, and the data storage set is used to store data of the data type corresponding to the corresponding data transfer process.
[0135] When obtaining a data identification set corresponding to the transferor identification, the computer device can determine multiple data corresponding to the transferor identification in the data storage set corresponding to the multiple data transfer processes, and the owner of the multiple data is the transferor. Thus, the computer device can determine the multiple data as multiple data to be transferred, obtain the data identifications corresponding to the multiple data to generate a data identification set.
[0136] It is understandable that, since errors may occur during the task execution process, it may happen that although the task status is ended, the owner of the data to be transferred has not completed the change. Based on this, in a possible implementation, in order to ensure the stability of data transfer, the computer device can further verify the data transfer in conjunction with the owner of the data.
[0137] In response to the task status being the end state, the computer device may first determine the first target data identified by the transferor in the target data storage set corresponding to the target data transfer process, the target data storage set being used to store data of the corresponding target data type, and the first target data belonging to the transferor.
[0138] The computer device can determine the data identifier corresponding to the first target data. In response to the fact that the data identifier corresponding to the first target data does not include the target data identifier, it means that the owner of the target data to be transferred is no longer the transferor, that is, the change of the owner has been completed. Therefore, the transfer status corresponding to the target data identifier can be set to a completed status.
[0139] In response to the data identifier corresponding to the first target data including the target data identifier, it means that the owner of the target data to be transferred is still the transferor, and the change of the owner has not been completed, which means that the target data transfer task has failed. The computer device can mark the failure of the transfer of the target data to be transferred by adding a corresponding mark to the target data identifier, or the computer device can directly initiate the data transfer task through the target data transfer process to transfer the data based on the recipient identifier, the transferor identifier and the target data identifier. Through the method of further verifying whether the data transfer task is completed in the embodiment of the present application, the success rate and accuracy of the data transfer can be further guaranteed. At the same time, when further verifying, the present application only needs to query the data storage set corresponding to the target data transfer process, and the required data query workload is small, and the verification efficiency is high.
[0140] It is understandable that in order to improve the efficiency of data transfer, the data transfer task in this application can be a concurrent task, that is, multiple data transfer tasks can be executed simultaneously. As mentioned above, when the task status of the data transfer task is not completed, it means that the owner of the data to be transferred has not completed the change in the change process. At this time, if there are other data transfer requests to change the owner of the data to be transferred, the data transfer may be abnormal due to conflicts in the data transfer process.
[0141] Based on this, in order to avoid conflicting data transfer processes and improve the stability and success rate of data transfer, in a possible implementation, as described above, multiple data identifiers have corresponding transfer states, and the transfer state is used to identify whether the owner of the data corresponding to the data identifier has completed the change. The transfer state is added in the following way:
[0142] In response to obtaining the data identification set corresponding to the transferor identification, the computer device may determine the transfer status corresponding to the multiple data identifications included in the data identification set as an unfinished status. That is, only the data identifications corresponding to the data to be transferred requested by the data transfer request will be assigned the corresponding transfer status, and when determining the data identifications that need to be transferred for this data transfer, the initial transfer status corresponding to these data identifications is an unfinished status, thereby ensuring that the first data transfer request for each data to be transferred can be successfully executed.
[0143] The computer device can obtain a second data transfer request for the target data to be transferred, and the second transfer request is used to change the owner corresponding to the target data to be transferred. For example, the transferor identifier of the second data transfer request can be the same as the transferor identifier of the first data transfer request. The target data identifier can be directly included in the second data transfer request, so that the computer device changes the owner of the target data to be transferred.
[0144] At this time, the computer device can first determine the transfer status corresponding to the target data identifier. If the transfer status corresponding to the target data identifier is an uncompleted state, it means that the target data to be transferred is the data requested to be transferred by other data transfer requests, and the data transfer has not been completed. The target data transfer task is likely to be still in processing. If the second data transfer request is executed at this time, a conflicting data transfer task is likely to occur. Therefore, the computer device can reject the second data transfer request to avoid the occurrence of conflicting data transfer tasks that lead to data transfer failure, thereby improving the stability and success rate of data transfer.
[0145] Meanwhile, in response to determining that the first data transfer request is completed, the computer device may clear the transfer status corresponding to the plurality of data identifiers, so that the data transfer may be performed normally when a data transfer request for the target data to be transferred appears next time.
[0146] For example, a computer device may display a data transfer interface, which is used to initiate a data transfer request and may display data identifiers corresponding to multiple data to be transferred whose owner is the transferor, so that the initiator can select the data to be transferred, such as Figure 3 By clicking Operation 1 and Operation 2, you can select the transferor and the receiver. Figure 3 The transferor is object 1, and the receiver is object 2. After selecting the transferor, the computer device can display the data identifiers corresponding to multiple data to be transferred whose belonging party is the transferor through the data transfer interface, such as data identifier 1 to data identifier 5 in the figure. Then, by clicking operation 3, the initiator can select some or all of the data identifiers, and by clicking operation 4, a data transfer request can be initiated, and the data transfer request can directly include the transferor identifier identifying the object 1, the receiver identifier identifying the object 2, and the selected data identifier.
[0147] After obtaining the data transfer request, the computer device can directly call the data transfer process to transfer the data based on the data type corresponding to the data identified by the data identifier. Since the data transfer interface may not have the transfer status of each data, it may be possible to initiate multiple data transfer requests for the same data identifier. In this case, the above data transfer request will appear to be a request for data to be transferred whose transfer status is incomplete. The computer device can reject such requests to prevent data transfer process conflicts.
[0148] In addition to verification after the data transfer task is completed, in a possible implementation, the computer device can also perform verification when initiating the data transfer task. It can be understood that when obtaining the data identification set, the owner of the data to be transferred identified by the data identification in the data identification combination can be determined as the transferor. However, in the process from obtaining the data identification set to generating the data transfer task, the owner of the data to be transferred may change in the process of changing the owner through the data transfer process. At this time, executing the owner change of the data to be transferred may result in an owner change error or failure to execute. For example, in this process, there may be other objects that have changed the owner of the data to be transferred. Therefore, when determining the data to be transferred based on the transferor identifier and data identifier in the data transfer task, the data to be transferred cannot be found and cannot be changed.
[0149] Based on this, in a possible implementation, before changing the owner of the target data to be transferred through the target data transfer process, the computer device may further verify the owner of the data.
[0150] The computer device may determine a target data storage set corresponding to the target data flow, as described above, the target data storage set is used to store data of the corresponding target data type. Then, the computer device may determine the second target data corresponding to the transferor identifier in the target data storage set corresponding to the target data transfer flow, and the second target data belongs to the transferor.
[0151] The computer device can determine whether the data identifier corresponding to the second target data includes the target data identifier. In response to the data identifier corresponding to the second target data not including the target data identifier, it means that the owner of the target data to be transferred is no longer the transferor. At this time, the computer device can delete the target data identifier from the data identifier set, so as to no longer execute the change of the owner of the target data to be transferred, that is, the owner of the target data to be transferred will no longer be changed through the target data transfer process.
[0152] In response to the data identifier corresponding to the second target data including the target data identifier, it means that the target data to be transferred is still the data owned by the transferor, so the computer device can change the owner of the target data to be transferred from the transferor to the receiver through the target data transfer process according to the transferor identifier, the receiver identifier and the target data identifier. In this way, in the entire data transfer process, when the owner is changed by a non-computer device, the data identifier set can be updated in time to avoid the erroneous data transfer of the data to be transferred that no longer belongs to the transferor, and further improve the rationality of the data transfer.
[0153] In addition to the above-mentioned data verification, the computer equipment can also perform a variety of other data checking methods to ensure the stable execution of data transfer.
[0154] For example, in one possible implementation, before taking multiple data identifiers included in a data identifier set as target data identifiers and determining the target data transfer process based on the target data type corresponding to the target data to be transferred identified by the target data identifier, the computer device can deduplicate the data identifier set so that there are no duplicate data identifiers in the data identifier set, thereby avoiding the same data to be transferred from being transferred repeatedly and causing data transfer anomalies.
[0155] In addition, it is understandable that different objects may have different rights to receive data. For example, some objects have lower rights to receive data, and may not be able to receive some data that requires higher rights, otherwise it will affect the security of the data. Based on this, in a possible implementation, in order to ensure the security of data when performing data transfer, before using the multiple data identifiers included in the data identifier set as target data identifiers and determining the target data type corresponding to the target data to be transferred identified by the target data identifier, the computer device can first determine the data receiving rights corresponding to the receiver according to the receiver identifier. The data receiving rights are used to identify data that allows the owner to be changed to the receiver, that is, it can identify data that the receiver has the right to receive.
[0156] Then, the computer device can determine the non-transferable data identifier among the multiple data identifiers included in the data identifier set according to the data receiving authority. The data to be transferred corresponding to the non-transferable data identifier is data that does not allow the owner to be changed to the receiving party, that is, data that the receiving party does not have the authority to receive. In order to prevent this part of the data from being received by the receiving party, the computer device can remove the non-transferable data identifier in the data identifier set, so that when transferring data based on the data identifier included in the data identifier set, the owner of the data identified by the non-transferable data identifier can be changed, thereby ensuring the security of this part of the data.
[0157] It is understandable that when the present application obtains the data identification set, it does so based on the transferor identification, and it is not known in advance which data identifications all correspond to the transferor identification. Therefore, if the computer device is allowed to obtain data representations without restriction, it may cause the computer device to perform multiple data queries for the same data storage set, resulting in unnecessary waste of time.
[0158] Based on this, in a possible implementation, when acquiring a data identification set corresponding to the transferor identification, the computer device may preset a third preset time duration, and the third preset time duration is used to limit the time duration for acquiring the data identification. The computer device may determine the multiple data identifications corresponding to the transferor identification acquired within the third preset time duration as the multiple data identifications included in the data identification set, and obtain the data identification set, that is, the computer device may record the time duration for acquiring the data identification, and stop acquiring after the time duration reaches the third preset time duration. The setting of the third preset time duration may be determined based on the acquisition speed of the data identification set in the historical period, so as to ensure that a more comprehensive data identification set can be acquired through one data query, and may be set to 2S, for example. By limiting the acquisition time duration of the data identification set, it is possible to avoid the computer device from performing multiple repeated data queries on the data storage set when it does not know all the data owned by the transferor, thereby saving the time required for data transfer.
[0159] In combination with the above-mentioned data transfer method, the present application also provides an interaction method, which is used to provide the initiator of the data transfer on the interaction side with a way to transfer data through interaction.
[0160] See also Figure 4 , Figure 4 A flowchart of an interaction method provided in an embodiment of the present application, the method comprising:
[0161] S401: Display the transfer initiation interface.
[0162] The transfer initiation interface may include transferor identifiers corresponding to multiple pending transferors and receiver identifiers corresponding to multiple pending receivers, so that the initiator can select the transferor and receiver for data transfer. Figure 5 As shown, the interface includes multiple transferor identifiers of pending transferees (object 1, object 2 ... object 6), and multiple receiver identifiers of pending receivers (object 7, object 8 ... object 12).
[0163] S402: In response to obtaining a selection operation for a target transferor identifier and a selection operation for a target recipient identifier, generating a data transfer request.
[0164] The initiator can select the desired transferor and receiver for data transfer through a selection operation (such as clicking, long pressing, sliding, etc.). In response to obtaining the selection operation for the target transferor identifier and the selection operation for the target receiver identifier, the computer device can determine that the transferor corresponding to the target transferor identifier is the transferor of this data transfer, and the receiver corresponding to the target receiver identifier is the receiver of this data transfer. The target transferor identifier can be any one of the transferor identifiers corresponding to multiple pending transferors, and the target receiver identifier can be any one of the receiver identifiers corresponding to multiple pending receivers. The data transfer request includes the target transferor identifier and the target receiver identifier.
[0165] like Figure 5 As shown, the initiator can first select the identifier of object 1 as the target transfer party identifier through click operation 1, and select the identifier of object 7 as the target recipient identifier through click operation 2, thereby initiating a data transfer request.
[0166] S403: Determine a plurality of to-be-transferred data corresponding to the target transfer party identifier.
[0167] Since the ownership of data needs to be recorded when data is stored, each data usually has its corresponding owner. Therefore, when transferring data, the computer device can determine multiple data to be transferred based on the target transfer party identifier, and the owner of the multiple data to be transferred is the target transfer party identified by the target transfer party identifier. The specific determination method can be as described in any of the above determination methods.
[0168] S404: Determine data transfer processes corresponding to the plurality of data to be transferred, respectively, according to the data types respectively corresponding to the plurality of data to be transferred.
[0169] In order to realize data transfer of multiple types of data, the computer device can determine the data transfer process for transferring each data to be transferred according to the data types corresponding to the multiple data to be transferred. The data transfer process is used to change the owner of the data of the corresponding data type.
[0170] S405: Through the data transfer processes respectively corresponding to the multiple data to be transferred, the multiple to-be-transferred parties are changed from the target transfer parties to the target recipients identified by the target recipient identifiers.
[0171] It can be seen from this that the present application only requires the initiator to perform a simple transferor and receiver selection operation to complete the data transfer by changing the owner of multiple data to be transferred corresponding to the transferor to the receiver, which greatly simplifies the operations required for data transfer and improves data transfer efficiency.
[0172] In one possible implementation, in order to enable the initiator to learn of the data transfer progress of each data to be transferred, the computer device can display data identifiers corresponding to multiple data to be transferred, and display the transfer status corresponding to each data identifier, where the transfer status is used to identify whether the owner of the data corresponding to the data identifier has completed the change, and the data identifier is used to identify each data to be transferred.
[0173] A plurality of data to be transferred are respectively used as target data to be transferred. Taking the target data to be transferred as an example, in response to the target data transfer process not being passed to change the target transfer party of the target data to be transferred from the target transfer party to the target recipient, it indicates that the data transfer for the target data to be transferred has not been completed. The computer device can determine that the transfer state corresponding to the target data identifier corresponding to the target data to be transferred is an uncompleted state, and the target data transfer process is the data transfer process corresponding to the target data type corresponding to the target data to be transferred, that is, the data transfer process that can be used to change the target data to be transferred. Therefore, by displaying the data identifier and the transfer state, the initiator can be informed of the transfer progress of each data so as to perform other data operations on the data.
[0174] In response to the target data transfer process changing the owner of the target data to be transferred from the target transfer party to the target recipient, it indicates that the data transfer has been completed for the target data to be transferred, and the computer device can determine that the transfer status corresponding to the target data identifier is the completed status. Figure 6 As shown, in this interface, data identifier 1, data identifier 2...data identifier 5, which respectively identify data 1, data 2...data 5, and the transfer status corresponding to each data identifier can be displayed. It can be seen from the figure that data 1, data 3, data 4 and data 5 have completed data transfer, and other data have not yet completed data transfer.
[0175] In addition, in order to further improve the degree of freedom of data transfer, in a possible implementation, the computer device may also provide the initiator with a function of freely selecting data to transfer.
[0176] When determining multiple data to be transferred corresponding to the target transferor identifier, the computer device can first determine multiple initial data to be transferred corresponding to the target transferor identifier, the multiple initial data to be transferred including multiple data to be transferred, and the multiple initial data to be transferred belongs to the target transferor.
[0177] The computer device can display data identifiers corresponding to multiple initial data to be transferred, and the initiator can perform a selection operation on the data identifier corresponding to the data that the initiator wants to transfer. In response to obtaining a selection operation for multiple data identifiers, it can be explained that the initiator wants to transfer the initial data to be transferred corresponding to the multiple data identifiers. Therefore, the computer device can determine the initial data to be transferred corresponding to the multiple data identifiers as the multiple data to be transferred corresponding to the target transferor identifier, and perform subsequent data transfer operations. In this way, the initiator can select only the data that he needs to transfer for data transfer, without having to transfer all the data of the transferor, which improves the freedom and convenience of data transfer, and is more in line with the needs of various data transfer scenarios. Figure 3 As shown, after the initiator selects the transferor, the computer device can display data identifiers 1 to 5 corresponding to data 1 to data 5 whose belonging party is object 1, and the initiator can select data identifier 1 and data identifier 2 by clicking to initiate a data transfer request, so that the computer device will only transfer the data to be transferred identified by data identifier 1 and data identifier 2 in the subsequent process.
[0178] In order to facilitate understanding of the technical solution provided in the embodiment of the present application, a data transfer method provided in the embodiment of the present application will be introduced below in combination with an actual reference scenario.
[0179] See also Figure 7 , Figure 7 A schematic diagram of a data transfer method in an actual application scenario provided in an embodiment of the present application. The actual application scenario may be an employee resignation scenario. When an employee resigns, it may be necessary to transfer the data of the resigned employee to other employees.
[0180] like Figure 7 As shown, after an employee leaves, you can choose to automatically trigger data transfer or manually trigger data transfer. When you choose to automatically trigger, the computer device can automatically transfer the data of the resigned employee to the default recipient corresponding to the resigned employee, such as the resigned employee's direct superior, etc. After the employee leaves, the resources that fail to transfer will be placed in the list to be transferred, waiting for manual triggering of data transfer.
[0181] When manual triggering is selected, the computer device can put the data of the resigned member into the transfer list after the employee resigns, waiting for the initiator to initiate the data transfer request. The initiator can choose to delete the data that does not need to be transferred, and can choose to transfer all or part of the data, and select the recipient of the data. After confirming that the resigned employee has completed the data transfer, the computer device can send a transfer success notification, such as Figure 8As shown, when the data transfer is completed, the computer device can send and display a data transfer success notification to the recipient's device. The data transfer success notification introduces the transferor and part of the transferred data. The recipient can click "View Details" to know all the data transferred to him / her, including 10 data of data type A, 5 data of data type B, etc.
[0182] The specific data transfer process is as follows: Fig. 9 As shown, Fig. 9 A signaling diagram of a data transfer method provided in an embodiment of the present application. In this actual application scenario, it includes a transfer initiation interface, a computer device, an execution queue located in the computer device, storage, various data type modules for data storage and data transfer, and an information push system.
[0183] The initiator can initiate a data transfer request through the transfer initiation interface. After receiving the request, the computer device will obtain the data identification set within 2S through the transferor identification therein, and then perform identity authentication on the recipient (verify whether the recipient has the authority to receive data), data authentication (verify whether the data can be transferred) and concurrency check (remove duplicate data identifications in the data identification set), and generate a request identification corresponding to the data transfer request, which is used to identify this data transfer request.
[0184] After completing the above operations, the computer device can bind the request identifier and the data identifier set and store them in the storage. After the storage is successful, the data identifier in the storage is extracted by executing the queue. Before initiating the data transfer task, the corresponding data identifier is first obtained from the module corresponding to the data type through the transferor identifier to verify whether the transferor still has the data, so as to avoid the situation where the data owner changes during the process. For example, for schedule data, when the data identifier set is obtained, the schedule data has not expired, but when the data transfer task is initiated, the schedule data is invalid due to expiration, so it no longer has a corresponding owner.
[0185] If the data identifier for which the data transfer task is initiated does not exist in the acquired data identifier, the corresponding data identifier is deleted from the data identifier set, so that data transfer is no longer performed for the data identified by the data identifier. If it exists, a data transfer task can be initiated in the module of each data type, and the data transfer is performed through the data transfer process in the module. If the task is successfully initiated, the task identifier is returned. The computer device can store the task identifier in correspondence with the data identifier.
[0186] If all data transfer tasks corresponding to the data identifiers are successfully initiated, the computer device can start task polling, that is, query the execution status of the data transfer tasks. The reason for waiting for all data transfer tasks to be successfully initiated is that when a task initiation fails, the entire data transfer request can be returned to avoid the situation where the data transfer request fails to execute.
[0187] During task polling, the computer device can obtain the task identifier from the storage, and the storage will return the task identifier corresponding to the data identifier with the transfer status as unfinished. The computer device can obtain the task status based on the task identifier. When updating the transfer status of the data identifier based on the task status, the data identifier can be first obtained based on the transferor identifier, and whether the change of the owner has been truly completed based on the data identifier is verified. If the task status is the end state, and the acquired data identifier does not contain the data identifier corresponding to the task identifier, it can be determined that the data corresponding to the data identifier has been transferred, and the transfer status is updated to the completed state. If the task status is the end state, but the acquired data identifier still contains the data identifier corresponding to the task identifier, it means that an error has occurred in the data transfer task, and the owner has not completed the change. At this time, you can either re-initiate the data transfer task for the data identifier, or delete the data identifier from the data identifier set first, and wait for other initiators to re-initiate the data transfer request for the data identifier.
[0188] At the same time, the computer device can record the data that has been transferred, and finally send a notification of data transfer completion through the information push system. When obtaining data identification or task status through the modules of each data type, the acquisition process of different types of data is different. For example Fig.10 As shown, it is difficult to obtain relevant information of data of some data types, and the module needs to send it to the intermediate module first, and then the intermediate module sends it to the computer device; the relevant information of data of other data types can be sent directly to the computer device.
[0189] Based on the data transfer method provided in the above embodiment, the present application embodiment also provides a data transfer device, see Fig.11 , Fig.11 The structure block diagram of a data transfer device 1100 provided in an embodiment of the present application, the device 1100 includes a first acquisition unit 1101, a second acquisition unit 1102, a first determination unit 1103 and a first change unit 1104:
[0190] The first acquisition unit 1101 is used to acquire a first data transfer request, where the first data transfer request includes a transferor identifier for identifying a transferor and a receiver identifier for identifying a receiver;
[0191] The second acquisition unit 1102 is used to acquire a data identification set corresponding to the transferor identification, wherein the data identification set includes data identifications corresponding to a plurality of data to be transferred, the plurality of data to be transferred belongs to the transferor, and the plurality of data to be transferred corresponds to a plurality of data types;
[0192] The first determining unit 1103 is used to use the multiple data identifiers included in the data identifier set as target data identifiers, and determine the target data transfer process according to the target data type corresponding to the target data to be transferred identified by the target data identifier, wherein the target data transfer process is used to change the owner of the data corresponding to the target data type, and different data types have different corresponding data transfer processes;
[0193] The first changing unit 1104 is used to change the owner of the target data to be transferred from the transferor to the receiver through the target data transfer process according to the transferor identifier, the receiver identifier and the target data identifier.
[0194] In a possible implementation, the first changing unit 1104 is specifically configured to:
[0195] Generate a target data transfer task according to the transferor identifier, the target data identifier and the receiver identifier through the target data transfer process, wherein the target data transfer task is used to change the owner of the target data to be transferred from the transferor to the receiver;
[0196] The target data transfer task is executed through the target data transfer process.
[0197] In a possible implementation manner, the device further includes a third acquisition unit, a first response unit, a second response unit, and a third response unit:
[0198] The third acquisition unit is used to acquire a task identifier corresponding to the target data transfer task, where the task identifier is used to identify the target data transfer task;
[0199] The first response unit is used to obtain the task status corresponding to the target data transfer task according to the task identifier in response to the transfer status corresponding to the target data identifier being an uncompleted state, wherein the uncompleted state is used to indicate that the owner corresponding to the target data to be transferred has not been changed to the recipient;
[0200] The second response unit is used to set the transfer state corresponding to the target data identifier to a completed state in response to the task state being the end state, wherein the completed state is used to indicate that the owner corresponding to the target data to be transferred is changed to the recipient;
[0201] The third response unit is configured to determine that the first data transfer request is completed in response to the transfer states corresponding to the multiple data identifiers included in the data identifier set being all completed.
[0202] In a possible implementation manner, the first response unit is specifically configured to:
[0203] In response to the target data transfer task meeting the task query condition and the transfer status corresponding to the target data identifier being an unfinished state, acquiring the task status corresponding to the target data transfer task according to the task identifier;
[0204] The task query conditions include any one or more combinations of the following:
[0205] The task execution duration corresponding to the target data transfer task reaches a first preset duration;
[0206] A second preset time period has passed after the target time, where the target time is the time when the task status corresponding to the target data transfer task was last acquired according to the task identifier.
[0207] In a possible implementation, a plurality of data transfer processes respectively have corresponding data storage sets, the plurality of data transfer processes include data transfer processes respectively corresponding to the plurality of data types, the target data transfer process is any one of the plurality of data transfer processes, and the data storage set is used to store data of the data type corresponding to the corresponding data transfer process;
[0208] The second acquiring unit 1102 is specifically used for:
[0209] Determine a plurality of data corresponding to the transferor identifier in the data storage sets corresponding to the plurality of data transfer processes respectively, the plurality of data belonging to the transferor;
[0210] Determine the multiple data as the multiple data to be transferred, and obtain data identifiers corresponding to the multiple data to generate the data identifier set;
[0211] The second response unit is specifically used for:
[0212] In response to the task status being the end status, determining first target data corresponding to the transferor identifier in a target data storage set corresponding to the target data transfer process, the target data storage set being used to store data corresponding to the target data type, and the first target data belonging to the transferor;
[0213] In response to the data identifier corresponding to the first target data not including the target data identifier, setting the transfer status corresponding to the target data identifier to a completed status.
[0214] In a possible implementation, the multiple data identifiers respectively have corresponding transfer states, and the transfer states are used to identify whether the owner of the data corresponding to the data identifier has completed the change, and the device further includes a fourth response unit, a fourth acquisition unit, a fifth response unit, and a sixth response unit:
[0215] The fourth response unit is configured to, in response to acquiring the data identification set corresponding to the transferor identification, determine the transfer status corresponding to the multiple data identifications included in the data identification set as the unfinished status;
[0216] The fourth acquisition unit is used to acquire a second data transfer request for the target data to be transferred, where the second transfer request is used to change the owner of the target data to be transferred;
[0217] The fifth response unit is configured to reject the second data transfer request in response to the transfer status corresponding to the target data identifier being an uncompleted status;
[0218] The sixth response unit is configured to clear the transfer states corresponding to the multiple data identifiers in response to determining that the first data transfer request is completed.
[0219] In a possible implementation manner, the apparatus further includes a second determining unit, a third determining unit, and a seventh responding unit:
[0220] The second determining unit is used to determine a target data storage set corresponding to the target data flow, wherein the target data storage set is used to store data corresponding to the target data type;
[0221] The third determining unit is used to determine the second target data corresponding to the transferor identifier in the target data storage set corresponding to the target data transfer process, and the owner of the second target data is the transferor;
[0222] the seventh response unit is configured to delete the target data identifier from the data identifier set in response to the data identifier corresponding to the second target data not including the target data identifier;
[0223] The first changing unit 1104 is specifically used for:
[0224] In response to the data identifier corresponding to the second target data including the target data identifier, according to the transferor identifier, the receiver identifier and the target data identifier, changing the owner of the target data to be transferred from the transferor to the receiver through the target data transfer process;
[0225] In a possible implementation, the device further includes a deduplication unit:
[0226] The deduplication unit is used to perform deduplication processing on the data identification set so that there are no repeated data identifications in the data identification set.
[0227] In a possible implementation manner, the device further includes a fourth determining unit, a fifth determining unit, and a removing unit:
[0228] The fourth determining unit is used to determine the data receiving authority corresponding to the receiver according to the receiver identifier, wherein the data receiving authority is used to identify data that allows the owner to be changed to the receiver;
[0229] The fifth determining unit is used to determine, according to the data receiving authority, a non-transferable data identifier among the multiple data identifiers included in the data identifier set, wherein the to-be-transferred data corresponding to the non-transferable data identifier is data for which the owner is not allowed to be changed to the receiving party;
[0230] The removing unit is used to remove the non-transferable data identifier in the data identifier set.
[0231] In a possible implementation manner, the second obtaining unit 1102 is specifically configured to:
[0232] The multiple data identifiers corresponding to the transferor identifier obtained within a third preset time period are determined as the multiple data identifiers included in the data identifier set to obtain the data identifier set.
[0233] Based on the interaction method provided in the above embodiment, the present application also provides an interaction device, see Fig.12 , Fig.12 This is a structural block diagram of an interactive device 1200 provided in an embodiment of the present application, wherein the device 1200 includes a first display unit 1201, an eighth response unit 1202, a sixth determination unit 1203, a seventh determination unit 1204, and a second change unit 1205:
[0234] The first display unit 1201 is used to display a transfer initiation interface, wherein the transfer initiation interface includes transferor identifiers corresponding to a plurality of pending transfer parties and receiver identifiers corresponding to a plurality of pending receivers;
[0235] The eighth response unit 1202 is used to generate a data transfer request in response to obtaining a selection operation for a target transfer party identifier and a selection operation for a target recipient identifier, wherein the data transfer request includes the target transfer party identifier and the target recipient identifier;
[0236] The sixth determining unit 1203 is used to determine a plurality of to-be-transferred data corresponding to the target transfer party identifier, where the to-be-transferred data belongs to the target transfer party identified by the target transfer party identifier;
[0237] The seventh determining unit 1204 is used to determine the data transfer processes corresponding to the plurality of data to be transferred respectively according to the data types corresponding to the plurality of data to be transferred respectively, wherein the data transfer processes are used to change the owner of the data of the corresponding data type;
[0238] The second changing unit 1205 is configured to change the multiple to-be-transferred parties from the target transfer parties to the target recipients identified by the target recipient identifiers through the data transfer processes respectively corresponding to the multiple to-be-transferred data.
[0239] In a possible implementation, the device further includes a second display unit, a ninth response unit, and a tenth response unit:
[0240] The second display unit is used to display the data identifiers corresponding to the multiple data to be transferred, and to display the transfer status corresponding to each data identifier, wherein the transfer status is used to identify whether the owner of the data corresponding to the data identifier has completed the change;
[0241] The ninth response unit is used to respectively use the multiple data to be transferred as target data to be transferred, and in response to the target data transfer process not changing the owner of the target data to be transferred from the target transfer party to the target recipient, determine that the transfer state corresponding to the target data identifier corresponding to the target data to be transferred is an uncompleted state, and the target data transfer process is a data transfer process corresponding to the target data type corresponding to the target data to be transferred;
[0242] The tenth response unit is used to determine that the transfer status corresponding to the target data identifier is a completed status in response to changing the owner of the target data to be transferred from the target transfer party to the target recipient through the target data transfer process.
[0243] In a possible implementation manner, the sixth determining unit 1203 is specifically configured to:
[0244] Determine a plurality of initial data to be transferred corresponding to the target transfer party identifier, wherein the plurality of initial data to be transferred includes the plurality of data to be transferred, and the owner of the plurality of initial data to be transferred is the target transfer party identified by the target transfer party identifier;
[0245] Displaying data identifiers corresponding to the multiple initial data to be transferred respectively;
[0246] In response to obtaining a selection operation for a plurality of data identifiers, the initial to-be-transferred data respectively corresponding to the plurality of data identifiers are determined as the plurality of to-be-transferred data corresponding to the target transfer party identifier.
[0247] The present application also provides a computer device, which is described below in conjunction with the accompanying drawings. Fig.13 As shown, the embodiment of the present application provides a device, which may also be a terminal device. The terminal device may be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), a vehicle-mounted computer, etc., and the terminal device is a mobile phone as an example:
[0248] Fig.13 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present application. Fig.13 The mobile phone includes: a radio frequency (RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (WiFi) module 770, a processor 780, and a power supply 790. Those skilled in the art will understand that Fig.13 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0249] Combine the following Fig.13 A detailed introduction to the various components of the mobile phone:
[0250] The RF circuit 710 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 780 for processing; in addition, the designed uplink data is sent to the base station. Usually, the RF circuit 710 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, referred to as LNA), a duplexer, etc. In addition, the RF circuit 710 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0251] The memory 720 can be used to store software programs and modules. The processor 780 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 720. The memory 720 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 720 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0252] The input unit 730 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 731 or near the touch panel 731 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 731 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 731, the input unit 730 may further include other input devices 732. Specifically, the other input devices 732 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.
[0253] The display unit 740 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 740 may include a display panel 741. Optionally, the display panel 741 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), etc. Further, the touch panel 731 may cover the display panel 741. When the touch panel 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of touch event. Subsequently, the processor 780 provides a corresponding visual output on the display panel 741 according to the type of touch event. Although in Fig.13 In the embodiment, the touch panel 731 and the display panel 741 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 731 and the display panel 741 can be integrated to realize the input and output functions of the mobile phone.
[0254] The mobile phone may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 741 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0255] The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the mobile phone. The audio circuit 760 can transmit the received audio data to the speaker 761 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 760 and converted into audio data, and then the audio data is output to the processor 780 for processing, and then sent to another mobile phone through the RF circuit 710, or the audio data is output to the memory 720 for further processing.
[0256] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 770. It provides users with wireless broadband Internet access. Fig.13 A WiFi module 770 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0257] The processor 780 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 720, and calling data stored in the memory 720, it executes various functions of the mobile phone and processes data, thereby performing overall detection of the mobile phone. Optionally, the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 780.
[0258] The mobile phone also includes a power supply 790 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 780 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0259] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0260] In this embodiment, the processor 780 included in the terminal device also has the following functions:
[0261] Acquire a first data transfer request, wherein the first data transfer request includes a transferor identifier for identifying a transferor and a receiver identifier for identifying a receiver;
[0262] Acquire a data identification set corresponding to the transferor identification, wherein the data identification set includes data identifications corresponding to a plurality of data to be transferred, the plurality of data to be transferred belongs to the transferor, and the plurality of data to be transferred corresponds to a plurality of data types;
[0263] The plurality of data identifiers included in the data identifier set are respectively used as target data identifiers, and a target data transfer process is determined according to the target data type corresponding to the target data to be transferred identified by the target data identifier, wherein the target data transfer process is used to change the owner of the data corresponding to the target data type, and different data types correspond to different data transfer processes;
[0264] According to the transferor identifier, the receiver identifier and the target data identifier, through the target data transfer process, the owner of the target data to be transferred is changed from the transferor to the receiver.
[0265] And / or, the processor 780 included in the terminal device further has the following functions:
[0266] Displaying a transfer initiation interface, wherein the transfer initiation interface includes transferor identifiers corresponding to a plurality of pending transferors and receiver identifiers corresponding to a plurality of pending receivers;
[0267] In response to obtaining a selection operation for a target transferor identifier and a selection operation for a target recipient identifier, generating a data transfer request, the data transfer request including the target transferor identifier and the target recipient identifier;
[0268] Determine a plurality of to-be-transferred data corresponding to the target transfer party identifier, where the to-be-transferred data belongs to the target transfer party identified by the target transfer party identifier;
[0269] Determine, according to the data types respectively corresponding to the plurality of data to be transferred, the data transfer processes respectively corresponding to the plurality of data to be transferred, the data transfer processes being used to change the owner of the data of the corresponding data type;
[0270] Through the data transfer processes respectively corresponding to the multiple data to be transferred, the multiple to-be-transferred parties are changed from the target transfer party to the target recipient identified by the target recipient identifier.
[0271] The present application also provides a server. Fig.14 As shown, Fig.14 The structural diagram of the server 800 provided in the embodiment of the present application, the server 800 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 822 (for example, one or more processors) and a memory 832, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 842 or data 844. Among them, the memory 832 and the storage medium 830 can be temporary storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 822 can be configured to communicate with the storage medium 830 and execute a series of instruction operations in the storage medium 830 on the server 800.
[0272] The server 800 may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input and output interfaces 858, and / or one or more operating systems 841, such as Windows Server 2000. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.
[0273] The steps performed by the server in the above embodiment can be based on Fig.14 The server structure shown.
[0274] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program is used to execute any one of the data transfer methods or interaction methods described in the aforementioned embodiments.
[0275] An embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the data transfer method or interaction method described in any one of the above embodiments.
[0276] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the above-mentioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the above-mentioned storage medium can be at least one of the following media: read-only memory (English: read-only memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store program codes.
[0277] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0278] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data transfer method, characterized in that: The method comprises: Acquire a first data transfer request, wherein the first data transfer request includes a transferor identifier for identifying a transferor and a receiver identifier for identifying a receiver; Acquire a data identification set corresponding to the transferor identification, wherein the data identification set includes data identifications corresponding to a plurality of data to be transferred, the plurality of data to be transferred belongs to the transferor, and the plurality of data to be transferred corresponds to a plurality of data types; The plurality of data identifiers included in the data identifier set are respectively used as target data identifiers, and a target data transfer process is determined according to the target data type corresponding to the target data to be transferred identified by the target data identifier, wherein the target data transfer process is used to change the owner of the data corresponding to the target data type, and different data types correspond to different data transfer processes; According to the transferor identifier, the receiver identifier and the target data identifier, through the target data transfer process, the owner of the target data to be transferred is changed from the transferor to the receiver.
2. The method according to claim 1, characterized in that: The step of changing the owner of the target data to be transferred from the transferor to the receiver according to the transferor identifier, the receiver identifier and the target data identifier through the target data transfer process includes: Generate a target data transfer task according to the transferor identifier, the target data identifier and the receiver identifier through the target data transfer process, wherein the target data transfer task is used to change the owner of the target data to be transferred from the transferor to the receiver; The target data transfer task is executed through the target data transfer process.
3. The method according to claim 2, characterized in that The method further comprises: Obtaining a task identifier corresponding to the target data transfer task, where the task identifier is used to identify the target data transfer task; In response to the transfer status corresponding to the target data identifier being an uncompleted status, acquiring the task status corresponding to the target data transfer task according to the task identifier, wherein the uncompleted status is used to identify that the owner corresponding to the target data to be transferred has not been changed to the recipient; In response to the task status being the end status, setting the transfer status corresponding to the target data identifier to a completed status, wherein the completed status is used to identify that the owner corresponding to the target data to be transferred is changed to the recipient; In response to the transfer states corresponding to the multiple data identifiers included in the data identifier set all being in the completed state, it is determined that the first data transfer request is completed.
4. The method according to claim 3, characterized in that In response to the transfer status corresponding to the target data identifier being an unfinished state, obtaining the task status corresponding to the target data transfer task according to the task identifier includes: In response to the target data transfer task meeting the task query condition and the transfer status corresponding to the target data identifier being an unfinished state, acquiring the task status corresponding to the target data transfer task according to the task identifier; The task query conditions include any one or more combinations of the following: The task execution duration corresponding to the target data transfer task reaches a first preset duration; A second preset time period has passed after the target time, where the target time is the time when the task status corresponding to the target data transfer task was last acquired according to the task identifier.
5. The method according to claim 3, characterized in that: The plurality of data transfer processes respectively have corresponding data storage sets, the plurality of data transfer processes include data transfer processes respectively corresponding to the plurality of data types, the target data transfer process is any one of the plurality of data transfer processes, and the data storage set is used to store data of the data type corresponding to the corresponding data transfer process; The acquiring the data identifier set corresponding to the transferor identifier includes: Determine a plurality of data corresponding to the transferor identifier in the data storage sets corresponding to the plurality of data transfer processes respectively, the plurality of data belonging to the transferor; Determine the multiple data as the multiple data to be transferred, and obtain data identifiers corresponding to the multiple data to generate the data identifier set; In response to the task status being the end status, setting the transfer status corresponding to the target data identifier to the completed status includes: In response to the task status being the end status, determining first target data corresponding to the transferor identifier in a target data storage set corresponding to the target data transfer process, the target data storage set being used to store data corresponding to the target data type, and the first target data belonging to the transferor; In response to the data identifier corresponding to the first target data not including the target data identifier, setting the transfer status corresponding to the target data identifier to a completed status.
6. The method according to claim 3, characterized in that The multiple data identifiers respectively have corresponding transfer states, and the transfer states are used to identify whether the owner of the data corresponding to the data identifier has completed the change. The method also includes: In response to acquiring the data identification set corresponding to the transferor identification, determining the transfer status corresponding to the multiple data identifications included in the data identification set as the unfinished status; Acquire a second data transfer request for the target data to be transferred, where the second transfer request is used to change the owner of the target data to be transferred; In response to the transfer status corresponding to the target data identifier being an uncompleted state, rejecting the second data transfer request; In response to determining that the first data transfer request is completed, the transfer states corresponding to the multiple data identifiers are cleared.
7. The method according to claim 1, characterized in that The method further comprises: Determine a target data storage set corresponding to the target data flow, wherein the target data storage set is used to store data corresponding to the target data type; Determine second target data corresponding to the transferor identifier in the target data storage set corresponding to the target data transfer process, where the second target data belongs to the transferor; In response to the data identifier corresponding to the second target data not including the target data identifier, deleting the target data identifier from the data identifier set; The step of changing the owner of the target data to be transferred from the transferor to the receiver according to the transferor identifier, the receiver identifier and the target data identifier through the target data transfer process includes: In response to the data identifier corresponding to the second target data including the target data identifier, according to the transferor identifier, the recipient identifier and the target data identifier, through the target data transfer process, the owner of the target data to be transferred is changed from the transferor to the recipient.
8. The method according to claim 1, characterized in that Before using the plurality of data identifiers included in the data identifier set as target data identifiers respectively and determining the target data transfer process according to the target data type corresponding to the target data to be transferred identified by the target data identifiers, the method further includes: The data identification set is deduplicated so that there are no duplicate data identifications in the data identification set.
9. The method according to claim 1, characterized in that: Before using the plurality of data identifiers included in the data identifier set as target data identifiers respectively and determining the target data transfer process according to the target data type corresponding to the target data to be transferred identified by the target data identifiers, the method further includes: Determining, according to the receiver identifier, a data receiving permission corresponding to the receiver, wherein the data receiving permission is used to identify data that allows the owner to be changed to the receiver; According to the data receiving authority, determining a non-transferable data identifier among the multiple data identifiers included in the data identifier set, wherein the to-be-transferred data corresponding to the non-transferable data identifier is data for which the owner is not allowed to be changed to the receiving party; The non-transferable data identifier in the data identifier set is removed.
10. The method according to claim 1, characterized in that The acquiring of the data identifier set corresponding to the transferor identifier includes: The multiple data identifiers corresponding to the transferor identifier obtained within a third preset time period are determined as the multiple data identifiers included in the data identifier set to obtain the data identifier set.
11. An interactive method, characterized in that: The method comprises: Displaying a transfer initiation interface, wherein the transfer initiation interface includes transferor identifiers corresponding to a plurality of pending transferors and receiver identifiers corresponding to a plurality of pending receivers; In response to obtaining a selection operation for a target transferor identifier and a selection operation for a target recipient identifier, generating a data transfer request, the data transfer request including the target transferor identifier and the target recipient identifier; Determine a plurality of to-be-transferred data corresponding to the target transfer party identifier, where the to-be-transferred data belongs to the target transfer party identified by the target transfer party identifier; Determine, according to the data types respectively corresponding to the plurality of data to be transferred, the data transfer processes respectively corresponding to the plurality of data to be transferred, the data transfer processes being used to change the owner of the data of the corresponding data type; Through the data transfer processes respectively corresponding to the multiple data to be transferred, the multiple to-be-transferred parties are changed from the target transfer party to the target recipient identified by the target recipient identifier.
12. The method according to claim 11, characterized in that The method further comprises: Displaying the data identifiers corresponding to the plurality of data to be transferred, and displaying the transfer status corresponding to each data identifier, wherein the transfer status is used to identify whether the owner of the data corresponding to the data identifier has completed the change; The plurality of data to be transferred are respectively used as target data to be transferred, and in response to the target data transfer process not being passed to change the owner of the target data to be transferred from the target transfer party to the target recipient, determining that the transfer state corresponding to the target data identifier corresponding to the target data to be transferred is an uncompleted state, and the target data transfer process is a data transfer process corresponding to the target data type corresponding to the target data to be transferred; In response to changing the owner of the target data to be transferred from the target transferor to the target recipient through the target data transfer process, it is determined that the transfer status corresponding to the target data identifier is a completed status.
13. The method according to claim 11, characterized in that The determining of the plurality of to-be-transferred data corresponding to the target transfer party identifier includes: Determine a plurality of initial data to be transferred corresponding to the target transfer party identifier, wherein the plurality of initial data to be transferred includes the plurality of data to be transferred, and the owner of the plurality of initial data to be transferred is the target transfer party identified by the target transfer party identifier; Displaying data identifiers corresponding to the multiple initial data to be transferred respectively; In response to obtaining a selection operation for a plurality of data identifiers, the initial to-be-transferred data respectively corresponding to the plurality of data identifiers are determined as the plurality of to-be-transferred data corresponding to the target transfer party identifier.
14. A data transfer device, characterized in that: The device comprises a first acquisition unit, a second acquisition unit, a first determination unit and a first change unit: The first acquisition unit is used to acquire a first data transfer request, wherein the first data transfer request includes a transferor identifier for identifying a transferor and a receiver identifier for identifying a receiver; The second acquisition unit is used to acquire a data identification set corresponding to the transferor identification, wherein the data identification set includes data identifications corresponding to a plurality of data to be transferred, the plurality of data to be transferred belongs to the transferor, and the plurality of data to be transferred corresponds to a plurality of data types; The first determining unit is used to use the multiple data identifiers included in the data identifier set as target data identifiers, and determine the target data transfer process according to the target data type corresponding to the target data to be transferred identified by the target data identifier, wherein the target data transfer process is used to change the owner of the data corresponding to the target data type, and different data types have different corresponding data transfer processes; The first changing unit is used to change the owner of the target data to be transferred from the transferor to the receiver through the target data transfer process according to the transferor identifier, the receiver identifier and the target data identifier.
15. An interactive device, characterized in that: The device comprises a first display unit, an eighth response unit, a sixth determination unit, a seventh determination unit, and a second change unit: The first display unit is used to display a transfer initiation interface, wherein the transfer initiation interface includes transferor identifiers corresponding to a plurality of pending transfer parties and receiver identifiers corresponding to a plurality of pending receivers; The eighth response unit is used to generate a data transfer request in response to obtaining a selection operation for a target transfer party identifier and a selection operation for a target recipient identifier, wherein the data transfer request includes the target transfer party identifier and the target recipient identifier; The sixth determining unit is used to determine a plurality of to-be-transferred data corresponding to the target transfer party identifier, where the to-be-transferred data belongs to the target transfer party identified by the target transfer party identifier; The seventh determining unit is used to determine the data transfer processes corresponding to the plurality of data to be transferred respectively according to the data types respectively corresponding to the plurality of data to be transferred, wherein the data transfer processes are used to change the owner of the data of the corresponding data type; The second changing unit is used to change the multiple to-be-transferred parties from the target transfer party to the target recipient identified by the target recipient identifier through the data transfer processes respectively corresponding to the multiple to-be-transferred data.
16. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the data transfer method described in any one of claims 1-10, or the interaction method described in any one of claims 11-13 according to the instructions in the program code.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the data transfer method described in any one of claims 1 to 10, or the interaction method described in any one of claims 11 to 13.
18. A computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the data transfer method according to any one of claims 1 to 10, or the interaction method according to any one of claims 11 to 13.
