Data transmission method and device, computer program product and electronic equipment
By receiving the target data of the data provider and generating a data storage directory according to the user type, the problem of low transmission efficiency and security rate between multiple data transmission objects is solved, and efficient and secure data transmission is achieved.
Patent Information
- Application Number
- CN202411363522.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-27
AI Technical Summary
During data transmission, the transmission efficiency and security rate between multiple data transmission objects are low, and files are prone to missed, missed and lost.
By receiving the target data sent by the data provider and storing it in the backup directory, the user type is determined based on the preset information of the target user, the corresponding data storage directory is generated, and the target data is sent to the target user when the prompt information is received, ensuring that Different types of users efficiently obtain data in the same file management platform.
It improves the security and efficiency of data transmission, avoids mis-issuance, missed and lost files, and ensures efficient data transmission between users.
Smart Images

Figure CN119211222A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data, and more specifically, to a data transmission method, device, computer program product, and electronic device. Background Art
[0002] With the development and growth of civil aviation business, the data file transmission operations based on business needs have also increased significantly. At present, when performing data transmission, the method usually adopted is to transmit data between various data transmission objects to complete data interaction.
[0003] However, when files are transmitted between various data transmission objects, due to the large number of data transmission objects and the large file size of the transmitted files, wrong transmission, missed transmission, file leakage and loss may occur, and it is inconvenient to manage the transmitted files.
[0004] With regard to the problem of low transmission efficiency and security rate of files transmitted between various data transmission objects in the related technology, no effective solution has been proposed yet. Summary of the invention
[0005] The present application provides a data transmission method, device, computer program product and electronic device to solve the problem of low transmission efficiency and security rate of files transmitted between various data transmission objects in the related art.
[0006] According to one aspect of the present application, a data transmission method is provided. The method includes: receiving target data sent by a data provider, and storing the target data in a backup directory; obtaining users who subscribe to the data provider to obtain multiple target users, and determining the user type of each target user according to preset information of the target user; generating a data storage directory for each target user according to the user type, and sending the target data in the backup directory to the data storage directory; in the case of receiving prompt information, determining the target user for whom the target data needs to be obtained according to the prompt information, and sending the target data in the data storage directory of the target user to the target user.
[0007] Optionally, generating a data storage directory for each target user according to the user type includes: when the user type is the first type, determining the data storage directory of the target user as a download directory, wherein the download directory is allowed to be read by the target user; when the user type is the second type, determining the data storage directory of the target user as a temporary directory, wherein the download directory is prohibited from being read by the target user; determining the target user who needs to obtain the target data according to the prompt information, and sending the target data in the target user's data storage directory to the target user includes: when the prompt information is prompt information corresponding to the data acquisition request, determining the user type of the target user as the first type, and sending the target data in the download directory to the target user; when the prompt information is preset prompt information, determining the user type of the target user as the second type, and sending the target data in the temporary directory to the target user, wherein the preset prompt information is used to indicate the arrival time of data sending.
[0008] Optionally, when the prompt information is prompt information corresponding to a data acquisition request, determining that the user type of the target user is the first type, and sending the target data in the download directory to the target user includes: receiving a data acquisition request, and parsing the data acquisition request to obtain the request content; determining the target data that the target user needs to obtain according to the request content, obtaining the target data from the download directory, and sending the target data to the target user; when the target data does not exist in the download directory, obtaining the target data from the backup directory, storing the target data in the download directory, and sending the target data to the target user.
[0009] Optionally, when the prompt information is a preset prompt information, determining that the user type of the target user is the second type, and sending the target data in the temporary directory to the target user includes: obtaining a preset data sending cycle, and determining the data sending time according to the preset data sending cycle; when the data sending time is reached, generating a preset prompt information, wherein the preset prompt information includes a target time period in which the data to be sent is located; sending the target data within the target time period to the target user, and deleting the target data within the target time period in the temporary directory.
[0010] Optionally, the method also includes: upon receiving a data reissue instruction sent by a data provider, parsing the data to be reissued from the data reissue instruction, and determining whether the data to be reissued exists in a backup directory; if the data to be reissued does not exist in the backup directory, storing the data to be reissued in the backup directory; if the data to be reissued exists in the backup directory, sending the data to be reissued in the backup directory to the data storage directory of each target user according to the user type.
[0011] Optionally, before receiving the target data sent by the data provider, the method also includes: obtaining first user information of the data provider, and calling the target protocol based on the first user information to create first account information of the data provider, wherein the data provider uses the first account information on the client to log in to the server, and sends the target data according to the target protocol; before sending the target data in the backup directory to the data storage directory of each target user according to the user type, the method also includes: obtaining second user information of the target user, and calling the target protocol based on the second user information to create second account information of the target user, wherein the target user uses the second account information on the client to log in to the server and obtain the target data according to the target protocol.
[0012] Optionally, the method also includes: generating a first prompt message when it is detected that the target data sent by the data provider is not successfully received, wherein the first prompt message is used to characterize the abnormality of receiving the data; and / or, generating a second prompt message when it is detected that the target data is not successfully sent, wherein the second prompt message is used to characterize the abnormality of sending the data; and / or, generating a third prompt message when the number of target users logging into the same account is greater than a preset number, wherein the third prompt message is used to characterize the abnormality of the login operation.
[0013] According to another aspect of the present application, a data transmission device is provided. The device includes: a receiving unit, which is used to receive target data sent by a data provider and store the target data in a backup directory; a determining unit, which is used to obtain users who subscribe to the data provider, obtain multiple target users, and determine the user type of each target user according to preset information of the target user; a first sending unit, which is used to generate a data storage directory for each target user according to the user type, and send the target data in the backup directory to the data storage directory; a second sending unit, which is used to determine the target user for which the target data needs to be obtained according to the prompt information when receiving the prompt information, and send the target data in the data storage directory of the target user to the target user.
[0014] According to another aspect of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, a data transmission method provided in the aforementioned embodiment of the present application is implemented.
[0015] According to another aspect of the present invention, an electronic device is provided, comprising one or more processors and a memory; the memory stores computer-readable instructions, and the processor is used to execute the computer-readable instructions, wherein when the computer-readable instructions are executed, a data transmission method provided in the aforementioned embodiment is executed.
[0016] Through this application, the following steps are adopted: receiving the target data sent by the data provider, and storing the target data in a backup directory; obtaining the user who subscribes to the data provider, obtaining multiple target users, and determining the user type of each target user according to the preset information of the target user; generating a data storage directory for each target user according to the user type, and sending the target data in the backup directory to the data storage directory; in the case of receiving a prompt message, determining the target user who needs to obtain the target data according to the prompt message, and sending the target data in the target user's data storage directory to the target user. The problem of low transmission efficiency and security rate of files transmitted between various data transmission objects in the related technology is solved. By storing the target data sent by the data provider and storing the target data according to the user type of the target user who subscribes to the data provider, different users can obtain the target data from different data storage directories, thereby ensuring that different types of users can obtain data in the same file management platform, and ensuring efficient data transmission between users while ensuring the security of the data, thereby achieving the technical effect of improving the security and efficiency of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 is a flowchart of a data transmission method provided according to an embodiment of the present application;
[0019] Figure 2 is a flowchart of an optional data sending method provided according to an embodiment of the present application;
[0020] Figure 3 is a flowchart of another optional data sending method provided according to an embodiment of the present application;
[0021] Figure 4 is a flowchart of an optional data transmission method provided according to an embodiment of the present application;
[0022] Figure 5 is a schematic diagram of a data transmission device provided according to an embodiment of the present application;
[0023] Figure 6 It is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] It should be noted that the data transmission method, device, computer program product and electronic device determined in the present disclosure can be used in the field of big data, and can also be used in any field except the field of big data. The application field of the data transmission method, device, computer program product and electronic device determined in the present disclosure is not limited.
[0028] It should be noted that the collected information, user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) used in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of the relevant regions, necessary confidentiality measures are taken, and public order and good customs are not violated. Corresponding operation portals are provided for users to choose to authorize or refuse to use. For example, an interface is set up between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0029] The embodiments or examples of the present disclosure are not exhaustive, but are only illustrative of some embodiments or examples, and are not intended to be specific limitations on the scope of protection of the present disclosure. In the absence of contradiction, each step in a certain embodiment or example can be implemented as an independent example, and the steps can be combined arbitrarily. For example, the scheme after removing some steps in a certain embodiment or example can also be implemented as an independent example, and the order of the steps in a certain embodiment or example can be arbitrarily exchanged. In addition, the optional methods or optional examples in a certain embodiment or example can be combined arbitrarily; in addition, the various embodiments or examples can be combined arbitrarily, for example, some or all steps of different embodiments or examples can be combined arbitrarily, and a certain embodiment or example can be combined arbitrarily with the optional methods or optional examples of other embodiments or examples.
[0030] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0031] SFTPGo service: Simple File Transfer Protocol Go, a secure file transfer protocol service, can call the API provided by SFTPGo to create a producer upload account directory on the specified transfer server for the data provider, and a consumer download account directory on the specified transfer server for the data user, and set the account-level upload and download bandwidth size, maximum number of concurrent sessions, upload file size, and number of uploaded files. Different account directories have isolated permissions and cannot access each other. Each transfer server deploys SFTPGo independently without affecting each other.
[0032] API: Application Programming Interface, application programming interface.
[0033] According to an embodiment of the present application, a data transmission method is provided.
[0034] Figure 1 is a flow chart of a data transmission method provided according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0035] Step S101, receiving target data sent by a data provider, and storing the target data in a backup directory.
[0036] It should be noted that the executor of this embodiment may be a file management platform, and the data provider may be a data producer. When the data provider sends data to the corresponding data consumer, the target data may be sent to the file management platform for storage, and the file management platform may send the target data to all data consumers who have subscribed to the data provider, thereby achieving accurate management of the transmitted data.
[0037] Specifically, when the data provider transmits data, the file management platform will receive the target data sent by the data provider, and store the target data in the backup directory for temporary storage, and after sending the target data to the storage directories of different users, the data in the backup directory will be deleted. That is, the role of the backup directory is to receive and store the transmission data of the data provider, so as to store the data provided by the data provider and the data that the data consumer needs to obtain separately, thereby decoupling the data of the data provider and the data consumer, and preventing the data read by the other party from being abnormal due to problems with one party.
[0038] It should be noted that the data provider and the data consumer (or data acquirer) are only for one or several data or data in a certain scenario. In different scenarios, the identities of the data provider and the data acquirer can be interchangeable. For example, when user A receives data 1 sent by user B, user A is the data acquirer and user B is the data provider. However, when user B receives data 2 sent by user A, user A is the data provider and user B is the data acquirer.
[0039] Step S102: acquiring users who subscribe to a data provider, obtaining a plurality of target users, and determining a user type of each target user according to preset information of the target user.
[0040] Specifically, after the file management platform receives the target data sent by the data provider, it needs to send the target data to the users who subscribe to the data provider. At this time, the users who subscribe to the data provider can be obtained to obtain multiple target users. Since the needs for data acquisition are different among users, the users can be divided into two categories according to the way they obtain the target data, and different operations can be performed on the target data according to the user type.
[0041] It should be noted that the preset information may be a data acquisition method pre-selected by the user, wherein the data acquisition method may be active acquisition and passive transmission. Active acquisition may be that the user logs in to the file management platform through the client and actively reads and downloads the target data or file in the file management platform. Passive transmission may be that the user cannot log in to the file management platform. When the file management platform receives the target data, it will actively send the target data to the target user's device, so that the target user can receive the target data sent by the subscribed data provider as soon as possible.
[0042] Step S103: Generate a data storage directory for each target user according to the user type, and send the target data in the backup directory to the data storage directory.
[0043] It should be noted that since different types of users read files in different ways, in order to reduce the coupling of data storage, the data of different types of users can be stored in different directories, thereby avoiding the problem of one directory affecting the data acquisition operations of other types of users.
[0044] Specifically, after determining the user type, a data storage directory can be generated for each user type, and the target data can be sent from the backup directory to multiple data storage directories respectively, thereby ensuring that the target data in the data storage directory under each user type is the same target data and ensuring the timeliness of the data.
[0045] Step S104: upon receiving the prompt information, determining the target user for whom the target data needs to be obtained according to the prompt information, and sending the target data in the data storage directory of the target user to the target user.
[0046] Specifically, after the data is stored in the corresponding data storage directory, the data sending operation can be performed according to different prompt information received by the file management platform, thereby completing the data transmission operation of transmitting the data from the data provider to the data recipient.
[0047] For example, when receiving a prompt message sent by a first type of user, it indicates that the user has logged into the file management platform and needs to read or download a file. At this time, the user's operation can be directly responded to, and the target data required by the user can be sent to the user's client, thereby completing the data acquisition operation.
[0048] The data transmission method provided by the embodiment of the present application receives the target data sent by the data provider and stores the target data in a backup directory; obtains the user who subscribes to the data provider to obtain multiple target users, and determines the user type of each target user according to the preset information of the target user; generates a data storage directory for each target user according to the user type, and sends the target data in the backup directory to the data storage directory; in the case of receiving prompt information, determines the target user who needs to obtain the target data according to the prompt information, and sends the target data in the data storage directory of the target user to the target user. The problem of low transmission efficiency and security rate of files transmitted between various data transmission objects in the related technology is solved. By storing the target data sent by the data provider and storing the target data according to the user type of the target user who subscribes to the data provider, different users can obtain the target data from different data storage directories, thereby ensuring that different types of users can obtain data in the same file management platform, and ensuring efficient data transmission between users while ensuring the security of the data, thereby achieving the technical effect of improving the security and efficiency of data transmission.
[0049] In order to reduce the degree of coupling of data of users of different user types, optionally, in the data transmission method provided in the embodiment of the present application, generating a data storage directory for each target user according to the user type includes: when the user type is a first type, determining the data storage directory of the target user as a download directory, wherein the download directory is allowed to be read by the target user; when the user type is a second type, determining the data storage directory of the target user as a temporary directory, wherein the download directory is prohibited from being read by the target user.
[0050] Specifically, since users of different user types obtain data in different ways, in order to reduce the coupling between data, data storage directories corresponding to different user types may be generated respectively.
[0051] Furthermore, in the case where the user type is the first type, wherein the first type of user may be a user who obtains data from the file management platform after logging into the file management platform, a download directory may be created for the first type of user, so that the user of this type can obtain the permission to download data after logging into the file management platform, and then download the required data from the download directory.
[0052] Furthermore, in the case where the user type is the second type, where the second type of user may be a user who receives push messages from the file management platform, a temporary directory can be created for users of this type. Since this type of user cannot read data, after storing the data in the temporary directory, the file management platform can uniformly send the data in the temporary directory to multiple second type users, and delete the data after sending, thereby avoiding occupying storage space in the file management platform.
[0053] At the same time, the method of storing data of different types of users separately avoids the phenomenon of not being able to know which data has been pushed and which data has not been pushed when the data volume is large, thereby ensuring the accuracy of the data received by users.
[0054] This embodiment improves file storage efficiency while reducing the coupling degree of data of users of different user types by setting different data storage directories for different types of users.
[0055] Optionally, determining a target user who needs to obtain target data based on prompt information, and sending the target data in the target user's data storage directory to the target user includes: when the prompt information is prompt information corresponding to a data acquisition request, determining the user type of the target user to be a first type, and sending the target data in the download directory to the target user; when the prompt information is a preset prompt information, determining the user type of the target user to be a second type, and sending the target data in the temporary directory to the target user, wherein the preset prompt information is used to indicate the arrival of the data sending time.
[0056] Specifically, when the file management platform receives the prompt information, it indicates that a certain user needs to obtain data. At this time, the method of sending the target data can be determined according to the type of the user who sent the prompt information. When the user type is the first type, it indicates that the user sends a data acquisition request to the file management platform through the client, and generates the prompt information according to the data acquisition request. At this time, the data in the download directory can be sent to the user's client according to the instructions in the prompt information, thereby completing the data download operation.
[0057] Furthermore, when the user type is the second type, the file management platform needs to perform a unified data transmission operation on the second type of users. At this time, the file management platform will obtain the target data that the user needs to obtain in the temporary directory, and send the target data to the receiving end of the target user, thereby completing the data transmission operation.
[0058] It should be noted that when the file management platform sends the target data to the receiving end of the target user in a unified manner, the file transfer can be performed through the file scheduling component configured in the file management platform, wherein the file scheduling component can transmit the data to be transmitted in parallel according to the number of target users, and when the data volume is large, the data is also transmitted in parallel to each user, thereby improving the efficiency of data transmission. At the same time, the file scheduling component can be used to manage users, so that the data transmission status and transmission results can be fed back to the file management platform in a timely manner.
[0059] Optionally, in the data transmission method provided in the embodiment of the present application, when the prompt information is prompt information corresponding to a data acquisition request, determining that the user type of the target user is the first type, and sending the target data in the download directory to the target user includes: receiving a data acquisition request, parsing the data acquisition request to obtain the request content; determining the target data that the target user needs to obtain according to the request content, obtaining the target data from the download directory, and sending the target data to the target user; when the target data does not exist in the download directory, obtaining the target data from the backup directory, storing the target data in the download directory, and sending the target data to the target user.
[0060] Specifically, Figure 2 is a flowchart of an optional data sending method provided according to an embodiment of the present application, such as Figure 2 As shown, when the user type of the target user is the first type, after receiving the data acquisition request sent by the user, the data acquisition request can be parsed to obtain the target data that the user needs to obtain, and the target data can be obtained from the download directory.
[0061] Furthermore, when the target data does not exist in the backup data, it indicates that the data has just been stored in the backup data and has not yet been stored in the download directory. At this time, the target data can be obtained from the backup directory, stored in the download directory, and sent from the download directory to the user end of the target user, thereby completing the data storage and transmission operations.
[0062] It should be noted that in order to prevent data leakage, the data in the download directory can be deleted after being stored in the download directory for a period of time. After the user logs in again, identity authentication is performed. After the identity authentication is passed, the data is sent from the backup data to the download data, thereby preventing the attacker from obtaining the corresponding data from the download data through the user's client.
[0063] Optionally, in the data transmission method provided in the embodiment of the present application, when the prompt information is a preset prompt information, determining that the user type of the target user is the second type, and sending the target data in the temporary directory to the target user includes: obtaining a preset data sending cycle, and determining the data sending time according to the preset data sending cycle; when the data sending time is reached, generating a preset prompt information, wherein the preset prompt information includes a target time period in which the data to be sent is located; sending the target data within the target time period to the target user, and deleting the target data within the target time period in the temporary directory.
[0064] Specifically, Figure 3 is a flowchart of another optional data sending method provided according to an embodiment of the present application, such as Figure 3 As shown, in the case where the user type of the target user is the second type, it is necessary to determine the period for sending data to the second type of user, and determine the sending time according to the data sending period, so that when the sending time is reached, a preset prompt message is generated, and when the preset prompt message is received, multiple data with timestamps within the target time period in the temporary directory are obtained, and the above data are sent to each second type of user, thereby completing the data transmission operation.
[0065] It should be noted that, since the second type of users cannot actively obtain data, the data in the temporary directory can be deleted after being sent, thereby improving the storage performance of the file management platform.
[0066] For example, the file scheduling component configured in the file management platform can be used to transfer data in the temporary directory, and file push can be automatically executed according to the scheduling frequency and scheduling strategy set in the file scheduling component. The file push service monitors the temporary directory, and when the data sending time arrives, it detects whether there are files in the temporary directory. If there are files, if the number of data files is greater than the preset value, the thread pool is started to concurrently transmit the data files to the remote target user. If the number of data files is less than or equal to the preset value, the data files can be transmitted sequentially.
[0067] It should be noted that the file scheduling component supports generating data file identifiers and confirming that the file transfer is successful through the identifier fed back by the user. If the data file transfer is not completed at the current data sending time, the unfinished data in the temporary directory can be retained and processed at the next data sending time. Similarly, different users can use the same thread for data transmission, or they can transmit data in parallel.
[0068] This embodiment pushes the data in the temporary directory to the remote target user according to the data sending cycle, thereby ensuring the accuracy and timeliness of the data received by the remote target user.
[0069] Optionally, in the data transmission method provided in the embodiment of the present application, the method also includes: upon receiving a data reissue instruction sent by a data provider, parsing the data to be reissued from the data reissue instruction, and determining whether the data to be reissued exists in a backup directory; if the data to be reissued does not exist in the backup directory, storing the data to be reissued in the backup directory; if the data to be reissued exists in the backup directory, sending the data to be reissued in the backup directory to the data storage directory of each target user according to the user type.
[0070] Specifically, since some data providers may receive requests from data recipients indicating that they have not received data, they need to resend the data to the data recipient. In this case, the data provider will send a data resending instruction to the file management platform. After parsing the data resending instruction, the file management platform can obtain the data to be resent and determine whether the data to be resent exists in the backup directory.
[0071] If the data to be reissued does not exist in the backup directory, it indicates that the data provider failed to transmit the data successfully for the first time. At this time, the data to be reissued needs to be stored in the backup directory so that all target users can obtain the data to be reissued from the download directory and the temporary directory.
[0072] When there is data to be reissued in the backup directory, it means that the backup directory has not synchronized the data to the download directory and the temporary directory. At this time, you only need to wait for the backup directory to synchronize the data to the download directory and the temporary directory to complete the subsequent data transmission process.
[0073] This embodiment processes the data to be resent, thereby ensuring that the user can receive the corresponding data.
[0074] Optionally, in the data transmission method provided in the embodiment of the present application, before receiving the target data sent by the data provider, the method also includes: obtaining first user information of the data provider, and calling the target protocol based on the first user information to create first account information of the data provider, wherein the data provider uses the first account information on the client to log in to the server, and sends the target data according to the target protocol; before sending the target data in the backup directory to the data storage directory of each target user according to the user type, the method also includes: obtaining second user information of the target user, and calling the target protocol based on the second user information to create second account information of the target user, wherein the target user uses the second account information on the client to log in to the server and obtain the target data according to the target protocol.
[0075] It should be noted that the target protocol may be a secure transmission protocol, such as the SFTP protocol, so as to ensure the security of data upload and download.
[0076] Specifically, in order to ensure data security, when the data recipient and data transmitter access the file management platform, it is necessary to determine the security of the data recipient and data transmitter, thereby ensuring the security of the file management platform. The file management platform uses SFTPGo's API to implement account directory management, including upload account, upload directory, upload limit, download account, download directory, and download limit.
[0077] That is, when the data provider accesses the file management platform, it needs to first provide the first user information and call the SFTPGo API based on the first user information, so as to create the data provider's account in the file management platform through SFTPGo. When the data provider needs to send data to the file management platform, it can log in to the data provider's account on the client and log in to the file management platform through the security protocol, thereby ensuring the security of data uploaded to the file management platform.
[0078] For example, when creating an account, the file management platform can configure the data provider's information, including the upload server, account type (password login or password-free login), upload directory, transmission protocol, upload rate limit, maximum session number limit, hourly upload file number limit, single upload file size limit, subscription to upload result notifications, etc., so as to manage the data provider's data upload operations.
[0079] Similarly, before sending the target data in the backup directory to the data storage directory of each target user according to the user type, each data recipient is also required to create an account according to the target protocol and user information, so as to log in to the file management platform through the security protocol, thereby ensuring the security of data uploaded to the file management platform.
[0080] For example, the file management platform can configure the information of the data receiver, which is divided into two types: active download or passive reception. The configuration information of the active download receiver can include the download server, download account type (password login or password-free login), download directory, transmission protocol, download rate, and maximum number of sessions; the configuration information of the passive receiver can include the passive receiving server, account, password, receiving directory, and subscription file push result notification. The server of the active download consumer is provided by the management platform; the server, account, password, and directory of the passive receiving consumer are provided by the user.
[0081] This embodiment creates account information through the target protocol and transmits data through the target protocol, thereby ensuring the security of data transmission.
[0082] Optionally, in the data transmission method provided in the embodiment of the present application, the method also includes: generating a first prompt message when it is monitored that the target data sent by the data provider is not successfully received, wherein the first prompt message is used to characterize the abnormality of receiving the data; and / or, generating a second prompt message when it is monitored that the target data is not successfully sent, wherein the second prompt message is used to characterize the abnormality of sending the data; and / or, generating a third prompt message when the number of target users logging into the same account is greater than a preset number, wherein the third prompt message is used to characterize the abnormality of the login operation.
[0083] Specifically, after receiving the data sent by the data provider, it is necessary to send a prompt message to the data provider to inform the data provider whether the data is sent successfully, and instruct the data provider to resend the data if the data is not sent successfully.
[0084] Furthermore, after sending the data to the data receiver, it is also necessary to monitor whether the target data is sent successfully. If the target data is not sent successfully, a second prompt message is generated, and then the target data is resent.
[0085] Furthermore, in order to ensure the security of the data, when the data recipient logs in to the file management platform, it is necessary to determine the number of login addresses for logging into the same data recipient account based on the login address, and when the number of login addresses is large, it is determined that there is an abnormality in the account, and a third prompt message needs to be generated to inform the file management platform to process the account, thereby ensuring the security of the data in the file management platform.
[0086] Figure 4 is a flowchart of an optional data transmission method provided according to an embodiment of the present application, such as Figure 4 As shown, the file management platform receives the target data sent by the data provider, stores the target data in a backup directory, and transfers the target data from the backup directory to a download directory and a temporary directory, and sends the target data to the corresponding type of data recipients by the download directory and the temporary directory, thereby completing the data management, storage and sending operations. By storing the target data sent by the data provider and storing the target data according to the user type of the target user who subscribes to the data provider, different users can obtain the target data from different data storage directories, thereby ensuring that different types of users can obtain data in the same file management platform, and ensuring efficient data transmission between users while ensuring data security, thereby achieving the technical effect of improving data transmission security and transmission efficiency.
[0087] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0088] The embodiment of the present application also provides a data transmission device. It should be noted that the data transmission device of the embodiment of the present application can be used to execute the data transmission method provided by the embodiment of the present application. The data transmission device provided by the embodiment of the present application is introduced below.
[0089] Figure 5 Schematic diagram of a data transmission device provided according to an embodiment of the present application. Figure 5 As shown, the device includes: a receiving unit 51, a determining unit 52, a first sending unit 53, and a second sending unit 54.
[0090] The receiving unit 51 is used to receive the target data sent by the data provider and store the target data in the backup directory.
[0091] The determination unit 52 is used to obtain users who subscribe to the data provider, obtain multiple target users, and determine the user type of each target user according to preset information of the target user.
[0092] The first sending unit 53 is used to generate a data storage directory for each target user according to the user type, and send the target data in the backup directory to the data storage directory.
[0093] The second sending unit 54 is used to determine a target user who needs to obtain target data according to the prompt information when the prompt information is received, and send the target data in the data storage directory of the target user to the target user.
[0094] The data transmission device provided in the embodiment of the present application receives the target data sent by the data provider through the receiving unit 51, and stores the target data in the backup directory; the determining unit 52 obtains the user who subscribes to the data provider, obtains multiple target users, and determines the user type of each target user according to the preset information of the target user; the first sending unit 53 generates the data storage directory of each target user according to the user type, and sends the target data in the backup directory to the data storage directory; the second sending unit 54 determines the target user who needs to obtain the target data according to the prompt information when receiving the prompt information, and sends the target data in the data storage directory of the target user to the target user. The problem of low transmission efficiency and security rate of files transmitted between each data transmission object in the related technology is solved. By storing the target data sent by the data provider and storing the target data according to the user type of the target user who subscribes to the data provider, different users can obtain the target data from different data storage directories, so that different types of users can obtain data in the same file management platform, and under the condition of ensuring the security of the data, efficient data transmission between users is guaranteed, thereby achieving the technical effect of improving the security and efficiency of data transmission.
[0095] Optionally, in the data transmission device provided in the embodiment of the present application, the first sending unit 53 includes: a first determination module, used to determine the data storage directory of the target user as a download directory when the user type is the first type, wherein the download directory is allowed to be read by the target user; a second determination module, used to determine the data storage directory of the target user as a temporary directory when the user type is the second type, wherein the download directory is prohibited from being read by the target user; the second sending unit 54 includes: a first sending module, used to determine that the user type of the target user is the first type when the prompt information is the prompt information corresponding to the data acquisition request, and send the target data in the download directory to the target user; a second sending module, used to determine that the user type of the target user is the second type when the prompt information is the preset prompt information, and send the target data in the temporary directory to the target user, wherein the preset prompt information is used to indicate the arrival of the data sending time.
[0096] Optionally, in the data transmission device provided in the embodiment of the present application, when the prompt information is prompt information corresponding to a data acquisition request, the first sending module includes: a receiving submodule, used to receive the data acquisition request, and parse the data acquisition request to obtain the request content; a first acquisition submodule, used to determine the target data that the target user needs to obtain according to the request content, obtain the target data from the download directory, and send the target data to the target user; a second acquisition submodule, used to obtain the target data from the backup directory if the target data does not exist in the download directory, store the target data in the download directory, and send the target data to the target user.
[0097] Optionally, in the data transmission device provided in the embodiment of the present application, the second sending module includes: a determination submodule, used to obtain a preset data sending cycle, and determine the data sending time according to the preset data sending cycle; a generation submodule, used to generate a preset prompt information when the data sending time is reached, wherein the preset prompt information includes a target time period in which the data to be sent is located; a sending submodule, used to send the target data within the target time period to the target user, and delete the target data within the target time period in the temporary directory.
[0098] Optionally, in the data transmission device provided in the embodiment of the present application, the device also includes: a judgment unit, which is used to parse the data reissue instruction from the data reissue instruction to obtain the data to be reissued, and judge whether the data to be reissued exists in the backup directory when a data reissue instruction is received from the data provider; a storage unit, which is used to store the data to be reissued in the backup directory when the data to be reissued does not exist in the backup directory; and a third sending unit, which is used to send the data to be reissued in the backup directory to the data storage directory of each target user according to the user type when the data to be reissued exists in the backup directory.
[0099] Optionally, in the data transmission device provided in the embodiment of the present application, before receiving the target data sent by the data provider, the device also includes: a first creation unit, used to obtain first user information of the data provider, and call the target protocol according to the first user information to create the first account information of the data provider, wherein the data provider uses the first account information on the client to log in to the server, and sends the target data according to the target protocol; before sending the target data in the backup directory to the data storage directory of each target user according to the user type, the device also includes: a second creation unit, used to obtain second user information of the target user, and call the target protocol according to the second user information to create the second account information of the target user, wherein the target user uses the second account information on the client to log in to the server and obtain the target data according to the target protocol.
[0100] Optionally, in the data transmission device provided in the embodiment of the present application, the device also includes: a first generation unit, used to generate a first prompt message when it is detected that the target data sent by the data provider is not successfully received, wherein the first prompt message is used to characterize the abnormality of receiving the data; and / or, a second generation unit, used to generate a second prompt message when it is detected that the target data is not successfully sent, wherein the second prompt message is used to characterize the abnormality of sending the data; and / or, a third generation unit, used to generate a third prompt message when the number of target users logging into the same account is greater than a preset number, wherein the third prompt message is used to characterize the abnormality of the login operation.
[0101] The above-mentioned data transmission device includes a processor and a memory. The above-mentioned receiving unit 51, determining unit 52, first sending unit 53, second sending unit 54, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0102] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of low transmission efficiency and security rate of files transmitted between various data transmission objects in the related technology is solved by adjusting the kernel parameters.
[0103] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0104] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the data transmission method is implemented.
[0105] An embodiment of the present invention provides a processor, which is used to run a program, wherein the data transmission method is executed when the program is running.
[0106] Figure 6 is a schematic diagram of an electronic device provided according to an embodiment of the present application, such as Figure 6 As shown, an embodiment of the present invention provides an electronic device, the electronic device 60 includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the steps of the above data transmission method when executing the program. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0107] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the steps of the above data transmission method.
[0108] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0109] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0110] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0111] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0112] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0113] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0114] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0115] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0116] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A data transmission method, characterized in that: include: Receive target data sent by a data provider, and store the target data in a backup directory; Acquire users who subscribe to the data provider to obtain multiple target users, and determine the user type of each target user according to preset information of the target users; Generate a data storage directory for each target user according to the user type, and send the target data in the backup directory to the data storage directory; When the prompt information is received, a target user who needs to obtain the target data is determined according to the prompt information, and the target data in the data storage directory of the target user is sent to the target user.
2. The method according to claim 1, characterized in that Generating a data storage directory for each target user according to the user type includes: In the case where the user type is the first type, determining the data storage directory of the target user as a download directory, wherein the download directory is allowed to be read by the target user; In the case where the user type is the second type, determining the data storage directory of the target user as a temporary directory, wherein the download directory is prohibited from being read by the target user; Determining a target user who needs to obtain the target data according to the prompt information, and sending the target data in the data storage directory of the target user to the target user includes: In a case where the prompt information is prompt information corresponding to a data acquisition request, determining that the user type of the target user is the first type, and sending the target data in the download directory to the target user; In the case where the prompt information is preset prompt information, it is determined that the user type of the target user is the second type, and the target data in the temporary directory is sent to the target user, wherein the preset prompt information is used to indicate the arrival of the data sending time.
3. The method according to claim 2, characterized in that In a case where the prompt information is prompt information corresponding to a data acquisition request, determining that the user type of the target user is the first type, and sending the target data in the download directory to the target user includes: Receiving the data acquisition request, and parsing the data acquisition request to obtain the request content; Determine the target data that the target user needs to obtain according to the request content, obtain the target data from the download directory, and send the target data to the target user; When the target data does not exist in the download directory, the target data is acquired from the backup directory, the target data is stored in the download directory, and the target data is sent to the target user.
4. The method according to claim 2, characterized in that: In a case where the prompt information is preset prompt information, determining that the user type of the target user is the second type, and sending the target data in the temporary directory to the target user includes: Obtaining a preset data sending cycle, and determining a data sending time according to the preset data sending cycle; When the data transmission time is reached, generating the preset prompt information, wherein the preset prompt information includes the target time period of the data to be transmitted; The target data within the target time period is sent to the target user, and the target data within the target time period in the temporary directory is deleted.
5. The method according to claim 1, characterized in that The method further comprises: When receiving the data reissue instruction sent by the data provider, parsing the data reissue instruction to obtain the data to be reissued, and determining whether the data to be reissued exists in the backup directory; If the data to be reissued does not exist in the backup directory, storing the data to be reissued in the backup directory; In the case that the data to be reissued exists in the backup directory, the data to be reissued in the backup directory is sent to the data storage directory of each target user according to the user type.
6. The method according to claim 1, characterized in that Before receiving the target data sent by the data provider, the method further includes: Acquire the first user information of the data provider, and call the target protocol according to the first user information to create the first account information of the data provider, wherein the data provider uses the first account information to log in to the server on the client, and sends the target data according to the target protocol; Before sending the target data in the backup directory to the data storage directory of each target user according to the user type, the method further includes: The second user information of the target user is obtained, and the target protocol is called according to the second user information to create the second account information of the target user, wherein the target user uses the second account information to log in to the server on the client and obtains the target data according to the target protocol.
7. The method according to claim 1, characterized in that The method further comprises: In the case where it is detected that the target data sent by the data provider is not successfully received, generating first prompt information, wherein the first prompt information is used to indicate that the received data is abnormal; and / or, In the case where it is detected that the target data is not sent successfully, generating second prompt information, wherein the second prompt information is used to indicate that the sent data is abnormal; and / or, When the number of target users logging into the same account is greater than a preset number, a third prompt message is generated, wherein the third prompt message is used to indicate that the login operation is abnormal.
8. A data transmission device, characterized in that: include: A receiving unit, used for receiving target data sent by a data provider, and storing the target data in a backup directory; a determination unit, configured to acquire users who subscribe to the data provider, obtain a plurality of target users, and determine a user type of each target user according to preset information of the target users; A first sending unit, configured to generate a data storage directory for each target user according to the user type, and send the target data in the backup directory to the data storage directory; The second sending unit is used to determine a target user who needs to obtain the target data according to the prompt information when the prompt information is received, and send the target data in the data storage directory of the target user to the target user.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the data transmission method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the data transmission method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Multiuser management method and multiuser management device of mobile terminal
CN103200666A
Method for managing operation and maintenance data, cloud platform and AC
CN114531333A
Data transmission method and device, storage medium and electronic equipment
CN117336135A
Data transmission security system of cloud service and a providing method thereof
KR101971225B1
Image processing apparatus
US20160286074A1
Cited By
Event subscription method, device and system and nonvolatile storage medium
CN120416333A
