CN-121996625-A - File exchange system, method, device and storage medium
Abstract
The application provides a file exchange system, a method, equipment and a storage medium, wherein the system comprises a source system, a file exchange platform and a target system, the source system is used for acquiring data files and control files and uploading the data files and the control files to a first file catalog of the file exchange platform, the file exchange platform is used for acquiring the data files and the control files uploaded by the source system from the first file catalog and checking the data files and the control files, the file exchange platform is also used for moving the data files and the control files to a second file catalog under the condition that the data files and the control files pass the checking and determining the target system based on a pre-established subscription relation, the file exchange platform is also used for mapping the data files and the control files to a third file catalog corresponding to the target system based on the pre-established subscription relation, and the target system is used for acquiring the data files and the control files from the third file catalog. The application can improve the security of file exchange.
Inventors
- JIA CHONG
- FU HECHAO
- YANG JIE
Assignees
- 中电金信软件有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20251216
Claims (10)
- 1. A file exchange system, wherein the system comprises a source system, a file exchange platform and a target system, wherein, The source system is used for acquiring the data file and the control file and uploading the data file and the control file to a first file directory of the file exchange platform; the file exchange platform is used for acquiring the data file and the control file uploaded by the source system from a first file catalog corresponding to the source system, and checking the data file and the control file; The file exchange platform is further used for moving the data file and the control file to a second file directory under the condition that the data file and the control file pass verification, and determining the target system based on a pre-established subscription relation; the file exchange platform is further used for mapping the data files and the control files to a third file directory corresponding to the target system based on a pre-established subscription relation; the target system is configured to obtain the data file and the control file from the third file directory.
- 2. The system of claim 1, wherein the source system is further configured to: Configuring interface information on the file exchange platform, wherein the interface information is used for establishing a subscription interface of the file exchange platform; And in an interactive interface provided by the file exchange platform, executing an authorization operation on the target system, so that the file exchange platform authorizes the subscription interface to the target system based on the authorization operation to establish the subscription relation.
- 3. The system of claim 2, wherein the file exchange platform is further configured to: Acquiring the interface information of the source system configuration; establishing a subscription interface based on the interface information; Responsive to an authorization operation of the source system to the target system in the interactive interface, authorizing the subscription interface to the target system to establish the subscription relationship.
- 4. The system of claim 1, wherein the file exchange platform is further configured to: And in response to the data file and the control file failing verification, moving the data file and the control file to a fourth file directory.
- 5. The system of claim 1, wherein the file exchange platform is specifically configured to: the file exchange platform performs file name verification and format verification on the data file based on a preset first verification rule; the file exchange platform performs file name verification and format verification on the control file based on a preset second verification rule; And the file exchange platform performs file consistency check on the data file and the control file.
- 6. The system according to claim 1, wherein the source system is specifically configured to: And acquiring a control file corresponding to the first file directory.
- 7. A file exchange method, wherein the method is applied to the file exchange system according to any one of claims 1 to 6, and the method comprises: The source system acquires a data file and a control file, and uploads the data file and the control file to a first file directory of the file exchange platform; The file exchange platform acquires the data file and the control file uploaded by the source system from a first file directory corresponding to the source system, and verifies the data file and the control file; The file exchange platform moves the data file and the control file to a second file directory under the condition that the data file and the control file pass verification, and determines the target system based on a pre-established subscription relation; the file exchange platform maps the data files and the control files to a third file directory corresponding to the target system based on a pre-established subscription relation; The target system obtains the data file and the control file from the third file directory.
- 8. An electronic device comprising a processor and a memory communicatively coupled to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to perform the steps performed by the source system as in claim 7, or to perform the steps performed by the file exchange platform as in claim 7, or to perform the steps performed by the target system as in claim 7.
- 9. A storage medium having instructions stored therein that when executed on an electronic device cause the electronic device to perform the steps of claim 7 performed by the source system, or cause the electronic device to perform the steps of claim 7 performed by the file exchange platform, or cause the electronic device to perform the steps of claim 7 performed by the target system.
- 10. A program product comprising at least one of a program, instructions, which when executed by an electronic device, performs the steps of claim 7 performed by a source system, or performs the steps of claim 7 performed by a target switching platform, or performs the steps of claim 7 performed by a target system.
Description
File exchange system, method, device and storage medium Technical Field The present application relates to the field of data processing technologies, and in particular, to a file exchange system, a method, an apparatus, and a storage medium. Background In the related technology, along with the development of informatization, a large amount of data resources are accumulated in each field, but due to the distributed and scattered data resources, the data resources can not be acquired and used by other units and departments, so that the data value can not be fully mined, the file data exchange efficiency between different systems is low, the data transmission delay is high, and the service coordination efficiency is reduced. Disclosure of Invention The present application aims to solve at least one of the technical problems in the related art to some extent. The application provides a file exchange system, which comprises a source system, a file exchange platform and a target system, wherein the source system is used for acquiring data files and control files and uploading the data files and the control files to a first file catalog of the file exchange platform, the file exchange platform is used for acquiring the data files and the control files uploaded by the source system from the first file catalog corresponding to the source system and checking the data files and the control files, the file exchange platform is also used for moving the data files and the control files to a second file catalog under the condition that the data files and the control files pass the checking, and determining the target system based on a pre-established subscription relation, and the file exchange platform is also used for mapping the data files and the control files to a third file catalog corresponding to the target system based on the pre-established subscription relation, and the target system is used for acquiring the data files and the control files from the third file catalog. In one implementation, the source system is further configured to configure interface information at the file exchange platform, where the interface information is used for the file exchange platform to establish a subscription interface, and execute an authorization operation on the target system in an interactive interface provided by the file exchange platform, so that the file exchange platform authorizes the subscription interface to the target system based on the authorization operation, so as to establish the subscription relationship. In an alternative implementation mode, the file exchange platform is further used for acquiring the interface information configured by the source system, establishing a subscription interface based on the interface information, and authorizing the subscription interface to the target system to establish the subscription relation in response to the authorization operation of the source system to the target system in the interaction interface. In one implementation, the file exchange platform is further configured to move the data file and the control file to a fourth file directory in response to the data file and the control file failing verification. In one implementation mode, the file exchange platform is specifically used for performing file name check and format check on the data file based on a preset first check rule, performing file name check and format check on the control file based on a preset second check rule, and performing file consistency check on the data file and the control file. In one implementation, the source system is specifically configured to obtain a control file corresponding to the first file directory. In a second aspect, the application provides a file exchange method, which is applied to the file exchange system according to the first aspect, and comprises the steps that the source system obtains a data file and a control file and uploads the data file and the control file to a first file directory of a file exchange platform, the file exchange platform obtains the data file and the control file uploaded by the source system from the first file directory corresponding to the source system and checks the data file and the control file, the file exchange platform moves the data file and the control file to a second file directory under the condition that the data file and the control file pass the check, and determines the target system based on a pre-established subscription relation, the file exchange platform maps the data file and the control file to a third file directory corresponding to the target system based on the pre-established subscription relation, and the target system obtains the data file and the control file from the third file directory. In one implementation, the source system is further configured to configure interface information at the file exchange platform, where the interface information is used for the file exchange platform to establish a subscrip