CN111427568A - Interface configuration method and device - Google Patents

Interface configuration method and device Download PDF

Info

Publication number
CN111427568A
CN111427568A CN202010233822.XA CN202010233822A CN111427568A CN 111427568 A CN111427568 A CN 111427568A CN 202010233822 A CN202010233822 A CN 202010233822A CN 111427568 A CN111427568 A CN 111427568A
Authority
CN
China
Prior art keywords
data
interface
mapping relation
docking
mapping
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.)
Pending
Application number
CN202010233822.XA
Other languages
Chinese (zh)
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.)
Shandong Inspur Genersoft Information Technology Co Ltd
Original Assignee
Shandong Inspur Genersoft Information Technology Co Ltd
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 Shandong Inspur Genersoft Information Technology Co Ltd filed Critical Shandong Inspur Genersoft Information Technology Co Ltd
Priority to CN202010233822.XA priority Critical patent/CN111427568A/en
Publication of CN111427568A publication Critical patent/CN111427568A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • G06F8/355Round-trip engineering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides an interface configuration method and device, wherein the method comprises the following steps: for each external business system, according to information input through an external visual definition interface, combining an interface identifier of an interface for interfacing data with the business system, defining the data format of the interfacing data of the interface identifier, defining the data conversion mapping relation of the interface identifier and comprising mapping from source data to internal processable data, and defining the data interfacing mapping relation of the interface identifier and comprising mapping from the internal processable data to a background logic table; and generating a corresponding interface according to the data format, the data conversion mapping relation and the data docking mapping relation of the docking data of the interface identifier. The interface is generated according to the definition items, so that the interface docking data can be processed according to the definition items, when the interface function requirement changes, a developer only needs to modify the specific definition content in the specific definition item, and the scheme can facilitate the developer to dynamically configure the interface.

Description

Interface configuration method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an interface configuration method and apparatus.
Background
In conventional data interfacing, interface data transmission is typically customized quantization. At present, the system integration requirement is high, and the interface service processing diversity is realized. Under the influence of function requirement expansion, developers need to develop corresponding interfaces for each function requirement, and the problem of large interface development workload exists.
In this mode, it is necessary to provide a new interface configuration implementation.
Disclosure of Invention
The invention provides an interface configuration method and device, which can be convenient for developers to dynamically configure interfaces.
In order to achieve the purpose, the invention is realized by the following technical scheme:
in a first aspect, the present invention provides an interface configuration method, including:
for each business system in at least one external business system, defining the data format of the interface data of the interface identification according to first information input through an external visual definition interface and combining the interface identification of the interface for interfacing the data with the business system;
defining a data conversion mapping relation of the interface identification according to second information input through the visual definition interface from the outside, wherein the data conversion mapping relation comprises mapping from source data to internally processable data, and the source data is taken from the business system;
defining a data docking mapping relation identified by the interface according to third information externally input through the visual definition interface, wherein the data docking mapping relation comprises mapping from internally processable data to a background logic table;
and generating an interface which is used for data interfacing with the service system and has the interface identifier according to the defined data format, data conversion mapping relation and data interfacing mapping relation of the interfacing data of the interface identifier.
Further, after the generating an interface for interfacing data with the business system and having the interface identification, further comprising:
receiving first source data sent by the business system through an interface with the interface identifier, wherein the data format of the first source data is the data format of the interface data of the interface identifier;
converting the first source data into internal processable target data according to the data conversion mapping relation of the interface identifier;
and storing each data item to be stored in the background logic table in the target data into the corresponding background logic table according to the data docking mapping relation of the interface identifier.
Further, after the receiving the first source data sent by the service system through the interface with the interface identification, the method further includes:
and starting a tracking function to track the processing process of the first source data and outputting the tracked data processing result to a display.
Further, after the generating an interface for interfacing data with the business system and having the interface identification, further comprising:
receiving an interface adjustment request aiming at the interface identification, which is input externally through the visual definition interface, wherein the interface adjustment request comprises at least one or more of a data format, at least one data conversion mapping item and an adjustment type of each data conversion mapping item, at least one data docking mapping item and an adjustment type of each data docking mapping item, and the adjustment type is any one of new addition, deletion and modification;
processing the interface adjustment request, so as to change the data format of the docking data of the interface identifier into the data format included in the interface adjustment request when the interface adjustment request includes the data format, adjust the data conversion mapping relationship of the interface identifier according to each data conversion mapping item and the adjustment type thereof included in the interface adjustment request when the interface adjustment request includes the data conversion mapping item, and adjust the data docking mapping relationship of the interface identifier according to each data docking mapping item and the adjustment type thereof included in the interface adjustment request when the interface adjustment request includes the data docking mapping item;
and regenerating an interface which is used for being butted with the service system and is provided with the interface identifier according to the data format, the data conversion mapping relation and the data butting mapping relation of the current butting data of the interface identifier.
In a second aspect, the present invention provides an interface configuration apparatus, including:
the data format definition unit is used for defining the data format of the interface data of the interface identification according to first information input by an external visual definition interface and the interface identification of the interface for interfacing the data with the service system for each service system in at least one external service system;
the data conversion mapping relation definition unit is used for defining the data conversion mapping relation of the interface identifier according to second information which is input through the visual definition interface from the outside, wherein the data conversion mapping relation comprises mapping from source data to internally processable data, and the source data is taken from the business system;
the data docking mapping relation defining unit is used for defining the data docking mapping relation identified by the interface according to third information which is externally input through the visual definition interface, wherein the data docking mapping relation comprises mapping from internally processable data to a background logic table;
and the interface generating unit is used for generating an interface which is used for being butted with the service system and has the interface identifier according to the defined data format, data conversion mapping relation and data butting mapping relation of the butted data of the interface identifier.
Further, the interface configuration apparatus further includes: the data processing unit is used for receiving first source data sent by the service system through an interface with the interface identifier, wherein the data format of the first source data is the data format of the interface data of the interface identifier; converting the first source data into internal processable target data according to the data conversion mapping relation of the interface identifier; and storing each data item to be stored in the background logic table in the target data into the corresponding background logic table according to the data docking mapping relation of the interface identifier.
Further, the interface configuration apparatus further includes: a tracking unit;
the data processing unit is used for triggering the tracking unit when the first source data is received;
and the tracking unit is used for starting a tracking function by being triggered by the data processing unit so as to track the processing process of the first source data and output a tracked data processing result to a display.
Further, the interface configuration apparatus further includes: the interface adjustment processing unit is used for receiving an interface adjustment request aiming at the interface identifier, which is input through the visual definition interface externally, wherein the interface adjustment request comprises at least one or more of a data format, at least one data conversion mapping item and an adjustment type of each data conversion mapping item, at least one data docking mapping item and an adjustment type of each data docking mapping item, and the adjustment type is any one of addition, deletion and modification; processing the interface adjustment request to trigger the data format definition unit when the interface adjustment request comprises a data format, trigger the data conversion mapping relation definition unit when the interface adjustment request comprises a data conversion mapping item, and trigger the data docking mapping relation definition unit when the interface adjustment request comprises a data docking mapping item;
the data format defining unit is used for changing the data format of the butt joint data of the interface identifier into the data format included in the interface adjusting request by being triggered by the interface adjusting processing unit;
the data conversion mapping relation defining unit is used for being triggered by the interface adjustment processing unit and adjusting the data conversion mapping relation of the interface identifier according to each data conversion mapping item and the adjustment type thereof included in the interface adjustment request;
the data docking mapping relation defining unit is used for being triggered by the interface adjusting processing unit and adjusting the data docking mapping relation of the interface identifier according to each data docking mapping item and the adjusting type thereof included in the interface adjusting request;
and the interface generating unit is used for regenerating an interface which is used for being butted with the service system and has the interface identifier according to the data format, the data conversion mapping relation and the data butting mapping relation of the current butting data of the interface identifier.
In a third aspect, the present invention provides an interface configuration apparatus, including: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine-readable program to perform the method of any of the above first aspects.
In a fourth aspect, the present invention provides a computer readable medium having stored thereon computer instructions which, when executed by a processor, cause the processor to perform the method of any of the first aspects above.
The invention provides an interface configuration method and device, wherein the method comprises the following steps: for each external business system, according to information input through an external visual definition interface, combining an interface identifier of an interface for interfacing data with the business system, defining the data format of the interfacing data of the interface identifier, defining the data conversion mapping relation of the interface identifier and comprising mapping from source data to internal processable data, and defining the data interfacing mapping relation of the interface identifier and comprising mapping from the internal processable data to a background logic table; and generating a corresponding interface according to the data format, the data conversion mapping relation and the data docking mapping relation of the docking data of the interface identifier. The interface is generated according to the definition items, so that the interface docking data can be processed according to the definition items, when the interface function requirements change, developers only need to modify the specific definition content in the specific definition items, and the interface can be conveniently and dynamically configured by the developers.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of an interface configuration method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an interface configuration apparatus according to an embodiment of the present invention;
fig. 3 is a schematic diagram of another interface configuration apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides an interface configuration method, which may include the following steps:
step 101: for each business system in at least one external business system, defining the data format of the interface data of the interface identification according to the first information input by an external visual definition interface and combining the interface identification of the interface for interfacing the data with the business system.
Step 102: and defining a data conversion mapping relation of the interface identification according to second information input through the visual definition interface from the outside, wherein the data conversion mapping relation comprises mapping from source data to internally processable data, and the source data is taken from the business system.
Step 103: and defining the data docking mapping relation identified by the interface according to third information externally input through the visual definition interface, wherein the data docking mapping relation comprises mapping from internally processable data to a background logic table.
Step 104: and generating an interface which is used for data interfacing with the service system and has the interface identifier according to the defined data format, data conversion mapping relation and data interfacing mapping relation of the interfacing data of the interface identifier.
The interface configuration method provided by the embodiment of the invention comprises the following steps: for each external business system, according to information input through an external visual definition interface, combining an interface identifier of an interface for interfacing data with the business system, defining the data format of the interfacing data of the interface identifier, defining the data conversion mapping relation of the interface identifier and comprising mapping from source data to internal processable data, and defining the data interfacing mapping relation of the interface identifier and comprising mapping from the internal processable data to a background logic table; and generating a corresponding interface according to the data format, the data conversion mapping relation and the data docking mapping relation of the docking data of the interface identifier.
The interface is generated according to each definition item, so that interface docking data can be processed according to the definition items, when the interface function requirement changes, developers only need to modify specific definition contents in the specific definition items, the system can automatically generate the corresponding interface without rewriting the interface by the developers, and therefore, the embodiment of the invention can facilitate the developers to dynamically configure the interface, thereby solving the problems that the interface of the existing system integration project cannot be obtained, the maintainability and the variability of the interface are low, and the like, and has the characteristics of reducing the interface development workload and improving the maintainability and the variability of the interface.
Based on the interface configuration method provided by the embodiment of the invention, when the interface needs to be adjusted, a system developer does not need to modify the interface, the definition content related to the interface processing data can be dynamically adjusted according to the data condition of the interface operation, and the interface configuration method is particularly suitable for the situations that the interface format is flexibly processed, the number of external systems is large, and the service logic processing is not very complex. In addition, the software product can better meet the requirements of users, and the on-demand response can be realized to a certain extent.
In the embodiment of the present invention, the execution main body of the interface configuration method may be a service management software system.
Referring to step 101, firstly, the current transmission type of the interface may be defined, for example, the docking format of the current interface may be defined according to the ID agreed by the interface, such as XM L (Extensible Markup L schema) or JSON (JavaScript object notation).
Referring to step 102, the interface acquisition data may be analyzed, for example, a definition function may be provided to analyze the interface transmission field, define mapping, and the like, so as to realize transmission data conversion and flexibly acquire the interface node value.
Referring to step 103, interface extension settings may then be made, such as customizable interface transmission fields, and automatic deserialization interface transmission content interfacing with the background logic table.
Referring to step 104, after each definition item is completed, a corresponding interface can be generated accordingly, so that data sent by a corresponding service system can be docked and processed accordingly.
In an embodiment of the present invention, the business management software system may further support a dynamic log viewing service. For example, when the system automatically adjusts the interface, the tracking log can be recorded, and an early warning service is provided to assist system maintenance personnel in performing interface data maintenance, system maintenance log and other work.
In the embodiment of the invention, the service system can be a heterogeneous service system, and the coping interface can be flexibly configured for data transmission according to the data butted with the heterogeneous service system, so that the development workload can be greatly reduced, and background codes can be converted into visual configuration programs.
In interface docking, a foreground heterogeneous system is responsible for providing interface data, and the data processing with the heterogeneous system is accepted through a corresponding interface flexibly configured in the embodiment of the invention and is docked into a corresponding module of the heterogeneous system.
For example, necessary fields required for generating the voucher can be extracted from the voucher data, in the interface type definition, the interface type is a voucher ZWPZK, the type of the interface transmission at this time is XM L or JSON, in the field type setting, field values of the interface are defined, and what the transmission content is.
In one embodiment of the invention, the system can provide a visualized interface definition interface for the user to set the related definition content visually. For example, at least the following function keys may be displayed on the interface definition interface: new, modified, saved, deleted, set data sources, exported, closed, and at least the following definitions may be displayed: number, document type, creator, creation time, reviser, revision time, notes.
In one embodiment of the invention, the system can provide a visualized field definition interface for a user to visually set related definition content. For example, at least the following function keys may be displayed on the field definition interface: saving, closing, and taking the reimbursement bill as an example, at least the following definition items can be displayed: type, table name, field name, display title, field type, control type, data source, whether to fill in, whether to be unique, remark. On the basis, when the external part clicks the control type through the visual interface, the following options can be displayed in the drop-down box: default, help, enumeration, document number, unique value.
In an embodiment of the present invention, for the setting data source, the data source that needs to be operated at this time may be specifically defined, and the table SYSSJYZD is used to record, and the specific implementation of which can be seen in table 1 below.
TABLE 1
Field numbering Name of field Type of field Description of the invention
SJYZD_TABLE Table name varchar(30) Unique value
SJYZD_TNAME Display name varchar(600)
In an embodiment of the present invention, for setting the interface type, the interface of the present operation may be specifically defined, and the table sysewsjysz is used to record, and the specific implementation thereof may be referred to the following table 2.
TABLE 2
Field numbering Name of field Type of field Description of the invention
YWSJYSZ_NM Interface method varchar(30) Unique value
YWSJYSZ_SJLY Data source varchar(30)
YWSJYSZ_BZ Remarks for note varchar(300)
YWSJYSZ_SJY Data source inner code varchar(30) Data sources defined in Table 1
YWSJYSZ_ZT Status of state Char(1)
In one embodiment of the present invention, for defining the interface field type, the interface field may be specifically defined and recorded by table JTG L _ YWDJZDSZ, the specific implementation of which may be seen in table 3 below.
TABLE 3
Field numbering Name of field Type of field Description of the invention
YWDJZDSZ_NM Inner code varchar(30) Unique value
YWDJZDSZ_DYYWDJ Corresponding service interface varchar(30) The interfaces are defined in Table 2
YWDJZDSZ_ZDM Name of field varchar(300)
YWDJZDSZ_ZDLX Type of field varchar(30)
YWDJZDSZ_ZDCD Length of field Int Text type requires defining length
Specifically, for the interface transmission field, which fields need to be processed by the interface this time can be determined according to the above tables 1 to 3, and the interface field processing is dynamically performed.
In the embodiment of the invention, the interface field transmission definition can be carried out according to the actual situation, and the running condition of the interface can be checked by tracking a log every day so as to adjust the field.
Based on the above, the embodiment of the present invention abstracts the interface transmission process, and can analyze the interface transmission content to perform interface configuration or interface adjustment according to the actual application situation, thereby achieving the purpose of improving the interface docking stability. The embodiment of the invention can be suitable for the existing mainstream interface transmission mode.
In an embodiment of the present invention, after the generating an interface for interfacing data with the service system and having the interface identifier, the method further includes:
receiving first source data sent by the business system through an interface with the interface identifier, wherein the data format of the first source data is the data format of the interface data of the interface identifier;
converting the first source data into internal processable target data according to the data conversion mapping relation of the interface identifier;
and storing each data item to be stored in the background logic table in the target data into the corresponding background logic table according to the data docking mapping relation of the interface identifier.
In detail, the data transformation may include at least two aspects, one is data rule transformation and the other is data type transformation.
When the system receives the source data sent by the service system through the corresponding interface, the data format of the source data is consistent with the predefined data format, and the source data can be subjected to data conversion so as to be converted into target data which can be processed in the system. In particular, data transformation may be implemented according to a predefined mapping from source data to internally processable data. After the data conversion is completed, each data item in the target data can be stored in the corresponding background logic table according to the predefined mapping from the internally processable data to the background logic table, so that the data storage is realized, and the processing of the butt joint data is completed.
In an embodiment of the present invention, after the receiving the first source data sent by the service system through the interface with the interface identifier, the method further includes: and starting a tracking function to track the processing process of the first source data and outputting the tracked data processing result to a display.
In detail, based on the data processing tracking function, a user can conveniently check the data processing progress and the data processing result in real time, and the user experience is good.
In an embodiment of the present invention, after the generating an interface for interfacing data with the service system and having the interface identifier, the method further includes:
receiving an interface adjustment request aiming at the interface identification, which is input externally through the visual definition interface, wherein the interface adjustment request comprises at least one or more of a data format, at least one data conversion mapping item and an adjustment type of each data conversion mapping item, at least one data docking mapping item and an adjustment type of each data docking mapping item, and the adjustment type is any one of new addition, deletion and modification;
processing the interface adjustment request, so as to change the data format of the docking data of the interface identifier into the data format included in the interface adjustment request when the interface adjustment request includes the data format, adjust the data conversion mapping relationship of the interface identifier according to each data conversion mapping item and the adjustment type thereof included in the interface adjustment request when the interface adjustment request includes the data conversion mapping item, and adjust the data docking mapping relationship of the interface identifier according to each data docking mapping item and the adjustment type thereof included in the interface adjustment request when the interface adjustment request includes the data docking mapping item;
and regenerating an interface which is used for being butted with the service system and is provided with the interface identifier according to the data format, the data conversion mapping relation and the data butting mapping relation of the current butting data of the interface identifier.
In the embodiment of the invention, when the data format of the interface docking data needs to be adjusted, or the mapping relation between any source data item and the corresponding internal processable data item needs to be adjusted, or the mapping relation between any internal processable data item and the corresponding background logic table needs to be adjusted, the existing interface cannot meet the requirement, so that the interface can be regenerated according to the adjustment content. The newly generated interface may replace the original interface.
In addition, when an interface needs to be newly configured and is not much different from an existing interface, the definition content of the existing interface can be adjusted as required to generate a new interface. In this manner, the newly created interface may coexist with the existing interface.
The implementation manner of the dynamic configuration interface provided by the embodiment of the present invention at least has the following characteristics: (1) an interface can be flexibly generated according to a transmission format; (2) a corresponding table can be dynamically set according to actual requirements; (3) the character type can be flexibly defined through visual page processing. Compared with the prior art, the embodiment of the invention has the characteristics of adapting to the service type, flexibly coping with interface transmission, improving the system stability and the like, and has good popularization and application values.
In summary, based on the interface configuration implementation manner provided by the embodiment of the present invention, field value adjustment can be performed according to the actual execution situation, so as to reduce redundant transmission; the interface can be changed and adjusted at any time according to the actual application condition, so that the interface is more flexible and mobile, and the workload caused by the change of the service requirement is reduced; the system is easier for system administrators to maintain, and the intuitive function processing and displaying are easier to operate.
As shown in fig. 2, an embodiment of the present invention provides an interface configuration apparatus, which may include:
a data format defining unit 201, configured to define, for each service system of at least one external service system, a data format of interface data of an interface identifier according to first information input via a visual definition interface from the outside, and in combination with the interface identifier of the interface used for interfacing data with the service system;
a data transformation mapping relation defining unit 202, configured to define a data transformation mapping relation of the interface identifier according to second information externally input through the visualization definition interface, where the data transformation mapping relation includes a mapping from source data to internally processable data, where the source data is taken from the business system;
a data docking mapping relation defining unit 203, configured to define a data docking mapping relation identified by the interface according to third information externally input through the visualization definition interface, where the data docking mapping relation includes a mapping from internally processable data to a background logical table;
an interface generating unit 204, configured to generate an interface with the interface identifier, for interfacing with the service system according to the defined data format, data conversion mapping relationship, and data interfacing mapping relationship of the interfacing data of the interface identifier.
In an embodiment of the present invention, referring to fig. 3, the interface configuration apparatus may further include: a data processing unit 301, configured to receive first source data sent by the service system through an interface with the interface identifier, where a data format of the first source data is a data format of docking data of the interface identifier; converting the first source data into internal processable target data according to the data conversion mapping relation of the interface identifier; and storing each data item to be stored in the background logic table in the target data into the corresponding background logic table according to the data docking mapping relation of the interface identifier.
In an embodiment of the present invention, referring to fig. 3, the interface configuration apparatus may further include: a tracking unit 302;
the data processing unit 301 is configured to trigger the tracking unit 302 when the first source data is received;
the tracking unit 302 is configured to start a tracking function by being triggered by the data processing unit 301, so as to track a processing procedure of the first source data, and output a tracked data processing result to a display.
In an embodiment of the present invention, referring to fig. 3, the interface configuration apparatus may further include: an interface adjustment processing unit 303, configured to receive an interface adjustment request for the interface identifier, which is input externally through the visual definition interface, where the interface adjustment request includes at least one or more of a data format, at least one data conversion mapping item and an adjustment type of each data conversion mapping item, at least one data docking mapping item and an adjustment type of each data docking mapping item, where the adjustment type is any one of addition, deletion, and modification; processing the interface adjustment request to trigger the data format defining unit 201 when the interface adjustment request includes a data format, trigger the data conversion mapping relation defining unit 202 when the interface adjustment request includes a data conversion mapping item, and trigger the data docking mapping relation defining unit 203 when the interface adjustment request includes a data docking mapping item;
the data format defining unit 201 is configured to change the data format of the docking data identified by the interface identifier into the data format included in the interface adjustment request by being triggered by the interface adjustment processing unit 303;
the data conversion mapping relationship defining unit 202 is configured to, triggered by the interface adjustment processing unit 303, adjust the data conversion mapping relationship of the interface identifier according to each data conversion mapping item and the adjustment type thereof included in the interface adjustment request;
the data docking mapping relationship defining unit 203 is configured to, triggered by the interface adjustment processing unit 303, adjust the data docking mapping relationship of the interface identifier according to each data docking mapping item and the adjustment type thereof included in the interface adjustment request;
the interface generating unit 204 is configured to regenerate an interface, which is used for interfacing with the service system and has the interface identifier, according to the data format, the data conversion mapping relationship, and the data interfacing mapping relationship of the interface identifier of the current interfacing data.
Because the information interaction, execution process, and other contents between the units in the device are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
Embodiments of the present invention also provide a computer-readable medium storing instructions for causing a computer to perform an interface configuration method as described herein. Specifically, a system or an apparatus equipped with a storage medium on which software program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion unit connected to the computer, and then causes a CPU or the like mounted on the expansion board or the expansion unit to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
In summary, the embodiments of the present invention have at least the following advantages:
1. in the embodiment of the invention, for each external business system, according to information input through an external visual definition interface, in combination with an interface identifier of an interface for interfacing data with the business system, a data format of the interfacing data of the interface identifier is defined, a data conversion mapping relation including mapping from source data to internally processable data of the interface identifier is defined, and a data interfacing mapping relation including mapping from the internally processable data to a background logic table of the interface identifier is defined; and generating a corresponding interface according to the data format, the data conversion mapping relation and the data docking mapping relation of the docking data of the interface identifier. The interface is generated according to the definition items, so that the interface docking data can be processed according to the definition items, when the interface function requirements change, developers only need to modify the specific definition content in the specific definition items, and the embodiment of the invention can facilitate the developers to dynamically configure the interface.
2. Based on the interface configuration implementation mode provided by the embodiment of the invention, the field value can be adjusted according to the actual execution condition, so that redundant transmission is reduced; the interface can be changed and adjusted at any time according to the actual application condition, so that the interface is more flexible and mobile, and the workload caused by the change of the service requirement is reduced; the system is easier for system administrators to maintain, and the intuitive function processing and displaying are easier to operate.
It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.
In the above embodiments, the hardware unit may be implemented mechanically or electrically. For example, a hardware element may comprise permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations. The hardware elements may also comprise programmable logic or circuitry, such as a general purpose processor or other programmable processor, that may be temporarily configured by software to perform the corresponding operations. The specific implementation (mechanical, or dedicated permanent, or temporarily set) may be determined based on cost and time considerations.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 similar elements in a process, method, article, or apparatus that comprises the element.
While the invention has been shown and described in detail in the drawings and in the preferred embodiments, it is not intended to limit the invention to the embodiments disclosed, and it will be apparent to those skilled in the art that various combinations of the code auditing means in the various embodiments described above may be used to obtain further embodiments of the invention, which are also within the scope of the invention.

Claims (10)

1. The interface configuration method is characterized by comprising the following steps:
for each business system in at least one external business system, defining the data format of the interface data of the interface identification according to first information input through an external visual definition interface and combining the interface identification of the interface for interfacing the data with the business system;
defining a data conversion mapping relation of the interface identification according to second information input through the visual definition interface from the outside, wherein the data conversion mapping relation comprises mapping from source data to internally processable data, and the source data is taken from the business system;
defining a data docking mapping relation identified by the interface according to third information externally input through the visual definition interface, wherein the data docking mapping relation comprises mapping from internally processable data to a background logic table;
and generating an interface which is used for data interfacing with the service system and has the interface identifier according to the defined data format, data conversion mapping relation and data interfacing mapping relation of the interfacing data of the interface identifier.
2. The method of claim 1,
after the generating an interface for interfacing data with the business system and having the interface identification, further comprising:
receiving first source data sent by the business system through an interface with the interface identifier, wherein the data format of the first source data is the data format of the interface data of the interface identifier;
converting the first source data into internal processable target data according to the data conversion mapping relation of the interface identifier;
and storing each data item to be stored in the background logic table in the target data into the corresponding background logic table according to the data docking mapping relation of the interface identifier.
3. The method of claim 2,
after the receiving the first source data sent by the business system through the interface with the interface identification, further comprising:
and starting a tracking function to track the processing process of the first source data and outputting the tracked data processing result to a display.
4. The method according to any one of claims 1 to 3,
after the generating an interface for interfacing data with the business system and having the interface identification, further comprising:
receiving an interface adjustment request aiming at the interface identification, which is input externally through the visual definition interface, wherein the interface adjustment request comprises at least one or more of a data format, at least one data conversion mapping item and an adjustment type of each data conversion mapping item, at least one data docking mapping item and an adjustment type of each data docking mapping item, and the adjustment type is any one of new addition, deletion and modification;
processing the interface adjustment request, so as to change the data format of the docking data of the interface identifier into the data format included in the interface adjustment request when the interface adjustment request includes the data format, adjust the data conversion mapping relationship of the interface identifier according to each data conversion mapping item and the adjustment type thereof included in the interface adjustment request when the interface adjustment request includes the data conversion mapping item, and adjust the data docking mapping relationship of the interface identifier according to each data docking mapping item and the adjustment type thereof included in the interface adjustment request when the interface adjustment request includes the data docking mapping item;
and regenerating an interface which is used for being butted with the service system and is provided with the interface identifier according to the data format, the data conversion mapping relation and the data butting mapping relation of the current butting data of the interface identifier.
5. An interface configuration apparatus, comprising:
the data format definition unit is used for defining the data format of the interface data of the interface identification according to first information input by an external visual definition interface and the interface identification of the interface for interfacing the data with the service system for each service system in at least one external service system;
the data conversion mapping relation definition unit is used for defining the data conversion mapping relation of the interface identifier according to second information which is input through the visual definition interface from the outside, wherein the data conversion mapping relation comprises mapping from source data to internally processable data, and the source data is taken from the business system;
the data docking mapping relation defining unit is used for defining the data docking mapping relation identified by the interface according to third information which is externally input through the visual definition interface, wherein the data docking mapping relation comprises mapping from internally processable data to a background logic table;
and the interface generating unit is used for generating an interface which is used for being butted with the service system and has the interface identifier according to the defined data format, data conversion mapping relation and data butting mapping relation of the butted data of the interface identifier.
6. Interface configuration device according to claim 5,
further comprising: the data processing unit is used for receiving first source data sent by the service system through an interface with the interface identifier, wherein the data format of the first source data is the data format of the interface data of the interface identifier; converting the first source data into internal processable target data according to the data conversion mapping relation of the interface identifier; and storing each data item to be stored in the background logic table in the target data into the corresponding background logic table according to the data docking mapping relation of the interface identifier.
7. Interface configuration device according to claim 6,
further comprising: a tracking unit;
the data processing unit is used for triggering the tracking unit when the first source data is received;
and the tracking unit is used for starting a tracking function by being triggered by the data processing unit so as to track the processing process of the first source data and output a tracked data processing result to a display.
8. Interface configuration device according to one of the claims 5 to 7,
further comprising: the interface adjustment processing unit is used for receiving an interface adjustment request aiming at the interface identifier, which is input through the visual definition interface externally, wherein the interface adjustment request comprises at least one or more of a data format, at least one data conversion mapping item and an adjustment type of each data conversion mapping item, at least one data docking mapping item and an adjustment type of each data docking mapping item, and the adjustment type is any one of addition, deletion and modification; processing the interface adjustment request to trigger the data format definition unit when the interface adjustment request comprises a data format, trigger the data conversion mapping relation definition unit when the interface adjustment request comprises a data conversion mapping item, and trigger the data docking mapping relation definition unit when the interface adjustment request comprises a data docking mapping item;
the data format defining unit is used for changing the data format of the butt joint data of the interface identifier into the data format included in the interface adjusting request by being triggered by the interface adjusting processing unit;
the data conversion mapping relation defining unit is used for being triggered by the interface adjustment processing unit and adjusting the data conversion mapping relation of the interface identifier according to each data conversion mapping item and the adjustment type thereof included in the interface adjustment request;
the data docking mapping relation defining unit is used for being triggered by the interface adjusting processing unit and adjusting the data docking mapping relation of the interface identifier according to each data docking mapping item and the adjusting type thereof included in the interface adjusting request;
and the interface generating unit is used for regenerating an interface which is used for being butted with the service system and has the interface identifier according to the data format, the data conversion mapping relation and the data butting mapping relation of the current butting data of the interface identifier.
9. An interface configuration apparatus, comprising: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor, configured to invoke the machine readable program to perform the method of any of claims 1 to 4.
10. Computer readable medium, characterized in that it has stored thereon computer instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 4.
CN202010233822.XA 2020-03-30 2020-03-30 Interface configuration method and device Pending CN111427568A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010233822.XA CN111427568A (en) 2020-03-30 2020-03-30 Interface configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010233822.XA CN111427568A (en) 2020-03-30 2020-03-30 Interface configuration method and device

Publications (1)

Publication Number Publication Date
CN111427568A true CN111427568A (en) 2020-07-17

Family

ID=71551618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010233822.XA Pending CN111427568A (en) 2020-03-30 2020-03-30 Interface configuration method and device

Country Status (1)

Country Link
CN (1) CN111427568A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328224A (en) * 2021-01-06 2021-02-05 广州市玄武无线科技股份有限公司 Service interface docking method and device, storage medium and electronic equipment
CN112463409A (en) * 2020-12-04 2021-03-09 天津狮拓信息技术有限公司 Data interaction method and device, electronic equipment and computer readable storage medium
CN113849158A (en) * 2021-09-22 2021-12-28 猪八戒股份有限公司 JSON-based interface factory system, interface generation method and medium thereof

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571720A (en) * 2010-12-27 2012-07-11 中国移动通信集团辽宁有限公司 Method and device for processing heterogeneous information contents
CN102932431A (en) * 2012-10-12 2013-02-13 宁夏电力公司电力科学研究院 Message-routing-based state monitoring data interface configuration method
CN104850399A (en) * 2015-04-30 2015-08-19 昆明理工大学 Retrospective analysis method and retrospective analysis system capable of generating mapping table between component interface and component implementation
CN105278946A (en) * 2015-06-12 2016-01-27 浙江大学 RESTful API visualization method
CN107463409A (en) * 2017-08-11 2017-12-12 深圳乐信软件技术有限公司 A kind of interface conversion method, interface convertor, storage medium and electric terminal
CN108153897A (en) * 2018-01-10 2018-06-12 中国银行股份有限公司 A kind of PLSQL program codes generation method and system
CN108572823A (en) * 2018-04-23 2018-09-25 武汉斗鱼网络科技有限公司 Front and back end development management method and system based on interface engine
CN110007912A (en) * 2019-03-05 2019-07-12 山东浪潮通软信息科技有限公司 A kind of visual configuration realization system and method for data sharing interface
CN110826004A (en) * 2019-11-05 2020-02-21 杭州安恒信息技术股份有限公司 Front-end request data processing method and related device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571720A (en) * 2010-12-27 2012-07-11 中国移动通信集团辽宁有限公司 Method and device for processing heterogeneous information contents
CN102932431A (en) * 2012-10-12 2013-02-13 宁夏电力公司电力科学研究院 Message-routing-based state monitoring data interface configuration method
CN104850399A (en) * 2015-04-30 2015-08-19 昆明理工大学 Retrospective analysis method and retrospective analysis system capable of generating mapping table between component interface and component implementation
CN105278946A (en) * 2015-06-12 2016-01-27 浙江大学 RESTful API visualization method
CN107463409A (en) * 2017-08-11 2017-12-12 深圳乐信软件技术有限公司 A kind of interface conversion method, interface convertor, storage medium and electric terminal
CN108153897A (en) * 2018-01-10 2018-06-12 中国银行股份有限公司 A kind of PLSQL program codes generation method and system
CN108572823A (en) * 2018-04-23 2018-09-25 武汉斗鱼网络科技有限公司 Front and back end development management method and system based on interface engine
CN110007912A (en) * 2019-03-05 2019-07-12 山东浪潮通软信息科技有限公司 A kind of visual configuration realization system and method for data sharing interface
CN110826004A (en) * 2019-11-05 2020-02-21 杭州安恒信息技术股份有限公司 Front-end request data processing method and related device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463409A (en) * 2020-12-04 2021-03-09 天津狮拓信息技术有限公司 Data interaction method and device, electronic equipment and computer readable storage medium
CN112328224A (en) * 2021-01-06 2021-02-05 广州市玄武无线科技股份有限公司 Service interface docking method and device, storage medium and electronic equipment
CN113849158A (en) * 2021-09-22 2021-12-28 猪八戒股份有限公司 JSON-based interface factory system, interface generation method and medium thereof

Similar Documents

Publication Publication Date Title
CN110968325B (en) Applet conversion method and device
CN111427568A (en) Interface configuration method and device
CN112558980A (en) Multi-software-package management method and device
CN105487864A (en) Method and device for automatically generating code
US20060206865A1 (en) Method and System for Managing Development Objects for Computer Program Code
US9092493B2 (en) Adaptive warehouse data validation tool
US9846689B2 (en) Method and system to provide portable database functionality in an electronic form
US20230046716A1 (en) Document editing method and apparatus, computer device, and storage medium
US20150052157A1 (en) Data transfer content selection
WO2017213846A1 (en) Automating feature graduation
CN112528207B (en) Activity page generation method and device and electronic equipment
US20210124752A1 (en) System for Data Collection, Aggregation, Storage, Verification and Analytics with User Interface
CN102236573A (en) Name binding extensibility for typed programming language
CN105389184A (en) Configuration method and apparatus for product interface information
CN115878092A (en) Code generation method, device and medium based on micro-service architecture
US20050132285A1 (en) System and method for generating webpages
JP2008009861A (en) System configuration management method
CN111782212A (en) View assembly creating method and device and storage medium
US7657528B2 (en) Method, computer program product and article of manufacture for providing service-to-role assignment to launch application services in role-based computer system
JP6588988B2 (en) Business program generation support system and business program generation support method
CN112181407B (en) Service realization processing method, device, system, electronic equipment and storage medium
JP6836077B2 (en) Information processing device and its processing method and program
CN111580791A (en) Method and device for generating window
CN111221787A (en) File processing method and device
JP2020119409A (en) Program, information processing apparatus, and processing method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200717