Data configuration method and apparatus, terminal, and storage medium

By supporting both visual and code editing modes on the data configuration page, the problem of inflexible data configuration in existing technologies is solved, and the convenience and accuracy of the data configuration process are achieved.

CN114153487BActive Publication Date: 2026-06-12TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2020-09-07
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

Existing data configuration methods lack flexibility, especially in external network environments where configuration logic needs to be redeployed, resulting in inflexible and inconvenient data configuration.

Method used

A data configuration method is provided, which displays a data configuration page that supports both visual and code editing modes. Users can intuitively configure data structure objects and data items, generate data in the target data format, and switch between different editing modes.

🎯Benefits of technology

It improves the flexibility and convenience of the data configuration process, enabling users to perform data configuration operations in a clear and visible manner, thereby improving the accuracy and efficiency of data configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114153487B_ABST
    Figure CN114153487B_ABST
Patent Text Reader

Abstract

The application discloses a data configuration method and device, a terminal and a storage medium, and belongs to the technical field of Internet. The method comprises the following steps: in response to a data configuration instruction, a data configuration page is displayed, and the data configuration page is used for configuring to-be-configured data according to a target data format; based on a current editing mode of the data configuration page, a data item corresponding to a data structure object of the target data format is acquired, and the current editing mode is used for indicating a current acquisition mode of the data item corresponding to the data structure object; based on the to-be-configured data and the data item corresponding to the data structure object, data in the target data format is generated; and the data in the target data format is displayed in a data display page. The application can improve the flexibility and convenience of data configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technology, and in particular to a data configuration method, apparatus, terminal and storage medium. Background Technology

[0002] With the development of internet technology, many applications have the need to update data, such as updating the page data of social applications. In order to achieve data updates, application developers need to configure the data.

[0003] Current technologies rely on fixed structures for data configuration, limiting data configuration to a single, fixed structure. Furthermore, configuration in external network environments requires redeploying the configuration logic on the current device, resulting in poor flexibility. Therefore, a data configuration method that improves flexibility is urgently needed. Summary of the Invention

[0004] This application provides a data configuration method, apparatus, terminal, and storage medium, which can improve the flexibility of data configuration. The technical solution is as follows:

[0005] On the one hand, a data configuration method is provided, the method comprising:

[0006] In response to a data configuration command, a data configuration page is displayed, which is used to configure the data to be configured according to the target data format;

[0007] Based on the current editing mode of the data configuration page, the data item corresponding to the data structure object of the target data format is obtained. The current editing mode is used to indicate the current acquisition method of the data item corresponding to the data structure object.

[0008] Based on the data to be configured and the data items corresponding to the data structure object, generate data in the target data format;

[0009] The target data format is displayed on the data display page.

[0010] In one possible implementation, the data configuration page includes an edit mode switching button, and the method further includes:

[0011] In response to the trigger event of the editing mode switching button on the data configuration page, the current editing mode is switched to visual editing mode or code editing mode.

[0012] On one hand, a data configuration device is provided, the device comprising:

[0013] The display module is used to display a data configuration page in response to a data configuration command. The data configuration page is used to configure the data to be configured according to the target data format.

[0014] The acquisition module is used to acquire the data items corresponding to the data structure object of the target data format based on the data configuration page;

[0015] The generation module is used to obtain the data items corresponding to the data structure object of the target data format based on the current editing mode of the data configuration page. The current editing mode is used to indicate the current acquisition method of the data items corresponding to the data structure object.

[0016] The display module is also used to display data in the target data format on the data display page.

[0017] In one possible implementation, the current editing mode is a visual editing mode, and the data configuration page includes a data structure object of the target data format and a data item input area corresponding to the data structure object;

[0018] The acquisition module is used to acquire the data items in the data item input area and use the data items in the data item input area as the data items corresponding to the data structure object.

[0019] In one possible implementation, the current editing mode is a code editing mode, and the data configuration page includes a code editing area; the acquisition module is used for:

[0020] Obtain the target code entered in the code editing area;

[0021] Based on the target code, the data items corresponding to the data structure object are determined.

[0022] In one possible implementation, the data configuration page includes an edit mode switching button, and the device further includes:

[0023] The switching module is used to switch the current editing mode to visual editing mode or code editing mode in response to the trigger event of the editing mode switching button on the data configuration page.

[0024] In one possible implementation, the display module is further configured to display an identification information configuration page;

[0025] The acquisition module is also used to acquire the data identification information of the data to be configured based on the identification information configuration page;

[0026] Accordingly, the display module is used to display the data identification information and the target data format data on the data display page.

[0027] In one possible implementation, the display module is further configured to display a historical configuration page, which includes historical data items corresponding to the data structure object in the historical configuration data;

[0028] The acquisition module is also used to acquire edited historical data items based on the editing operations in the historical configuration page;

[0029] The generation module is also used to generate data in the target data format based on the data to be configured and the edited historical data items.

[0030] In one possible implementation, the display module is further configured to display the edited data on the data display page in response to an editing operation on the data in the target data format on the data display page.

[0031] In one possible implementation, the device further includes any of the following:

[0032] The first publishing module is used to upload data in the target data format to the content delivery network in response to the data publishing instruction;

[0033] The second publishing module is used to send data in the target data format to the data server in response to the data publishing instruction. The data server is used to encrypt the data in the target data format and then store the encrypted data in the target data format.

[0034] On one hand, a terminal is provided, the terminal including one or more processors and one or more memories, the one or more memories storing at least one piece of program code, the at least one piece of program code being loaded and executed by the one or more processors to implement the above-described data configuration method.

[0035] On one hand, a computer-readable storage medium is provided, wherein at least one piece of program code is stored in the computer-readable storage medium, the at least one piece of program code being loaded and executed by a processor to implement the above-described data configuration method.

[0036] On one hand, a computer program product or computer program is provided, the computer program product or computer program including computer program code stored in a computer-readable storage medium. A processor of a computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, causing the computer device to perform the aforementioned data configuration method.

[0037] The beneficial effects of the technical solutions provided in this application include at least the following:

[0038] When data configuration is required, a data configuration page is displayed. This visual data configuration page allows users to intuitively understand the data configuration process. By performing data configuration operations on the data configuration page in the current editing mode, the entire data configuration process is clearly visible, facilitating flexible operations on the data configuration page. This enables the terminal to obtain the data items corresponding to the data structure object of the target data format, thereby generating and displaying the data to be configured in the target data format, improving the flexibility and convenience of the data configuration process. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0040] Figure 1 This is a schematic diagram of the implementation environment of a data configuration method provided in an embodiment of this application;

[0041] Figure 2 This is a flowchart of a data configuration method provided in an embodiment of this application;

[0042] Figure 3 This is a flowchart of a data configuration method provided in an embodiment of this application;

[0043] Figure 4 This is a schematic diagram of a data configuration application page provided in an embodiment of this application;

[0044] Figure 5 This is a schematic diagram of an identification information configuration page provided in an embodiment of this application;

[0045] Figure 6 This is a schematic diagram of a data configuration page provided in an embodiment of this application;

[0046] Figure 7 This is a flowchart of a data configuration method provided in an embodiment of this application;

[0047] Figure 8 This is a flowchart of a data configuration method provided in an embodiment of this application;

[0048] Figure 9 This is a schematic diagram of the structure of a data configuration device provided in an embodiment of this application;

[0049] Figure 10 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0051] To facilitate understanding of the technical solutions in the embodiments of this application, some terms involved in the embodiments of this application will be explained below:

[0052] JSON (JavaScript Object Notation): JSON is a lightweight data-interchange format. JSON data is easy to read and write, and also easy for machines to parse and generate. JSON data uses a language-independent text format, making it a relatively ideal data exchange language.

[0053] JSON-Schema: A specification and constraints for JSON data format based on the JSON data structure definition, which can also be used for visual form generation.

[0054] CDN (Content Delivery Network): A CDN is an intelligent virtual network built on top of the existing network infrastructure. It relies on edge servers deployed in various locations and uses the load balancing, content distribution, and scheduling functions of the central platform to enable users to obtain the content they need from the nearest location, reducing network congestion and improving user access response speed and hit rate.

[0055] Figure 1 This is a schematic diagram illustrating the implementation environment of a data configuration method provided in this application embodiment. See also... Figure 1 The implementation environment may include terminal 101 and server 102.

[0056] The terminal 101 can be a desktop computer, a laptop computer, etc., but is not limited to these. For example, the terminal 101 is a development-side device, on which an application supporting data configuration is installed and running, and users can use the data configuration application to perform data configuration.

[0057] The server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Server 102 is used to provide backend services for applications that support data configuration.

[0058] Terminal 101 and server 102 can be connected directly or indirectly via wired or wireless communication, and this application does not impose any restrictions on this.

[0059] Terminal 101 can refer to one of multiple devices in general. This embodiment only uses terminal 101 as an example.

[0060] Those skilled in the art will understand that the number of terminals described above can be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or even more, in which case other terminals may also be included in the above implementation environment. This application does not limit the number of terminals or the type of device in its embodiments.

[0061] Figure 2 This is a flowchart illustrating a data configuration method provided in an embodiment of this application. The method is executed by a terminal; see [link to relevant documentation]. Figure 2 The method includes:

[0062] 201. The terminal responds to the data configuration command and displays the data configuration page, which is used to configure the data to be configured according to the target data format.

[0063] 202. Based on the current editing mode of the data configuration page, the terminal obtains the data item corresponding to the data structure object of the target data format. The current editing mode is used to indicate the current acquisition method of the data item corresponding to the data structure object.

[0064] 203. The terminal generates data in the target data format based on the data to be configured and the data items corresponding to the data structure object.

[0065] 204. The terminal displays the data in the target data format on the data display page.

[0066] The method provided in this application displays a data configuration page when data configuration is required. This visual data configuration page allows users to intuitively understand the data configuration process. By performing data configuration operations on the data configuration page according to the current editing mode, the entire data configuration process is clearly visible, facilitating flexible operations on the data configuration page. This enables the terminal to obtain the data items corresponding to the data structure object of the target data format, thereby generating and displaying the data to be configured in the target data format, thus improving the flexibility and convenience of the data configuration process.

[0067] Figure 3 This is a flowchart illustrating a data configuration method provided in an embodiment of this application. The method is executed by a terminal; see [link to relevant documentation]. Figure 3 The method may include:

[0068] 301. The terminal receives a data configuration instruction, which is used to instruct the data to be configured to be configured according to the target data format.

[0069] In one possible example, the data to be configured could be application update data, such as the installation package used to update the old version of the application to the new version when updating the application version; or page data updated on a page of the application; or whitelist, blacklist, or other data of the application. This data to be configured is existing data, which can be locally stored or stored on other devices. In one possible example, the data to be configured can be in JSON format, and the target data format can be in schema format. A data configuration application is installed on the terminal, and the terminal receives data configuration commands triggered by the user on the data configuration application, initiating the data configuration process based on these commands.

[0070] In one possible example, a user could trigger the data configuration command by activating a button on a page within the data configuration application. For instance, this page could be the main page displayed when the terminal launches the data configuration application, where the user could activate a "New Configuration" button. When the terminal detects that the "New Configuration" button has been activated, it receives the data configuration command.

[0071] See Figure 4 , Figure 4 This is a schematic diagram of a data configuration application page provided in an embodiment of this application, such as... Figure 4 As shown, the left side of the data configuration application page includes a "Create Configuration" button, which users can trigger to execute data configuration commands. For example, a user can open the data configuration application and create a configuration request for JSON data. Additionally, the page may include a "Configuration List" button, used to view historical configuration data. The data configuration application can also have product management functionality; the page can further include a "Create Product" button and a "Product List" button based on this function. The "Create Product" button triggers the creation of a new product, while the "Product List" button displays product information for existing products.

[0072] 302. The terminal responds to the data configuration command and displays the identification information configuration page.

[0073] The identification information configuration page is used to configure the identification information of the data to be configured.

[0074] See Figure 5 , Figure 5 This is a schematic diagram of an identification information configuration page provided in an embodiment of this application, such as... Figure 5 As shown, in one possible example, when the terminal detects... Figure 4 When the "Create New Configuration" button is triggered, the terminal displays... Figure 5 The image shows the identification information configuration page. This page includes data identifier items for the data to be configured, which indicate the identification information for the input data.

[0075] In one possible example, the identification information of the data to be configured may include one or more identification information, such as, but not limited to: the file name of the data to be configured, the name of the application to which the data to be configured belongs, and the configuration title corresponding to the data to be configured. Figure 5 To display the identification information configuration page after triggering the "Create Configuration" button, such as Figure 5 As shown, the identification information configuration page includes three data identification items: configuration title, release file name, and the name of the product to which it belongs. The name of the product to which it belongs can be the name of the application to which the data to be configured belongs. The release file name can be the name of the file used to store the configured data. The identification information configuration page also includes an input box for each of the three identification items.

[0076] 303. The terminal obtains the identification information of the data to be configured based on the identification information configuration page.

[0077] The terminal acquires the identification information of the data to be configured, entered by the user on the identification information configuration page. This identification information indicates the identity of the data to be configured. This identification information may include, but is not limited to, the title, file name, and the product name to which the configuration data belongs. In one possible example, the identification information configuration page may include input boxes for various identification information items, and the terminal displays... Figure 5 When configuring the identification information on the page shown, users can enter the corresponding identification information in the input boxes for each identification item. For example, users can enter the configuration title, publication file name, and product name of the data to be configured in the input boxes corresponding to the configuration title, publication file name, and product name, and then click the save button. When the terminal detects that the save button has been triggered, the terminal obtains the information entered by the user in the input boxes corresponding to each identification item and uses it as the identification information of the data to be configured.

[0078] When the terminal receives a data configuration command, it first displays an identification information configuration page through steps 302-303 above. This page includes multiple input boxes for identification information, which allows users to flexibly define various identification information of the data to be configured in each input box. The terminal can accurately obtain identification information based on this page, which greatly improves the convenience and flexibility of the data configuration process.

[0079] 304. The terminal displays a data configuration page, which is used to configure the data to be configured according to the target data format.

[0080] After obtaining the data identifier of the data to be configured, the terminal can further define the various data items of the data to be configured according to the data structure object in the target data format. In one possible implementation, the terminal can display a data configuration page where the user can configure the data format of the data to be configured. The data configuration application also provides different editing modes, which indicate the method of obtaining the data items corresponding to the data structure object. The data configuration page obtains data items differently in different editing modes. In one possible example, the editing mode can be a visual editing mode. When the data configuration page is in visual editing mode, it can include the data structure object of the target data format and the input area of ​​the data item corresponding to the data structure object. The terminal can configure the data to be configured based on the data in the data item input area. In another possible example, the editing mode can be a code editing mode. When the data configuration page is in code editing mode, it can include a code editing area where the terminal can configure the data to be configured based on the target code entered by the user in the code editing area.

[0081] In one possible implementation, the data configuration page may include an editing mode switch button, allowing the user to switch between visual editing mode and code editing mode on the data configuration page by triggering the button. This process may include: the terminal responding to a trigger event on the editing mode switch button on the data configuration page by switching the current editing mode to either visual editing mode or code editing mode. See also Figure 6 , Figure 6 This is a schematic diagram of a data configuration page provided in an embodiment of this application. Figure 6 The data configuration page shown is the data configuration page corresponding to the visual editing mode. The upper left corner of this data configuration page includes an editing mode switch button. Users can trigger this button to switch from the current visual editing mode to a code editing mode that supports code editing. Correspondingly, the current data configuration page will also switch to a data configuration page that includes a code editing area. Figure 6As shown, in the current visual editing mode, the data item input area can be in the form of an input box. The terminal displays various data structure objects corresponding to the target data format on the data configuration page, and displays input boxes at the corresponding positions of each data structure object to indicate the data items corresponding to the data to be configured in each data structure object. By intuitively displaying the data structure objects corresponding to the target data format on the data configuration page, the terminal provides users with a visual display page, thus clearly showing the data structure corresponding to the target data format. Furthermore, by displaying the input boxes corresponding to each data structure object, users can edit on this visual display page. This clear and intuitive visual editing page provides users with a visual editing mode, making the data configuration process easier to operate. It should be noted that the target data format can be a schema format, and the data to be configured can be JSON data. The visual editing of this data configuration application can use the JSON-Schema protocol specification. That is, the data configuration page of this data configuration application can be a visual editing component generated using JSON-Schema as the specification, allowing users to operate the visual form to edit and modify the data items of the data to be configured. It is clear, easy to understand, and convenient to use, greatly improving the convenience of the data configuration process.

[0082] In another possible example, in code editing mode, the data configuration page can include a code editing area where users can enter target code to define the data items corresponding to each data structure object of the data to be configured, thereby configuring the data. The terminal displays this code editing area, allowing users to directly edit the code and define the data items corresponding to each data structure object by directly entering code. This code editing area provides users with a code editing mode that supports code editing, giving them a near-native code editing experience. Furthermore, this code editing area can be a region based on Monaco components, and the terminal can also provide functions such as verification, highlighting, formatting, and shortcut key saving in the code editing area, providing users with a feature-rich and easy-to-use code editing area, making the code editing process more convenient and greatly improving the flexibility of the data configuration process.

[0083] By displaying this data configuration page, users can directly perform data configuration operations on this visual page, intuitively displaying the data configuration process and making it clearly visible. Furthermore, the editing mode switch button on this data configuration page allows users to flexibly switch between visual editing mode and code editing mode, greatly improving the convenience of data configuration.

[0084] 305. The terminal obtains the data item corresponding to the data structure object based on the current editing mode of the data configuration page.

[0085] The current editing mode is used to indicate the current retrieval method of the data items corresponding to the data structure object. Based on the two page formats corresponding to the two editing modes in step 304, this step can include the following two implementation methods.

[0086] Method 1: The current editing mode is visual editing mode. The data configuration page includes data structure objects and data item input areas. The terminal retrieves the data items from the data item input area and uses them as the data items corresponding to the data structure object.

[0087] In one possible example, the user can input data items in the data item input area corresponding to the data structure object. The terminal retrieves the data items entered by the user in the data item input area corresponding to the data structure object as the data item corresponding to that data structure object. In another possible example, the terminal can generate the data configuration page based on the data items corresponding to the data structure object in historical configuration data. For example, the terminal can obtain historical configuration records of historical configuration data, extract the historical data items corresponding to the data structure object when the historical configuration data was previously configured from the historical configuration records; the terminal generates the data configuration page based on the data structure object and the historical data items. The terminal can display the historical data items corresponding to the data structure object on the data configuration page. The user can also modify the historical data items as needed. If the historical data item is the same as the data item to be configured now, it does not need to be modified. When the editing operation on the data configuration page is detected to be finished, the terminal retrieves the data item corresponding to the data structure object from the data item input area corresponding to the data structure object. The user can trigger the end of the editing operation by triggering a button on the data configuration page. For example, as shown... Figure 6 As shown, users can trigger the "Save," "Publish," "Link," or "Page" buttons to end the editing operation in the terminal. It should be noted that by automatically generating a data configuration page that includes historical data items based on historical configuration data, users can operate on existing historical data items, greatly simplifying user operations on the data configuration page and further improving the efficiency of the data configuration process.

[0088] This data structure can contain multiple objects; see [link / reference] Figure 6The data configuration page displays several data structure objects such as test_arr, test_obj, and test_complex. Each data structure object has an input box below it, where users can enter the corresponding data item from the data structure object to be configured. For example... Figure 6 As shown, the input box below `row` in `test_arr` contains the corresponding data item "2", and the input box below `obj_a` in `test_obj` contains the corresponding data item "test". Alternatively, taking a whitelist of data including names and phone numbers as an example, users can enter the corresponding data item "name" in the input box below `row` in `test_arr` and the corresponding data item "phone number" in the input box below `obj_a` in `test_obj` to define the corresponding data item for each data structure object in the data to be configured.

[0089] The data configuration page may also include multiple function buttons. For example, the top of the page may include buttons such as a "Schema" button, a "Save" button, a "Publish" button, a "Link" button, and a "Page" button. The "Schema" button allows users to view the generated schema content; users can trigger this button to view the format of the data to be configured based on the information configured on the current data configuration page. The "Save" button saves the data items corresponding to each data structure object configured on the current data configuration page to the test environment. The "Publish" button configures and publishes the data to be configured according to the information configured on the current data configuration page. The "Link" button represents a resource link to the data to be configured; for example, the resource link can be the storage path of the data to be configured in the local storage space; or, if the data to be configured is located on another device, the link can also be the network address of the data to be configured. The "Page" button configures the data to be configured according to the information configured on the current data configuration page and displays the effect of the page corresponding to the configured data.

[0090] The data configuration page also includes operation buttons for data structure objects, such as add, delete, and dropdown buttons. See also Figure 6For example, the dropdown button to the left of `test_arr` allows users to trigger other operations on `test_arr`, such as deletion and modification. The "+row" button below the corresponding input box adds a row and its corresponding input box; the "×Last row" button deletes the last row and its corresponding input box; and the "×" button to the right of the corresponding input box deletes the left input box and its corresponding row. This data configuration page can also include a Properties button, which represents attributes. For example, users can trigger the Properties button to the right of "Test" to modify "Test".

[0091] In one possible implementation, after obtaining the data items input by the user, the terminal determines the correspondence between multiple data structure objects and data items based on each data structure object and its corresponding data item. The terminal then stores this correspondence in local storage. In one possible example, taking the target data format as a Schema, the terminal can generate the correspondence between each data structure object of the Schema and the data items in the data to be configured, based on the data items corresponding to each data structure object in the Schema configuration page.

[0092] By displaying data structure objects and data item input areas on the data configuration page, users can easily input the corresponding data items for each data structure object directly in the data item input areas. The terminal accurately retrieves the data items corresponding to each data structure based on these input areas, improving the convenience and accuracy of data configuration. Furthermore, the terminal can also display historical data items from previous configurations, providing users with further reference data. This allows users to directly input data items in existing data item input areas and modify historical data items, enhancing the flexibility of the data configuration process.

[0093] Method 2: The current editing mode is code editing mode. The data configuration page includes a code editing area. The terminal obtains the target code input by the user based on the code editing area included in the data configuration page, and determines the data item corresponding to the data structure object based on the target code.

[0094] Users can enter target code in the code editing area. This target code can be the data to be configured, or it can be the path to retrieve that data. The retrieval path refers to the path where the data to be configured is obtained. For example, the retrieval path can be the local storage address or network link address of the data to be configured.

[0095] In one possible example, the terminal is configured with a target algorithm used to predict the data items corresponding to data structure objects in the data to be configured. The terminal can read the target code and, based on the target algorithm, recursively read the data to be configured, parse the data, and identify the data items corresponding to each data structure object. For example, taking the schema format as an example, the user can input the JSON data to be configured, or the local storage address or network link address of the JSON data, in the code editing area. The terminal parses the data content included in the data to be configured according to the target algorithm. Based on the parsing result, the terminal predicts the correspondence between data structure objects and data items. Based on the predicted correspondence between data structure objects and data items, the terminal generates the JSON-Schema specification of the JSON data to be configured. This JSON-Schema specification defines the data items corresponding to each structure object in the JSON data.

[0096] See Figure 6 By triggering the edit mode button on the data configuration page, the user can switch the terminal from visual editing mode to code editing mode, which displays a code editing area. This code editing area can include multiple buttons such as a verification button for validation, a highlight button for highlighting, a formatting button for formatting, and a save button for quick saving. Users can trigger these buttons during code editing to enable the corresponding functions on the terminal, thus providing a near-native code editing experience.

[0097] See Figure 7 , Figure 7 This is a flowchart of a data configuration method provided in an embodiment of this application, such as... Figure 7As shown, the terminal opens the data configuration application and triggers the configuration creation process by clicking the "New Configuration" button on the main page, which is to trigger the terminal's data configuration command. The terminal can also first display a data identification information configuration page to obtain the data identification information of the data to be configured. Based on the code editing area displayed in code editing mode, the terminal can estimate the data items corresponding to each data structure object in the data to be configured using the target code in the code editing area. Alternatively, the terminal can also obtain the data items corresponding to each data structure object based on the data structure objects and data item input areas included in the data configuration page displayed in visual editing mode, generating the correspondence between data structure objects and data items. In one possible example, the terminal can also reuse the configured correspondence between data structure objects and data items to regenerate the visual data configuration page. For example, when data configuration is needed again, the terminal can directly use the current configuration to generate the visual data configuration page. Alternatively, the terminal can open the data configuration application without creating a configuration; instead, it can directly obtain the historical configuration records of previous data configurations and generate the visual data configuration page based on the editing operations on these historical records.

[0098] In one possible implementation, in this code editing mode, when the terminal detects that the editing mode switch button has been triggered, the terminal can determine the data item corresponding to the data structure object to be configured based on the target code in the code area using a target algorithm. The terminal then displays the data structure object and its corresponding data item input area on the data configuration page, and fills the determined data item corresponding to the data structure object into the corresponding data item input area. The terminal can display the determined data item corresponding to the data structure object on the data configuration page, allowing the user to modify it as needed.

[0099] It should be noted that this terminal can display page content corresponding to different editing modes on the data configuration page according to user needs, allowing users to perform data configuration operations. It can also pre-configure historical data items corresponding to data structure objects in this input area based on historical configuration data for user use. Furthermore, users can flexibly switch between the two editing modes using a toggle button. When switching to visual editing mode, the terminal can directly fill the data item input area in visual editing mode with the data items corresponding to the data structure objects determined by the target code in the current code editing area, avoiding repetitive operations during mode switching and greatly improving data configuration efficiency.

[0100] 306. The terminal generates data in the target data format based on the data to be configured and the data items corresponding to the data structure object.

[0101] The terminal converts the data to be configured into the target data format based on the data items corresponding to each data structure object. In one possible example, the terminal can determine the data content of each data item based on the data content of the data structure object and the data item corresponding to the data structure object in the data to be configured, and generate data in the target data format. The target data format includes the data item and the data content corresponding to that data item. For example, if the data content corresponding to a certain data structure object in the data to be configured is the user's mobile phone number "XXXXXXX", and the data item corresponding to the data structure object obtained from the data configuration page is "mobile phone number", then the target data format includes "mobile phone number" and the data content "XXXXXXX" corresponding to the mobile phone number. By converting the data to be configured into the target data format according to the data items corresponding to the data structure objects, the terminal maps the data content in the data to be configured to the data items one by one, thereby achieving accurate data configuration.

[0102] After the terminal generates data in the target data format, it can also display the data in the target data format through the following step 307.

[0103] 307. The terminal displays the data in the target data format on the data display page.

[0104] This data display page is used to display data in the configured target data format. In one possible implementation, the terminal displays the data identification information and the data in the target data format on the data display page. For example, the terminal may display the data in the target data format, as well as the data's configuration title, published file name, and the name of the product to which it belongs, etc., on the data display page.

[0105] In one possible implementation, users can also view, delete, and edit the configured data on the data display page based on their needs. This process may include: the terminal responding to an editing operation on the target data format on the data display page and displaying the edited data on the data display page. For example, the terminal responding to an editing instruction for the target data format retrieves the edited data in that format; the terminal then displays the edited data in that format on the data display page. The editing instruction is used to instruct the user to perform editing operations on the target data format, including but not limited to: deletion, modification, addition, and viewing. By displaying the target data format data on the data display page, users can more intuitively and clearly understand the data configuration. Furthermore, users can perform editing operations on this page, facilitating further checking and verification, ultimately obtaining accurately configured data, thus improving the accuracy and convenience of the data configuration process.

[0106] In one possible implementation, the terminal can also reconfigure the configured historical configuration data. This process may include: the terminal displaying a historical configuration page; the terminal obtaining edited historical data items based on the editing operations on the historical configuration page; the terminal generating data in the target data format based on the data to be configured and the edited historical data items; and the terminal displaying the data in the target data format on a data display page. The historical configuration page includes historical data items corresponding to the data structure object in the historical configuration data. It should be noted that the terminal can redisplay the historical configuration page based on the data items corresponding to the data structure objects in the historical configuration data. Users can redefine the data items corresponding to each data structure object on the historical configuration page through editing operations. The terminal generates data in the target format based on the redefined data items corresponding to the data structure objects. It should be noted that the process of the terminal re-obtaining the historical data items corresponding to the data structure objects based on the historical configuration page and displaying the regenerated data is the same as steps 304-306 above, and will not be described in detail here.

[0107] In one possible example, the terminal can employ a code editing mode that supports code editing to implement the process corresponding to the editing command. This process may include: the terminal responding to the editing command by acquiring the edited target code, which indicates the data item corresponding to the data structure object; and the terminal converting the data to be configured into data in the target data format based on the edited target code. In another possible example, the terminal can employ a visual editing mode to implement the process corresponding to the editing command. This process may include: the terminal responding to the editing command by acquiring the edited data item corresponding to the data structure object; and the terminal converting the data to be configured into data in the target data format based on the edited data item.

[0108] 308. The terminal publishes data in the target data format.

[0109] The terminal can publish data in the target data format to the network for users to download. In one possible implementation, the terminal can publish data edited on the data display page to the network.

[0110] In one possible example, a user can trigger the publish button on the data configuration page, initiating a data publishing command. The terminal responds to this command by uploading data in the target data format to a content delivery network (CDN). This CDN comprises edge servers deployed across multiple geographical locations. Users retrieve the configured data from the nearest edge server. The CDN is an intelligent virtual network built on top of the existing network infrastructure. Relying on edge servers deployed in various locations, and through the load balancing, content distribution, and scheduling modules of the central platform, it enables users to obtain the required content from the nearest location, reducing network congestion and improving user access response speed and hit rate. In another possible example, the configured data could be application data. Users who need to retrieve the data can install the application on their terminals and download the data from the network using the application's SDK (Software Development Kit). For example, the platform architecture of this data configuration application can be a B / S (Browser / Server Architecture) architecture. Users who need to configure data can log in to the data configuration application through a webpage, create a configuration request for JSON data, and configure the data according to the steps in this embodiment. After receiving the created configuration data, the backend can push the configured data to the network, for example, to a computer cluster of a content delivery network. At this time, user terminals with the application installed can access the existing network resources through HTTP (Hypertext Transfer Protocol) requests to download the configured data. In addition, the content delivery network can support millions of concurrent requests per second. After the user terminal obtains the configured data from the network, it can directly present the data on the user terminal. For example, the data can be updated page data on a certain page of the application. Then, the user terminal can display the corresponding page on the application based on the pulled page data, so that the user can see the updated page effect on the application in real time.

[0111] In another possible implementation, the terminal, in response to a data publishing command, sends data in the target data format to a data server. The data server encrypts the data in the target data format and then stores the encrypted data. For example, the data server can generate encrypted configuration data based on the user identifier of a user with access rights. When a user terminal sends a data retrieval request to the data server, the data server uses the encrypted information to determine whether the user has access rights. If the user has access rights, the data server sends the configured data to the user terminal. The user terminal is the terminal with the application installed, and this application is the application to which the published data belongs. The data server can be the backend server of the application for which the data is to be configured, or it can be a dedicated server for storing access-controlled data. Of course, there can be one or more data servers. For example, the encrypted information can be an encrypted token. When a user wants to access the data server and obtain the configured data, they need to carry this encrypted token. The data server will verify the token before issuing the configured data. At the same time, the resource administrator can manage the encrypted token and quickly issue, modify, or delete the configured data based on it, thereby greatly improving the controllability of resources and enhancing the rigor and security of the data configuration process.

[0112] See Figure 8 , Figure 8 This is a flowchart of a data configuration method provided in an embodiment of this application. After the user edits and configures the data based on the data configuration page, the electronic terminal can store the configuration record based on the data configuration page. The terminal can also store the user's editing operation record of data in the target data format on the data display page, and publish the edited data to the network. Figure 8 As shown, if the published data is public data, it will be uploaded to a public content delivery network. If the published data is not public data, the terminal will store the data in a data server and access will be controlled based on permissions. That is, the user terminal can only obtain the data from the data server when it has the necessary access permissions.

[0113] It's important to note that user terminals can establish connections with servers or data servers within the content delivery network (CDN) via the network to retrieve data. For example, a terminal can use an HTTP (Hypertext Transfer Protocol) URL (Uniform Resource Locator) to obtain configured data from the nearest edge server within the CDN. This method is quick, simple, and has low access costs. Furthermore, the high performance and high concurrency of the CDN enhance the user experience. To address CDN caching issues, while CDN resources are being uploaded in the background, the servers within the CDN simultaneously invoke scripts to refresh the resource cache on the CDN nodes, ensuring that changes to the configured data are quickly updated and delivered to users within 1-5 minutes.

[0114] In one possible implementation, the terminal can also store the user's historical configuration records. These historical configuration records refer to configuration records of historical configuration data. For example, the historical configuration records include data items corresponding to each data structure object of the historical configuration data. For instance, the terminal can store historical configuration records of user operations on the data configuration page; and the user can view or edit these historical configuration records as needed. For example, a user can log in to their user account on the data configuration application and trigger a view command to view historical configuration records based on that user account. When the terminal receives the view command, it determines whether the user has viewing permissions. If the user has viewing permissions, the terminal displays the historical operation record. The terminal can store and maintain the user's configuration records on the data configuration application in real time, and provide a convenient rollback function. This allows users to easily view configuration history, modify data based on historical editing operations, further configure data, simplify the data configuration process, and greatly improve the flexibility of the data configuration process.

[0115] It should be noted that the data configuration solution provided by this application, which enables visual maintenance of data configuration, meets the needs of software developers for dynamically updating data configuration. Simultaneously, through the intuitive display process based on the data configuration page and data display page, a visual management method for data is achieved, making the data configuration application more user-friendly and enabling more convenient and simple real-time maintenance of application data. It also provides configuration permission management functionality, ensuring the security and controllability of the published data. Furthermore, a storage module is configured to store user configuration records, operation records, etc., and the published data is stored through edge servers deployed in various locations within the content delivery network, facilitating data distribution. Multiple solutions are provided, including data server-based permission-controlled data distribution, to meet the diverse needs of users in various scenarios. Users can choose according to their own scenarios, greatly improving the adaptability of the data configuration process based on this application.

[0116] The method provided in this application displays a data configuration page when data configuration is required. This visual data configuration page allows users to intuitively understand the data configuration process. By performing data configuration operations on the data configuration page according to the current editing mode, the entire data configuration process is clearly visible, facilitating flexible operations on the data configuration page. This enables the terminal to obtain the data items corresponding to the data structure object of the target data format, thereby generating and displaying the data to be configured in the target data format, thus improving the flexibility and convenience of the data configuration process.

[0117] Figure 9 This is a schematic diagram of the structure of a data configuration device provided in an embodiment of this application. (Refer to...) Figure 9 The device includes:

[0118] Display module 901 is used to display a data configuration page in response to a data configuration command. The data configuration page is used to configure the data to be configured according to the target data format.

[0119] The acquisition module 902 is used to acquire the data item corresponding to the data structure object of the target data format based on the current editing mode of the data configuration page. The current editing mode is used to indicate the current acquisition method of the data item corresponding to the data structure object.

[0120] The generation module 903 is used to generate data in the target data format based on the data to be configured and the data items corresponding to the data structure object;

[0121] The display module 901 is also used to display data in the target data format on the data display page.

[0122] In one possible implementation, the current editing mode is a visual editing mode, and the data configuration page includes a data structure object for the target data format and a data item input area corresponding to the data structure object;

[0123] The acquisition module 902 is used to acquire the data items in the data item input area and use the data items in the data item input area as the data items corresponding to the data structure object.

[0124] In one possible implementation, the current editing mode is a code editing mode, and the data configuration page includes a code editing area; the acquisition module 902 is used for:

[0125] Retrieve the target code entered in the code editing area;

[0126] Based on the target code, the data items corresponding to the data structure object are determined.

[0127] In one possible implementation, the data configuration page includes an edit mode switching button, and the device further includes:

[0128] The switching module is used to respond to the trigger event of the editing mode switching button on the data configuration page, and switch the current editing mode to visual editing mode or code editing mode.

[0129] In one possible implementation, the display module 901 is also used to display an identification information configuration page;

[0130] The acquisition module 902 is also used to acquire the data identification information of the data to be configured based on the identification information configuration page;

[0131] Accordingly, the display module 901 is used to display the data identification information and the target data format on the data display page.

[0132] In one possible implementation, the display module 901 is further configured to display a historical configuration page, which includes historical data items corresponding to the data structure object in the historical configuration data;

[0133] The acquisition module 902 is also used to acquire edited historical data items based on the editing operations in the historical configuration page;

[0134] The generation module 903 is also used to generate data in the target data format based on the data to be configured and the edited historical data item.

[0135] In one possible implementation, the display module 901 is further configured to display the edited data on the data display page in response to an editing operation on the data of the target data format on the data display page.

[0136] In one possible implementation, the device further includes any of the following:

[0137] The first publishing module is used to respond to data publishing instructions and upload data in the target data format to the content delivery network;

[0138] The second publishing module is used to respond to the data publishing instruction by sending the data in the target data format to the data server. The data server is used to encrypt the data in the target data format and then store the encrypted data in the target data format.

[0139] In this embodiment, a data configuration page is displayed when data configuration is required. This visual data configuration page allows users to intuitively understand the data configuration process. By performing data configuration operations on the data configuration page in the current editing mode, the entire data configuration process is clearly visible, facilitating flexible operations on the data configuration page. This enables the terminal to obtain the data items corresponding to the data structure object of the target data format, thereby generating and displaying the data to be configured in the target data format, thus improving the flexibility and convenience of the data configuration process.

[0140] It should be noted that the data configuration device provided in the above embodiments is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the data configuration device and the data configuration method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0141] Figure 10 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. The terminal 1000 can be: a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The terminal 1000 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.

[0142] Typically, terminal 1000 includes one or more processors 1001 and one or more memories 1002.

[0143] Processor 1001 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1001 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1001 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1001 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0144] The memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1002 are used to store at least one instruction, which is executed by the processor 1001 to implement the data configuration method provided in the method embodiments of this application.

[0145] In some embodiments, the terminal 1000 may also optionally include a peripheral device interface 1003 and at least one peripheral device. The processor 1001, memory 1002, and peripheral device interface 1003 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1004, a display screen 1005, a camera assembly 1006, an audio circuit 1007, and a power supply 1009.

[0146] Peripheral device interface 1003 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1001 and memory 1002. In some embodiments, processor 1001, memory 1002 and peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1001, memory 1002 and peripheral device interface 1003 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0147] The radio frequency (RF) circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1004 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1004 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1004 can communicate with other terminals via at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1004 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.

[0148] Display screen 1005 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1005 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1001 for processing. In this case, display screen 1005 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1005, disposed on the front panel of terminal 1000; in other embodiments, there may be at least two display screens, disposed on different surfaces of terminal 1000 or in a folded design; in still other embodiments, display screen 1005 may be a flexible display screen, disposed on a curved or folded surface of terminal 1000. Furthermore, display screen 1005 may be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 1005 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0149] The camera assembly 1006 is used to acquire images or videos. Optionally, the camera assembly 1006 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 1006 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.

[0150] The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 1001 for processing, or input to the radio frequency circuit 1004 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned at a different location on the terminal 1000. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1007 may also include a headphone jack.

[0151] The power supply 1009 is used to power the various components in the terminal 1000. The power supply 1009 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When the power supply 1009 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0152] In some embodiments, the terminal 1000 further includes one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: an acceleration sensor 1011, a gyroscope sensor 1012, a pressure sensor 1013, an optical sensor 1015, and a proximity sensor 1016.

[0153] Accelerometer 1011 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by terminal 1000. For example, accelerometer 1011 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 1001 can control display screen 1005 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 1011. Accelerometer 1011 can also be used for games or for acquiring user motion data.

[0154] The gyroscope sensor 1012 can detect the orientation and rotation angle of the terminal 1000. The gyroscope sensor 1012, in conjunction with the accelerometer sensor 1011, can collect 3D motion data from the user on the terminal 1000. Based on the data collected by the gyroscope sensor 1012, the processor 1001 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.

[0155] The pressure sensor 1013 can be disposed on the side bezel of the terminal 1000 and / or on the lower layer of the display screen 1005. When the pressure sensor 1013 is disposed on the side bezel of the terminal 1000, it can detect the user's grip signal on the terminal 1000, and the processor 1001 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1013. When the pressure sensor 1013 is disposed on the lower layer of the display screen 1005, the processor 1001 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1005. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

[0156] An optical sensor 1015 is used to collect ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the display screen 1005 based on the ambient light intensity collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the display screen 1005 is decreased. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 based on the ambient light intensity collected by the optical sensor 1015.

[0157] The proximity sensor 1016, also known as a distance sensor, is typically mounted on the front panel of the terminal 1000. The proximity sensor 1016 is used to detect the distance between the user and the front of the terminal 1000. In one embodiment, when the proximity sensor 1016 detects that the distance between the user and the front of the terminal 1000 is gradually decreasing, the processor 1001 controls the display screen 1005 to switch from a screen-on state to a screen-off state; when the proximity sensor 1016 detects that the distance between the user and the front of the terminal 1000 is gradually increasing, the processor 1001 controls the display screen 1005 to switch from a screen-off state to a screen-on state.

[0158] Those skilled in the art will understand that Figure 10 The structure shown does not constitute a limitation on terminal 1000 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0159] In an exemplary embodiment, a computer-readable storage medium storing at least one line of program code is also provided, such as a memory storing at least one line of program code, which is loaded and executed by a processor to implement the data configuration method in the above embodiments. For example, the computer-readable storage medium may be read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.

[0160] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer program code stored in a computer-readable storage medium. A processor of a computer device reads the computer program code from the computer-readable storage medium and executes the computer program code, causing the computer device to perform the data configuration method described above.

[0161] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by hardware related to program instructions. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0162] The above are merely optional embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A data configuration method, characterized in that, The method includes: In response to a data configuration command, a data configuration page is displayed for configuring the data to be configured according to the target data format. Based on the current editing mode of the data configuration page, the data item corresponding to the data structure object of the target data format is obtained. The current editing mode is used to indicate the current acquisition method of the data item corresponding to the data structure object. Based on the data to be configured and the data items corresponding to the data structure object, generate data in the target data format; Display the data in the target data format on the data display page; The data configuration page includes an editing mode switching button, wherein the current editing mode is one of a visual editing mode and a code editing mode, and when the current editing mode is the code editing mode, the data configuration page includes a code editing area; the method further includes: In the code editing mode, when the editing mode switching button is triggered, the data item corresponding to the data structure object is determined according to the target code in the code editing area, and the data structure object of the target data format and the data item input area corresponding to each data structure object are displayed on the data configuration page. In addition, the data item corresponding to the data structure object edited in the code editing mode is filled into the corresponding data item input area.

2. The method according to claim 1, characterized in that, The current editing mode is a visual editing mode; the process of obtaining the data items corresponding to the data structure object of the target data format based on the current editing mode of the data configuration page includes: Obtain the data items in the data item input area, and use the data items in the data item input area as the data items corresponding to the data structure object.

3. The method according to claim 1, characterized in that, The current editing mode is code editing mode; the process of obtaining the data items corresponding to the data structure object of the target data format based on the current editing mode of the data configuration page includes: Obtain the target code entered in the code editing area; Based on the target code, the data items corresponding to the data structure object are determined.

4. The method according to claim 1, characterized in that, Before displaying the data configuration page for configuring the data to be configured according to the target data format, the method further includes: Display the identification information configuration page; Based on the identification information configuration page, obtain the data identification information of the data to be configured; Accordingly, the data displayed in the target data format on the data display page includes: The data identification information and the target data format are displayed on the data display page.

5. The method according to claim 1, characterized in that, The method further includes: Display the historical configuration page, which includes historical data items corresponding to the data structure objects in the historical configuration data; Based on the editing operations in the historical configuration page, obtain the edited historical data items; Based on the data to be configured and the edited historical data items, data in the target data format is generated.

6. The method according to claim 1, characterized in that, After displaying the data in the target data format on the data display page, the method further includes: In response to an editing operation on the target data format on the data display page, the edited data is displayed on the data display page.

7. The method according to claim 1, characterized in that, After displaying the data in the target data format on the data display page, the method further includes any one of the following: In response to a data publishing instruction, data in the target data format is uploaded to the content delivery network; In response to a data publishing command, data in the target data format is sent to a data server, which encrypts the data in the target data format and then stores the encrypted data in the target data format.

8. The method according to claim 1, characterized in that, The method further includes: In response to the trigger event of the edit mode switching button on the data configuration page, the current edit mode is switched to the code editing mode.

9. A data configuration device, characterized in that, The device includes: The display module is used to respond to data configuration commands and display a data configuration page for configuring the data to be configured according to the target data format. The acquisition module is used to acquire the data item corresponding to the data structure object of the target data format based on the current editing mode of the data configuration page. The current editing mode is used to indicate the current acquisition method of the data item corresponding to the data structure object. The generation module is used to generate data in the target data format based on the data to be configured and the data items corresponding to the data structure object; The display module is also used to display data in the target data format on the data display page; The data configuration page includes an editing mode switching button. The current editing mode is either a visual editing mode or a code editing mode. When the current editing mode is the code editing mode, the data configuration page includes a code editing area. The device also includes a module for performing the following steps: In the code editing mode, when the editing mode switching button is triggered, the data item corresponding to the data structure object is determined according to the target code in the code editing area, and the data structure object of the target data format and the data item input area corresponding to each data structure object are displayed on the data configuration page. In addition, the data item corresponding to the data structure object edited in the code editing mode is filled into the corresponding data item input area.

10. The apparatus according to claim 9, characterized in that, The current editing mode is a visual editing mode; the acquisition module is used to acquire the data items in the data item input area and use the data items in the data item input area as the data items corresponding to the data structure object.

11. The apparatus according to claim 9, characterized in that, The current editing mode is code editing mode; the acquisition module is used for: Obtain the target code entered in the code editing area; Based on the target code, the data items corresponding to the data structure object are determined.

12. The apparatus according to claim 9, characterized in that, The display module is also used to display the identification information configuration page; The acquisition module is further configured to acquire the data identification information of the data to be configured based on the identification information configuration page; Accordingly, the display module is also used to display the data identification information and the target data format data on the data display page.

13. The apparatus according to claim 9, characterized in that, The display module is also used to display a historical configuration page, which includes historical data items corresponding to the data structure object in the historical configuration data; The acquisition module is also used to acquire edited historical data items based on the editing operations in the historical configuration page; The generation module is also used to generate data in the target data format based on the data to be configured and the edited historical data items.

14. The apparatus according to claim 9, characterized in that, The display module is also configured to respond to an editing operation on the target data format on the data display page and display the edited data on the data display page.

15. The apparatus according to claim 9, characterized in that, The device further includes any one of the following: The first publishing module is used to upload data in the target data format to the content delivery network in response to the data publishing instruction; The second publishing module is used to send data in the target data format to the data server in response to the data publishing instruction. The data server is used to encrypt the data in the target data format and then store the encrypted data in the target data format.

16. The apparatus according to claim 9, characterized in that, The device further includes a switching module for: In response to the trigger event of the edit mode switching button on the data configuration page, the current edit mode is switched to the code editing mode.

17. A terminal, characterized in that, The terminal includes one or more processors and one or more memories, wherein at least one piece of program code is stored in the one or more memories, and the at least one piece of program code is loaded and executed by the one or more processors to implement the data configuration method as described in any one of claims 1 to 8.

18. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one piece of program code, which is loaded and executed by a processor to implement the data configuration method as described in any one of claims 1 to 8.

19. A computer program product comprising computer program code stored in a computer-readable storage medium, wherein a processor of a computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code to cause the computer device to perform the data configuration method as described in any one of claims 1 to 8.