CN108334465B - Configuration method, device and equipment of communication interface and computer readable storage medium - Google Patents

Configuration method, device and equipment of communication interface and computer readable storage medium Download PDF

Info

Publication number
CN108334465B
CN108334465B CN201810115861.2A CN201810115861A CN108334465B CN 108334465 B CN108334465 B CN 108334465B CN 201810115861 A CN201810115861 A CN 201810115861A CN 108334465 B CN108334465 B CN 108334465B
Authority
CN
China
Prior art keywords
interface
configuration
template
data
communication interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810115861.2A
Other languages
Chinese (zh)
Other versions
CN108334465A (en
Inventor
刘劲柏
杨超
赵云松
郭晓威
杨镭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201810115861.2A priority Critical patent/CN108334465B/en
Publication of CN108334465A publication Critical patent/CN108334465A/en
Application granted granted Critical
Publication of CN108334465B publication Critical patent/CN108334465B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/387Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a configuration method, a device, equipment and a computer readable storage medium of a communication interface, wherein the method comprises the following steps: calling an interface configuration template, and determining target configuration information corresponding to each selection instruction in the configuration information when receiving the selection instruction of the configuration information in the interface configuration template; generating the target configuration information into to-be-processed configuration data of a communication interface, and determining the type of an interface configuration template; and processing the configuration data to be processed according to the type of the interface configuration template to generate target data of the communication interface. According to the scheme, the configuration information in the interface configuration template is selected to generate the configuration data to be processed, and the configuration data to be processed is processed according to the type of the interface configuration template to generate the target data of the communication interface. The target data is generated through the interface configuration template, so that development of a plurality of interface codes for transmitting data in different formats aiming at different communication interfaces is avoided, development cost is reduced, and development efficiency is improved.

Description

Configuration method, device and equipment of communication interface and computer readable storage medium
Technical Field
The present invention relates to the field of data communication technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for configuring a communication interface.
Background
With the development of communication technology, data transmission between financial institutions becomes more and more frequent, and the data transmission is mainly realized through interface calling. Different financial institutions may adopt different development modes during interface development due to different developers, so that data transmission formats supported by different financial institutions are different. At present, in order to realize communication transmission among different financial institutions, a plurality of interface codes for transmitting data in different formats need to be developed aiming at different financial institution interfaces, so that a large amount of time and labor are spent, the workload of developers is increased, and meanwhile, the plurality of interface codes need to be tested and maintained, so that the development cost is high and the efficiency is low.
Disclosure of Invention
The invention mainly aims to provide a configuration method, a configuration device, equipment and a computer readable storage medium of a communication interface, and aims to solve the problems of high development cost and low efficiency in the prior art when a plurality of interface codes are developed aiming at different financial institution interfaces.
In order to achieve the above object, the present invention provides a method for configuring a communication interface, including the following steps:
calling an interface configuration template, and determining target configuration information corresponding to each selection instruction in the configuration information when receiving the selection instruction of the configuration information in the interface configuration template;
generating the target configuration information into to-be-processed configuration data of a communication interface, and determining the type of an interface configuration template;
and processing the configuration data to be processed according to the type of the interface configuration template to generate target data of the communication interface.
Preferably, the type of the interface configuration template includes an interface generation template and an interface conversion template, and the step of determining the type of the interface configuration template includes:
acquiring a preset identifier in an interface configuration template, and determining the type of the preset identifier;
when the preset identifier is the generation type, determining the type of the interface configuration template as an interface generation template;
and when the preset identifier is the conversion type, determining the type of the interface configuration template as the interface conversion template.
Preferably, the step of processing the configuration data to be processed according to the type of the interface configuration template to generate the target data of the communication interface includes:
when the interface configuration template is the interface generation template, generating interface codes of a communication interface by using the to-be-processed configuration data, and using the interface codes as target data of the communication interface;
and when the interface configuration template is the interface conversion template, performing format conversion on the configuration data to be processed to generate target data of the communication interface.
Preferably, the step of generating the to-be-processed configuration data into the interface code of the communication interface includes:
determining a first identifier carried by each target configuration information in the configuration data to be processed and a second identifier carried by each variable in a template code corresponding to an interface configuration template;
and when the first identifier is consistent with the second identifier, adding the target configuration information with the first identifier into the template code, and replacing the variable with the second identifier to generate an interface code of the communication interface.
Preferably, when the interface configuration template is an interface conversion template, the step of performing format conversion on the configuration data to be processed includes:
when the interface configuration template is the interface conversion template, determining a target conversion interface corresponding to the to-be-processed configuration data according to a conversion identifier carried in the to-be-processed data, and acquiring a target data format of the target conversion interface;
and according to the target data format, carrying out format conversion on the configuration data to be processed to generate target data.
Preferably, the step of calling the interface configuration template includes:
and acquiring the data format of each communication interface, transmitting the data format to a preset template frame, and generating an interface configuration template.
In addition, to achieve the above object, the present invention further provides a configuration apparatus of a communication interface, including:
the determining module is used for calling the interface configuration template and determining target configuration information corresponding to each selection instruction in the configuration information when receiving the selection instruction of the configuration information in the interface configuration template;
the generation module is used for generating the target configuration information into to-be-processed configuration data of the communication interface and determining the type of the interface configuration template;
and the processing module is used for processing the configuration data to be processed according to the type of the interface configuration template so as to generate target data of the communication interface.
Preferably, the generating module comprises:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a preset identifier in an interface configuration template and determining the type of the preset identifier;
the first determining unit is used for determining the type of the interface configuration template as an interface generation template when the preset identifier is the generation type;
and the second determining unit is used for determining the type of the interface configuration template as the interface conversion template when the preset identifier is the conversion type.
In addition, to achieve the above object, the present invention further provides a configuration device of a communication interface, including: a memory, a processor, a communication bus, and a configuration program for a communication interface stored on the memory;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the configuration program of the communication interface to realize the following steps:
calling an interface configuration template, and determining target configuration information corresponding to each selection instruction in the configuration information when receiving the selection instruction of the configuration information in the interface configuration template;
generating the target configuration information into to-be-processed configuration data of a communication interface, and determining the type of an interface configuration template;
and processing the configuration data to be processed according to the type of the interface configuration template to generate target data of the communication interface.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors for:
calling an interface configuration template, and determining target configuration information corresponding to each selection instruction in the configuration information when receiving the selection instruction of the configuration information in the interface configuration template;
generating the target configuration information into to-be-processed configuration data of a communication interface, and determining the type of an interface configuration template;
and processing the configuration data to be processed according to the type of the interface configuration template to generate target data of the communication interface.
In the configuration method of the communication interface of this embodiment, an interface configuration template is called, and when a selection instruction for configuration information in the interface configuration template is received, target configuration information corresponding to each selection instruction in the configuration information is determined; generating the target configuration information into to-be-processed configuration data of a communication interface, and determining the type of an interface configuration template; and processing the configuration data to be processed according to the type of the interface configuration template to generate target data of the communication interface. According to the scheme, the configuration information in the interface configuration template is selected for the communication interfaces of different financial institutions to generate the to-be-processed configuration data of the communication interfaces, and the to-be-processed configuration data are processed according to the type of the interface configuration template, so that the target data of the communication interfaces can be generated. The target data may be a code for realizing the function of the communication interface or converted data obtained by converting the format of data transmitted by the communication interface, according to different types of interface configuration templates. By generating the target data of the communication interface, development of a plurality of interface codes for transmitting data in different formats aiming at different communication interfaces is avoided, the workload of operation and maintenance testing is reduced, the development cost is reduced, and the development efficiency is improved.
Drawings
Fig. 1 is a flowchart illustrating a first embodiment of a method for configuring a communication interface according to the present invention;
FIG. 2 is a flow chart of a second embodiment of a method for configuring a communication interface according to the present invention;
fig. 3 is a functional block diagram of a first embodiment of the configuration apparatus of the communication interface of the present invention;
fig. 4 is a schematic device structure diagram of a hardware operating environment related to the method according to the embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides a configuration method of a communication interface.
Referring to fig. 1, fig. 1 is a flowchart illustrating a configuration method of a communication interface according to a first embodiment of the present invention. In this embodiment, the method for configuring the communication interface includes:
step S10, calling an interface configuration template, and determining target configuration information corresponding to each selection instruction in the configuration information when receiving the selection instruction of the configuration information in the interface configuration template;
the communication interface of the embodiment is an interface for realizing data transmission of different financial institutions, each financial institution has business communication with a plurality of financial institutions, and part of data of the business communication is transmitted through the communication interface. That is, each communication interface needs to perform data transmission with multiple communication interfaces, and the data formats supported for transmission may not be consistent between different communication interfaces. Interface parameters of various interfaces are set in the interface configuration template, and data transmission among different communication interfaces is realized by selecting the interface parameters for configuration. If the communication interface a of a certain financial institution A and the communication interfaces b, c and d of B, C, D three financial institutions carry out data transmission, the interface configuration template is provided with interface parameters of four communication interfaces a, b, c and d, and the interface parameters of a and b or the interface parameters between a and c can be selected for configuration, so that the data transmission between the communication interfaces a and b or the communication interfaces a and c is realized. When the communication between different communication interfaces is required, a calling instruction is triggered to call the interface configuration template. And selecting from the called interface configuration templates, selecting the interface parameters of the communication interface needing data transmission, and taking the interface parameters as configuration information in the interface configuration templates. When receiving the selection instruction of the configuration information in the pair of interface configuration templates, determining the target configuration information corresponding to each selection instruction in the configuration information. Because the interface parameters of different communication interfaces are different, that is, the configuration information embodied in the configuration template is different, the configuration information consistent with the communication interface needs to be selected for different communication interfaces, and the selected configuration information is determined as the target configuration information, so that data transmission between different communication interfaces is realized according to the target configuration information.
Step S20, generating the target configuration information into the to-be-processed configuration data of the communication interface, and determining the type of the interface configuration template;
further, after the target configuration information corresponding to the selection instruction is determined, the target configuration information is generated into to-be-processed configuration data of the communication interface. The configuration data to be processed is a set of target configuration information selected by the selection instruction, and communication between different communication interfaces is realized after processing. The processing mode of the configuration data to be processed comprises two modes of generating code data of a communication interface by the configuration data to be processed and converting the configuration data to be processed into data with a format consistent with that of the communication interface. The interface configuration template comprises two types of templates for generating code data and converting a data format, wherein the template for generating the code data is used as an interface generation template, and the template for converting the data format is used as an interface conversion template. The processing mode adopted in the processing process is determined by the type of the called interface configuration template, and after the template data to be processed is generated, the type of the interface configuration template is determined so as to determine the processing mode of the template data to be processed. Specifically, the step of determining the type of the interface configuration template includes:
step S21, acquiring a preset identifier in an interface configuration template, and determining the type of the preset identifier;
in order to distinguish the interface configuration templates, preset identifiers for representing uniqueness of different interface configuration templates are preset for different interface configuration templates. When the interface configuration template type is determined, the preset identifier carried in the interface configuration template type is obtained first, and the type of the obtained preset identifier is determined. For example, for two types of interface configuration templates, identifiers k1 and k2 are preset respectively, wherein the type represented by k1 is generation, and the type represented by k2 is conversion. Therefore, after the preset identifier is obtained, the type of the preset identifier can be determined according to the type represented by the preset identifier.
Step S22, when the preset identifier is the generation type, determining the type of the interface configuration template as the interface generation template;
when the type of the preset identifier is determined to be the generation type, the interface configuration template represented by the preset identifier is used for generating the to-be-processed configuration data into the code data of the communication interface, so that the type of the interface configuration template can be determined to be the interface generation template.
In step S23, when the preset identifier is a conversion type, the type of the interface configuration template is determined as the interface conversion template.
When the type of the preset identifier is determined to be the conversion type, the interface configuration template represented by the preset identifier is used for converting the configuration data to be processed into the data in the format consistent with the communication interface format, so that the type of the interface configuration template can be determined to be the interface conversion template.
And step S30, processing the configuration data to be processed according to the type of the interface configuration template to generate the target data of the communication interface.
After the interface configuration template type is determined, the data to be processed and configured are processed according to the interface configuration template type. When the interface configuration template is a template used for generating code data, generating the code data of the communication interface by the to-be-processed configuration data; and when the interface configuration template is a template for converting the data format, generating the to-be-processed configuration data into communication data meeting the requirement of the communication interface format. And taking the processed data as target data of the communication interfaces, and realizing data transmission among different communication interfaces through the target data.
In the configuration method of the communication interface of this embodiment, an interface configuration template is called, and when a selection instruction for configuration information in the interface configuration template is received, target configuration information corresponding to each selection instruction in the configuration information is determined; generating the target configuration information into to-be-processed configuration data of a communication interface, and determining the type of an interface configuration template; and processing the configuration data to be processed according to the type of the interface configuration template to generate target data of the communication interface. According to the scheme, the configuration information in the interface configuration template is selected for the communication interfaces of different financial institutions to generate the to-be-processed configuration data of the communication interfaces, and the to-be-processed configuration data are processed according to the type of the interface configuration template, so that the target data of the communication interfaces can be generated. The target data may be a code for realizing the function of the communication interface or converted data obtained by converting the format of data transmitted by the communication interface, according to different types of interface configuration templates. By generating the target data of the communication interface, development of a plurality of interface codes for transmitting data in different formats aiming at different communication interfaces is avoided, the workload of operation and maintenance testing is reduced, the development cost is reduced, and the development efficiency is improved.
Further, in another embodiment of the configuration method of the communication interface of the present invention, the step of processing the configuration data to be processed according to the type of the interface configuration template to generate the target data of the communication interface includes:
step S31, when the interface configuration template is the interface generation template, generating the interface code of the communication interface by the to-be-processed configuration data, and using the interface code as the target data of the communication interface;
furthermore, when the interface configuration template is an interface generation template used for generating the to-be-processed configuration data into the code data of the communication interface, the to-be-processed configuration data is generated into the interface code of the communication interface. Specifically, the configuration operation can be performed at a provider of the configuration template or at a receiver of the configuration template, the interface configuration template is displayed on the display interface, and the provider or the receiver selects the configuration information according to the requirement of the communication interface of the receiver. And if the configuration information required by the communication interface of the receiver comprises an address item, an Identity (ID) item, a name item and the like, generating the selected configuration information into to-be-processed configuration data. The background is provided with a program script for generating codes by the selected configuration information in the interface configuration template, if program script blocks are respectively set for the address item, the identity ID item and the name item of the configuration information in the interface configuration template, when the address item, the identity ID item and the name item are selected, the program script blocks of the address item, the identity ID item and the name item are integrated to generate the interface codes; if the address item and the ID item are selected, the program script blocks of the address item and the ID item are integrated to generate an interface code. And taking the generated interface code as target data of the communication interface, wherein the target data is the code for realizing the communication interface. The communication format supported by the receiver with the communication interface is consistent with the data format sent by the sender, the data sent by the sender is directly sent to the receiver, the communication interface does not need to be written according to the data formats supported by different communication parties, and the efficiency of interface development is improved.
And step S32, when the interface configuration template is the interface conversion template, performing format conversion on the configuration data to be processed to generate target data of the communication interface.
And when the interface configuration template is an interface conversion template and is used for generating the to-be-processed configuration data into the communication data meeting the format requirement of the communication interface, performing format conversion on the to-be-processed configuration data to generate target data of the communication interface. Specifically, the configuration operation may be performed at a provider of the configuration template or at a receiver of the configuration template; when the data format is processed at the provider, the data format transmitted by the provider is converted into the data format consistent with that of the receiver; when the data format is converted into the data format consistent with the provider, the data format is transmitted by the receiver. The interface configuration template is displayed on the display interface, the provider or the receiver selects data to be sent on the interface configuration template, the selected data is used as configuration information, such as date data or identity data, and the selected configuration information is used for generating to-be-processed configuration data. The background is provided with a program script for converting the configuration information selected in the interface configuration template into a required data format, such as converting the date format from YYYY-MM-DD into yyyY year, m month and d days. The converted interface codes are used as target data of the communication interface, the data format of the target data is consistent with the communication format of the communication interface needing to be transmitted, the data format conversion among the communication interfaces with different formats is realized through the interface configuration template, the data transmission is realized, the communication interface is prevented from being compiled aiming at the data formats supported by different communication parties, and the interface development efficiency is improved.
Further, in another embodiment of the configuration method of the communication interface of the present invention, the step of generating the to-be-processed configuration data into the interface code of the communication interface includes:
step S311, determining a first identifier carried by each target configuration information in the configuration data to be processed and a second identifier carried by each variable in the template code corresponding to the interface configuration template;
furthermore, when the to-be-processed configuration data is used for generating the communication interface code, the interface configuration template is set as a template with variables, each target configuration information in the to-be-processed data is used as the input of the interface configuration template, the target configuration information is input into the interface configuration template, the variables in the interface configuration template are replaced, and the obtained code data is the interface code of the communication interface. Because the target configuration information contained in the data to be processed is numerous, the variables in the interface configuration template are also numerous, and different target configuration information corresponds to different variables, so that the code data generated by replacing the variables with the target configuration information can be ensured to run normally. In order to determine the variables corresponding to each target configuration information, in this embodiment, a first identifier is allocated to each target configuration information, a second identifier is allocated to each variable in the template code corresponding to the interface configuration template, and the template code corresponding to the interface configuration template is the template code corresponding to the target configuration information selected in the interface configuration template according to the selection instruction. The first identifier and the second identifier are determined to replace the variable with the target configuration information via the first identifier and the second identifier.
Step S312, when the first identifier is consistent with the second identifier, the target configuration information with the first identifier is added into the template code, and the variable with the second identifier is replaced to generate the interface code of the communication interface.
Since there are a plurality of target arrangement information and a plurality of variables, in order to distinguish each target arrangement information, each target arrangement information is assigned with a sub-identifier of a first identifier, similarly, in order to distinguish each variable in the code template, each variable is assigned with a sub-identifier of a second identifier, the sub-identifiers of the first identifier and the sub-identifiers of the second identifier are compared, and when the sub-identifiers of the first identifier and the second identifier match, it is described that the target arrangement information having the first identifier corresponds to the variable having the second identifier. And adding the target configuration information with the first identifier into the template code, and replacing the variable with the second identifier to generate an interface code of the communication interface. For example, the sub-identifiers of the first identifier F1, the second identifier F2 and F1 comprise F1-1, F1-2 and F1-3, and the sub-identifiers of the F2 comprise F2-1, F2-2 and F2-3, wherein F1-1 corresponds to F2-1, F1-2 corresponds to F2-2 and F1-3 corresponds to F2-3. And when the sub-identifier of the first identifier carried by the target configuration information is F1-2, querying the variable of the code template, determining the position of the variable of F2-2 corresponding to F1-2, replacing the variable of the position of F2-2 with the target configuration information until all the variables in the code template are completely replaced, and generating the interface code of the communication interface. The data format supported by the communication interface with the interface code is consistent with the data format supported by the interface configuration template provider, and the data transmission is carried out by using the communication interface, so that the data transmission of different communication interfaces is realized.
Further, in another embodiment of the configuration method of the communication interface of the present invention, when the interface configuration template is an interface conversion template, the step of performing format conversion on the configuration data to be processed includes:
step S321, when the interface configuration template is the interface conversion template, determining a target conversion interface corresponding to the to-be-processed configuration data according to the conversion identifier carried in the to-be-processed data, and acquiring a target data format of the target conversion interface;
furthermore, when the called interface configuration template is an interface conversion template and format conversion is performed on the configuration data to be processed, a target conversion interface corresponding to the configuration data to be processed needs to be determined, the target conversion interface is a communication interface of a communication counterpart, and if the configuration data to be processed needs to be transmitted to the mechanism a, the communication interface of the mechanism a is the target conversion interface. The communication partner determines when selecting the configuration information in the interface configuration template, that is, the communication partner supporting format conversion will be configured as the configuration information in the interface conversion template in the form of the conversion identifier for the interface conversion template, and the selected target configuration information carries the conversion identifier of the communication partner. Therefore, the to-be-processed configuration information generated according to the target configuration information also carries the conversion identifier of the communication opposite side, and the target conversion interface corresponding to the to-be-processed configuration data can be determined according to the conversion identifier carried in the to-be-processed data. The data transmission format supported by the target conversion interface may be different from the data format supported by the to-be-processed configuration data transmitter, that is, the data format of the to-be-processed configuration data is inconsistent with the data format supported by the target conversion interface. And acquiring a data format supported by the target conversion interface, and taking the data format as a target data format to convert the data format of the configuration data to be processed into the target data format, so as to realize the transmission of the configuration data to be processed. The interface configuration template comprises fields supported by each communication interface and formats of various fields; such as field date entry, identity ID entry, name entry, etc.; the date format supported by the field is YYYY-MM-DD, or yyyY year, m month, d day and the like, the data formats are all configured into the field 'date' in the interface conversion template, and a communication interface mark is added to the data format, if the data format of YYYY-MM-DD corresponds to the A communication interface, the mark of the A communication interface is added to the data format, so that the data format corresponding to the communication interface is determined according to the communication interface mark. When the target configuration information in the configuration information is determined according to the selection instruction, the field selected as the target configuration information carries the communication interface identifier, so that the communication interface to which the field belongs and the data format corresponding to the field can be known according to the communication interface identifier carried in the selected field, that is, the target conversion interface and the target data format are determined.
In addition, all target configuration information corresponding to the communication interface can be determined according to the communication interface identification carried in the initially selected configuration information, and the configuration information does not need to be selected one by one through a selection instruction. For example, the data formats of the communication interface identifier M, N corresponding to the field E in the interface configuration template are E1 and E2, respectively, and the data format of the communication interface identifier M, N corresponding to the field F is F1 and F2, respectively. When the interface identifier carried by the initially selected configuration information field E is M, that is, the communication interface to be subjected to data transmission is a target conversion interface having the communication interface identifier M, all fields corresponding to the interface communication identifier M and data formats corresponding to the fields, such as the field F and the corresponding data format F1, in the interface configuration template are captured according to the communication interface identifier M, and all fields captured according to the communication interface identifier and the corresponding data formats are all target configuration information corresponding to the communication interface.
Step S322, according to the target data format, the format conversion is carried out on the configuration data to be processed, and the target data is generated.
After the target data format corresponding to the target conversion interface is determined, a conversion program is associated in the interface configuration template so as to convert the data format of the configuration data to be processed into the target data format. If the date format supported by the to-be-processed configuration data is YYYY-MM-DD and the target data format is YYYY year, m month and d day, the date format of the to-be-processed configuration data is converted into YYYY year, m month and d day by the conversion program. The data obtained by format conversion is used as target data, so that the configuration data to be processed can be normally transmitted to a target conversion interface.
Further, referring to fig. 2, on the basis of the first embodiment of the configuration method of the communication interface of the present invention, a second embodiment of the configuration method of the communication interface of the present invention is provided, and in the second embodiment, the step of calling the interface configuration template includes:
step S40, obtaining the data format of each communication interface, and transmitting the data format to a preset template frame to generate an interface configuration template.
Understandably, before calling the interface configuration template, the interface configuration template needs to be generated according to the data format of each communication interface with the data transmission requirement. Specifically, each communication interface with data transmission requirements is determined, and before generating an interface configuration template, other financial institutions communicating with the financial institution are obtained from a business system of the financial institution, wherein the communication interfaces of the other financial institutions are the communication interfaces with output transmission requirements. And then, the program developer develops a preset template frame in advance according to the communication format supported by each communication interface, acquires the data format of each communication interface, and transmits each acquired data format to the preset template frame to generate an interface configuration template. When the data transmission is carried out with other financial institutions, the data transmission among different communication interfaces is realized by calling the interface configuration template for configuration.
In addition, referring to fig. 3, the present invention provides a configuration device of a communication interface, in a first embodiment of the configuration device of the communication interface of the present invention, the configuration device of the communication interface includes:
a determining module 10, configured to invoke an interface configuration template, and when receiving a selection instruction for configuration information in the interface configuration template, determine target configuration information corresponding to each selection instruction in the configuration information;
the generating module 20 is configured to generate the target configuration information into to-be-processed configuration data of the communication interface, and determine the type of the interface configuration template;
and the processing module 30 is configured to process the configuration data to be processed according to the type of the interface configuration template to generate target data of the communication interface.
In the configuration device of the communication interface of this embodiment, the determining module 10 calls the interface configuration template, and when receiving a selection instruction for configuration information in the interface configuration template, determines target configuration information corresponding to each selection instruction in the configuration information; the generating module 20 generates the target configuration information into the to-be-processed configuration data of the communication interface, and determines the type of the interface configuration template; the processing module 30 processes the configuration data to be processed according to the type of the interface configuration template to generate the target data of the communication interface. According to the scheme, the configuration information in the interface configuration template is selected for the communication interfaces of different financial institutions to generate the to-be-processed configuration data of the communication interfaces, and the to-be-processed configuration data are processed according to the type of the interface configuration template, so that the target data of the communication interfaces can be generated. The target data may be a code for realizing the function of the communication interface or converted data obtained by converting the format of data transmitted by the communication interface, according to different types of interface configuration templates. By generating the target data of the communication interface, development of a plurality of interface codes for transmitting data in different formats aiming at different communication interfaces is avoided, the workload of operation and maintenance testing is reduced, the development cost is reduced, and the development efficiency is improved.
Further, in another embodiment of the configuration device of the communication interface of the present invention, the display module 20 includes:
the acquiring unit 21 is configured to acquire a preset identifier in an interface configuration template, and determine a type of the preset identifier;
a first determining unit 22, configured to determine, when the preset identifier is the generation type, the type of the interface configuration template as the interface generation template;
the second determining unit 23 is configured to determine the type of the interface configuration template as the interface conversion template when the preset identifier is the conversion type.
Referring to fig. 4, fig. 4 is a schematic device structure diagram of a hardware operating environment related to the method according to the embodiment of the present invention.
The configuration device of the communication interface of the embodiment of the invention can be a PC, and can also be a terminal device such as a smart phone, a tablet computer, an electronic book reader, a portable computer and the like.
As shown in fig. 4, the configuration device of the communication interface may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used for realizing connection communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the configuration device of the communication interface may further include a user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. The user interface may comprise a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may also comprise a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Those skilled in the art will appreciate that the configuration device configuration of the communication interface shown in fig. 4 does not constitute a limitation of the configuration device of the communication interface, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 4, a memory 1005, which is a kind of computer storage medium, may include therein a configuration program of an operating system, a network communication module, and a communication interface. The operating system is a program that manages and controls the configuration device hardware and software resources of the communication interface, the configuration program that supports the communication interface, and the execution of other software and/or programs. The network communication module is used to implement communication between the components inside the memory 1005 and with other hardware and software in the configuration device of the communication interface.
In the configuration device of the communication interface shown in fig. 4, the processor 1001 is configured to execute a configuration program of the communication interface stored in the memory 1005 to implement the configuration method of the communication interface, and a specific implementation manner of the configuration device of the communication interface of the present invention is substantially the same as each embodiment of the configuration method of the communication interface, and is not described herein again.
The present invention provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs can also be executed by one or more processors to implement the configuration method of the communication interface.
It should also be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A configuration method of a communication interface is characterized by comprising the following steps:
calling an interface configuration template, and determining target configuration information corresponding to each selection instruction in the configuration information when receiving the selection instruction of the configuration information in the interface configuration template;
generating the target configuration information into to-be-processed configuration data of a communication interface, and determining the type of an interface configuration template;
processing the configuration data to be processed according to the type of the interface configuration template to generate target data of a communication interface;
the type of the interface configuration template comprises an interface generation template and an interface conversion template, wherein the interface generation template is used for generating code data of a communication interface from the to-be-processed configuration data, and the interface conversion template is used for converting the to-be-processed configuration data into data with a format consistent with that of the communication interface;
the step of determining the type of the interface configuration template comprises:
acquiring a preset identifier in an interface configuration template, and determining the type of the preset identifier;
when the preset identifier is the generation type, determining the type of the interface configuration template as an interface generation template;
and when the preset identifier is the conversion type, determining the type of the interface configuration template as the interface conversion template.
2. The method according to claim 1, wherein the step of processing the configuration data to be processed according to the type of the interface configuration template to generate the target data of the communication interface comprises:
when the interface configuration template is the interface generation template, generating interface codes of a communication interface by using the to-be-processed configuration data, and using the interface codes as target data of the communication interface;
and when the interface configuration template is the interface conversion template, performing format conversion on the configuration data to be processed to generate target data of the communication interface.
3. The method for configuring a communication interface according to claim 2, wherein the step of generating the pending configuration data into the interface code of the communication interface comprises:
determining a first identifier carried by each target configuration information in the configuration data to be processed and a second identifier carried by each variable in a template code corresponding to an interface configuration template;
and when the first identifier is consistent with the second identifier, adding the target configuration information with the first identifier into the template code, and replacing the variable with the second identifier to generate an interface code of the communication interface.
4. The method according to claim 2, wherein when the interface configuration template is an interface conversion template, the step of converting the format of the configuration data to be processed comprises:
when the interface configuration template is the interface conversion template, determining a target conversion interface corresponding to the to-be-processed configuration data according to a conversion identifier carried in the to-be-processed data, and acquiring a target data format of the target conversion interface;
and according to the target data format, carrying out format conversion on the configuration data to be processed to generate target data.
5. The method of configuring a communication interface of any of claims 1-4, wherein the step of invoking an interface configuration template is preceded by:
and acquiring the data format of each communication interface, transmitting the data format to a preset template frame, and generating an interface configuration template.
6. An apparatus for configuring a communication interface, the apparatus comprising:
the determining module is used for calling the interface configuration template and determining target configuration information corresponding to each selection instruction in the configuration information when receiving the selection instruction of the configuration information in the interface configuration template;
the generation module is used for generating the target configuration information into to-be-processed configuration data of the communication interface and determining the type of the interface configuration template;
the processing module is used for processing the configuration data to be processed according to the type of the interface configuration template so as to generate target data of the communication interface;
the type of the interface configuration template comprises an interface generation template and an interface conversion template, wherein the interface generation template is used for generating code data of a communication interface from the to-be-processed configuration data, and the interface conversion template is used for converting the to-be-processed configuration data into data with a format consistent with that of the communication interface;
the generation module comprises:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a preset identifier in an interface configuration template and determining the type of the preset identifier;
the first determining unit is used for determining the type of the interface configuration template as an interface generation template when the preset identifier is the generation type;
and the second determining unit is used for determining the type of the interface configuration template as the interface conversion template when the preset identifier is the conversion type.
7. A configuration device for a communication interface, the configuration device comprising: a memory, a processor, a communication bus, and a configuration program for a communication interface stored on the memory;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute a configuration program of the communication interface to implement the steps of the configuration method of the communication interface according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a configuration program of a communication interface, which, when being executed by a processor, carries out the steps of the configuration method of a communication interface according to any one of claims 1 to 5.
CN201810115861.2A 2018-02-06 2018-02-06 Configuration method, device and equipment of communication interface and computer readable storage medium Active CN108334465B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810115861.2A CN108334465B (en) 2018-02-06 2018-02-06 Configuration method, device and equipment of communication interface and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810115861.2A CN108334465B (en) 2018-02-06 2018-02-06 Configuration method, device and equipment of communication interface and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108334465A CN108334465A (en) 2018-07-27
CN108334465B true CN108334465B (en) 2020-05-22

Family

ID=62928234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810115861.2A Active CN108334465B (en) 2018-02-06 2018-02-06 Configuration method, device and equipment of communication interface and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108334465B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109461074A (en) * 2018-09-18 2019-03-12 平安科技(深圳)有限公司 Transaction method for configuring route, device, computer equipment and storage medium
CN109039788B (en) * 2018-09-30 2022-02-25 锐捷网络股份有限公司 Port configuration method and device of network equipment and storage medium
CN110162560A (en) * 2019-04-16 2019-08-23 深圳壹账通智能科技有限公司 Finance data interface butt joint method, device, computer equipment and storage medium
CN110262851B (en) * 2019-06-24 2023-05-26 北京搜房科技发展有限公司 Interface configuration method and device
CN110262796B (en) * 2019-06-27 2023-06-30 广州力挚网络科技有限公司 Data processing method and device based on java and electronic equipment
CN110377435A (en) * 2019-07-05 2019-10-25 东莞市盟大塑化科技有限公司 A kind of multiserver interface message processing system
CN110661670A (en) * 2019-10-21 2020-01-07 中国民航信息网络股份有限公司 Network equipment configuration management method and device
CN112905512B (en) * 2021-02-05 2024-05-14 苏州源控电子科技有限公司 DIO interface configuration method, device and equipment based on Windows system and storage medium
CN113010742B (en) * 2021-03-01 2023-03-21 歌尔微电子股份有限公司 Data processing method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101558613A (en) * 2006-09-29 2009-10-14 先进微装置公司 Connection manager with deferred configuration
CN102546259A (en) * 2012-01-20 2012-07-04 中兴通讯股份有限公司 Interface parameter transmission method and device adopting same
CN104346177A (en) * 2013-07-24 2015-02-11 杭州海康威视数字技术股份有限公司 Terminal configuration method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150123074A (en) * 2014-04-24 2015-11-03 한국전자통신연구원 Function module modularizing method in data distribution service and modularizing apparatus thereof
CN107506182A (en) * 2017-07-27 2017-12-22 努比亚技术有限公司 Software layout method, software merit rating device and computer-readable recording medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101558613A (en) * 2006-09-29 2009-10-14 先进微装置公司 Connection manager with deferred configuration
CN102546259A (en) * 2012-01-20 2012-07-04 中兴通讯股份有限公司 Interface parameter transmission method and device adopting same
CN104346177A (en) * 2013-07-24 2015-02-11 杭州海康威视数字技术股份有限公司 Terminal configuration method and device

Also Published As

Publication number Publication date
CN108334465A (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN108334465B (en) Configuration method, device and equipment of communication interface and computer readable storage medium
US8572194B2 (en) Selective linking of message accounts
CN107797826B (en) Rule configuration method based on rule engine, terminal and equipment
CN105718313A (en) Application operation method and device
CN111581083A (en) Interface testing method and device, electronic equipment and storage medium
WO2022078295A1 (en) Device recommendation method and electronic device
CN111045683A (en) Applet code compiling method, device, equipment and medium
CN108845810B (en) Method and device for dynamically updating application, electronic equipment and storage medium
CN110727524A (en) Method and device for realizing remote procedure call
WO2023284505A1 (en) Method and apparatus for code-scanning payment
CN108804120B (en) Page construction method, device, equipment and storage medium
CN106095886B (en) Data processing method and device
US11481089B2 (en) Graphical user interface to configure parameters of an API based on user inputs
CN113934557A (en) Method for communicating small program with webpage, related equipment and system
CN102223610A (en) Method for realizing data exchange among mobile devices and mobile device
CN110309454B (en) Interface display method, device, equipment and storage medium
CN112380828A (en) PDF document generation method and device, storage medium and electronic equipment
CN110795154A (en) Cross-platform device driving method, device, equipment and computer readable storage medium
CN111078215A (en) Software product application method and device, storage medium and electronic equipment
JP2007122647A (en) Method, system and device for providing program data
KR101318345B1 (en) System and Method for Micro-page Provision
CN109684405B (en) Data synchronization method, device, equipment and computer readable storage medium
CN110769409B (en) Virtual SIM card transplanting method, system and computer readable storage medium
CN114254611A (en) Service content processing method and device, electronic equipment and storage medium
CN116594676A (en) Application packaging method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant