Interface object configuration method and device and storage medium

By configuring the operation properties of the interface object to correspond to multiple operation interfaces, the problem of cumbersome configuration of the interface object attributes is solved, the development and maintenance are simplified, and the expansion ability and efficiency of the interface object are improved.

CN119166241APending Publication Date: 2024-12-20BEIJING WELLINTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411329367.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In program development, the process of configuring the operational interface attributes of interface objects is cumbersome, which increases the difficulty of development and maintenance and limits the expansion ability of interface objects.

Method used

By obtaining object attribute information and target interface information, configuring the target interface interface object, adding operation attributes to correspond to multiple operation interfaces, simplifying the management process and improving expansion capabilities.

Benefits of technology

It simplifies the development and maintenance process of interface objects, improves efficiency, and enhances the expansion ability of interface objects, and reduces the update complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166241A_ABST
    Figure CN119166241A_ABST
Patent Text Reader

Abstract

The invention provides an interface object configuration method and device and a storage medium, relates to the technical field of information, and is used for solving the problem that the process is relatively tedious when attributes of operation interfaces in interfaces are configured. The method comprises the steps that object attribute information and interface information of a target interface are obtained, the object attribute information comprises at least one operation attribute, and the interface information comprises a plurality of operation interfaces; based on the object attribute information and the interface information of the target interface, an interface object of the target interface is configured, the configured interface object comprises at least one operation attribute, and one operation attribute corresponds to at least one operation interface in the multiple operation interfaces.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to a configuration method, device and storage medium for an interface object. Background Art

[0002] With the rapid development of information technology, data exchange and function calls between various systems are becoming more and more frequent. For example, when operating data in a data source, it is necessary to access data source interfaces such as system serial ports, networks, files, and databases to complete the data operation.

[0003] At present, when developing a program, the interface provided by the system is usually encapsulated into an object, which can contain the properties of the operation interface required for interface access. Developers can use the operation interface in the object to operate files, serial ports, and Ethernet, such as reading and writing data or sending and receiving data. However, in the above development process, it is necessary to configure the properties of each operation interface for each interface, which is a cumbersome process. Summary of the invention

[0004] The present application provides a method, device and storage medium for configuring an interface object, which are used to solve the problem that the process is relatively complicated when configuring the properties of each operation interface in the interface.

[0005] In order to achieve the above purpose, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a method for configuring an interface object. In the method, object attribute information and interface information of a target interface are obtained, the object attribute information includes at least one operation attribute, and the interface information includes multiple operation interfaces. Based on the object attribute information and the interface information of the target interface, an interface object of the target interface is configured, the configured interface object includes at least one operation attribute, and one operation attribute corresponds to at least one operation interface among multiple operation interfaces.

[0007] Based on the above technical solution, object attribute information and interface information of the target interface are obtained, the object attribute information includes at least one operation attribute, and the interface information includes multiple operation interfaces. Afterwards, based on the object attribute information and the interface information of the target interface, the interface object of the target interface is configured, and the configured interface object includes at least one operation attribute, and one operation attribute corresponds to at least one operation interface among multiple operation interfaces. In other words, in the present application, an operation attribute is added to the object attribute information of the interface object, and the operation attribute can correspond to multiple operation interfaces. In this way, when maintaining the interface object, it is only necessary to manage the operation interface in the operation attribute, and there is no need to add new attributes to the interface object, which simplifies the development and maintenance process and improves the efficiency of development and maintenance. In addition, the expansion capability of the interface object is improved.

[0008] In one possible design, one operation attribute corresponds to an operation interface of one operation type.

[0009] In one possible design, at least one operation attribute includes: a sending operation attribute and a receiving operation attribute, the sending operation attribute corresponds to an operation interface of an active operation type, and the receiving operation attribute corresponds to an operation interface of a passive operation type.

[0010] In one possible design, one operation interface corresponds to one operation attribute value. Based on the operation attribute value corresponding to each operation interface and the operation types of multiple operation interfaces, the operation attribute value of each operation attribute in at least one operation attribute is set, and one operation attribute corresponds to at least one operation attribute value.

[0011] In a possible design, an operation attribute corresponds to an operation parameter in an operation interface of an operation type, and the operation parameter is a parameter required for calling the operation interface.

[0012] In a possible design, the object attribute information also includes at least one of the following: basic attributes and status attributes. The basic attributes are used to describe the basic information of the interface object, and the status attributes are used to describe the status of the interface corresponding to the interface object.

[0013] In one possible design, the basic attributes include at least one of the following: an interface object identifier, basic information of the interface corresponding to the interface object, a type of the interface corresponding to the interface object, and connection attributes.

[0014] In a possible design, an operation attribute update message is obtained, and the operation attribute update message is used to indicate updating a target operation attribute in at least one operation attribute. In response to the operation attribute update message, an operation interface corresponding to the target operation attribute is updated.

[0015] In one possible design, an interface operation request is received, the interface operation request is used to request to perform a target operation on a target interface, and the interface operation request includes: an operation type of the target operation, a target operation event, and a target operation parameter. A target attribute corresponding to the operation type of the target operation and a target operation attribute value corresponding to the target operation event are determined in an interface object of the target interface. The target attribute of the interface object of the target interface is set to the target operation attribute value and the target operation parameter.

[0016] In a second aspect, the present application provides a device for configuring an interface object, the device comprising: an acquisition module, used to acquire object attribute information and interface information of a target interface, the object attribute information comprising at least one operation attribute, and the interface information comprising multiple operation interfaces. A processing module, used to configure an interface object of a target interface based on the object attribute information and the interface information of the target interface, the configured interface object comprising at least one operation attribute, and one operation attribute corresponding to at least one operation interface among multiple operation interfaces.

[0017] In a third aspect, the present application provides a configuration device for an interface object, the device comprising: a processor and a memory; the processor and the memory are coupled; the memory is used to store one or more programs, the one or more programs comprising computer execution instructions, and when the configuration device for the interface object is running, the processor executes the computer execution instructions stored in the memory to implement the method described in the first aspect and any possible implementation of the first aspect.

[0018] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a computer, the computer executes the method described in the above-mentioned first aspect and any possible implementation of the first aspect.

[0019] In a fifth aspect, the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the method described in the first aspect and any possible implementation of the first aspect.

[0020] In a sixth aspect, the present application provides a computer program product comprising instructions, which, when executed by a computer, enables the computer to execute the method described in the above-mentioned first aspect and any possible implementation manner of the first aspect.

[0021] In the above scheme, the technical problems that can be solved and the technical effects achieved by the configuration device, computer storage medium, chip or computer program product of the interface object can be referred to the technical problems and technical effects solved by the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A flowchart of a method for configuring an interface object provided in an embodiment of the present application;

[0023] Figure 2 A flowchart of another method for configuring an interface object provided in an embodiment of the present application;

[0024] Figure 3 A flowchart of another method for configuring an interface object provided in an embodiment of the present application;

[0025] Figure 4 A schematic diagram of an example of configuring an interface object provided in an embodiment of the present application;

[0026] Figure 5 A schematic diagram of the structure of a device for configuring an interface object provided in an embodiment of the present application;

[0027] Figure 6 A schematic diagram of the structure of another device for configuring an interface object provided in an embodiment of the present application;

[0028] Figure 7 A conceptual partial view of a computer program product provided for an embodiment of the present application. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0030] The terms “first” and “second” in the description and claims of the present application are used to distinguish different objects rather than to describe a specific order of the objects.

[0031] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include other steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products or devices.

[0032] In addition, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present concepts in a specific way.

[0033] Some technical terms in this application are explained below.

[0034] 1. Data source interface refers to data resources related to software and hardware such as system serial port, network, file, camera, database, etc. The data resources can also include data resources related to application protocols such as tcp, udp, http, https, mqtt, sql, etc. Among them, serial port data acquisition is to open the serial port resources on the system, and to interact with serial port hardware devices through the serial bus RS232 / RS485 to collect data. Network data is collected through the Ethernet interface, including various network communication protocols, such as camera, tcp, udp, http / https, mqtt, sql, and some databases can also be collected through the network, such as mysql, pgsql, sqlserver, and some files can also be transmitted through the network through file transfer protocols, such as ftp protocol. Local file data acquisition is collected by opening the local file resource interface, reading local files in the hard disk of the continuous monitoring server, and some databases can also be read in this way, such as sqlite database. Remote files are read in a network way.

[0035] 2. Interface object is an abstraction of objective things. Interface objects are usually composed of a set of data that identify the characteristics of objective things. In the embodiment of the present application, the objective thing is a data source interface, which is virtualized into an interface object. The interface object is used to characterize the data source interface. The interface object contains various attribute members, such as interface object name, description, open status, start and stop flags, and send and receive data.

[0036] Currently, when developing a program, the interface provided by the system is usually encapsulated into an object, which can contain the properties of the operation interface required for interface access. Developers can use the operation interface in the object to operate files, serial ports, and Ethernet, such as reading and writing data or sending and receiving data.

[0037] However, an interface may contain multiple operation interfaces (also referred to as operation functions), and different interfaces may contain different operation interfaces. Therefore, when the interface object is configured using the above technical solution, different operation attributes need to be set for different interfaces. This increases the development and maintenance difficulty of the interface object, and limits the expansion capability of the interface object.

[0038] In order to solve the above technical problems, an embodiment of the present application provides a configuration method for an interface object. In the method, object attribute information and interface information of a target interface are obtained, the object attribute information includes at least one operation attribute, and the interface information includes multiple operation interfaces. Afterwards, based on the object attribute information and the interface information of the target interface, the interface object of the target interface is configured, and the configured interface object includes at least one operation attribute, and one operation attribute corresponds to at least one operation interface among multiple operation interfaces. That is to say, in the present application, an operation attribute is added to the object attribute information of the interface object, and the operation attribute can correspond to multiple operation interfaces. In this way, when maintaining the interface object, it is only necessary to manage the operation interface in the operation attribute, and there is no need to add new attributes to the interface object, which simplifies the development and maintenance process and improves the efficiency of development and maintenance. In addition, the expansion capability of the interface object is improved.

[0039] It should be noted that the target interface is not limited in the embodiments of the present application. For example, the target interface may be an interface such as network communication and transmission, file, serial port, relational database client, mailbox client, printer client, HyperText Transfer Protocol (HTTP), Message Queuing Telemetry Transport (MQTT), etc.

[0040] The embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0041] like Figure 1 As shown, a configuration method of an interface object provided in an embodiment of the present application includes:

[0042] S101. Obtain object attribute information and interface information of a target interface.

[0043] The object attribute information includes at least one operation attribute, and the target interface includes multiple operation interfaces. The operation attribute is used to describe the operation type of the operation interface in the target interface. One operation attribute corresponds to an operation interface of one operation type.

[0044] That is to say, the target interface may include multiple operation interfaces, and each operation interface in the target interface may determine the operation attribute corresponding to the operation interface according to the operation type.

[0045] It is understandable that one operation attribute corresponds to an operation interface of one operation type, that is, the operation attributes are divided based on the operation type. In this way, it can be ensured that the operation interface of the same operation type can correspond to one operation attribute, which increases the extensibility of the operation attributes.

[0046] In one possible design, the at least one operation attribute may include: a sending operation attribute and a receiving operation attribute, the sending operation attribute corresponds to an operation interface of an active operation type, and the receiving operation attribute corresponds to an operation interface of a passive operation type.

[0047] It should be noted that the active operation type operation interface refers to an operation interface for sending messages to the outside, and the passive operation type operation interface refers to an operation interface for receiving messages sent by an external device.

[0048] For example, the active operation type interface may include: an operation interface for opening / closing a file, an operation interface for reading and writing a file, an operation interface for opening / closing a serial port, an operation interface for sending serial port data, and an operation interface for opening / closing Ethernet. The passive operation type interface may include: an operation interface for receiving file data, an operation interface for receiving serial port data, etc.

[0049] It is understandable that the types of operation interfaces can be divided into active operation types and passive operation types. In this way, all operation interfaces can be included through the above two operation types. In other words, any operation interface can be set in the sending operation attribute or the receiving operation attribute. In this way, the expansion capability of the interface object can be increased.

[0050] In an embodiment of the present application, the interface information includes multiple operation interfaces.

[0051] Exemplarily, the interface information may include an identifier of each operation interface.

[0052] S102: Based on the object attribute information and the interface information of the target interface, configure the interface object of the target interface.

[0053] The configured interface object includes at least one operation attribute, and one operation attribute corresponds to at least one operation interface among the multiple operation interfaces.

[0054] It should be noted that the embodiment of the present application does not limit the number of operation interfaces corresponding to one operation attribute. For example, one operation attribute may correspond to 1, 4, or 10 operation interfaces.

[0055] In a possible implementation, a correspondence between operation attributes and operation interfaces may be established to complete configuration of the interface object of the target interface.

[0056] Exemplarily, as shown in Table 1, it shows the corresponding relationship between operation attributes and operation interfaces.

[0057] Table 1

[0058] Operational properties Operation interface Send Operation Properties Operation interface 1, operation interface 2, operation interface 3 Receive Operation Properties Operation interface 4, Operation interface 5

[0059] That is, at least one operation attribute includes: a sending operation attribute and a receiving operation attribute, and the interface information includes: operation interface 1-operation interface 5. Among them, the operation interfaces corresponding to the sending operation attribute are operation interface 1, operation interface 2 and operation interface 3, and the operation interfaces corresponding to the receiving operation attribute are operation interface 4 and operation interface 5.

[0060] In a possible design, one operation interface corresponds to one operation attribute value. Based on the operation attribute value corresponding to each operation interface and the operation types of the multiple operation interfaces, the operation attribute value of each operation attribute in the at least one operation attribute is set, and one operation attribute corresponds to at least one operation attribute value.

[0061] For example, in combination with Table 1, if the operation attribute value corresponding to operation interface 1 is 1, the operation attribute value corresponding to operation interface 2 is 2, the operation attribute value corresponding to operation interface 3 is 3, the operation attribute value corresponding to operation interface 4 is 4, and the operation attribute value corresponding to operation interface 5 is 5, then the operation attribute value corresponding to the sending operation attribute can be 1, 2, 3, and the operation attribute value corresponding to the receiving operation attribute can be 4, 5.

[0062] It is understandable that by setting an attribute value for each operation attribute, and one operation attribute corresponds to at least one operation attribute value, a relationship between each operation interface and the operation attribute can be established, so that each operation interface can be called through the operation attribute.

[0063] Based on the above technical solution, object attribute information and interface information of the target interface are obtained, the object attribute information includes at least one operation attribute, and the interface information includes multiple operation interfaces. Afterwards, based on the object attribute information and the interface information of the target interface, the interface object of the target interface is configured, and the configured interface object includes at least one operation attribute, and one operation attribute corresponds to at least one operation interface among multiple operation interfaces. In other words, in the present application, an operation attribute is added to the object attribute information of the interface object, and the operation attribute can correspond to multiple operation interfaces. In this way, when maintaining the interface object, it is only necessary to manage the operation interface in the operation attribute, and there is no need to add new attributes to the interface object, which simplifies the development and maintenance process and improves the efficiency of development and maintenance. In addition, the expansion capability of the interface object is improved.

[0064] In some embodiments, corresponding operation parameters need to be passed when calling the operation interface.

[0065] In the embodiment of the present application, an operation attribute corresponds to an operation parameter in an operation interface of an operation type, and the operation parameter is a parameter required for calling the operation interface.

[0066] In a possible implementation, based on the operation parameters corresponding to each operation interface and the operation types of multiple operation interfaces, the operation parameters of each operation attribute in at least one operation attribute are set to configure the interface object of the target interface, and one operation attribute corresponds to the operation parameter of at least one operation interface.

[0067] For example, if the operation is to modify the file name, the operation parameter may include the modified file name. Alternatively, if the operation is to modify the file address, the operation parameter may include the modified file address.

[0068] Optionally, an operation parameter corresponds to a data type.

[0069] It is understandable that one operation attribute corresponds to an operation parameter in an operation interface of an operation type, so that when the operation interface is called through the interface object of the target interface, the operation parameter required by the operation interface can be passed, thereby implementing the call of the operation interface.

[0070] In some embodiments, the object attribute information further includes at least one of the following: basic attributes and state attributes. The basic attributes are used to describe basic information of the interface object.

[0071] The basic attributes include at least one of the following: an interface object identifier, basic information of the interface corresponding to the interface object, the type of the interface corresponding to the interface object, and connection attributes, where the connection attributes are used to describe information about the interface corresponding to the connection interface object.

[0072] In the embodiment of the present application, the types of interfaces may include: file type, serial port type and Ethernet type.

[0073] In some embodiments, different interface types have different basic properties of interfaces corresponding to interface objects.

[0074] For example, for an interface object of a file type, the basic information may include the name given to the file interface object by the developer and the description information of the file interface object itself. The connection attributes may include the path and name of the file, the way to open the file, etc.

[0075] For a serial port type interface object, basic information may include the name given by the developer to the serial port interface object and the description information of the serial port interface object itself. Connection properties may include the serial port number, description, baud rate, data bit, stop bit, check bit, etc. For example, the serial port number value is "COM1" and the baud rate value is "9600".

[0076] For an Ethernet type interface object, basic information may include the name given to the Ethernet interface object by the developer and the description information of the Ethernet interface object itself. Connection attributes may include name, IP, port number, network protocol, etc. For example, the connection attributes of a certain Ethernet may include that the network protocol of the Ethernet is "TCP client", the IP is "XXX.XXX.X.XXX", the port number is "8888", etc.

[0077] In the embodiment of the present application, the state attribute is used to describe the state of the interface corresponding to the interface object. The state attribute is used to indicate whether the interface corresponding to the interface object is in a connected state.

[0078] In a possible design, the state attribute value of the state attribute may be first state information or second state information. The first state information is used to indicate that the interface is in a connected state, and the second state information is used to indicate that the interface is in a disconnected state.

[0079] It should be understood that when the interface is in a connected state, the interface can be operated. When the interface is in a disconnected state, the interface cannot be operated. In other words, the state attribute is used to reflect whether the interface corresponding to the interface object can be operated.

[0080] It should be noted that the first state information and the second state information are not limited in the embodiment of the present application. For example, the first state information is 1 and the second state information is 0. Alternatively, the first state information is 01 and the second state information is 02. Alternatively, the first state information is a and the second state information is b.

[0081] In some embodiments, basic attributes, connection attributes, and status attributes may be added to the interface object of the target interface to configure the interface object of the target interface.

[0082] It can be understood that, since the object attribute information also includes at least one of the following: basic attributes, connection attributes, and status attributes, when configuring the interface object, the information of the configured interface object is more complete.

[0083] It should be noted that, when the interface object has been configured, the configuration of the operation interface can be increased without increasing the object attribute information.

[0084] like Figure 2 As shown, a configuration method of an interface object provided in an embodiment of the present application includes:

[0085] S201. Obtain operation attribute update message.

[0086] The operation attribute update message is used to indicate updating of a target operation attribute in at least one operation attribute.

[0087] It should be noted that the update target operation attribute may include: adding an operation interface, modifying an operation interface, and deleting an operation interface.

[0088] S202: In response to the operation attribute update message, update the operation interface corresponding to the target operation attribute.

[0089] In a possible implementation, when the operation attribute update message is used to indicate a newly added operation interface, a newly added operation attribute value may be obtained, and the newly added operation attribute value corresponds to the first operation interface. The first operation attribute is determined based on the operation type of the first operation interface, and the target operation attribute is the first operation attribute. A corresponding relationship between the newly added operation attribute value and the first operation attribute is established.

[0090] Exemplarily, if the operation interface a is an active operation type operation interface and the corresponding operation attribute value is 1, the operation attribute value 1 may be added to the sending operation attribute.

[0091] In a possible implementation, when the operation attribute update message is used to indicate modification of the operation interface, a modified operation attribute value may be obtained, and the modified operation attribute value corresponds to the second operation interface. A second operation attribute corresponding to the second operation interface is determined, and the target operation attribute is the second operation attribute. The operation attribute value corresponding to the second operation interface in the second operation attribute is modified to the modified operation attribute value.

[0092] Exemplarily, the operation interface b is an active operation type operation interface, and the modified operation attribute value is 2. Then, the operation attribute value corresponding to the operation interface b in the sending operation attribute winning operation can be modified to 2.

[0093] In a possible implementation, when the operation attribute update message is used to indicate a newly added operation interface, an operation attribute value to be deleted may be obtained, and the operation attribute value to be deleted corresponds to a third operation interface. A third operation attribute corresponding to the third operation interface is determined, and the target operation attribute is the third operation attribute. The operation attribute value corresponding to the third operation interface in the third operation attribute is deleted.

[0094] Exemplarily, if the operation interface c is an operation interface of a passive operation type and the corresponding operation attribute value is 3, the operation attribute value with the operation attribute value of 3 in the received operation attribute may be deleted.

[0095] Based on the above technical solution, after obtaining the operation attribute update message, the operation interface corresponding to the target operation attribute can be updated. In other words, there is no need to modify (such as add or delete) the operation attribute, only the target operation attribute needs to be modified, which reduces the complexity of updating the operation interface and simplifies the maintenance process.

[0096] like Figure 3 As shown, a configuration method of an interface object provided in an embodiment of the present application includes:

[0097] S301: Receive an interface operation request.

[0098] The interface operation request is used to request to perform a target operation on a target interface. The interface operation request includes: the operation type of the target operation, the target operation event, and the target parameter. The operation type is related to the operation attribute, and the target operation event is related to the operation interface.

[0099] Exemplarily, if the operation type is an active operation type, the corresponding operation attribute is a sending operation attribute. If the target operation event is opening a file, the corresponding operation interface is an operation interface for opening a file.

[0100] S302: Determine a target attribute corresponding to the operation type of the target operation in the interface object of the target interface, and a target operation attribute value corresponding to the target operation event.

[0101] In a possible implementation, the target attribute is determined based on the operation type of the target operation, and the target operation interface and the target operation attribute value corresponding to the target operation interface are determined based on the target operation event.

[0102] S303: Set the target attribute of the interface object of the target interface to the target attribute value and the target parameter.

[0103] In a possible implementation, when the operation type of the target operation is an active operation type, the operation attribute value in the sending operation attribute is modified to a target attribute value, and the target parameter is set.

[0104] In another possible implementation, when the operation type of the target operation is a passive operation type, the operation attribute value in the received operation attribute is modified to a target attribute value, and the target parameter is set.

[0105] Based on the above technical solution, after receiving the interface operation request, the target attribute corresponding to the operation type of the target operation and the target attribute value corresponding to the target operation event in the interface object of the target interface can be determined based on the operation type of the target operation. After that, the target attribute of the interface object of the target interface can be set to the target attribute value and the target parameter. In this way, the operation interface corresponding to the target attribute value in the target interface can be called through the interface object.

[0106] In some embodiments, the interface operation request may include: an active operation request and a passive operation request, the active operation request corresponds to a sending operation attribute, and the passive operation request corresponds to a receiving operation attribute. Based on the interface operation request, the target attribute of the interface object of the target interface may be set to a target attribute value and a target parameter.

[0107] In some embodiments, a state attribute update message may be received, the state attribute update message may be used to update the state attribute, the state attribute update message may include a modified state attribute value, and then the state attribute may be modified to the modified state attribute value.

[0108] Optionally, a status attribute reading message sent by an electronic device may be received, and then a status attribute value of the status attribute is sent to the electronic device.

[0109] The following is an introduction to the target interface object with specific examples. Figure 4 As shown, the object attribute information of the interface object may include: interface object ID, interface type, interface information and status, sending operation attributes and receiving operation attributes. Among them, the interface information and status include: connection attributes, basic attributes, interface status. The operation type of the operation interface corresponding to the sending operation attribute is an operation interface of an active operation type (which may be called an active operation interface), and the operation parameters of the operation interface corresponding to the sending operation attribute are active operation interface parameters. The operation type of the operation interface corresponding to the receiving operation attribute is an operation interface of a passive operation type (which may be called a passive operation interface), and the operation parameters of the operation interface corresponding to the receiving operation attribute are passive operation interface parameters. For example, the active operation interface may include: operation interface 1 (corresponding to operation interface parameter 1), operation interface 2 (corresponding to operation interface parameter 2). The passive operation interface may include: connection operation interface (corresponding to connection operation interface parameters), data receiving operation interface (corresponding to data receiving operation interface parameters).

[0110] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. It is understandable that the configuration device of the interface object includes a hardware structure and / or software module corresponding to the execution of each function in order to realize the above functions. Those skilled in the art should easily realize that, in combination with the configuration method steps of the interface object of each example described in the embodiment disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0111] The embodiment of the present application also provides a device for configuring an interface object, which can be a server, a CPU in the server, a configuration module in the server for configuring the interface object, or a client in the server for configuring the interface object.

[0112] The embodiment of the present application can divide the configuration device of the interface object into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division. There may be other division methods in actual implementation.

[0113] The present application embodiment provides a configuration device for an interface object. Figure 5 As shown, the configuration device of the interface object may include: an acquisition module 501 and a processing module 502.

[0114] The acquisition module 501 is used to acquire object attribute information and interface information of a target interface, the object attribute information includes at least one operation attribute, and the interface information includes multiple operation interfaces. The processing module 502 is used to configure an interface object of the target interface based on the object attribute information and the interface information of the target interface, the configured interface object includes at least one operation attribute, and one operation attribute corresponds to at least one operation interface among the multiple operation interfaces.

[0115] Figure 6 6 is a schematic diagram of a configuration device for an interface object according to an exemplary embodiment. The configuration device for an interface object may include a processor 602, and the processor 602 is used to execute application code to implement the configuration method of the interface object in the present application.

[0116] The processor 602 may be a central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0117] like Figure 6 As shown, the configuration device of the interface object may further include a memory 603. The memory 603 is used to store application program codes for executing the solution of the present application, and the execution is controlled by the processor 602.

[0118] The memory 603 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 603 may exist independently and be connected to the processor 602 via a bus 604. The memory 603 may also be integrated with the processor 602.

[0119] like Figure 6 As shown, the configuration device of the interface object may further include a communication interface 601, wherein the communication interface 601, the processor 602, and the memory 603 may be coupled to each other, for example, via a bus 604. The communication interface 601 is used to perform information interaction with other devices, for example, to support information interaction between the configuration device of the interface object and other devices.

[0120] It should be pointed out that Figure 6 The device structure shown in the figure does not constitute a limitation on the configuration means of the interface object, except Figure 6 In addition to the components shown, the configuration device of the interface object may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0121] In actual implementation, the functions implemented by the processing unit can be Figure 6 The processor 602 shown calls the program code in the memory 603 to implement.

[0122] The present application also provides a computer-readable storage medium, on which instructions are stored, and when the instructions in the computer-readable storage medium are executed by a processor of a computer device, the computer can execute the configuration method of the interface object provided in the above-mentioned embodiment. For example, the computer-readable storage medium can be a memory 603 including instructions, and the above instructions can be executed by a processor 602 of a computer device to complete the above method. Optionally, the computer-readable storage medium can be a non-temporary computer-readable storage medium, for example, a non-temporary computer-readable storage medium can be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

[0123] Figure 7 A conceptual partial view of a computer program product provided by an embodiment of the present application is schematically shown, where the computer program product includes a computer program for executing a computer process on a computing device.

[0124] In one embodiment, the computer program product is provided using a signal bearing medium 700. The signal bearing medium 700 may include one or more program instructions that, when executed by one or more processors, may provide the above-described Figure 1 , Figure 2 , Figure 3 Thus, for example, reference to Figure 1 In the embodiment shown in , one or more features of S101-S102 may be undertaken by one or more instructions associated with the signal bearing medium 700. In addition, Figure 7 The program instructions in also describe example instructions.

[0125] In some examples, the signal bearing medium 700 may include a computer readable medium 701, such as, but not limited to, a hard drive, a compact disk (CD), a digital video disk (DVD), a digital tape, a memory, a read-only memory (ROM) or a random access memory (RAM), and the like.

[0126] In some implementations, signal bearing medium 700 may include computer recordable medium 702 such as, but not limited to, memory, read / write (R / W) CD, R / W DVD, and the like.

[0127] In some implementations, signal bearing medium 700 may include communication medium 703 such as, but not limited to, digital and / or analog communication media (eg, fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).

[0128] The signal bearing medium 700 may be communicated by a wireless form of communication medium 703. The one or more program instructions may be, for example, computer executable instructions or logic implemented instructions.

[0129] In some examples, the configuration device of the interface object can be configured to provide various operations, functions, or actions in response to one or more program instructions through computer-readable medium 701, computer-recordable medium 702, and / or communication medium 703.

[0130] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0131] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0132] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0133] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0134] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes various media that can store program codes, such as-U disk, mobile hard disk, ROM, RAM, disk or CD.

[0135] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for configuring an interface object, characterized in that: The method comprises: Acquire object attribute information and interface information of a target interface, wherein the object attribute information includes at least one operation attribute, and the interface information includes a plurality of operation interfaces; Based on the object attribute information and the interface information of the target interface, the interface object of the target interface is configured, the configured interface object includes the at least one operation attribute, and one operation attribute corresponds to at least one operation interface among the multiple operation interfaces.

2. The method according to claim 1, characterized in that An operation attribute corresponds to an operation interface of an operation type.

3. The method according to claim 2, characterized in that The at least one operation attribute includes: a sending operation attribute and a receiving operation attribute, the sending operation attribute corresponds to an operation interface of an active operation type, and the receiving operation attribute corresponds to an operation interface of a passive operation type.

4. The method according to claim 2, characterized in that: One operation interface corresponds to one operation attribute value, and configuring the interface object of the target interface based on the object attribute information and the interface information of the target interface includes: Based on the operation attribute value corresponding to each operation interface and the operation types of the multiple operation interfaces, the operation attribute value of each operation attribute in the at least one operation attribute is set, and one operation attribute corresponds to at least one operation attribute value.

5. The method according to claim 2, characterized in that: An operation attribute corresponds to an operation parameter in an operation interface of an operation type, and the operation parameter is a parameter required for calling the operation interface.

6. The method according to claim 1, characterized in that The object attribute information also includes at least one of the following: basic attributes and state attributes, wherein the basic attributes are used to describe basic information of the interface object, and the state attributes are used to describe the state of the interface corresponding to the interface object.

7. The method according to claim 6, characterized in that The basic attributes include at least one of the following: an interface object identifier, basic information of the interface corresponding to the interface object, a type of the interface corresponding to the interface object, and connection attributes.

8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: Acquire an operation attribute update message, where the operation attribute update message is used to indicate updating of a target operation attribute in the at least one operation attribute; In response to the operation attribute update message, the operation interface corresponding to the target operation attribute is updated.

9. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: receiving an interface operation request, the interface operation request being used to request execution of a target operation on the target interface, the interface operation request including: an operation type of the target operation, a target operation event, and a target operation parameter; Determine a target attribute corresponding to the operation type of the target operation in the interface object of the target interface, and a target operation attribute value corresponding to the target operation event; The target attribute of the interface object of the target interface is set to the target operation attribute value and the target operation parameter.

10. A device for configuring an interface object, characterized in that: The device comprises: An acquisition module, used to acquire object attribute information and interface information of a target interface, wherein the object attribute information includes at least one operation attribute, and the interface information includes a plurality of operation interfaces; A processing module is used to configure the interface object of the target interface based on the object attribute information and the interface information of the target interface, the configured interface object includes the at least one operation attribute, and one operation attribute corresponds to at least one operation interface among the multiple operation interfaces.

11. A device for configuring an interface object, characterized in that: include: Processor and memory; The processor is coupled to the memory; The memory is used to store one or more programs, and one or more of the programs include computer-executable instructions. When the configuration device of the interface object is running, the processor executes the computer-executable instructions stored in the memory to enable the configuration device of the interface object to perform the method as described in any one of claims 1-9.

12. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When a computer executes the instruction, the computer performs the method according to any one of claims 1 to 9.

13. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device, the computing device is caused to perform the method according to any one of claims 1 to 9.