Metadata-based parameter configuration method and device, equipment, medium and product

Through the parameter configuration method based on metadata, the parameter template is used to generate the system configuration template, which solves the problem of high professionalism and time-consuming and labor-intensive system parameter configuration in the existing technology, and realizes the visual presentation and flexibility improvement of the system configuration.

CN118796304APending Publication Date: 2024-10-18GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410803180.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing system parameter configuration method is highly professional, time-consuming and labor-intensive, and cannot meet the flexibility and efficiency needs of users without programming experience.

Method used

Using a parameter configuration method based on metadata, visual configuration of system parameters is achieved by displaying the parameter editing interface of the target system configuration items and using parameter templates to generate configuration templates corresponding to the target system configuration items.

Benefits of technology

It improves the flexibility and efficiency of system configuration, reduces the complexity of user operations, has wider applicability, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796304A_ABST
    Figure CN118796304A_ABST
Patent Text Reader

Abstract

The invention discloses a metadata-based parameter configuration method and device, equipment, a medium and a product. The method comprises the steps of displaying a parameter editing interface in response to an interface display operation for a target system configuration item; the parameter editing interface is generated based on a parameter template corresponding to the target system configuration item; the parameter editing interface at least comprises a parameter value editing control corresponding to at least one parameter; aiming at at least one parameter value editing control, in response to a parameter value editing operation aiming at the parameter value editing control, determining a parameter value corresponding to the parameter; and in response to the configuration template generation request, generating a target system configuration template corresponding to the target system configuration item according to the edited parameter value in the parameter editing interface and the parameter template, so as to perform parameter configuration on the target system configuration item based on the target system configuration template. According to the technical scheme, the effect of visually presenting the system configuration process according to the parameter template is achieved, and the flexibility and universality of system configuration are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a parameter configuration method, device, equipment, medium and product based on metadata. Background Art

[0002] A system needs to use a set of parameters configured by the user, or the system needs to add new user-configured parameters to ensure the flexibility, scalability and robustness of the system.

[0003] In the related art, each time the system performs parameter configuration, it is implemented by the developer writing the corresponding parameter configuration page, saving the parameters to the configuration file or database, and reading the function code of the parameter value when using the parameter value. The parameter configuration can only be performed after the code is written. This system parameter configuration method requires high professionalism from the user. For users without programming experience, it takes a long time to learn before they can understand the parameter configuration process. There are certain professional limitations and it is time-consuming and laborious. Summary of the invention

[0004] The present invention provides a parameter configuration method, device, equipment, medium and product based on metadata to achieve the effect of visually presenting the system configuration process according to the parameter template, thereby improving the flexibility and universality of the system configuration and improving the system configuration efficiency.

[0005] According to one aspect of the present invention, a parameter configuration method based on metadata is provided, the method comprising:

[0006] In response to an interface display operation for a target system configuration item, a parameter editing interface corresponding to the target system configuration item is displayed; wherein the parameter editing interface is generated based on a parameter template corresponding to the target system configuration item; the parameter template is used to characterize parameters required to configure the target system configuration item; the parameter editing interface at least includes a parameter value editing control corresponding to at least one parameter associated with the target system configuration item;

[0007] For at least one parameter value editing control, in response to a parameter value editing operation on the parameter value editing control, determining a parameter value corresponding to the parameter;

[0008] In response to a configuration template generation request, a target system configuration template corresponding to the target system configuration item is generated according to the parameter value edited in the parameter editing interface and the parameter template, so as to perform parameter configuration on the target system configuration item based on the target system configuration template.

[0009] According to another aspect of the present invention, there is provided a parameter configuration device based on metadata, the device comprising:

[0010] An interface display module, configured to display a parameter editing interface corresponding to the target system configuration item in response to an interface display operation for the target system configuration item; wherein the parameter editing interface is generated based on a parameter template corresponding to the target system configuration item; the parameter template is used to characterize the parameters required to configure the target system configuration item; the parameter editing interface at least includes a parameter value editing control corresponding to at least one parameter associated with the target system configuration item;

[0011] A parameter value editing module, configured to determine, for at least one parameter value editing control, a parameter value corresponding to the parameter in response to a parameter value editing operation on the parameter value editing control;

[0012] A configuration template generation module is used to respond to a configuration template generation request, generate a target system configuration template corresponding to the target system configuration item according to the parameter value edited in the parameter editing interface and the parameter template, so as to perform parameter configuration on the target system configuration item based on the target system configuration template.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the metadata-based parameter configuration method described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the metadata-based parameter configuration method described in any embodiment of the present invention when executed.

[0018] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the parameter configuration method based on metadata according to any embodiment of the present invention is implemented.

[0019] The technical solution of the embodiment of the present invention displays a parameter editing interface corresponding to the target system configuration item in response to an interface display operation for the target system configuration item, wherein the parameter configuration interface at least includes a parameter value editing control corresponding to at least one parameter associated with the target system configuration item, and further, for at least one parameter value editing control, in response to the parameter value editing operation on the parameter value editing control, a parameter value corresponding to the parameter is determined; in response to a configuration template generation request, a target system configuration template corresponding to the target system configuration item is generated according to the edited parameter value and parameter template in the parameter editing interface, so as to perform parameter configuration on the target system configuration item based on the target system configuration template, thereby solving the technical problems in the related art that the professional requirements for system configuration are high and time-consuming and labor-intensive, realizes the visual presentation of the system configuration process, and can be realized through simple interactive operations, so as to have wider applicability, and by adopting a preset parameter template for system configuration, the flexibility of the system configuration process is improved, the efficiency of the system configuration is improved, and the user experience is improved.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 is a flowchart of a parameter configuration method based on metadata provided according to Embodiment 1 of the present invention;

[0023] Figure 2 is a flowchart of a parameter configuration method based on metadata provided according to Embodiment 2 of the present invention;

[0024] Figure 3 is a flowchart of a parameter configuration method based on metadata provided according to Embodiment 3 of the present invention;

[0025] Figure 4 This is a schematic diagram of the effect of the template configuration interface provided by the third embodiment of the present invention;

[0026] Figure 5 This is a schematic diagram of the effect of the parameter attribute editing panel provided in the third embodiment of the present invention;

[0027] Figure 6is a schematic structural diagram of a parameter configuration device based on metadata provided according to a fourth embodiment of the present invention;

[0028] Figure 7 It is a structural schematic diagram of an electronic device that implements the parameter configuration method based on metadata according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] Embodiment 1

[0032] Figure 1 This is a flowchart of a parameter configuration method based on metadata provided by the first embodiment of the present invention. This embodiment is applicable to the case of configuring system parameters. The method can be executed by a parameter configuration device based on metadata. The parameter configuration device based on metadata can be implemented in the form of hardware and / or software. The parameter configuration device based on metadata can be configured in a terminal and / or a server. Figure 1 As shown, the method includes:

[0033] S110. In response to an interface display operation for a target system configuration item, display a parameter editing interface corresponding to the target system configuration item; wherein the parameter editing interface includes a parameter value editing control corresponding to at least one parameter associated with the target system configuration item.

[0034] Among them, the target system configuration item can be understood as an interactive entry for setting the functional configuration related to the system. The target system configuration item can be understood as an interactive entry for editing the parameter value of at least one parameter associated with the functional configuration related to the system. The target system configuration item corresponds to a functional configuration in the system. Exemplarily, assuming that a material network system needs to collect device data using TCP to provide services, the system needs to configure the TCP service IP address and port, data collection cycle and other parameters of the relevant equipment. At this time, the parameter value editing of parameters such as the TCP service IP address, port and data collection cycle can be used as a target system configuration item, that is, the target system configuration item can be used to edit the parameter values ​​of parameters such as the TCP service IP address, port and data collection cycle, so that the system can realize the function of collecting device data using TCP to provide services. The interface display operation can be understood as an interactive operation for displaying the corresponding interface. In this embodiment, a control for triggering the display of the parameter configuration interface can be pre-set, or a section of instructions for triggering the display of the parameter configuration interface can be pre-set. During the application process, when it is detected that the user triggers the control, or when the instruction is received, the interface display operation can be responded to, and the parameter editing interface corresponding to the target system configuration item can be displayed. Alternatively, another implementation method may be: displaying a system configuration interface, wherein the system configuration interface includes at least one candidate system configuration item; responding to a selection trigger operation input for a candidate system configuration item, and using the selected candidate system configuration item as a target system configuration item. Furthermore, a parameter editing interface corresponding to the target system configuration item may be displayed. Optionally, the selection trigger operation may be a click operation (including a single click operation or multiple click operations). Alternatively, in order to facilitate user operation, the selection trigger operation may also be that when it is detected that the user's pause time on the candidate system configuration item based on the input device or the touch point reaches a preset time, the candidate system configuration item may be used as the target system configuration item, and the parameter editing interface corresponding to the target system configuration item may be displayed.

[0035] Among them, the parameter editing interface can be understood as a visual editing interface that supports users to edit parameter values ​​of various parameters displayed in the interface. The parameter editing interface includes at least a parameter value editing control corresponding to at least one parameter associated with the target system configuration item. The parameter value editing control can be understood as an interactive entry for editing the parameter value of the corresponding parameter. The parameter value editing control can be used to edit the parameter value of the corresponding parameter. In this embodiment, the parameter value editing control can correspond to the parameter type of the corresponding parameter. It can be understood that the parameter type can include simple types, array types, and enumeration types. Exemplarily, when the parameter type of the parameter is a simple type, the corresponding parameter value editing control can be an input box; when the parameter type of the parameter is an array type, the corresponding parameter value editing control can include a display control for the current parameter value, a parameter value addition control, a parameter value deletion control, and a parameter value editing control; when the parameter type of the parameter is an enumeration type, the corresponding parameter value editing control can be a drop-down box.

[0036] In this embodiment, the parameter configuration interface is generated based on the parameter template corresponding to the target system configuration item. The parameter template can be used to characterize the parameters required to configure the target system configuration item. In other words, the parameter template may include at least one parameter associated with the target system configuration item, and the parameter value corresponding to each parameter is a null value. Optionally, the parameter template may be a template pre-set by a developer, or a template customized by a user based on system configuration requirements, which is not specifically limited in this embodiment. It should be noted that the essence of the parameter template is the data used to describe the parameters, that is, the parameter template may be the metadata of the parameters. Furthermore, this embodiment may be an application that introduces metadata into the system parameter configuration. The advantage of such a setting is that any parameter used by the system can be described based on the parameter template, so that the parameter template has a wider applicability in the system parameter configuration process.

[0037] As an optional implementation of this embodiment, when a selection trigger operation for any candidate system configuration item is detected, the candidate system configuration item can be used as a target system configuration item, and the selection trigger operation can be used as an interface display operation for the target system configuration item input. Further, in response to the interface display operation, a parameter editing interface is generated based on a parameter template corresponding to the target system configuration item, and the generated parameter editing interface is displayed.

[0038] S120. For at least one parameter value editing control, in response to a parameter value editing operation input into the parameter value editing control, determine a parameter value corresponding to the parameter.

[0039] The parameter value editing operation can be understood as an operation of editing the corresponding parameter value based on the corresponding parameter value editing control. Optionally, the parameter value editing operation can include a parameter value input operation, a parameter value addition operation, a parameter value deletion operation, a parameter value modification operation and / or a parameter value selection operation. The parameter value can be a specific value of the corresponding parameter.

[0040] In this embodiment, the parameter value editing controls corresponding to parameters of different parameter types are different, and thus, the parameter value editing methods for the corresponding parameters are also different. The corresponding parameter value editing methods under different parameter types can be described below:

[0041] Optionally, the parameter type includes a simple type, and the parameter value editing control includes a parameter value input control; in response to a parameter value editing operation on the parameter value editing control, determining a parameter value corresponding to the parameter, including: in response to a parameter value input operation on the parameter value input control, displaying the input parameter value based on the parameter value input control; in response to an editing completion instruction, using the parameter value displayed by the parameter value input control as the parameter value corresponding to the parameter.

[0042] The parameter value input control may be any control that can support parameter value input operations and parameter value display. Optionally, the parameter value input control may be an input box.

[0043] Optionally, the parameter type includes an array type, and the parameter value editing control includes at least a current parameter value display control and a parameter value adding control; in response to a parameter value editing operation on the parameter value editing control, determining a parameter value corresponding to the parameter, including: in response to a control trigger operation on the parameter value adding control, displaying a parameter value editing panel, wherein the parameter value editing panel includes a parameter value input box; in response to a parameter value input operation on the parameter value input box, displaying the input parameter value in the parameter value input box; in response to an input completion instruction, displaying the input parameter value based on the current parameter value display control; in response to an editing completion instruction, using the parameter value displayed in the current parameter value display control as the parameter value corresponding to the parameter.

[0044] Optionally, the parameter type includes an enumeration type, and the parameter value editing control includes a parameter value display control; in response to a parameter value editing operation on the parameter value editing control, a parameter value corresponding to the parameter is determined, including: in response to a display trigger operation on the parameter value display control, at least one candidate parameter value corresponding to the parameter is displayed; in response to a parameter value selection trigger operation on the candidate parameter value, the selected candidate parameter value is used as the parameter value corresponding to the parameter.

[0045] S130. In response to a configuration template generation request, a target system configuration template corresponding to the target system configuration item is generated according to the edited parameter value and parameter template in the parameter editing interface, so as to perform parameter configuration on the target system configuration item based on the target system configuration template.

[0046] Among them, the configuration template generation request can be understood as a request message sent by the client to the server, which is used to request the server to generate a configuration template with filled parameter values ​​based on the edited parameter values ​​and parameter templates in the parameter editing interface. Optionally, the configuration template generation request can be generated based on at least one of the following operations: triggering a template generation control; receiving a template generation operation instruction; the received audio information includes a wake-up word corresponding to the template generation operation, etc. The target system configuration template can be understood as a template generated after the parameter value has been filled into the parameter value field of the corresponding parameter. The target system configuration template can be an instantiated parameter template.

[0047] As an optional implementation of this embodiment, after the parameter value is edited, when a trigger operation for the template generation control is detected, a configuration template generation instruction can be generated. Then, the configuration template generation request is responded to, and a target system configuration template corresponding to the target system configuration item is generated according to the edited parameter value and parameter template in the parameter editing interface.

[0048] Optionally, a target system configuration template corresponding to the target system configuration item is generated according to the edited parameter values ​​and parameter templates in the parameter editing interface, including: determining a configuration template to be processed according to the edited parameter values ​​and parameter templates; and serializing the configuration template to be processed according to a preset data format to obtain the target system configuration template.

[0049] The preset data format may be any data format. Optionally, the preset data format may include JSON or XML.

[0050] As an optional implementation of this embodiment, the edited parameter value can be filled into the parameter template, and the filled parameter template is used as the configuration template to be processed. Furthermore, in order to facilitate the use of the configuration template during network transmission, storage, or data exchange with other systems, the configuration template to be processed can be serialized according to a preset data format, and the template obtained after serialization is used as the target system configuration template.

[0051] In this embodiment, after obtaining the target system configuration template, the method further includes: in response to a save trigger operation on the target system configuration template, saving the target system configuration template to a preset storage space.

[0052] Among them, the save trigger operation can be understood as an operation to save the corresponding configuration template after being triggered. Optionally, the save trigger operation may include at least one of the following operations: triggering a preset save control; receiving an input save trigger instruction; the received audio information includes a wake-up word corresponding to the save trigger operation, etc. The preset storage space can be a storage space that supports the storage system configuration template. Optionally, the preset storage space can be a database in the server or a storage space of an external device, etc.

[0053] As an optional implementation of this embodiment, a save control may be pre-set. Further, when a trigger operation for the save control is detected, it can be determined that a save trigger operation for the target system configuration template is detected. Further, the save trigger operation is responded to, and the target system configuration template is stored in a preset storage space.

[0054] In this embodiment, after the target system configuration template is obtained, parameter configuration of the target system configuration items may be performed based on the parameter values ​​included in the target system configuration template.

[0055] Optionally, parameter configuration of the target system configuration item is performed based on the target system configuration template, including: obtaining a parameter value of at least one parameter associated with the target system configuration item based on the target system configuration template; for at least one parameter, converting the parameter value according to a preset parameter value type corresponding to the parameter to obtain a target parameter value corresponding to the parameter; and parameter configuration of the target system configuration item based on the target parameter value corresponding to the at least one parameter.

[0056] It can be understood that the preset parameter value type may include an integer type, a floating point type, a string type, a Boolean value type, and the like.

[0057] In this embodiment, the target system configuration template may be parsed to obtain the parameter value of at least one parameter associated with the target system configuration item included in the target system configuration template. Further, in order to enable the obtained parameter value to be applied to the system parameter configuration process, for at least one parameter, the obtained parameter value is type-converted according to the preset parameter value type corresponding to the parameter, and the parameter value obtained after the conversion is used as the target parameter value. Furthermore, the target system configuration item may be parameter-configured based on the target parameter value corresponding to the at least one parameter.

[0058] The technical solution of the embodiment of the present invention displays a parameter editing interface corresponding to the target system configuration item in response to an interface display operation for the target system configuration item, wherein the parameter configuration interface at least includes a parameter value editing control corresponding to at least one parameter associated with the target system configuration item, and further, for at least one parameter value editing control, in response to the parameter value editing operation on the parameter value editing control, a parameter value corresponding to the parameter is determined; in response to a configuration template generation request, a target system configuration template corresponding to the target system configuration item is generated according to the edited parameter value and parameter template in the parameter editing interface, so as to perform parameter configuration on the target system configuration item based on the target system configuration template, thereby solving the technical problems in the related art that the professional requirements for system configuration are high and time-consuming and labor-intensive, realizes the visual presentation of the system configuration process, and can be realized through simple interactive operations, so as to have wider applicability, and by adopting a preset parameter template for system configuration, the flexibility of the system configuration process is improved, the efficiency of the system configuration is improved, and the user experience is improved.

[0059] Embodiment 2

[0060] Figure 2 This is a flowchart of a parameter configuration method based on metadata provided in the second embodiment of the present invention. Based on the above embodiment, a parameter template corresponding to the target system configuration item is retrieved. Then, a parameter configuration interface corresponding to the target system configuration item is generated and displayed based on the parameter template. For its specific implementation, please refer to the technical solution of this embodiment. Among them, the technical terms that are the same or similar to those in the above embodiment are not repeated here.

[0061] like Figure 2 As shown, the method includes:

[0062] S210: In response to an interface display operation for a target system configuration item, a pre-stored parameter template corresponding to the target system configuration item is retrieved based on a template identifier corresponding to the target system configuration item.

[0063] Among them, the template identifier can be understood as information used to identify the corresponding parameter template. Optionally, the template identifier can be a string consisting of one or more characters. It should be noted that the template identifier can be a template identifier set by the user; or, it can also be a template identifier automatically and randomly generated by the system, which is not specifically limited in this embodiment. The parameter template can be composed of a parameter attribute array based on at least one parameter associated with the target system configuration item. Among them, the parameter attribute array can be understood as a structure for describing parameters. Optionally, the parameter attribute array can include at least a parameter name, a parameter alias, a parameter type, and a parameter value type. The parameter alias can be a parameter name written in the local language of the system. Exemplarily, the parameter alias can be the Chinese name of the parameter.

[0064] In this embodiment, when an interface display operation corresponding to a target system configuration item is detected, the template identifier corresponding to the target system configuration item can be determined in response to the interface display operation, and the parameter template corresponding to the target system configuration item can be determined and retrieved from a plurality of pre-stored parameter templates based on the template identifier.

[0065] S220: Generate a parameter configuration interface corresponding to the target system configuration item based on the parameter template, and display the parameter configuration interface.

[0066] In this embodiment, after obtaining the parameter template, the parameter template may be parsed, and then the content included in the parameter configuration interface may be determined according to the parsing result, and the parameter configuration interface may be generated for display.

[0067] Optionally, a parameter configuration interface corresponding to a target system configuration item is generated based on a parameter template, including: obtaining at least one parameter attribute array included in the parameter template; the parameter attribute array includes at least a parameter name and a parameter type; for at least one parameter attribute array, determining a parameter value editing control corresponding to the parameter based on the parameter type in the parameter attribute array; and generating the parameter configuration interface based on the parameter value editing control and parameter name corresponding to at least one parameter.

[0068] The parameter attribute array is used to describe multiple attributes of the corresponding parameter. Optionally, the parameter attribute array may include parameter name, parameter type, parameter value type, and enumeration value items.

[0069] As an optional implementation of this embodiment, the parameter template may be parsed to obtain at least one parameter attribute array included in the parameter template according to the parsing result. Furthermore, the parameter value editing methods corresponding to different parameter types may be different, and then, for at least one parameter attribute array, the parameter value editing control corresponding to the parameter may be determined according to the parameter type in the parameter attribute array. Furthermore, in order to enable the user to clearly and intuitively browse the currently edited parameter, a parameter configuration interface may be generated based on the parameter value editing control and parameter name corresponding to at least one parameter, so that the parameter value editing control and parameter name corresponding to at least one parameter are displayed in the parameter configuration interface.

[0070] S230. For at least one parameter value editing control, in response to a parameter value editing operation on the parameter value editing control, determine a parameter value corresponding to the parameter.

[0071] S240. In response to the configuration template generation request, a target system configuration template corresponding to the target system configuration item is generated according to the edited parameter value and parameter template in the parameter editing interface, so as to perform parameter configuration on the target system configuration item based on the target system configuration template.

[0072] The technical solution of the embodiment of the present invention, by responding to the interface display operation for the target system configuration item, calls up the pre-stored parameter template corresponding to the target system configuration item according to the template identifier corresponding to the target system configuration item, further generates the parameter configuration interface corresponding to the target system configuration item based on the parameter template, and displays the parameter configuration interface, thereby achieving the effect of automatically generating the parameter configuration interface according to the parameter template, simplifying the generation process of the parameter configuration interface, and thereby improving the flexibility of the system configuration process.

[0073] Embodiment 3

[0074] Figure 3 This is a parameter configuration method based on metadata provided by the third embodiment of the present invention. On the basis of the above embodiments, a parameter template corresponding to the target system configuration item can be pre-set, and then a parameter editing interface can be generated based on the parameter template. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or similar to the above embodiments are not repeated here.

[0075] like Figure 3 As shown, the method includes:

[0076] S310, displaying a template configuration interface; wherein the template configuration interface at least includes a parameter property editing control.

[0077] The template configuration interface can be understood as a visual configuration interface that supports users to edit and configure parameter templates. The parameter attribute editing control can be understood as an interactive operation entry for editing parameter attributes. In this embodiment, the template configuration interface can also include a template name editing control. The template name editing control is used to edit the template name of the parameter template.

[0078] As an optional implementation of this embodiment, a template configuration control may be pre-set. Then, when a trigger operation for the template configuration control is detected, the trigger operation may be responded to and the template configuration interface may be displayed. Figure 4 This is a schematic diagram of the effect of the template configuration interface provided by this embodiment. Figure 4 As shown, the template configuration interface includes a parameter property editing control 41 , a template name editing control 42 and a template alias editing control 43 .

[0079] It can be understood that parameter attributes may include parameter name, parameter type, parameter value type and enumeration value item (which may include enumeration value name and enumeration value), etc. Optionally, the parameter attribute editing control may include parameter name configuration control, parameter type configuration control, parameter value type configuration control and enumeration value item configuration control, etc.

[0080] S320. In response to an edit trigger operation on a parameter property editing control, a parameter property editing panel is displayed; wherein the parameter property editing panel includes a plurality of parameter property editing items.

[0081] Among them, the parameter attribute editing panel can be understood as an interface for editing specific attribute information. The parameter attribute editing item is used to edit the corresponding parameter attribute. It can be understood that the parameter attribute may include a parameter name, a parameter type, a parameter value type, and an enumeration value item (which may include an enumeration value name and an enumeration value), etc. Optionally, the parameter attribute editing item may include a parameter name editing item, a parameter type editing item, a parameter value type editing item, and an enumeration value item editing item, etc.

[0082] As an optional implementation of this embodiment, when an edit trigger operation for a parameter attribute editing control is detected, the edit trigger operation can be responded to and a parameter attribute editing panel including multiple parameter attribute editing items can be displayed. Figure 5 This is a schematic diagram of the effect of the parameter attribute editing panel provided in this embodiment. Figure 5 As shown, the parameter property editing panel includes a parameter name editing item, a parameter alias editing item, a parameter type editing item, a parameter value type editing item, an enumeration value item editing item, a cancel control, and a confirmation control.

[0083] S330: In response to the property editing operation for at least one parameter property editing item, determine the parameter property corresponding to the parameter, and display the parameter property in the property display area in the template configuration interface.

[0084] The attribute editing operation can be understood as an operation of editing the attributes of a parameter. Optionally, the attribute editing operation can include a parameter attribute selection operation and a parameter attribute input operation. The attribute display area can be any area in the template configuration interface, and optionally, can be the bottom area of ​​the interface. For example, see again Figure 4 , Figure 4 The middle area 44 is the attribute display area, which is used to display the parameter name, parameter name, parameter type, parameter value type and enumeration value item corresponding to the parameter.

[0085] In this embodiment, a property editing operation can be input for at least one parameter property editing item among the multiple parameter property editing items displayed in the parameter property editing panel. Furthermore, in the case where a property editing operation for a parameter property editing item is detected, the property editing operation can be responded to, and the edited parameter property is displayed in the corresponding parameter property editing item. Further, in the case where a click trigger operation for an edit completion control (e.g., a confirmation control) is detected, the parameter property corresponding to the parameter is determined based on the edited parameter property in the parameter property editing panel, and the parameter property is displayed in the property display area in the template configuration interface.

[0086] Exemplarily, the parameter attribute editing item includes a parameter name editing item, and a name input operation can be input for the parameter name editing item, and the input name is used as the parameter name of the corresponding parameter. The parameter attribute editing item includes a parameter type editing item, and a type display trigger operation can be input for the parameter type editing item. In response to the type display trigger operation, at least one candidate parameter type is displayed. Furthermore, when a selection trigger operation for any candidate parameter type is detected, the selected candidate parameter type can be used as the parameter type of the corresponding parameter.

[0087] S340. In response to a template generation request, a parameter attribute array corresponding to at least one parameter associated with a target system configuration item is generated based on a parameter attribute corresponding to at least one parameter displayed in a template configuration interface, a parameter template is constructed based on the parameter attribute array corresponding to the at least one parameter, and the parameter template is associated with a preset template identifier and stored.

[0088] Among them, the template generation request can be understood as a request message sent by the client to the server, which is used to request the server to generate a parameter template based on a parameter attribute array corresponding to at least one parameter. Optionally, the template generation request can be generated based on at least one of the following operations: triggering a template generation control or an edit completion control; receiving a template generation operation instruction; the received audio information includes a wake-up word corresponding to the template generation operation, etc.

[0089] As an optional implementation of this embodiment, when a trigger operation for a template generation control is detected, a template generation request can be generated. Then, a response is made to the template generation request, and the parameter attributes corresponding to at least one parameter displayed in the template configuration interface are processed according to a preset data format to obtain a parameter attribute array corresponding to at least one parameter. Further, a parameter template to be processed can be constructed based on at least one parameter attribute array. Further, in order to facilitate the use of parameter templates in network transmission, storage, or data exchange with other systems, the parameter template to be processed can be serialized according to a preset data format, and the template obtained after serialization is used as a parameter template, and the parameter template is associated with a preset template identifier and stored in a preset storage space. Among them, the preset data format can be any data format. Optionally, the preset data format can include JSON or XML.

[0090] S350. In response to an interface display operation for a target system configuration item, a parameter editing interface corresponding to the target system configuration item is displayed; wherein the parameter editing interface is generated based on a parameter template corresponding to the target system configuration item; and the parameter editing interface includes at least a parameter value editing control corresponding to at least one parameter associated with the target system configuration item.

[0091] S360. For at least one parameter value editing control, in response to a parameter value editing operation on the parameter value editing control, determine a parameter value corresponding to the parameter.

[0092] S370. In response to the configuration template generation request, a target system configuration template corresponding to the target system configuration item is generated according to the edited parameter value and parameter template in the parameter editing interface, so as to perform parameter configuration on the target system configuration item based on the target system configuration template.

[0093] The technical solution of the embodiment of the present invention is to display a template configuration interface; wherein the template configuration interface includes at least a parameter attribute editing control; in response to an edit trigger operation on the parameter attribute editing control, determine a parameter attribute array corresponding to at least one parameter associated with a target system configuration item; in response to a template generation request, generate a parameter template based on the parameter attribute array corresponding to at least one parameter, and store the parameter template in association with a preset template identifier, thereby achieving an effect of visually presenting the generation process of the parameter template, and achieving an effect of users customizing the parameter template required for the system configuration, thereby enhancing the flexibility of the system configuration process.

[0094] Embodiment 4

[0095] Figure 6 Schematic diagram of a metadata-based parameter management device provided by Embodiment 4 of the present invention. Figure 6As shown, the device includes: an interface display module 410, a parameter value editing module 420 and a configuration template generating module 430.

[0096] Among them, the interface display module 410 is used to display a parameter editing interface corresponding to the target system configuration item in response to an interface display operation for the target system configuration item; wherein the parameter editing interface is generated based on a parameter template corresponding to the target system configuration item; the parameter template is used to characterize the parameters required to configure the target system configuration item; the parameter editing interface includes at least a parameter value editing control corresponding to at least one parameter associated with the target system configuration item; the parameter value editing module 420 is used to determine, for at least one parameter value editing control, a parameter value corresponding to the parameter in response to a parameter value editing operation for the parameter value editing control; the configuration template generation module 430 is used to generate a target system configuration template corresponding to the target system configuration item according to the parameter value edited in the parameter editing interface and the parameter template in response to a configuration template generation request, so as to perform parameter configuration for the target system configuration item based on the target system configuration template.

[0097] The technical solution of the embodiment of the present invention is to display a parameter editing interface corresponding to the target system configuration item in response to an interface display operation on the target system configuration item through an interface display module 410, wherein the parameter configuration interface at least includes a parameter value editing control corresponding to at least one parameter associated with the target system configuration item. Further, the parameter value editing module 420 determines a parameter value corresponding to the parameter for at least one parameter value editing control in response to a parameter value editing operation on the parameter value editing control. Further, the configuration template generation module 430 generates a target system configuration template corresponding to the target system configuration item according to the edited parameter value and parameter template in the parameter editing interface in response to a configuration template generation request, so as to perform parameter configuration on the target system configuration item based on the target system configuration template. This solves the technical problem in the related art that the professional requirements for system configuration are high and time-consuming and labor-intensive, realizes the visual presentation of the system configuration process, and can be realized through simple interactive operations, so as to have wider applicability. Moreover, by adopting a preset parameter template for system configuration, the flexibility of the system configuration process is improved, the efficiency of system configuration is improved, and the user experience is improved.

[0098] Optionally, the interface display module 410 includes: a template calling unit and an interface generating unit.

[0099] A template retrieving unit, configured to retrieve a pre-stored parameter template corresponding to the target system configuration item according to a template identifier corresponding to the target system configuration item;

[0100] An interface generation unit is used to generate a parameter configuration interface corresponding to the target system configuration item based on the parameter template, and display the parameter configuration interface.

[0101] Optionally, the interface generation unit includes: a parameter attribute array acquisition subunit, an edit control determination subunit and an interface generation subunit.

[0102] A parameter attribute array acquisition subunit is used to acquire a parameter attribute array of at least one parameter included in the parameter template; wherein the parameter attribute array is used to describe the parameter attributes possessed by the parameter; the parameter attribute array at least includes a parameter name and a parameter type;

[0103] An edit control determination subunit, configured to determine, for at least one parameter attribute array, a parameter value edit control corresponding to the parameter based on a parameter type in the parameter attribute array;

[0104] The interface generation subunit is used to generate a parameter configuration interface based on a parameter value editing control and a parameter name corresponding to at least one of the parameters.

[0105] Optionally, the device further includes: an interface display module, an editing panel display module, a parameter attribute editing template and a parameter template generation module.

[0106] An interface display module, used to display a template configuration interface; wherein the template configuration interface at least includes a parameter attribute editing control;

[0107] An editing panel display module, used to display a parameter attribute editing panel in response to an editing trigger operation on the parameter attribute editing control; wherein the parameter attribute editing panel includes a plurality of parameter attribute editing items;

[0108] a parameter attribute editing template, for determining a parameter attribute corresponding to a parameter in response to an attribute editing operation for at least one of the parameter attribute editing items, and displaying the parameter attribute in an attribute display area in the template configuration interface;

[0109] A parameter template generation module is used to respond to a template generation request, generate a parameter attribute array corresponding to at least one parameter displayed in the template configuration interface based on the parameter attributes corresponding to the at least one parameter, determine a parameter template based on the parameter attribute array corresponding to the at least one parameter, and store the parameter template in association with a preset template identifier.

[0110] Optionally, the configuration template generation module 430 includes: a parameter value writing unit and a template serialization unit.

[0111] A parameter value writing unit, used for writing the edited parameter value into the parameter template to obtain a configuration template to be processed;

[0112] The template serialization unit is used to serialize the configuration template to be processed according to a preset data format to obtain a target system configuration template.

[0113] Optionally, the configuration template generation module 430 further includes: a parameter value acquisition unit, a parameter value type conversion unit and a parameter configuration unit.

[0114] a parameter value acquiring unit, configured to acquire a parameter value of at least one parameter associated with the target system configuration item based on the target system configuration template;

[0115] a parameter value type conversion unit, configured to perform type conversion on the at least one parameter according to a preset parameter value type corresponding to the parameter, so as to obtain a target parameter value corresponding to the parameter;

[0116] A parameter configuration unit is used to perform parameter configuration on the target system configuration item based on a target parameter value corresponding to the at least one parameter.

[0117] Optionally, the device further includes: a template saving module.

[0118] The template saving module is used to save the target system configuration template to a preset storage space in response to a save trigger operation on the target system configuration template.

[0119] The metadata-based parameter configuration device provided in the embodiment of the present invention can execute the metadata-based parameter configuration method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0120] Embodiment 5

[0121] Figure 7 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0122] like Figure 7As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0123] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0124] The processor 11 may be a variety of general and / or dedicated processing controls with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a parameter configuration method based on metadata.

[0125] In some embodiments, the parameter configuration method based on metadata may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the parameter configuration method based on metadata described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the parameter configuration method based on metadata in any other appropriate manner (e.g., by means of firmware).

[0126] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0127] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0128] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0129] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0130] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0131] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0132] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0133] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A parameter configuration method based on metadata, It is characterized in that include: In response to an interface display operation for a target system configuration item, a parameter editing interface corresponding to the target system configuration item is displayed; wherein the parameter editing interface is generated based on a parameter template corresponding to the target system configuration item; the parameter template is used to characterize parameters required to configure the target system configuration item; the parameter editing interface at least includes a parameter value editing control corresponding to at least one parameter associated with the target system configuration item; For at least one parameter value editing control, in response to a parameter value editing operation on the parameter value editing control, determining a parameter value corresponding to the parameter; In response to a configuration template generation request, a target system configuration template corresponding to the target system configuration item is generated according to the parameter value edited in the parameter editing interface and the parameter template, so as to perform parameter configuration on the target system configuration item based on the target system configuration template.

2. The parameter configuration method based on metadata according to claim 1, It is characterized in that The displaying of the parameter editing interface corresponding to the target system configuration item includes: Retrieving a pre-stored parameter template corresponding to the target system configuration item according to the template identifier corresponding to the target system configuration item; A parameter configuration interface corresponding to the target system configuration item is generated based on the parameter template, and the parameter configuration interface is displayed.

3. The parameter configuration method based on metadata according to claim 2, It is characterized in that The generating a parameter configuration interface corresponding to the target system configuration item based on the parameter template includes: Obtaining a parameter attribute array of at least one parameter included in the parameter template; wherein the parameter attribute array is used to describe the parameter attributes possessed by the parameter; the parameter attribute array at least includes a parameter name and a parameter type; For at least one parameter attribute array, determining a parameter value editing control corresponding to the parameter based on a parameter type in the parameter attribute array; A parameter configuration interface is generated based on a parameter value editing control and a parameter name corresponding to at least one of the parameters.

4. The parameter configuration method based on metadata according to claim 1, It is characterized in that Also includes: Displaying a template configuration interface; wherein the template configuration interface at least includes a parameter attribute editing control; In response to an edit trigger operation on the parameter property editing control, a parameter property editing panel is displayed; wherein the parameter property editing panel includes a plurality of parameter property editing items; In response to an attribute editing operation for at least one of the parameter attribute editing items, determining a parameter attribute corresponding to the parameter, and displaying the parameter attribute in an attribute display area in the template configuration interface; In response to a template generation request, a parameter attribute array corresponding to at least one parameter displayed in the template configuration interface is generated based on the parameter attributes corresponding to the at least one parameter, a parameter template is determined based on the parameter attribute array corresponding to the at least one parameter, and the parameter template is associated with a preset template identifier and stored.

5. The parameter configuration method based on metadata according to claim 1, It is characterized in that The generating a target system configuration template corresponding to the target system configuration item according to the parameter value edited in the parameter editing interface and the parameter template comprises: Writing the edited parameter value into the parameter template to obtain a configuration template to be processed; The configuration template to be processed is serialized according to a preset data format to obtain a target system configuration template.

6. The parameter configuration method based on metadata according to claim 1, It is characterized in that The performing parameter configuration on the target system configuration item based on the target system configuration template includes: Acquire a parameter value of at least one parameter associated with the target system configuration item based on the target system configuration template; For the at least one parameter, type conversion is performed on the parameter value according to a preset parameter value type corresponding to the parameter to obtain a target parameter value corresponding to the parameter; Parameter configuration is performed on the target system configuration item based on the target parameter value corresponding to the at least one parameter.

7. The parameter configuration method based on metadata according to claim 1, It is characterized in that Also includes: In response to a save trigger operation on the target system configuration template, the target system configuration template is saved to a preset storage space.

8. A parameter configuration device based on metadata, It is characterized in that include: An interface display module, configured to display a parameter editing interface corresponding to the target system configuration item in response to an interface display operation for the target system configuration item; wherein the parameter editing interface is generated based on a parameter template corresponding to the target system configuration item; the parameter template is used to characterize the parameters required to configure the target system configuration item; the parameter editing interface at least includes a parameter value editing control corresponding to at least one parameter associated with the target system configuration item; A parameter value editing module, configured to determine, for at least one parameter value editing control, a parameter value corresponding to the parameter in response to a parameter value editing operation on the parameter value editing control; A configuration template generation module is used to respond to a configuration template generation request, generate a target system configuration template corresponding to the target system configuration item according to the parameter value edited in the parameter editing interface and the parameter template, so as to perform parameter configuration on the target system configuration item based on the target system configuration template.

9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the parameter configuration method based on metadata according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the metadata-based parameter configuration method described in any one of claims 1 to 7 when executed.

Citation Information

Cited By

  • Visual system configuration file generation method

    CN119781807A

  • Method for generating a visual system profile

    CN119781807B

  • Parameter management method and apparatus, computer device, storage medium and program product

    WO2026118678A1

  • Information processing apparatus and information processing method

    WO2026216169A1