A method and system for realizing rapid business development based on interface reuse
By standardizing basic technology facility modules and reusing interfaces, the problem of low business development efficiency is solved, the goal of rapid business development is achieved, and the development efficiency and flexibility of conversion functions are improved.
Patent Information
- Application Number
- CN202210654875.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-10
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-06-10
AI Technical Summary
In the existing technology, there are few changes in the basic technology facility modules, but old projects spend a lot of time on repeated development in this regard, resulting in low business development efficiency and prolonging the project development cycle.
By standardizing the transmission module, storage module and conversion module, we provide reuse interfaces so that business modules can directly call these interfaces, focus on the implementation of business logic functions, avoid understanding the technical details of data conversion, storage and transmission, and implement interfaces Reuse to shorten development cycle.
Effectively separate business modules and basic technology facility modules, improve business development efficiency, reduce development and debugging time, avoid repeated data transmission, and enhance the flexibility of conversion functions and business friendliness.
Smart Images

Figure CN115113864B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software system development, and more specifically, to a method and system for realizing rapid business development based on interface reuse. Background Art
[0002] The field of data processing technology is often accompanied by processes such as data collection, processing, storage and transmission, that is, the data collected by the collection system is first transmitted to the business system for processing, and then transmitted to the third-party system after the business system completes the processing. With the development of the company's business, the demand for data processing services has become more and more diversified, and the data format of the collection system has also changed, such as access control data, video surveillance data, etc., which has put forward urgent requirements for the business system to quickly process data services.
[0003] After analyzing the system functions, it can be found that the basic technology supporting business processing actually changes little, while old projects often spend a lot of time on repetitive development of basic technologies, which lengthens the project development cycle and is not conducive to the rapid development of the business. Summary of the invention
[0004] In response to at least one defect or improvement need in the prior art, the present invention provides a method, system, device and medium for realizing rapid business development based on interface reuse, which is used to solve the technical problem of insufficient business development efficiency caused by wasting a lot of time on repetitive development of basic technical facility modules with less actual changes.
[0005] To achieve the above object, according to a first aspect of the present invention, a method for realizing rapid service development based on interface reuse is provided, comprising the steps of:
[0006] S1, the transmission module waits for the arrival of the first type of data, and starts a timeout waiting timer to wait for data transmission notification;
[0007] S2, the transmission module receives the first type of data and calls back to the service module;
[0008] S3, after processing the callback data, calling the conversion module interface to convert the first type of data into database table data, and setting the synchronization identification field of the database table data to an unsynchronized state;
[0009] S4, calling the storage module interface to store the database table data;
[0010] S5. Determine whether the storage is successful according to the storage result; if successful, the storage module calls the transmission module interface to transmit the database table data; otherwise, record a log and give a warning message, and jump to step S1;
[0011] S6, the transmission module receives the data transmission notification, stops the timeout waiting timer, converts the database table data into the second type of data and sends it to the third-party system; if the timeout waiting timer times out waiting for the data transmission notification, the transmission module calls the storage module interface to search for the unsynchronized database table data, converts it into the second type of data and sends it to the third-party system;
[0012] S7. The transmission module determines whether the transmission is successful according to the transmission result; if successful, the storage module interface is called to update the synchronization identification field of the database table data to a synchronized state; otherwise, a log is recorded and a warning message is given, and the process goes to step S1.
[0013] Further, the conversion module is subjected to standardization processing to obtain the conversion module interface; the standardization processing of the conversion module specifically includes:
[0014] Define the names of the attributes in the type to be converted;
[0015] The attribute to be converted in the annotation type is marked with the attribute name of the target type, and the corresponding attribute to be converted is mapped by the attribute name;
[0016] Perform conversion operations on the marked attributes to be converted, supporting conversion of basic data types and composite data types; if the source attribute type and the target attribute type are consistent, they are converted directly; if they are inconsistent, a custom conversion method can be specified. If not specified, the composite data type is converted to a string by default, or the string is converted to a composite data type in reverse.
[0017] Further, the storage module is subjected to standardization processing to obtain the storage module interface; the storage module is subjected to standardization processing specifically including:
[0018] When writing, first convert the first type of data into the database table data, and set the synchronization identification field of the database table data to an unsynchronized state, and notify the transmission module after successful writing;
[0019] When reading, the database table data is first converted into the second type of data, and the second type of data is transmitted to the third-party system. After the transmission is completed, the transmission result is written back to the synchronization identification field of the database table data to indicate whether it is synchronized or not.
[0020] Further, the transmission module is subjected to standardization processing to obtain the transmission module interface; the transmission module is subjected to standardization processing specifically including:
[0021] The transmission module after standardization supports two transmission modes, one is to transmit the second type of data after receiving the interface call notification of the storage module, and the other is timeout transmission when no interface call notification is received. At this time, all unsynchronized data is transmitted, and the database table data must be converted into the second type of data before transmission.
[0022] Furthermore, before step S1, the method further includes:
[0023] S0. Create a database table, and create the synchronization identification field for the database table data to be synchronized.
[0024] Furthermore, the synchronization identification field is used as an identification to record whether the second type of data has been transmitted to the third-party system.
[0025] Furthermore, the transmission module after standardization also supports transmission according to a specified type and transmission according to all types; transmission according to the specified type refers to transmitting only data of a specified type, and transmission according to all types refers to transmitting all types of data to be transmitted.
[0026] According to a second aspect of the present invention, there is also provided a system for realizing rapid service development based on interface multiplexing, comprising a service module and a basic technical facility module; the basic technical facility module comprises a storage module, a transmission module and a conversion module;
[0027] The business module is used to process the first type of data, call the conversion module interface or the storage module interface and set the synchronization identification field of the database table data; call the storage module interface to store the database table data; and judge whether the storage is successful according to the storage result;
[0028] The transmission module is used to receive the first type of data and call back to the business module; to receive a data transmission notification, stop the timeout waiting timer, and send the second type of data to the third-party system; if the timeout waiting timer times out waiting for the data transmission notification, call the storage module interface to find the unsynchronized database table data, and send the converted second type of data to the third-party system; and to determine whether the sending is successful according to the sending result;
[0029] The storage module is used to store and read the database table data; and is also used to call the transmission module interface to transmit the database table data;
[0030] The conversion module is used to convert the first type of data into the database table data, and is also used to convert the database table data into the second type of data.
[0031] According to the third aspect of the present invention, there is also provided a device for realizing rapid business development based on interface multiplexing, comprising at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the computer program is executed by the processing unit, the processing unit is enabled to perform the steps of any one of the above-mentioned methods.
[0032] According to a fourth aspect of the present invention, there is also provided a storage medium storing a computer program executable by an access authentication device, wherein when the computer program runs on the access authentication device, the access authentication device is enabled to perform the steps of any one of the above methods.
[0033] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:
[0034] (1) The present invention provides corresponding transmission module interfaces, storage module interfaces and conversion module interfaces by standardizing the basic technical facility modules including the transmission module, storage module and conversion module. Then the business module can focus on the realization of business logic functions by directly calling the transmission module interface, storage module interface and conversion module interface without having to understand the technical details of data conversion, storage and transmission, thus saving a lot of time for function development and debugging. The present invention can effectively separate the business module and the basic technical facility module, so that changes in the business will not affect the basic technical facility module, thereby achieving functional decoupling between the two and greatly improving the efficiency of business development.
[0035] (2) The present invention can intuitively check the data synchronization progress through the synchronization identification field and avoid repeated data transmission, thereby enhancing the friendliness of the service.
[0036] (3) The present invention can effectively reduce the complexity of data conversion operations and avoid errors caused by manual conversion. At the same time, by modifying the attribute mapping relationship, the flexibility of the conversion function is enhanced, thereby improving the convenience of business development. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A flow chart of a method for realizing rapid service development based on interface reuse provided by an embodiment of the present invention;
[0039] Figure 2An operation flow chart of the interaction between modules of a system for realizing rapid business development based on interface reuse provided by an embodiment of the present invention;
[0040] Figure 3 A schematic diagram of the module structure of a system for implementing rapid service development based on interface reuse provided by an embodiment of the present invention;
[0041] Figure 4 A block diagram of an electronic device suitable for implementing the method described above provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0043] The terms "first", "second" or "third" etc. in the specification, claims or the above-mentioned drawings of this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0044] Based on the defects of the existing technology mentioned in the background technology, after analyzing the system functions, we found that the basic technology supporting business processing has changed less, and old projects often spend a lot of time on repeated development of basic technology, which lengthens the project development cycle and is not conducive to the rapid development of business. If the basic technical facilities are standardized and a reuse interface is provided, so that subsequent projects can focus on business development based on the interface, the development cycle can be greatly shortened and the purpose of rapid business development can be achieved.
[0045] Based on the above ideas, refer to Figure 1 and Figure 2 In an embodiment of "receiving access control data from a collection system and transmitting it to a third-party system via this system", a method for realizing rapid business development based on interface multiplexing mainly includes the following steps S1-S7.
[0046] S1. The transmission module starts and waits for the arrival of the access control data AC (i.e., the first type of data mentioned in the claims) of the acquisition system. At the same time, the transmission module starts the timeout waiting timer to wait for the data transmission notification.
[0047] S2. The transmission module receives the access control data AC from the acquisition system and calls it back to the business module.
[0048] S3. After the business module completes processing the callback data, it calls the conversion module interface to convert the access control data AC of the acquisition system into the access control data DR of the database table, and sets the synchronization identification field sync of the access control data DR of the database table to 0, indicating an unsynchronized state.
[0049] S4. The business module calls the storage module interface to store the access control data DR in the database table.
[0050] S5. The business module determines whether the storage is successful based on the storage result; if successful, the storage module automatically calls the transmission module interface to transmit the database table access control pass data DR; otherwise, a log is recorded and a warning message is given, and the process jumps to step S1 to wait for the arrival of the acquisition system access control pass data AC.
[0051] S6. The transmission module receives the data transmission notification, stops the timeout waiting timer, converts the database table access control data DR into the system access control data NC (that is, the second type of data mentioned in the claims) and sends it to the third-party system; if the timeout waiting timer times out waiting for the data transmission notification, the transmission module calls the storage module interface to search for the unsynchronized database table access control data DRs, converts it into the system access control data NCs and sends it to the third-party system.
[0052] In fact, the access control pass data includes two fields (device number and device name). The access control pass data in the acquisition system is represented as AC (Device_Id, Device_Name), the access control pass data in this system is represented as NC (device_id, device_name), and the access control pass data in the database system is represented as DR (dev_id, dev_name), and the field spellings are inconsistent.
[0053] S7. The transmission module determines whether the transmission is successful based on the transmission result; if successful, the storage module interface is called to update the synchronization identification field sync of the database table access control pass data DR to 1, indicating a synchronized state; otherwise, a log is recorded and a warning message is given, and the process jumps to step S1 to wait for data transmission notification.
[0054] The method for realizing rapid business development based on interface reuse in this embodiment actually includes the creation of a database table containing a synchronization identification field and the process of standardizing the conversion module, storage module and transmission module before step S1. After standardizing the above three basic technical facility modules, corresponding reuse interfaces can be provided, so that subsequent projects can directly call these corresponding reuse interfaces to focus on business development, which can greatly shorten the development cycle and achieve the purpose of rapid business development. More specific descriptions are as follows.
[0055] S0. Create a database table, such as the access control record table DRT, which contains a synchronization identification field sync. The synchronization identification field is used to record whether the data has been transmitted to the third-party system. The synchronization identification field can be used to intuitively view the synchronization status and transmission progress of the data. After the system is restarted, only the unsynchronized data needs to be transmitted according to the synchronization identification field, thereby avoiding repeated transmission of synchronized data.
[0056] The conversion module is standardized and a conversion module interface is provided to support the specified source and target types and automatically complete the conversion function. The specific conversion steps are as follows:
[0057] (a) Define the names of the attributes of the type to be converted, such as the access control data AC{Device_Id, Device_Name} of the acquisition system and the access control data NC{device_id, device_name} of this system, both of which contain two string attributes: device ID and device name.
[0058] (b) The attribute to be converted in the annotation type is marked with the attribute name of the target type, and the two attributes to be converted are mapped through the attribute name; for example, using the [DataMember(Name="device_id")] attribute annotation for Device_Id means that Device_Id is mapped to device_id.
[0059] (c) Perform conversion operations on the annotation attributes, supporting conversion of basic data types and composite data types. If the source attribute type and the target attribute type are consistent, they can be directly converted; if they are inconsistent, a custom conversion method can be specified. If not specified, the composite data type is converted to a string by default or the string is converted to a composite data type in reverse. Specifically, since the device ID and device name are both string types and belong to basic data types, Device_Id can be converted to device_id and directly assigned; for composite data types, the data type can be converted to a json string.
[0060] Standardization of storage modules can provide storage module interfaces and support data reading and writing operations. The specific standardization steps are as follows:
[0061] (a) When writing, the data AC is first converted into database table data DR, and the synchronization identification field sync of DR is set to 0, indicating an unsynchronized state. After the writing is successful, the transmission module is notified.
[0062] (b) When reading, the database table data DR is first converted into data NC, and the data NC is transmitted to the third-party system. After the transmission is completed, the transmission result is written back to the synchronization identification field sync of the corresponding data in the database, indicating whether it is synchronized or not. If the transmission is successful, sync is 1, otherwise it is 0.
[0063] In this embodiment, the three symbols AC, NC, and DR are essentially access control data, but they are represented differently in different systems. The access control data in the acquisition system is represented as AC (Device_Id, Device_Name), the access control data in this system is represented as NC (device_id, device_name), and the access control data in the database system is represented as DR (dev_id, dev_name).
[0064] The transmission module is standardized and can provide a transmission module interface to support two transmission modes: one is real-time transmission of NC data after receiving the interface call notification from the storage module, and the other is timeout transmission when no interface call notification is received. At this time, all unsynchronized (sync is 0) access control pass data is transmitted, and DR must be converted to NC before transmission. If there is no client connection, the transmission module is in the transmission prohibition mode. If there is a client connection and subscribes to a specific data type, the transmission module resumes the transmission mode.
[0065] The transmission module also supports transmission by specified type and transmission by all types. Transmission by specified type means only transmitting data of specified type, and transmission by all types means transmitting all types of data to be transmitted.
[0066] The embodiments of the present invention improve the reusability of basic technical facilities by standardizing the basic technical facility modules, avoiding the time expenditure of repeated development of basic technical facilities, thereby focusing on business development and better achieving the goal of rapid business development.
[0067] like Figure 3 As shown, in one embodiment, a system for realizing rapid business development based on interface reuse is also provided, including: a business module and a basic technical facility module, the basic technical facility module is divided into a storage module, a transmission module and a conversion module.
[0068] The business module mainly implements business processing functions.
[0069] The storage module mainly implements data reading and writing functions, including reading data and writing data.
[0070] The transmission module mainly realizes data sending and receiving functions, including receiving data and sending data.
[0071] The conversion module mainly realizes the data format conversion function.
[0072] After standardization processing is performed on the storage module, the transmission module and the conversion module, the storage module interface, the transmission module interface and the conversion module interface are respectively obtained in sequence.
[0073] The business module can implement each step of the above-mentioned method of rapid business development based on interface reuse by calling the transmission module interface, storage module interface and conversion module interface, so as to focus on the realization of business logic functions without having to understand technical details such as data conversion, storage and transmission, thus saving a lot of function development and debugging time. The purpose of rapid business development is achieved by standardizing these basic technical facilities modules.
[0074] Figure 4 A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present invention is schematically shown. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0075] like Figure 4 As shown, the electronic device 1000 described in this embodiment includes: a processor 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 to a random access memory (RAM) 1003. The processor 1001 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 1001 may also include an onboard memory for caching purposes. The processor 1001 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0076] In RAM 1003, various programs and data required for the operation of system 1000 are stored. Processor 1001, ROM 1002 and RAM 1003 are connected to each other through bus 1004. Processor 1001 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 1002 and / or RAM 1003. It should be noted that the program can also be stored in one or more memories other than ROM 1002 and RAM 1003. Processor 1001 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0077] According to an embodiment of the present disclosure, the electronic device 1000 may further include an input / output (I / O) interface 1005, which is also connected to the bus 1004. The system 1000 may further include one or more of the following components connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0078] According to the method flow of the embodiment of the present disclosure, it can be implemented as a computer software program. For example, the embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the processor 1001, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to the embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0079] The embodiments of the present invention further provide a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiments of the present disclosure is implemented.
[0080] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include one or more memories other than the ROM 1002 and / or RAM 1003 described above.
[0081] It should be noted that the functional modules in the various embodiments of the present invention can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product.
[0082] The flowchart or block diagram in the accompanying drawings illustrates the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0083] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, and all of these combinations and / or combinations fall within the scope of the present disclosure.
[0084] Although the present disclosure has been shown and described with reference to specific exemplary embodiments of the present disclosure, it should be understood by those skilled in the art that various changes in form and details may be made to the present disclosure without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents. Therefore, the scope of the present disclosure should not be limited to the above-mentioned embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims.
Claims
1. A method for rapid business development based on interface reuse. It is characterized in that Includes steps: S1, the transmission module waits for the arrival of the first type of data, and starts a timeout waiting timer to wait for data transmission notification; S2, the transmission module receives the first type of data and calls back to the service module; S3, after processing the callback data, calling the conversion module interface to convert the first type of data into database table data, and setting the synchronization identification field of the database table data to an unsynchronized state; S4, calling the storage module interface to store the database table data; S5. Determine whether the storage is successful based on the storage result; If successful, the storage module calls the transmission module interface to transmit the database table data; otherwise, a log is recorded and a warning message is given, and the process jumps to step S1; S6, the transmission module receives the data transmission notification, stops the timeout waiting timer, converts the database table data into the second type of data and sends it to the third-party system; if the timeout waiting timer times out waiting for the data transmission notification, the transmission module calls the storage module interface to search for the unsynchronized database table data, converts it into the second type of data and sends it to the third-party system; S7. The transmission module determines whether the transmission is successful according to the transmission result; if successful, the storage module interface is called to update the synchronization identification field of the database table data to a synchronized state; otherwise, a log is recorded and a warning message is given, and the process goes to step S1.
2. The method for realizing rapid business development based on interface reuse as claimed in claim 1, It is characterized in that The conversion module is subjected to standardization processing to obtain the conversion module interface; the conversion module is subjected to standardization processing specifically including: Define the names of the attributes in the type to be converted; The attribute to be converted in the annotation type is marked with the attribute name of the target type, and the corresponding attribute to be converted is mapped by the attribute name; Perform conversion operations on the marked attributes to be converted, supporting conversion of basic data types and composite data types; if the source attribute type and the target attribute type are consistent, they are converted directly; if they are inconsistent, a custom conversion method can be specified. If not specified, the composite data type is converted to a string by default, or the string is converted to a composite data type in reverse.
3. The method for realizing rapid business development based on interface reuse as claimed in claim 1, It is characterized in that Performing standardization processing on the storage module to obtain the storage module interface; The standardization process of the storage module specifically includes: When writing, first convert the first type of data into the database table data, and set the synchronization identification field of the database table data to an unsynchronized state, and notify the transmission module after successful writing; When reading, the database table data is first converted into the second type of data, and the second type of data is transmitted to the third-party system. After the transmission is completed, the transmission result is written back to the synchronization identification field of the database table data to indicate whether it is synchronized or not.
4. The method for realizing rapid business development based on interface reuse as claimed in claim 1, It is characterized in that Performing standardization processing on the transmission module to obtain the transmission module interface; The standardization process of the transmission module specifically includes: The transmission module after standardization supports two transmission modes, one is to transmit the second type of data after receiving the interface call notification of the storage module, and the other is timeout transmission when no interface call notification is received. At this time, all unsynchronized data is transmitted, and the database table data must be converted into the second type of data before transmission.
5. The method for realizing rapid business development based on interface reuse as claimed in claim 1, It is characterized in that Before step S1, the method further includes: S0. Create a database table, and create the synchronization identification field for the database table data to be synchronized.
6. The method for realizing rapid business development based on interface reuse as claimed in claim 5, It is characterized in that The synchronization identification field is used as an identification to record whether the second type of data has been transmitted to the third-party system.
7. The method for realizing rapid business development based on interface reuse as claimed in claim 4, It is characterized in that The transmission module after standardization also supports transmission according to specified types and transmission according to all types; transmission according to the specified type refers to transmitting only data of the specified type, and transmission according to all types refers to transmitting all types of data to be transmitted.
8. A system for rapid business development based on interface reuse, It is characterized in that It includes a business module and a basic technical facility module; the basic technical facility module includes a storage module, a transmission module and a conversion module; The business module is used to process the first type of data, call the conversion module interface or the storage module interface and set the synchronization identification field of the database table data; call the storage module interface to store the database table data; and judge whether the storage is successful according to the storage result; The transmission module is used to receive the first type of data and call back to the business module; to receive a data transmission notification, stop the timeout waiting timer, and send the second type of data to the third-party system; if the timeout waiting timer times out waiting for the data transmission notification, call the storage module interface to find the unsynchronized database table data, and send the converted second type of data to the third-party system; and to determine whether the sending is successful according to the sending result; The storage module is used to store and read the database table data; and is also used to call the transmission module interface to transmit the database table data; The conversion module is used to convert the first type of data into the database table data, and is also used to convert the database table data into the second type of data.
9. A device for rapid business development based on interface reuse, It is characterized in that The method comprises at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the computer program is executed by the processing unit, the processing unit executes the steps of the method according to any one of claims 1 to 7.
10. A storage medium, It is characterized in that It stores a computer program executable by an access authentication device. When the computer program runs on the access authentication device, the access authentication device executes the steps of the method according to any one of claims 1 to 7.
