Information configuration method and related equipment

Through a unified scenario table, configuration item table and configuration item value table structure, the complexity of configuration information storage in different scenarios is solved, and low-cost and high-scaling configuration management is realized.

CN119149124APending Publication Date: 2024-12-17MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411125296.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

When configuring information in different scenarios in the prior art, different configuration tables are needed for each scenario, resulting in high development costs and poor scalability.

Method used

The unified structure of the scene table, configuration item table and configuration item value table is adopted, and the target configuration table is determined through table identification to realize the storage and writing of configuration data for different scenarios, avoiding the development of new configuration tables and read and write functions.

Benefits of technology

It reduces configuration costs, improves the scalability of configuration information, and simplifies the processing of scenario changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119149124A_ABST
    Figure CN119149124A_ABST
Patent Text Reader

Abstract

The invention provides an information configuration method and related equipment, which can be used in the technical field of computer software. The method comprises the following steps: acquiring configuration information corresponding to a target scene, wherein the configuration information comprises a table identifier and configuration data; determining a plurality of configuration tables, the plurality of configuration tables including a scene table, a configuration item table and a configuration item value table, the scene table being used for storing scene information of a plurality of scenes, the configuration item table being used for storing configuration item information of a plurality of configuration items, and the configuration item value table being used for storing value information of the plurality of configuration items; and according to the table identifier in the configuration information, determining a target configuration table in the plurality of configuration tables, and writing the configuration data in the configuration information into the target configuration table. By adopting the embodiment of the invention, the configuration cost can be reduced, and the configuration expandability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer software technology, and in particular to an information configuration method and related equipment. Background Art

[0002] Configuration information is a commonly used information in the field of computer software technology, which can be used to describe the operation strategy of computer software, business display strategy, etc. Configuration information can be stored in a configuration file, a database, or a configuration center.

[0003] In different scenarios, the configuration items are usually different. For the configuration items stored in the database, you need to create a corresponding configuration table for each scenario to store the configuration items corresponding to the scenario. For different scenarios, the table structure of the configuration table is usually different to describe the configuration logic under the scenario. Summary of the invention

[0004] The present application provides an information configuration method and related equipment.

[0005] In a first aspect, the present application provides an information configuration method, comprising:

[0006] Obtaining configuration information corresponding to the target scenario, wherein the configuration information includes a table identifier and configuration data;

[0007] Determine multiple configuration tables, the multiple configuration tables including a scene table, a configuration item table and a configuration item value table, the scene table is used to store scene information of multiple scenes, the configuration item table is used to store configuration item information of multiple configuration items, and the configuration item value table is used to store value information of multiple configuration items; determine a target configuration table among the multiple configuration tables according to a table identifier in the configuration information, and write the configuration data in the configuration information into the target configuration table.

[0008] In a second aspect, the present application provides an information configuration device, comprising:

[0009] An information acquisition module is used to obtain configuration information corresponding to a target scene, wherein the configuration information includes a table identifier and configuration data; a configuration table determination module is used to determine multiple configuration tables, wherein the multiple configuration tables include a scene table, a configuration item table, and a configuration item value table, wherein the scene table is used to store scene information of multiple scenes, the configuration item table is used to store configuration item information of multiple configuration items, and the configuration item value table is used to store value information of multiple configuration items; a data writing module is used to determine a target configuration table from the multiple configuration tables according to the table identifier in the configuration information, and write the configuration data in the configuration information into the target configuration table.

[0010] In a third aspect, the present application provides an electronic device, including a memory and at least one processor;

[0011] Among them, the memory stores computer-executable instructions; at least one processor executes the computer-executable instructions stored in the memory, so that the electronic device implements the method of the first aspect mentioned above.

[0012] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.

[0013] In a fifth aspect, the present application provides a computer program product, comprising a computer program, which is used to implement the method of the first aspect when executed by a computer.

[0014] It can be seen that in the embodiment of the present application, a set of configuration tables can be sampled for different scenarios to store configuration information. First, the scene information of all scenes is stored in the scene table to define all scenes. Secondly, the configuration item information of all configuration items under all scenes is stored in the configuration item table to define all configuration items of all scenes. Finally, all value information of all configuration items of all scenes is stored in the configuration item value table. It can be understood that even if the scenes are different, the configuration items are different, and the configuration item values ​​are different, the structures of the scene table, the configuration item table, and the configuration item value table remain unchanged, and a set of unified configuration tables is realized. In this way, when adding a new scene, it is only necessary to determine the corresponding target configuration table according to the table identifier to realize the writing of configuration data. There is no need to add a new configuration table, and develop write and read functions for the configuration table. In this way, the configuration cost can be reduced and the configuration scalability can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0016] Figure 1 This is a configuration scenario example diagram provided by this application;

[0017] Figure 2 It is a schematic diagram of the relationship between a scenario and a configuration table provided in an embodiment of the present application;

[0018] Figure 3 It is a flowchart of the steps of an information configuration method provided by an embodiment of the present application;

[0019] Figure 4 It is a schematic diagram of text information provided by an embodiment of the present application;

[0020] Figure 5is a schematic diagram of the relationship between another scenario and a configuration table provided in an embodiment of the present application;

[0021] Figure 6 is a flowchart of another information configuration method provided by an embodiment of the present disclosure;

[0022] Figure 7 is a structural block diagram of an information configuration device provided in an embodiment of the present application;

[0023] Figure 8 It is a structural block diagram of an electronic device provided in an embodiment of the present application.

[0024] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0025] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0026] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0027] It should be noted that the information configuration method and related equipment of the present application can be used in the field of computer software technology, and can also be used in any field other than the field of computer software technology. The application field of the information configuration method and related equipment of the present application is not limited.

[0028] In the field of computer software technology, configuring software is a common implementation method. The configuration process is the process of generating and storing configuration information. Configuration information is used to describe some updateable related information of the software, for example, the startup timeout of the software, the interface display strategy of the software, etc. The configuration information is usually stored in the configuration table in the database in the form of data.

[0029] Figure 1This is a configuration scenario example diagram provided by this application. Figure 1 As shown, the user can enter configuration information in the configuration page, and the configuration information entered by the user is stored in the configuration center, or the database, or the configuration file. The configuration information includes the value information of at least one configuration item. The configuration center can be a device dedicated to storing and managing configuration information. The database is any type of database for storing configuration information, for example, SQL, MySQL, Oracle and other databases. There are many formats for configuration files, and the most common one is XML (Extensible Markup Language) file.

[0030] In some solutions for storing configuration information in a database, since the configuration items in different scenarios are completely different, different configuration tables need to be set for different scenarios to store the value information of the configuration items in the scenario. Figure 2 Schematic diagram of the relationship between a scenario and a configuration table provided in an embodiment of the present application. Figure 2 As shown, there are two scenarios A1 and A2, and the configuration items corresponding to the two scenarios are completely different. The configuration items of scenario A1 include two types: the type of application and the startup cycle, so it is necessary to set up a configuration table B1 to store the value information of the two configuration items corresponding to scenario A1. Specifically, the type of application and the startup cycle are stored as two fields of the configuration table B1, and multiple records can be stored in the configuration table B1, each record includes a value information of the type of application and a value information of the startup cycle. For scenario A2, its configuration items include three types: user type, user location and client type, so it is necessary to set up a configuration table B2 to store the value information of the three configuration items corresponding to scenario A2. Similarly, multiple records can also be stored in the configuration table B2, each record includes a value information of the user type, a value information of the user location and a value information of the client type. The corresponding value information in different records is not exactly the same.

[0031] Understandably, Figure 2 The above two scenarios are only examples. The embodiments of the present application do not limit the scenarios, the configuration items corresponding to the scenarios, the number of configuration tables, etc.

[0032] From the above solution, it can be seen that different configuration tables need to be set for different scenarios. In this way, when adding a new scenario, a new configuration table and the reading and writing functions for the configuration table need to be added. This may lead to high development costs and poor scalability.

[0033] In order to solve the above technical problems, an embodiment of the present application provides an information configuration method, in which three configuration tables are set: a scene table, a configuration item table, and a configuration item value table. Among them, the scene table is used to store the scene information of all scenes, and the scene information may include but is not limited to: a scene identifier and at least one scene attribute, and the scene information is used to describe and manage the scene. The configuration item table is used to store all configuration item information of all scenes, and the configuration item information may include but is not limited to: a configuration item identifier, a scene identifier of the scene to which the configuration item belongs, and a configuration item attribute, and the configuration item information is used to describe and manage the configuration items of the scene. The configuration item value table is used to store the value information of all configuration items of all scenes, and the value information of the configuration item includes but is not limited to: a configuration item identifier, a configuration item value, and a scene identifier of the scene to which the configuration item belongs. In this way, through the three configuration tables of the scene table, the configuration item table, and the configuration item value table, different configuration information of different scenes can be uniformly stored.

[0034] When adding a new scene, you first need to write the scene information of the new scene into the scene table; then, write the configuration item information of the new scene into the configuration item table to define the configuration items used in the new scene; finally, write the value information of the configuration items of the new scene into the configuration item value table. In other words, when adding a new scene, you only need to add the corresponding configuration information to the above three tables, and there is no need to add a new configuration table. And because the configuration table does not change, there is no need to develop new configuration table reading and writing functions, which can reduce development costs and improve the scalability of configuration information.

[0035] The information configuration method provided in the embodiment of the present application can be executed by an electronic device.

[0036] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0037] Figure 3 is a flowchart of a method for configuring information provided by an embodiment of the present application. Figure 3 As shown, the information configuration method of the present application may include:

[0038] S101: Acquire configuration information corresponding to a target scenario, where the configuration information includes a table identifier and configuration data.

[0039] The target scene is any scene in which the configuration information is changed, and may be a newly added scene or a configured scene that has not been configured. Correspondingly, the configuration information is the configuration information in which the target scene is changed. When the target scene is a newly added scene, the configuration information is all the newly added configuration information of the newly added scene; when the target scene is a configured scene, the configuration information may be part or all of the configuration information in the configured scene that needs to be changed.

[0040] It should be noted that, in actual applications, the configuration information corresponding to the target scenario may be one or more, and each configuration information includes a table identifier and configuration data corresponding to the table identifier. The table identifier in the above configuration information is used to uniquely represent a configuration table, and is used to write the corresponding configuration data into the configuration table corresponding to the table identifier.

[0041] The above configuration data is data that needs to be written into the configuration table corresponding to the table identifier, which is consistent with the fields in the configuration table and can be the value information of one or more fields in the configuration table. For example, when the configuration table corresponding to the table identifier is a scene table, since the scene table includes fields such as scene identifier, whether the scene is activated, whether the scene is deleted, and the display position number of the scene in the scene list, the configuration data corresponding to the table identifier can be: scene identifier, scene is activated, at this time, whether the scene is deleted and the display position number of the scene in the scene list do not need to be updated.

[0042] The above configuration information is input by the user in the configuration page. The configuration information input by the user in the configuration page can be directly obtained, or the configuration information can be obtained from a configuration modification file. The configuration modification file is pre-generated based on the configuration information input by the user in the configuration page.

[0043] When extracting configuration information from a configuration modification file, the above-mentioned acquisition of configuration information corresponding to the target scene may include the following steps: first, acquiring the configuration modification file; then, identifying the main text information in the configuration modification file, wherein the main text information includes at least one preset identifier; finally, performing text processing on the main text information according to the at least one preset identifier to obtain the configuration information.

[0044] The configuration modification file is used to store the changed configuration information, that is, the configuration information to be written into the configuration table. The configuration information in the configuration modification file can be the content edited directly by the user, or it can be the content generated according to the user's operation in the configuration page.

[0045] The above-mentioned configuration modification file is a file with a preset format, for example, it can be an XML file with multiple layers of tags, and different tags are used to indicate that the corresponding content belongs to different types. The process of parsing the configuration modification file to obtain configuration information can be implemented by a file parsing tool, which is an open source database reconstruction tool for tracking, managing and applying database changes. The file parsing tool does not rely on a specific database, and it can be widely used in various types of databases, for example, it can be applied to Oracle, MySql and other databases. In this way, the embodiment of the present application can intelligently obtain configuration information without the need for manual acquisition, which can further reduce the configuration cost.

[0046] Specifically, when parsing the configuration modification file, since the content in the configuration modification file meets the preset format, the configuration modification file can be parsed according to the preset format to obtain the configuration information from the configuration modification file.

[0047] First, identify the body information according to the preset tag. For example, the body information can be the starting tag in the configuration modification file. <param name="data”> and closing tags.

[0048] Then, the configuration information is extracted from the main text information according to the preset identifier in the main text information. The main text information may include one or more preset identifiers for distinguishing one or more configuration information. Each preset identifier may be followed by a configuration information until the next preset identifier appears or the main text information ends. The preset identifier may be a symbol that will not appear in any configuration information, such as $, *, ^, etc. Taking the preset identifier as $ as an example, the table identifier and configuration data of the configuration table can be found after $ until the next preset identifier $ appears. When the next preset identifier $ does not exist, the content between the preset identifier $ and the end tag is used as the configuration information.

[0049] The embodiment of the present application can intelligently parse the configuration modification file to obtain configuration information, which helps to improve the efficiency of information configuration.

[0050] Specifically, the at least one preset identifier may include a first separator and a second separator. The process of extracting configuration information from the text information based on the first separator and the second separator includes: first, segmenting the text information according to the first separator to obtain multiple text segments; then, for each text segment, extracting a table identifier from the text segment according to the first separator, and extracting configuration data from the text segment according to the second separator, to obtain configuration information corresponding to the text segment, wherein the configuration information corresponding to the text segment includes the table identifier extracted from the text segment and at least one configuration data.

[0051] In some examples, the first delimiter may be located before each text segment to indicate the start of a text segment, so that after the first delimiter is identified from the body information, the content between the first delimiter and the next first delimiter can be regarded as a text segment. When there is no next first delimiter, the content between the first delimiter and the end tag of the body information is regarded as a text segment.

[0052] Each of the above text segments includes a table identifier and one or more configuration data written into the configuration table corresponding to the table identifier. Among them, the table identifier can be a line or multiple lines of content after the first delimiter. The configuration data is one or more lines of content after the table identifier, and the second delimiter is used to distinguish different configuration data. The first delimiter can be "$" and the second delimiter can be "~". The first delimiter and the second delimiter can be set flexibly, and the embodiments of the present application do not limit them.

[0053] For example, Figure 4 It is a schematic diagram of text information provided by the embodiment of the present application. Figure 4 As shown, the text information is as follows:

[0054] $dict

[0055] code~active~actual

[0056] callbackPhoneMediate~1~1

[0057] $dictField

[0058] dictCode~Code~Type~isUnique~isActive~rangefrom~rangeto

[0059] callbackPhoneMediate~Code~STR~1~1~null~null

[0060] callbackPhoneMediate~title~STR~1~1~null~null

[0061] The first separator $ can divide the above text information into two text segments D1 and D2.

[0062] Among them, the content "dict" after the first delimiter $ in the text segment D1 is a table identifier, corresponding to the scene table. The second delimiter ~ separates the configuration data of different fields "code", "active" and "actual" in the scene table. Among them, the configuration data includes the fields "code", "active" and "actual" and the field value information "callbackPhoneMediate", "1" and "1". Among them, the fields "code", "active" and "actual" are the scene identification field, the scene activation field, and the scene deletion field respectively. The configuration information of the above text segment D1 indicates that a new scene with the scene identifier "callbackPhoneMediate" is added, which is in an activated state and has not been deleted.

[0063] The content "dictField" after the first delimiter $ in the text segment D2 is a table identifier, corresponding to the configuration item table. The second delimiter ~ separates the configuration data of different fields "dictCode", "Code", "Type", "isUnique", "isActive", "rangefrom", and "rangeto" in the configuration item table. Among them, the configuration data includes the fields "dictCode", "Code", "Type", "isUnique", "isActive", "rangefrom", and "rangeto" and the value information of each field "callbackPhoneMediate", "Code", "STR", "1", "1", "null", and "callbackPhoneMediate", "title", "STR", "1", "1~null", and "null". The fields "dictCode", "Code", "Type", "isUnique", "isActive", "rangefrom", and "rangeto" are respectively the configuration item scene identification field, the configuration item identification field, the configuration item type field, the configuration item uniqueness field, the configuration item activation field, the configuration item minimum value field, and the configuration item maximum value field.

[0064] The above text segment D2 indicates that two new configuration items are added for the scenario "callbackPhoneMediate". For the first configuration item, its configuration item identifier is "Code", its configuration item type is "STR", the configuration item is unique, the configuration item is in an activated state, and there is no minimum and maximum value for the configuration item. For the second configuration item, its configuration item identifier is "title", its configuration item type is "STR", the configuration item is unique, the configuration item is in an activated state, and there is no minimum and maximum value for the configuration item.

[0065] It is understandable that the configuration modification file may also include a file start tag, a file end tag, parsing tool information, and parameters passed into the parsing tool, etc. The parsing tool information may indicate the class name of the parsing tool.

[0066] The above process describes how to extract configuration information from a configuration modification file. The following describes in detail the process of generating a configuration modification file.

[0067] In some embodiments, a configuration modification file may be generated by the following process: first, a configuration page is displayed, the configuration page including configuration editing controls corresponding to each configuration table; then, for any configuration table, configuration data is obtained in response to an operation on the configuration editing controls of the configuration table; finally, a configuration modification file is generated based on the table identifier of the configuration table and the configuration data corresponding to each configuration table.

[0068] It can be seen that the configuration page is a page for modifying configuration information, which includes configuration editing controls corresponding to multiple configuration tables. Users can operate the configuration editing controls of any configuration target in the configuration page to implement the information configuration corresponding to the configuration table. The information configuration of each configuration table includes but is not limited to: adding data to any field in the configuration table, modifying data for any field in the configuration table, and deleting any data in any field in the configuration table.

[0069] It is understandable that the configuration data is generated according to the input operation of the user in the above configuration page. After the configuration data is obtained, the above configuration data and table identifier can be written into the configuration modification file according to the preset rules.

[0070] The embodiment of the present application can intelligently generate a configuration modification file based on the user's operation on the configuration editing control, so that a large amount of configuration information can be included in the configuration modification file. In this way, information configuration can be implemented in batches based on the configuration modification file, which helps to improve the efficiency of information configuration. In addition, the configuration modification record can also be viewed from the configuration modification file, which improves the traceability of information configuration.

[0071] S102: Determine a plurality of configuration tables, wherein the plurality of configuration tables include a scene table, a configuration item table, and a configuration item value table. The scene table is used to store scene information of a plurality of scenes, the configuration item table is used to store configuration item information of a plurality of configuration items, and the configuration item value table is used to store value information of a plurality of configuration items.

[0072] The above multiple configuration tables are pre-set, that is, the number and type of configuration tables are fixed, and the fields in each configuration table are also fixed. Each configuration table is used to store one or more information of all scenarios, and different configuration tables correspond to different information.

[0073] Exemplarily, in some embodiments of the present application, the above-mentioned multiple configuration tables include at least a scenario table, a configuration item table and a configuration item value table.

[0074] The scene information in the scene table is used to describe the properties of the scene in order to manage the scene. Each scene corresponds to a scene identifier of the scene information. The scene information includes but is not limited to: scene identifier, scene status, and scene display location. A scene information can also be understood as a dictionary. Each scene information and scene identifier are used as a field in the scene table.

[0075] The scene identifier is used to uniquely represent a scene. The scene identifier can be a numeric code or a user-defined string based on the scene, as long as the scene identifiers of different scenes are not repeated. For example, starting from 1, the scene identifier is increased by 1 for each new scene, or the text description of the scene is converted into characters as the scene identifier.

[0076] The scene status is used to indicate whether the scene is in an available state. The scene status can be further divided into two according to actual needs: the first scene sub-state and the second scene sub-state. The first scene sub-state is used to indicate whether the scene is in an activated state, and the second scene sub-state is used to indicate whether the scene is in a deleted state. When the first scene sub-state is in an activated state and the second scene sub-state is in a non-deleted state, the scene is in an available state, and the configuration items corresponding to the scene can be updated, including updating the configuration item information and configuration item value information corresponding to the scene; when the first scene sub-state is in an inactivated state, and / or the second scene sub-state is in a deleted state, the scene is in an unavailable state, and the configuration items corresponding to the scene cannot be updated.

[0077] The scene display position is used to indicate the display position of the scene when displaying the scene list. The scene list includes all scenes corresponding to all scene information in the scene table. The scene display position can be represented by a position number, so that all scenes can be sorted and displayed in ascending or descending order according to the position number. For example, the position number can be an integer greater than or equal to 1, so that the scenes can be arranged in ascending or descending order.

[0078] In addition to the above-mentioned scene status and scene display position, the scene information may also include the scene title language and the scene title. The scene title language is the language type of the scene title, which can be any language type, for example, Chinese, English, Japanese, Korean, etc. The scene title can also be called the scene name. When displaying the scene, it is the scene title that is displayed, and the scene title varies with the scene title language. For example, when the scene title language is Chinese, the scene title is the scene title expressed in Chinese, and when the scene title language is English, the scene title is the scene title expressed in English. Therefore, writing the scene information into the scene table may include: writing the scene identifier, scene status, scene display position, scene title language and scene title into the scene table. In this way, the number of configuration tables can be reduced as much as possible, saving database storage space.

[0079] In some other implementations, in addition to the scene table, a scene title table may be set, and the scene identifier, scene status, and scene display position may be written into the scene table, while the scene title language and scene title may be written into the scene title table. When setting the scene title table, the scene title table also includes the scene identifier corresponding to the scene title. In this way, the scene title may be managed separately.

[0080] After defining the scene through the above-mentioned scene information, it is also necessary to set the configuration items under the scene. Each scene can correspond to one or more configuration items. Specifically, the configuration items of the scene can be defined through the configuration item information. Each configuration item corresponds to a set of configuration item information, which is used to define the configuration item. The configuration item information of each configuration item may include, but is not limited to: the scene identifier of the scene to which the configuration item belongs, the configuration item identifier, the configuration item type, whether the configuration item allows duplicate values, the configuration item status, the associated scene identifier, the lower limit of the configuration item value, the upper limit of the configuration item value, the configuration item display location, and the associated configuration items. Each of these configuration item information is included as a field in the configuration item table.

[0081] The scene identifier in the configuration item information corresponds to the scene identifier in the scene information. When the scene identifier in the configuration item information and the scene identifier in the scene information are the same, it means that the configuration item information and the scene information correspond to the same scene.

[0082] The configuration item identifier is used to uniquely represent a configuration item in a scenario. In actual applications, configuration item identifiers in different scenarios can be reused or not.

[0083] The configuration item type is used to indicate the value type of the configuration item, which may include but is not limited to: string (STR), numeric value, enumeration type, dictionary type, date type, etc. Numeric values ​​include integers (INT) and floating point numbers, etc.

[0084] Whether a configuration item allows duplicate values ​​is used to indicate whether the value of the configuration item can be the same.

[0085] The configuration item status is used to indicate whether the configuration item is in an activated state. When the configuration item is in an activated state, the value corresponding to the configuration item can be updated in the configuration item value table; when the configuration item is in an inactivated state, the value corresponding to the configuration item cannot be updated in the configuration item value table.

[0086] The associated scenario identifier is used to indicate the associated scenario identifier when the configuration item type is a dictionary type. When the configuration item type is not a dictionary type, the associated scenario identifier is empty.

[0087] The lower limit of the configuration item value is used to indicate the lower limit of the configuration item when the configuration item type is a numeric value. It can also be understood as the minimum value.

[0088] The upper limit of the configuration item value is used to indicate the upper limit of the configuration item when the configuration item type is a numeric value. It can also be understood as the maximum value.

[0089] The configuration item display position is used to indicate the display position of the configuration item when displaying all configuration items of the scenario to which the configuration item belongs. The configuration item display position may be a position number, for example, an integer starting from 1, so that the configuration items can be arranged in ascending or descending order according to the position number.

[0090] The associated configuration item is used to indicate the configuration items and the associated relationship of the configuration item. For example, when the value of configuration item C1 is the target value, configuration item C2 is displayed, so the associated configuration item of configuration item C2 is C2.

[0091] In addition to the scenario identifier of the scenario to which the above configuration item belongs, the configuration item identifier, the configuration item type, whether the configuration item allows duplicate values, the configuration item status, the associated scenario identifier, the lower limit of the configuration item value, the upper limit of the configuration item value, the configuration item display location, and the associated configuration items, the configuration item information may also include: the configuration item title language and the configuration item title.

[0092] The configuration item title language is the language type of the configuration item title, which can be any language type, for example, Chinese, English, Japanese, Korean, etc. The configuration item title can also be called the configuration item name. When displaying the configuration item, it is the display configuration item title, and the configuration item title varies with the configuration item title language. For example, when the configuration item title language is Chinese, the configuration item title is the configuration item title expressed in Chinese, and when the configuration item title language is English, the configuration item title is the configuration item title expressed in English. Therefore, writing the configuration item information into the configuration item table can include: writing the scene identifier of the scene to which the configuration item belongs, the configuration item identifier, the configuration item type, whether the configuration item allows duplicate values, the configuration item status, the associated scene identifier, the configuration item value lower limit, the configuration item value upper limit, the configuration item display position, the associated configuration item, the configuration item title language and the configuration item title into the configuration item table. In this way, the number of configuration tables can be reduced as much as possible, saving database storage space.

[0093] In other implementations, in addition to the configuration item table, a configuration item title table may be set, and the scenario identifier of the scenario to which the configuration item belongs, the configuration item identifier, the configuration item type, whether the configuration item allows duplicate values, the configuration item status, the associated scenario identifier, the configuration item value lower limit, the configuration item value upper limit, the configuration item display location, and the associated configuration items are written into the configuration item table, and the configuration item title language and the configuration item title are written into the configuration item title table. When setting the configuration item title table, the configuration item title table also includes the scenario identifier to which the configuration item title belongs. In this way, the configuration item titles can be managed separately.

[0094] After writing the configuration item information into the configuration item table, the configuration item value information may also be written into the configuration item value table. Each configuration item may correspond to one or more configuration records, each configuration record corresponds to a set of configuration item value information, and a set of configuration item value information may include but is not limited to: configuration item value, scenario identifier corresponding to the configuration item value, configuration record identifier corresponding to the configuration item value, configuration item identifier corresponding to the configuration item value, configuration item value status, and user identifier corresponding to the configuration item value.

[0095] The configuration item value is a specific value, and the configuration item value formats corresponding to different configuration items may be different. For example, when the configuration item type is a string, the configuration item value is a string; when the configuration item type is a numeric value, the configuration item value is a numeric value.

[0096] The scenario identifier corresponding to the configuration item value is used to indicate the scenario to which the configuration item value belongs and is used to uniquely represent the scenario.

[0097] The configuration record identifier corresponding to the configuration item value is used to indicate the configuration record to which the configuration item value belongs, and is used to uniquely represent the configuration record. It is understandable that the configuration information of the same scenario may correspond to multiple configuration records, each of which includes a value for each configuration item.

[0098] The configuration item identifier corresponding to the configuration item value is used to indicate the configuration item to which the configuration item value belongs, and is used to uniquely represent the configuration item.

[0099] The configuration item value status is used to indicate whether the configuration item value is in an available state. When a configuration item value needs to be deleted, the configuration item value status of the configuration item value to be deleted is changed to an unavailable state to stop using the configuration item value. Compared with physically deleting the configuration item value, this can facilitate subsequent recovery.

[0100] The user ID corresponding to the configuration item value is used to indicate the user corresponding to the configuration item value and is used to uniquely represent the user. The user can also be understood as a tenant.

[0101] In some implementations, the multiple configuration tables may further include: a configuration record table, the configuration record table is used to store configuration record information of each configuration record, and the configuration record information is used to manage the configuration item value information in the configuration item value table in units of configuration records.

[0102] The configuration record information in the configuration record table may include, but is not limited to: a scene identifier corresponding to the configuration record, a configuration record identifier corresponding to the configuration record, a configuration record status, and a user identifier corresponding to the configuration record.

[0103] The scene identifier of the above configuration record is used to indicate the scene to which the configuration record belongs, and is the unique identifier of the scene.

[0104] The above configuration record identifier is used to uniquely represent the configuration record and is the unique identifier of the configuration record.

[0105] The configuration record status is used to indicate whether the configuration record is in an available state. When a configuration record needs to be deleted, the configuration record status is set to an unavailable state to avoid using the configuration record. Of course, compared to directly physically deleting the configuration record, this can facilitate the recovery of the deleted configuration record.

[0106] The user ID corresponding to the configuration record is used to indicate the user to which the configuration record belongs, and is the unique ID of the user. It can be seen that the definition and use control of the configuration record can be realized through the above configuration record table. The following is an exemplary example of multiple configuration tables.

[0107] for Figure 5The two scenes A1 and A2 shown in the figure have two scene information in the scene table, which correspond to the scene information of scene A1 and the scene information of scene A2 respectively. The scene information of each scene includes: the scene identifier of the scene, whether the scene is activated, whether the scene is deleted, and the display position number of the scene in the scene list. For details, please refer to the following Table 1.

[0108] Table 1

[0109]

[0110] for Figure 5 The two scenes A1 and A2 shown in the figure have two scene theme information in the scene theme table, corresponding to the scene theme information of scene A1 and the scene theme information of scene A2 respectively. The scene theme information of each scene includes the scene identification of the scene, the scene theme content of the scene and the scene theme language of the scene. For details, please refer to the following Table 2.

[0111] Table 2

[0112]

[0113] for Figure 5 The configuration items in the two scenarios A1 and A2 shown in the figure have five configuration item information in the configuration item table, which correspond to the two configuration items "application type" and "startup cycle" of scenario A1, and the three configuration items "user type", "user location" and "client type" of scenario A2. The configuration item information of each configuration item includes the scenario identifier of the scenario to which the configuration item belongs, the configuration item identifier, the configuration item type, whether the configuration item allows duplicate values, the configuration item status, the associated scenario identifier, the lower limit of the configuration item value, the upper limit of the configuration item value, the configuration item display location, and the associated configuration items. For details, please refer to Table 3 below.

[0114] Table 3

[0115]

[0116] for Figure 5 For the configuration items of the scenarios A1 and A2 shown, the configuration item topic table may contain configuration item topic information of five configuration items. The configuration item topic information of each configuration item includes a scenario identifier, a configuration item identifier, a configuration item topic content, and a configuration item topic language. For details, please refer to Table 4 below.

[0117] Table 4

[0118] Scene Identification Configuration item identification Configuration item topic content Configuration item topic language A1 APPTP Type of application Chinese A1 SARTPD Startup Cycle Chinese A2 USRTP User Type Chinese A2 USRLC User Location Chinese A2 CLTTP Client Type Chinese

[0119] for Figure 5For the configuration items of scenes A1 and A2 shown in the figure, there may be four configuration record information in the configuration record table. Each configuration record information includes: the scene identifier corresponding to the configuration record, the configuration record identifier corresponding to the configuration record, the configuration record status, and the user identifier corresponding to the configuration record. Please refer to the following Table 5 for details.

[0120] Table 5

[0121] Scene Identification Configuration record identifier Configuring Record Status User ID A1 F1 Available USR1 A1 F2 Available USR2 A2 F3 Available USR1 A2 F4 Available USR1 A2 F5 Available USR2

[0122] for Figure 5 In the configuration items of the scenes A1 and A2 shown in the figure and the configuration records shown in Table 5, there can be 13 configuration item value information in the configuration item value table. Each configuration item value information includes: configuration item value, scene identifier corresponding to the configuration item value, configuration record identifier corresponding to the configuration item value, configuration item identifier corresponding to the configuration item value, configuration item value status, and user identifier corresponding to the configuration item value. Please refer to Table 6 below for details.

[0123] Table 6

[0124]

[0125]

[0126] It can be seen from the above description that the number of scene information in the scene table and the number of scene theme information in the scene theme table are the same as the number of scenes.

[0127] For each scenario, the number of configuration item information in the configuration item table and the number of configuration item subject information in the configuration item subject table are the same as the number of configuration items in the scenario.

[0128] For the configuration record table, the number of configuration record information is determined according to the user's configuration. For a scenario, the number of configuration item value information corresponding to it in the configuration item value table is the product of the number of configuration record information of the scenario and the number of configuration items of the scenario. Therefore, the number of configuration item value information corresponding to all scenarios in the configuration item value table can be added together to obtain the number of all configuration item value information in the configuration item value table.

[0129] When information configuration is required, one or more target configuration tables in the above configuration tables may be modified to add, and / or modify, and / or delete one or more data in the corresponding target configuration table.

[0130] When a new scene needs to be added, the table identifier included in the configuration information is the table identifier of all configuration tables, the target configuration table is all configuration tables, and the configuration data corresponding to each table identifier includes the values ​​of all fields in the target configuration table corresponding to the table identifier of the new scene.

[0131] When the value of any field of any configuration table needs to be updated, the table identifier included in the configuration information is the table identifier of the target configuration table to be updated, and the target configuration table is the table to be updated. And the configuration data corresponding to each table identifier includes the value of any one or more fields in the target configuration table corresponding to the table identifier.

[0132] S103: Determine a target configuration table from multiple configuration tables according to the table identifier in the configuration information, and write the configuration data in the configuration information into the target configuration table.

[0133] The table identifier of the target configuration table is consistent with the table identifier in the configuration information. In practical applications, the table identifier in the configuration information and the table identifier of the configuration table may be matched to determine the target configuration table.

[0134] The configuration data includes the correspondence between fields and field values, so when writing the configuration data in the target configuration table into the target configuration table, the field values ​​need to be written into the corresponding fields according to the correspondence. In this way, the information configuration process is implemented.

[0135] In some embodiments, the embodiments of the present application set up two databases for storing configuration tables, and the two databases include a shared library and a private library. The shared library is used to store the configuration information of all users, and the private library of each user is used to store the configuration information of the user. Therefore, the above process of determining the target configuration table in multiple configuration tables according to the table identifier in the configuration information may include: for each table identifier, determining the table type corresponding to the table identifier. If the table type is a shared type, then according to the table identifier, the target configuration table is determined in the configuration table of the shared library; if the table type is a private type, then according to the table identifier, the target configuration table is determined in the shared library and the private library corresponding to the configuration information.

[0136] There is a preset mapping relationship between the above table identifiers and table types. Specifically, for the above scenario table, configuration item table, scenario theme table, configuration item theme table, configuration item value table, and configuration record table, the scenario table, configuration item table, scenario theme table, and configuration item theme table are shared types, and the configuration item value table and configuration record table are private types. The shared type configuration table is stored in the shared library, and the private type configuration table is stored in the shared library and the private library.

[0137] After determining the above target configuration table, the configuration data can be written into the corresponding target configuration tables in the shared library and the private library respectively. This writing process has two strategies. Under the first writing strategy, the configuration data is written into the target configuration table in the shared library and the target configuration table corresponding to the private library in parallel. Under the second writing strategy, the configuration data is first written into the target configuration table in the shared library, and then synchronized from the target configuration table in the shared library to the target configuration table corresponding to the private library.

[0138] When writing to the corresponding target configuration table in the private library, it is necessary to first obtain the corresponding private library according to the user identifier, and then write the configuration data corresponding to the user identifier into the target configuration table in the private library.

[0139] The embodiment of the present application can isolate the configuration data of different users by setting up a private library, thereby improving the efficiency of users accessing configuration data and the security of users' configuration data.

[0140] In a further embodiment, the configuration information also includes a user identifier, which is used to indicate the user who uses the configuration information. Accordingly, the target configuration table includes a shared configuration table and a private configuration table. At this time, according to the table identifier, the target configuration table is determined in the shared library and the private library corresponding to the configuration information, including: first, according to the table identifier, the shared configuration table is determined in the shared library; then, the private library corresponding to the user identifier is determined, and the private configuration table is determined in the private library according to the table identifier. In this way, the tables in the two databases can be accurately determined to avoid data loss in the shared library or the private library.

[0141] The shared configuration table is a configuration item value table or configuration record table in the shared library, and the table identifier indicates the configuration table. The private configuration table is a configuration item value table or configuration record table in the shared library, and the table identifier indicates the configuration table.

[0142] In an embodiment of the present application, a shared library is used to receive configuration information for local storage and to synchronize the configuration item value table and the configuration record table to the private library of the corresponding user. Since different users correspond to different business libraries, it is necessary to synchronize the shared library to the private library according to the user identifier. Specifically, for each configuration item value information in the configuration item value table, the user identifier is first extracted to determine the corresponding private library according to the user identifier, so as to synchronize the configuration item value information to the configuration item value table of the private library. Of course, the configuration item value information in the configuration item value table can also be aggregated according to the user identifier, so as to synchronize the configuration item value information corresponding to the same user identifier to the corresponding private library in batches, so as to improve the synchronization efficiency.

[0143] Similarly, for each configuration record information in the configuration record table, the user ID is first extracted to determine the corresponding private library according to the user ID, so as to synchronize the configuration record information to the configuration record table of the private library. Of course, the configuration record information in the configuration record table can also be aggregated according to the user ID, so as to synchronize the configuration record information corresponding to the same user ID to the corresponding private library in batches to improve synchronization efficiency.

[0144] In the embodiments of the present disclosure, configuration and access are supported on a user basis, thereby improving the security of configuration information and access efficiency.

[0145] In some implementations, in order to further save the storage space of the user's private library, the user identifier may not be stored in the user's private library. Specifically, the user identifier field does not need to be set in the configuration record table and the configuration item value table in the private library. The remaining fields in the configuration record table in the private library are consistent with the remaining fields in the configuration record table in the shared library, and the remaining fields in the configuration item value table in the private library are consistent with the remaining fields in the configuration item value table in the shared library. In this way, based on the mapping relationship set between the user identifier and the private library, not only can the configuration item value and configuration record corresponding to the user be accurately found, but also the user identifier can be prevented from occupying the storage space of the private library.

[0146] After the configuration record table and the configuration item value table are synchronized to the private database, the access function can be provided to users through the configuration record table and the configuration item value table, that is, the user can access the configuration record table and the configuration item value table through database statements.

[0147] In some embodiments, the above-mentioned access process may include: first, obtaining a configuration query request, the configuration query request including a query table identifier; then, determining the query table type according to the query table identifier, and determining the query library according to the query table type; finally, determining the first query table corresponding to the query table identifier from the query library, and performing a configuration data query in the first query table.

[0148] Query table types can be divided into two types: shared type and private type. The mapping relationship between the query table identifier and the query table type is preset. Specifically, in the scene table, scene subject table, configuration item table, configuration item subject table, configuration item value table, and configuration record table, the scene table, scene subject table, configuration item table, and configuration item subject table are shared query tables, and the configuration item value table and configuration record table are private query tables. When the query table type is a shared type, the query library is a shared library, and when the query table type is a private type, the query library is a private library.

[0149] After obtaining the query library, the configuration table corresponding to the query table identifier in the query library can be used as the first query table to perform configuration data query.

[0150] The configuration query request may also include a query condition. When querying configuration data, data that meets the query condition is queried from the first query library. The configuration query request may be intelligently generated according to the user query operation, wherein the query table identifier and the query condition are input. The query condition is used to limit the attributes of the queried data. For example, the query condition may include at least one of the target scene identifier, the target configuration record identifier, and the target user identifier, so as to read the configuration item value corresponding to the target scene identifier and the target configuration record identifier from the configuration item value table of the private library corresponding to the target user identifier.

[0151] The above-mentioned target scene identifier is used to indicate the scene to be queried, and is the unique identifier of the scene. The target configuration record identifier is used to indicate the configuration record to be queried, and is the unique identifier of the configuration record. The target user identifier is used to indicate the configuration item value to be queried and the user to whom the configuration record belongs, and is the unique identifier of the user. When querying, a query statement can be composed according to this information in the configuration query request, and the query statement can be executed to achieve access to the configuration item value. In the query statement, the query target is the configuration item value in the configuration item value table of the private library corresponding to the target user identifier, and the query condition is that the target scene identifier matches the scene identifier in the configuration item value table of the private library corresponding to the target user identifier, and the target configuration record identifier matches the configuration record identifier in the configuration item value table of the private library corresponding to the target user identifier. In other words, the query statement can read out the configuration item values ​​that meet the query conditions.

[0152] The embodiment of the present application can obtain all configuration item values ​​accessible to the target user in the target configuration record under the scenario corresponding to the target scenario identifier through the target scenario identifier, the target configuration record identifier and the target user identifier. In this way, the access to the configuration item values ​​can be accurately controlled, which helps to improve the security of the configuration item values.

[0153] In some embodiments, the above-mentioned reading of configuration item values ​​corresponding to the target scenario identifier and the target configuration record identifier from the configuration item value table of the private library corresponding to the target user identifier may further include: first, reading the target configuration record information corresponding to the target configuration record identifier from the configuration record table in the private library corresponding to the target user identifier; then, if the configuration record included in the target configuration record information is in an available state, reading the configuration item values ​​corresponding to the target scenario identifier and the target configuration record identifier from the configuration item value table of the private library corresponding to the target user identifier; if the configuration record included in the target configuration record information is in an unavailable state, not reading the configuration item values ​​corresponding to the target scenario identifier and the target configuration record identifier.

[0154] It can be seen that the embodiment of the present application can also be combined with the configuration record table to further ensure the reading accuracy of the configuration item values ​​and avoid reading configuration records in an unusable state.

[0155] In some implementations, the target configuration item identifier to be read may also be specified, and the target configuration item identifier is used to indicate the configuration item to be read and is used to uniquely represent the configuration item. At this time, the query condition also needs to satisfy that the configuration item identifier in the configuration item value table of the private library corresponding to the target user identifier matches the target configuration item identifier. In this way, the configuration item value corresponding to the target configuration item accessible to the target user in the target configuration record under the scenario corresponding to the target scenario identifier can be obtained, thereby realizing the reading of some configuration items.

[0156] It can be seen that the embodiments of the present application can support multi-tenancy (also referred to as multi-user) configuration. Multi-tenancy is a software architecture technology that allows a single software instance to provide services to multiple different user groups or users. This architecture is particularly common in cloud computing environments, especially in the Software as a Service (SaaS) model. Multi-tenancy technology enables a software system to run on a single hardware platform, but can provide services to multiple users, and each user has his or her own data and configuration, ensuring data isolation between users.

[0157] In some implementations, the configuration query request further includes: a query user identifier. Therefore, determining the query library according to the query table type includes: if the query table type is a private type, determining the corresponding target private library according to the query user identifier, and determining the target private library as the query library; if the query table type is a shared type, determining the shared library as the query library.

[0158] The query user ID is used to indicate the user who queries the configuration information, and the target private library is the private library corresponding to the query user ID. Specifically, when the query table is one of the scene table, scene subject table, configuration item table, and configuration item subject table, the query table type is a shared type, so that the shared library is used as the query library; when the query table is one of the configuration value information table and the configuration record table, the query table type is a private type, so that the private library corresponding to the query user ID is used as the query library.

[0159] In the embodiment of the present application, the query library can be determined in combination with the query user identifier to determine an accurate query library for different query table types.

[0160] It is understandable that when there is data that meets the query conditions in the first query table, the data can be successfully queried, but when there is no data that meets the query conditions in the first query table, the data cannot be queried from the first query table. In this case, if the configuration data corresponding to the configuration query request does not exist in the first query table, and the query library is the target private library, the second query table corresponding to the query table identifier is determined from the shared library to perform configuration data query in the second query table. In this way, the private library can be queried first, and then the shared library can be queried, which helps to ensure the success rate of data query.

[0161] In summary, in the embodiments of the present application, different scenarios correspond to the same configuration table. Figure 5 Schematic diagram of the relationship between another scenario and a configuration table provided in an embodiment of the present application. Figure 5 As shown, the configuration items of scenario A1 include: application type and startup cycle, and the configuration items of scenario A2 include: user type, user location and client type. Although the configuration items of these two scenarios are completely different, the configuration tables corresponding to these two scenarios include: scenario table, scenario theme table, configuration item table, configuration item theme table, configuration record table, and configuration item value table.

[0162] Specifically, the scene table stores scene information of scene A1 and scene A2. The scene theme table stores scene themes of scene A1 and scene A2. The configuration item table stores configuration item information of two configuration items of scene A1 and two configuration items of scene A2. The configuration item theme table stores configuration item themes of two configuration items of scene A1 and two configuration items of scene A2. The configuration record table stores configuration record information of all configuration records of scene A1 and scene A2. The configuration item value table stores configuration item values ​​of all configuration records of all configuration items of scene A1 and scene A2.

[0163] Therefore, all scenarios use a unified set of configuration tables to store their configuration information. When adding a new scenario, you only need to add configuration information to this set of configuration tables, and there is no need to create a new configuration table for the scenario, which can reduce costs and improve scalability.

[0164] Figure 6 is a flowchart of another information configuration method provided by an embodiment of the present disclosure. Figure 6 As shown, the information configuration method may include:

[0165] S301: Displaying a configuration page, which includes configuration editing controls corresponding to each configuration table.

[0166] S302: For any configuration table, in response to an operation on a configuration editing control of the configuration table, obtaining configuration data.

[0167] S303: Generate a configuration modification file according to the table identifier of the configuration table and the configuration data corresponding to each configuration table.

[0168] S304: Identify text information in the configuration modification file.

[0169] S305: Segment the text information according to the first separator to obtain multiple text segments.

[0170] S306: For each text segment, extract the table identifier in the text segment according to the first delimiter, and extract the configuration data in the text segment according to the second delimiter, to obtain configuration information corresponding to the text segment, wherein the configuration information corresponding to the text segment includes the table identifier and configuration data, and the user identifier extracted from the text segment.

[0171] S307: Determine multiple configuration tables, the multiple configuration tables including a scene table, a configuration item table and a configuration item value table, the scene table is used to store scene information of multiple scenes, the configuration item table is used to store configuration item information of multiple configuration items, and the configuration item value table is used to store value information of multiple configuration items.

[0172] S308: Determine the table type corresponding to the table identifier.

[0173] S309: If the table type is a shared type, determine the target configuration table in the configuration table of the shared library according to the table identifier.

[0174] S310: If the table type is a private type, a shared configuration table is determined as a target configuration table in the shared library according to the table identifier, and a private library corresponding to the user identifier is determined, and a private configuration table is determined as a target configuration table in the private library according to the table identifier.

[0175] S311: Write the configuration data in the configuration information into the target configuration table.

[0176] S312: Obtain a configuration query request, where the configuration query request includes a query table identifier.

[0177] S313: Determine the query table type according to the query table identifier.

[0178] S314: If the query table type is a private type, determine the corresponding target private library according to the query user identifier, and determine the target private library as the query library.

[0179] S315: If the query table type is a shared type, determine the shared library as the query library.

[0180] S316: Determine a first query table corresponding to the query table identifier from the query library, and perform configuration data query in the first query table.

[0181] S317: If the configuration data corresponding to the configuration query request does not exist in the first query table, and the query library is a target private library, determine a second query table corresponding to the query table identifier from the shared library.

[0182] S318: Query the configuration data in the second query table.

[0183] Each step in the above information configuration method can be independently adjusted in order, and the order is not limited in the embodiment of the present disclosure. Figure 3 The description of the corresponding steps in the information configuration method shown will not be repeated here.

[0184] Figure 7 is a structural block diagram of an information configuration device provided in an embodiment of the present application, referring to Figure 7 As shown, the above-mentioned information configuration device 400 includes:

[0185] The information acquisition module 401 is used to: acquire configuration information corresponding to the target scenario, wherein the configuration information includes a table identifier and configuration data.

[0186] The configuration table determination module 402 is used to: determine multiple configuration tables, wherein the multiple configuration tables include a scene table, a configuration item table and a configuration item value table, wherein the scene table is used to store scene information of multiple scenes, the configuration item table is used to store configuration item information of multiple configuration items, and the configuration item value table is used to store value information of multiple configuration items.

[0187] The data writing module 403 is used to determine a target configuration table from the multiple configuration tables according to the table identifier in the configuration information, and write the configuration data in the configuration information into the target configuration table.

[0188] Optionally, the data writing module 403 is further used for:

[0189] Determine the table type corresponding to the table identifier; if the table type is the shared type, determine the target configuration table in the configuration table of the shared library according to the table identifier; if the table type is the private type, determine the target configuration table in the shared library and the private library corresponding to the configuration information according to the table identifier.

[0190] Optionally, the configuration information includes a user identifier for indicating a user using the configuration information; the target configuration table includes a shared configuration table and a private configuration table; the data writing module 403 is further used to:

[0191] According to the table identifier, a shared configuration table is determined in the shared library; a private library corresponding to the user identifier is determined, and a private configuration table is determined in the private library according to the table identifier.

[0192] Optionally, the information acquisition module 401 is further used to:

[0193] Acquire a configuration modification file; identify text information in the configuration modification file, wherein the text information includes at least one preset identifier; and perform text processing on the text information according to the at least one preset identifier to obtain configuration information.

[0194] Optionally, the information acquisition module 401 is further used to:

[0195] Display a configuration page, which includes configuration editing controls corresponding to each configuration table; for any configuration table, obtain configuration data in response to an operation on the configuration editing control of the configuration table; generate a configuration modification file based on the table identifier of the configuration table and the configuration data corresponding to each configuration table.

[0196] Optionally, the at least one preset identifier includes a first separator and a second separator; and the information acquisition module 401 is further used to:

[0197] According to the first separator, the text information is segmented to obtain multiple text segments; for each text segment, according to the first separator, a table identifier is extracted from the text segment, and according to the second separator, configuration data is extracted from the text segment to obtain configuration information corresponding to the text segment, wherein the configuration information corresponding to the text segment includes the table identifier extracted from the text segment and at least one configuration data.

[0198] Optionally, the device further comprises:

[0199] The query request acquisition module is used to: acquire a configuration query request, wherein the configuration query request includes a query table identifier.

[0200] The query table type determination module is used to determine the query table type according to the query table identifier.

[0201] The query library determination module is used to determine the query library according to the query table type.

[0202] The first query module is used to determine a first query table corresponding to the query table identifier from the query library, and perform configuration data query in the first query table.

[0203] Optionally, the configuration query request further includes: a query user identifier; and the query library determination module is further used to:

[0204] If the query table type is a private type, the corresponding target private library is determined according to the query user identifier, and the target private library is determined as the query library; if the query table type is a shared type, the shared library is determined as the query library.

[0205] Optionally, also include:

[0206] The query table re-determination module is used to: after performing a configuration data query in the first query table, if the configuration data corresponding to the configuration query request does not exist in the first query table, and the query library is the target private library, determine the second query table corresponding to the query table identifier from the shared library.

[0207] The second query module is used to query the configuration data in the second query table.

[0208] The above-mentioned device embodiment corresponds to the above-mentioned information configuration method embodiment. The specific description can refer to the description in the above-mentioned method embodiment, and the embodiment of the present application will not be repeated here.

[0209] Figure 8 6 is a block diagram of an electronic device provided in an embodiment of the present application. The electronic device 600 includes a memory 602 and at least one processor 601 .

[0210] The memory 602 stores computer-executable instructions.

[0211] At least one processor 601 executes the computer execution instructions stored in the memory 602, so that the electronic device 600 implements the aforementioned method.

[0212] In addition, the electronic device 600 may further include a receiver 603 and a transmitter 604. The receiver 603 is used to receive information from other devices or equipment and forward it to the processor 601. The transmitter 604 is used to send the information to other devices or equipment.

[0213] In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the aforementioned method.

[0214] In an exemplary embodiment, a computer program product is also provided, comprising a computer program, which is used to implement the aforementioned method when executed by a computer.

[0215] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0216] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. An information configuration method, characterized in that: include: Obtaining configuration information corresponding to the target scenario, wherein the configuration information includes a table identifier and configuration data; Determine a plurality of configuration tables, wherein the plurality of configuration tables include a scene table, a configuration item table, and a configuration item value table, wherein the scene table is used to store scene information of a plurality of scenes, the configuration item table is used to store configuration item information of a plurality of configuration items, and the configuration item value table is used to store value information of a plurality of configuration items; According to the table identifier in the configuration information, a target configuration table is determined among the multiple configuration tables, and the configuration data in the configuration information is written into the target configuration table.

2. The method according to claim 1, characterized in that Determining a target configuration table from among the multiple configuration tables according to the table identifier in the configuration information includes: Determine the table type corresponding to the table identifier; If the table type is a shared type, determining a target configuration table in a configuration table of a shared library according to the table identifier; If the table type is a private type, a target configuration table is determined in the shared library and the private library corresponding to the configuration information according to the table identifier.

3. The method according to claim 2, characterized in that The configuration information includes a user identifier; the target configuration table includes a shared configuration table and a private configuration table; and according to the table identifier, determining the target configuration table in the shared library and the private library corresponding to the configuration information includes: Determining a shared configuration table in the shared library according to the table identifier; A private library corresponding to the user identifier is determined, and a private configuration table is determined in the private library according to the table identifier.

4. The method according to any one of claims 1 to 3, characterized in that: The obtaining of configuration information corresponding to the target scene includes: Get the configuration modification file; identifying text information in the configuration modification file, the text information including at least one preset identifier; According to the at least one preset identifier, text processing is performed on the text information to obtain configuration information.

5. The method according to claim 4, characterized in that The obtaining of the configuration modification file includes: Display a configuration page, wherein the configuration page includes configuration editing controls corresponding to each configuration table; For any one configuration table, in response to an operation on a configuration editing control of the configuration table, obtaining configuration data; A configuration modification file is generated according to the table identifier of the configuration table and the configuration data corresponding to each configuration table.

6. The method according to claim 5, characterized in that The at least one preset identifier includes a first separator and a second separator; and according to the at least one preset identifier, the text information is subjected to text processing to obtain configuration information, including: Segmenting the text information according to the first separator to obtain a plurality of text segments; For each text segment, a table identifier is extracted from the text segment according to the first separator, and configuration data is extracted from the text segment according to the second separator to obtain configuration information corresponding to the text segment, wherein the configuration information corresponding to the text segment includes the table identifier extracted from the text segment and at least one configuration data.

7. The method according to claim 2, characterized in that: The method further comprises: Obtaining a configuration query request, wherein the configuration query request includes a query table identifier; Determine the query table type according to the query table identifier; Determine a query library according to the query table type; A first query table corresponding to the query table identifier is determined from the query library, and configuration data query is performed in the first query table.

8. An information configuration device, characterized in that: include: An information acquisition module, used to: acquire configuration information corresponding to a target scenario, wherein the configuration information includes a table identifier and configuration data; A configuration table determination module is used to: determine multiple configuration tables, wherein the multiple configuration tables include a scene table, a configuration item table, and a configuration item value table, wherein the scene table is used to store scene information of multiple scenes, the configuration item table is used to store configuration item information of multiple configuration items, and the configuration item value table is used to store value information of multiple configuration items; The data writing module is used to: determine a target configuration table from the multiple configuration tables according to a table identifier in the configuration information, and write the configuration data in the configuration information into the target configuration table.

9. An electronic device comprising a memory and at least one processor; in, The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the electronic device implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

11. A computer program product, characterized in that The invention comprises a computer program, which is used to implement the method according to any one of claims 1 to 7 when being executed by a processor.

Citation Information

Cited By

  • Configuration processing method and device of substrate management controller

    CN120407042A