Code platform building method and device, electronic equipment and storage medium

By automatically identifying and configuring the design specification parameters of low-code platform components, the problem of long-term and error-prone front-end component style configuration is solved, and a fast and accurate configuration process is achieved to ensure that the results are consistent with the design specifications.

CN119166131APending Publication Date: 2024-12-20XINHUA SAN IND INTERNET CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The front-end component style configuration of existing low-code platforms is time-consuming and error-prone, and cannot be completed quickly and in accordance with design specifications.

Method used

By obtaining the structured parameter list in the design specification document, automatically identify and configure the target configuration items of the code platform components, use optical character recognition and natural language processing technology to extract the design specification parameters and attribute values, build a structured parameter list, and automatically configure the components. to ensure consistency.

Benefits of technology

Significantly save time and human resources, avoid configuration inconsistency caused by misoperation, and ensure that the configuration results are consistent with the design specifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166131A_ABST
    Figure CN119166131A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, in particular to a code platform building method and device, electronic equipment and a storage medium. According to the method, firstly, the design specification document is identified to obtain the structured parameter list, and the design specification parameters and the attribute values corresponding to the design specification parameters are defined, so that the whole configuration process has an accurate and uniform standard source. And the design specifications do not need to be manually interpreted and judged one by one. And secondly, the target configuration item corresponding to the design specification parameter is automatically obtained from the code platform component, so that the pertinence and accuracy of the configuration are ensured. And the configurable item of each component does not need to be manually searched and determined. And finally, the target configuration item is automatically configured by utilizing the attribute value corresponding to the design specification parameter, so that misoperation possibly caused by manual operation is avoided. The whole process is automatically completed by the system, so that the consistency of the configuration result and the design specification is ensured, and the inconsistency caused by human errors is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for building a code platform. Background Art

[0002] The front-end components of the low-code platform have a wealth of style properties available for configuration. Common quick configuration methods include directly editing properties, that is, the low-code platform generally provides the function of directly modifying component style properties such as font, color, background, etc., and if some style properties cannot be implemented in the regular property configuration, some low-code platforms also allow users to customize the CSS style of the component so that they can adjust the component appearance according to the design specifications.

[0003] However, the current technology has a major weakness, which is that it is impossible to quickly and in accordance with the design specifications complete the configuration of the low-code platform front-end component style. Users often can only rely on manual fine-tuning of parameters to achieve the required changes. Considering that an application has about a hundred pages, each page contains multiple components, and a component has multiple properties that need to be configured according to the design specifications, this manual configuration method not only consumes a lot of time and human resources, but also easily causes the results to be inconsistent with the design specifications due to misoperation. Summary of the invention

[0004] In view of this, the embodiments of the present invention provide a method, device, electronic device and storage medium for building a code platform to solve the problem that the manual configuration method not only consumes a lot of time and human resources, but is also very likely to cause the results to be inconsistent with the design specifications due to misoperation.

[0005] In a first aspect, an embodiment of the present invention provides a method for building a code platform, the method comprising:

[0006] Acquire a structured parameter list obtained by identifying a design specification document corresponding to the code platform, wherein the structured parameter list includes design specification parameters in the design specification document and attribute values ​​corresponding to the design specification parameters;

[0007] Acquire a target configuration item corresponding to the design specification parameter from a code platform component;

[0008] The target configuration item is configured using the attribute value corresponding to the design specification parameter to obtain the configured target configuration item;

[0009] Use the configured target configuration items to build a visual interface for the code platform.

[0010] Furthermore, the obtaining of the structured parameter list obtained by identifying the design specification document corresponding to the code platform includes:

[0011] Acquire a design specification document, and identify text data in the design specification document;

[0012] Extracting design specification parameters included in the text data, and attribute values ​​corresponding to the design specification parameters;

[0013] A structured parameter list is constructed using the design specification parameters and the attribute values.

[0014] Further, the identifying text data in the design specification document includes:

[0015] converting the design specification document into a design specification image;

[0016] Preprocessing the design specification image to obtain a preprocessed design specification image, wherein the preprocessing includes but is not limited to adjusting the brightness and contrast of the image and removing noise;

[0017] Invoking an optical character recognition tool to recognize the preprocessed design specification image to obtain a recognition result, wherein the recognition result includes original text data;

[0018] Detecting semantic information of the original text data;

[0019] The original text data is corrected using the semantic information to obtain the text data.

[0020] Furthermore, the extracting of the design specification parameters included in the text data and the attribute values ​​corresponding to the design specification parameters includes:

[0021] Detecting design specification parameters carried in the text data;

[0022] Extracting context information corresponding to the design specification parameters from the text data;

[0023] An attribute value corresponding to the design specification parameter is identified based on the context information.

[0024] Further, configuring the target configuration item using the attribute value corresponding to the design specification parameter to obtain the configured target configuration item includes:

[0025] Acquire a pre-established mapping relationship table, wherein the mapping relationship table includes a mapping relationship between preset design specification parameters and configuration items;

[0026] The target configuration item corresponding to the design specification parameter is obtained from the mapping relationship table, and the attribute value corresponding to the design relationship parameter is assigned to the corresponding target configuration item to obtain the configured target configuration item.

[0027] Furthermore, after building a visual interface of the code platform using the configured target configuration items, the method further includes:

[0028] Monitoring whether an update event occurs to the design specification document;

[0029] If an update event occurs to the design specification document, parsing and obtaining the updated content of the design specification document;

[0030] Detecting whether the updated content satisfies an automatic update condition, and if so, extracting a target design specification parameter to be updated and a target attribute value corresponding to the target design specification parameter based on the updated content;

[0031] Using the target attribute value, the attribute value of the target configuration item corresponding to the target design specification parameter is updated to obtain an updated target configuration item;

[0032] The visual interface of the code platform is rebuilt using the updated target configuration items.

[0033] Furthermore, the method further comprises:

[0034] If the automatic update condition is not met, generating an update prompt based on the update content, and sending the update prompt to the target client, wherein the target client is used to verify the update content;

[0035] Receive an operation instruction from the target client based on the update prompt feedback;

[0036] The operation instruction is parsed, and if the operation instruction includes update content or part of update content, an update operation is performed based on the update content or part of update content in the operation instruction.

[0037] In a second aspect, an embodiment of the present invention provides a device for building a code platform, the device comprising:

[0038] A first acquisition module is used to acquire a structured parameter list obtained by identifying a design specification document corresponding to a code platform, wherein the structured parameter list includes design specification parameters in the design specification document and attribute values ​​corresponding to the design specification parameters;

[0039] A second acquisition module is used to acquire a target configuration item corresponding to the design specification parameter from a code platform component;

[0040] A configuration module, configured to configure the target configuration item using the attribute value corresponding to the design specification parameter to obtain the configured target configuration item;

[0041] The building module is used to build a visual interface of the code platform using the configured target configuration items.

[0042] In a third aspect, an embodiment of the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0043] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding embodiment thereof.

[0044] The method provided in the embodiment of the present application first obtains a structured parameter list by identifying the design specification document, in which the design specification parameters and their corresponding attribute values ​​are clearly defined, which provides an accurate and unified standard source for the entire configuration process. It is no longer necessary to manually interpret and judge the design specifications one by one, avoiding configuration errors caused by misunderstandings. Secondly, the target configuration items corresponding to the design specification parameters are automatically obtained from the code platform components to ensure the pertinence and accuracy of the configuration. There is no need to manually find and determine the configurable items of each component, which greatly saves time and manpower. Finally, the target configuration items are automatically configured using the attribute values ​​corresponding to the design specification parameters, avoiding possible misoperations caused by manual operations. The entire process is automatically completed by the system and configured strictly in accordance with the design specifications, thereby ensuring the consistency of the configuration results with the design specifications, and no inconsistencies caused by human errors will occur. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 is a flowchart of a method for building a code platform according to some embodiments of the present invention;

[0047] Figure 2 is a flowchart of a method for building a code platform according to some embodiments of the present invention;

[0048] Figure 3 is a structural block diagram of a device for building a code platform according to an embodiment of the present invention;

[0049] Figure 4It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0051] According to an embodiment of the present invention, a method, device, electronic device and storage medium for building a code platform are provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0052] In this embodiment, a method for building a code platform is provided. Figure 1 is a flow chart of a method for building a code platform according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0053] Step S101, obtaining a structured parameter list obtained by identifying a design specification document corresponding to a code platform, wherein the structured parameter list includes design specification parameters in the design specification document and attribute values ​​corresponding to the design specification parameters.

[0054] In an embodiment of the present application, the code platform may include a low-code platform, for example. A low-code platform is a software development tool that allows developers to quickly build applications through a visual interface and a small amount of code. Low-code platforms usually provide a series of pre-built components and templates, and developers can create applications through simple operations such as dragging and dropping and configuring. This can greatly improve development efficiency, reduce development costs, and enable non-professional developers to participate in application development. For example, a low-code platform may provide form components, chart components, layout templates, etc. Developers can select these components on the visual interface, set their properties, such as color, size, position, etc., and then combine them to build a complete application.

[0055] A design specification document is a document that details the design standards and specifications for an application. It is usually developed by a designer or design team to ensure consistency in the appearance, user experience, and functionality of the application. The design specification document contains the following:

[0056] ① Color specification: Specifies the primary, secondary, and accent colors used in the application, usually expressed in the form of color codes (such as hexadecimal color values).

[0057] ②Font specifications: specify the font type, size, color, thickness, etc. used in the application.

[0058] ③Layout specifications: describe the application’s page layout, component arrangement and spacing, etc.

[0059] ④ Icon specifications: Determine the icon style, size, color, etc. used in the application.

[0060] ⑤Interaction specifications: define how users interact with the interface in the application, such as the feedback effects of clicks, slides, inputs, and other operations.

[0061] The structured parameter list converts the abstract specifications in the design specification document into specific parameters and attribute values, so that these specifications can be applied more accurately when developing applications on the low-code platform. For example, if the design specification document stipulates that the color of a button is blue (#007BFF), then in the structured parameter list, there may be a design specification parameter for "button color" with a corresponding attribute value of "#007BFF". In this way, when developing applications on the low-code platform, you can directly use this attribute value to set the color of the button to ensure that the application meets the design specifications.

[0062] In an embodiment of the present application, obtaining a structured parameter list obtained by identifying a design specification document corresponding to a code platform includes the following steps A1-A3:

[0063] Step A1, obtaining a design specification document and identifying text data in the design specification document.

[0064] Specifically, recognizing text data in a design specification document includes: converting the design specification document into a design specification image; preprocessing the design specification image to obtain a preprocessed design specification image, wherein the preprocessing includes but is not limited to adjusting the brightness and contrast of the image and removing noise. Calling an optical character recognition tool (OCR) to recognize the preprocessed design specification image to obtain a recognition result, which includes original text data. Detecting semantic information of the original text data; and correcting the original text data using the semantic information to obtain text data.

[0065] It should be noted that, first of all, design specification documents may exist in multiple formats, such as PDF, Word, Excel, JPG, PNG, etc. For PDF files, you can use specific software to convert its pages into image formats, with one image per page. For Word and Excel files, you can use a screenshot tool or print them to PDF before converting them. In this way, design specification documents in different formats can be uniformly converted into image formats for subsequent image processing and text recognition.

[0066] It is understandable that if the design specification document is in image format such as JPG, PNG, etc., image processing and text recognition can be performed directly on it. When the design specification document is in image format such as JPG, PNG, etc., image processing and text recognition can be performed in the following steps: First, use image denoising algorithms such as median filtering, mean filtering, etc. to remove noise from the image. For example, for salt and pepper noise, a median filter can be used, which replaces the value of a pixel with the median of its neighborhood pixel values, which can effectively remove isolated noise points. Adjust the contrast of the image to make the distinction between the text and the background more obvious. This can be achieved through methods such as histogram equalization. Observe the adjusted image to ensure that the readability of the text is improved, while avoiding excessive enhancement that causes image distortion. Import the JPG or PNG image into the OCR tool. Start the text recognition process and wait for the OCR tool to complete the recognition. Then check whether the recognized text has errors, such as typos, missing characters, typographic errors, etc. Save the proofread text in an editable file format, such as TXT, DOCX, etc.

[0067] Secondly, the design specification image is preprocessed. The preprocessing process includes:

[0068] Adjust brightness: The brightness of an image can affect the legibility of text. If an image is too dark or too light, text may be difficult to read. By adjusting the brightness, you can make text more visible. For example, you can use the brightness adjustment feature in your image processing software to increase or decrease the overall brightness of the image.

[0069] Adjust contrast: Adjusting contrast can enhance the difference between text and background. High contrast can make text stand out more and improve recognition accuracy. Similarly, you can use the contrast adjustment function in image processing software to increase or decrease the contrast of the image.

[0070] Noise removal: Design specification images may be disturbed by various noises, such as spots and lines generated during the scanning process. Noise removal can improve the accuracy of text recognition. Image filtering techniques, such as median filtering and Gaussian filtering, can be used to remove noise from images.

[0071] Next, select an OCR tool, such as Tesseract, ABBYY FineReader, etc. Input the pre-processed design specification image into the OCR tool, which will automatically recognize the text in the image and convert it into an editable text format. The recognition results include text content, font information, layout information, etc.

[0072] Then, the original text data recognized by the OCR tool is further analyzed to detect the semantic information. Natural language processing techniques such as part-of-speech tagging, named entity recognition, syntactic analysis, etc. can be used to understand the meaning of the text. For example, keywords, topics, entities, etc. in the text can be determined to better understand the content of the design specification.

[0073] Finally, the original text data is corrected based on the detected semantic information. For example, if the OCR tool misidentifies a word, it can be corrected based on the semantic information of the context. Or, if there are ambiguous expressions in the text, they can be clarified and improved by analyzing the semantic information. The corrected text data more accurately reflects the content of the design specification document and can be used for subsequent data analysis and application.

[0074] Step A2: extracting the design specification parameters included in the text data and the attribute values ​​corresponding to the design specification parameters.

[0075] Specifically, extracting design specification parameters included in text data and attribute values ​​corresponding to the design specification parameters includes: detecting the design specification parameters carried in the text data; extracting context information corresponding to the design specification parameters from the text data; and identifying the attribute values ​​corresponding to the design specification parameters based on the context information.

[0076] First, the possible range of design specification parameters is determined by analyzing the type and domain of the design specification document. For example, if it is a web design specification document, possible design specification parameters include font type, color code, page layout, etc.

[0077] Secondly, natural language processing technology is used to detect whether the text data contains these design specification parameters. Keyword extraction algorithms such as TF-IDF (term frequency-inverse document frequency) and TextRank can be used to extract possible keywords from the text data. These keywords are matched with the predetermined design specification parameters to determine the design specification parameters carried in the text data.

[0078] Then, after the design specification parameters are determined, text analysis techniques, such as syntactic analysis, semantic analysis, etc., can be used to extract contextual information of the design specification parameters. Contextual information can help understand the specific meaning and application scenarios of the design specification parameters. Contextual information can include the text content before and after the design specification parameters, the paragraphs and chapters in which they are located, etc. For example, the structure of the sentence can be analyzed to determine the role and relationship of the design specification parameters in the sentence. Alternatively, the theme of the text can be analyzed to determine the context of the design specification parameters in the entire document.

[0079] Finally, based on the extracted context information, the attribute values ​​corresponding to the design specification parameters are identified. The attribute values ​​are specific values ​​of the design specification parameters, which are used to describe the specific requirements of the design specification. The attribute values ​​corresponding to the design specification parameters can be identified from the context information using techniques such as pattern matching and rule reasoning. For example, the attribute values ​​of the design specification parameters can be determined based on specific grammatical structures or keywords. Alternatively, predefined rules can be used to infer the attribute values ​​of the design specification parameters based on the context information.

[0080] Step A3: construct a structured parameter list using design specification parameters and attribute values.

[0081] Specifically, first, the specific data structure of the structured parameter list needs to be determined. This can be selected according to actual needs and usage scenarios. For example, a dictionary can be used, where the key is the design specification parameter and the value is the corresponding attribute value. Alternatively, a list can be used, where each element is a tuple containing a design specification parameter and an attribute value. Next, traverse the extracted design specification parameters and corresponding attribute values. A loop or iterator can be used to traverse this data. For each design specification parameter and attribute value pair, add it to the structured parameter list. According to the selected data structure, the parameters and attribute values ​​are stored in the list in an appropriate manner.

[0082] Step S102, obtaining target configuration items corresponding to the design specification parameters from the code platform component.

[0083] In the embodiments of the present application, first of all, it is clear that the design specification parameters are specific indicators that describe the design requirements, such as color, font size, layout mode, etc. The code platform components are the various elements that constitute the application interface, such as buttons, text boxes, lists, etc. By analyzing and screening the code platform components, find those specific configuration items that can be affected and adjusted by the design specification parameters. These target configuration items may include the appearance properties of the component (such as color settings, font style), size properties (width, height), position properties (coordinates, alignment), etc. By accurately obtaining the target configuration items corresponding to the design specification parameters, the foundation can be laid for the subsequent configuration of these target configuration items using the attribute values ​​of the design specification parameters, thereby ensuring that the visual interface of the code platform can meet the design specification requirements.

[0084] Step S103: configure the target configuration item using the attribute value corresponding to the design specification parameter to obtain the configured target configuration item.

[0085] In the embodiment of the present application, the target configuration item is configured using the attribute value corresponding to the design specification parameter to obtain the configured target configuration item, including the following steps B1-B2:

[0086] Step B1, obtaining a pre-established mapping relationship table, wherein the mapping relationship table includes a mapping relationship between preset design specification parameters and configuration items.

[0087] Specifically, the mapping table includes the correspondence between the preset design specification parameters and the configuration items. The purpose of this table is to quickly and accurately find the target configuration item corresponding to the design specification parameter during the configuration process. For example, if the design specification parameter is "font color", then the mapping table will clearly indicate that the corresponding configuration item in the code platform may be the "text color attribute" of a specific component.

[0088] The relationship between each design specification parameter and configuration item can be determined by manually analyzing the component structure of the design specification document and the code platform, and these relationships can be recorded in the mapping relationship table. You can also use automated tools or scripts to scan the code base of the design specification document and the code platform, automatically extract possible mapping relationships, and perform manual verification and adjustment.

[0089] Step B2, obtaining the target configuration item corresponding to the design specification parameter from the mapping relationship table, and assigning the attribute value corresponding to the design relationship parameter to the corresponding target configuration item to obtain the configured target configuration item.

[0090] Specifically, once the design specification parameters are available, the corresponding target configuration items can be quickly determined by searching in the mapping relationship table. For example, if the current design specification parameter is "button size", the "width" and "height" properties of the button component in the code platform can be found as target configuration items according to the mapping relationship table.

[0091] Once the target configuration items are determined, the attribute values ​​corresponding to the design specification parameters are assigned to these target configuration items. For example, if the attribute value of the design specification parameter "button size" is "width is 100 pixels, height is 50 pixels", then this value is assigned to the "width" and "height" attributes of the button component respectively, thereby realizing the configuration of the target configuration items.

[0092] After the assignment operation, the configured target configuration items are obtained. These configuration items now meet the requirements of the design specifications and can be used for subsequent code platform visual interface construction or other related operations.

[0093] Step S104, using the configured target configuration items to build a visual interface of the code platform.

[0094] In the embodiment of the present application, in the development process of the code platform, it is a key step to build a visual interface using the configured target configuration items. First, after the previous steps, the attribute values ​​corresponding to the design specification parameters have been successfully assigned to the target configuration items, and the configured target configuration items have been obtained. These configuration items cover various properties related to the visual interface such as color, font, size, layout, etc. Next, according to these configured target configuration items, the visual interface of the code platform is constructed. For each interface element, such as buttons, text boxes, lists and other components, it is set according to its corresponding target configuration item. For example, if the target configuration item of a button specifies a specific color, font size and border style, then when building the visual interface, the button will be rendered according to these configurations. By processing each component in the code platform one by one to make it meet the requirements of the configured target configuration items, it is finally possible to build an overall coordinated visual interface that meets the design specifications, providing users with a good interactive experience and visual effects.

[0095] The method provided in the embodiment of the present application first obtains a structured parameter list by identifying the design specification document, in which the design specification parameters and their corresponding attribute values ​​are clearly defined, which provides an accurate and unified standard source for the entire configuration process. It is no longer necessary to manually interpret and judge the design specifications one by one, avoiding configuration errors caused by misunderstandings. Secondly, the target configuration items corresponding to the design specification parameters are automatically obtained from the code platform components to ensure the pertinence and accuracy of the configuration. There is no need to manually find and determine the configurable items of each component, which greatly saves time and manpower. Finally, the target configuration items are automatically configured using the attribute values ​​corresponding to the design specification parameters, avoiding possible misoperations caused by manual operations. The entire process is automatically completed by the system and configured strictly in accordance with the design specifications, thereby ensuring the consistency of the configuration results with the design specifications, and no inconsistencies caused by human errors will occur.

[0096] In the embodiment of the present application, after using the configured target configuration items to build a visual interface of the code platform, such as Figure 2 As shown, the method also includes:

[0097] Step S201, monitoring whether an update event occurs in the design specification document.

[0098] In the embodiment of the present application, a file system monitoring tool or a specific programming language library provided by the operating system is used to monitor the directory or file where the design specification document is located. For example, the modification time and file size of the file can be checked regularly or a hash value can be used to determine whether the file has changed.

[0099] Step S202: if an update event occurs in the design specification document, the updated content of the design specification document is parsed and obtained.

[0100] In the embodiment of the present application, if the design specification document is in text format (such as text converted from Word or PDF, etc.), text analysis technology can be used to extract the updated part. For example, by comparing the text content of the current version and the previous version, the difference can be found. For design specification documents in a specific format (such as Excel tables), the corresponding library can be used to read the document content and analyze which cells or areas have changed.

[0101] If the design specification document has a specific structure or markup language, a corresponding parser can be used to extract the updated content. For example, for a document in XML format, an XML parser can be used to locate the changed nodes.

[0102] Step S203 , detecting whether the updated content meets the automatic update condition, if the automatic update condition is met, extracting the target design specification parameters to be updated and the target attribute values ​​corresponding to the target design specification parameters based on the updated content.

[0103] In the embodiment of the present application, the automatic update condition can be set according to actual needs. For example, it can be set that if the update content involves specific design specification parameters (such as color, font, etc.) or the range of the update exceeds a certain threshold, the automatic update condition is met. According to the keywords or specific tags in the update content, it is determined which design specification parameters are affected. Then, the new attribute values ​​corresponding to these parameters are extracted from the update content.

[0104] Step S204: using the target attribute value to update the attribute value of the target configuration item corresponding to the target design specification parameter to obtain an updated target configuration item.

[0105] In an embodiment of the present application, first, it is necessary to obtain a mapping relationship table between pre-established design specification parameters and target configuration items. This table can be established when the system is initialized and updated as needed during operation. According to the mapping relationship table, find the target configuration item corresponding to the target design specification parameter. Assign the target attribute value to the corresponding attribute of the target configuration item to complete the update operation. For example, if the target design specification parameter is "button color" and the corresponding target configuration item is the "color attribute" of the button component, the new color attribute value is assigned to the button component.

[0106] Step S205, using the updated target configuration items, rebuild the visual interface of the code platform.

[0107] In an embodiment of the present application, the current visual interface is cleared or marked as needing to be updated. For each component that needs to be updated, it is re-rendered according to the updated target configuration item. This may involve resetting the color, font, size, position and other properties of the component. Integrate the updated components and build a new visual interface. Ensure that the layout and interaction between the components still meet the design specifications. During the rebuilding process, some progress feedback can be provided to the user to let the user know the progress and status of the update. At the same time, pay attention to handling possible error situations, such as illegal attribute values, components that cannot be rendered, etc., and promptly feedback error information to the user.

[0108] The method provided in the embodiment of the present application can firstly capture the changes in the design specifications in a timely manner by continuously monitoring the update events of the design specification documents, and ensure that the code platform always keeps up with the latest design requirements. When an update event occurs, the update content is automatically parsed and obtained, which improves the response speed and reduces the workload of manual search and analysis of updates. It detects whether the update content meets the automatic update conditions, and automatically extracts the target design specification parameters and attribute values ​​for update when the conditions are met, which greatly improves the efficiency of the update and avoids the time-consuming and errors that may be caused by manual updates. The visual interface of the code platform is rebuilt using the updated target configuration items to ensure the consistency and accuracy of the interface, comply with the design specifications, and improve the user experience. At the same time, the entire process is automated and intelligent, reducing the dependence on human resources, reducing the risk of inconsistency with design specifications due to human error, and providing a strong guarantee for the stable operation of the code platform and the presentation of high-quality visual interfaces.

[0109] In an embodiment of the present application, the method also includes: if the automatic update conditions are not met, generating an update prompt based on the update content, and sending the update prompt to the target client, wherein the target client is used to verify the update content; receiving operation instructions from the target client based on the update prompt feedback; parsing the operation instructions, and if the operation instructions include update content or partial update content, performing the update operation based on the update content or partial update content in the operation instructions.

[0110] Specifically, when an update event is detected for a design specification document, but the update content does not meet the automatic update conditions, the system needs to take different processing methods. Automatic update conditions are usually pre-set according to actual needs. For example, automatic updates are performed only when the update content involves key design specification parameters and the update scope is large. If these conditions are not met, an update prompt needs to be generated.

[0111] The update notification may include information such as the update time of the design specification document and an overview of the changes in the main design specification parameters involved, so that users of the target client can quickly understand the general situation of the update. The update notification is sent to the target client through network communication or other means. The target client can be a computer, mobile device, etc. used by developers to receive and process the update notification.

[0112] After the target client receives the update notification, the user can verify the updated content. For example, the user will check the specific content of the update, evaluate its impact on the current project, and determine whether an update operation is required. The user generates an operation instruction on the target client based on the verification result and feeds it back to the system. The operation instruction can be in various forms, such as choosing to update all content, choosing to update part of the content, or choosing not to update.

[0113] If the operation instruction includes update content or partial update content, the system will parse the operation instruction and determine the specific parts that need to be updated. Then, based on these update contents, the update operation is performed. This process is similar to automatic update, that is, extracting the design specification parameters and corresponding attribute values ​​to be updated, updating the target configuration items, and rebuilding the visual interface. On the contrary, if the operation instruction includes neither update content nor partial update content, the system will not perform the update operation and keep the current state unchanged. This ensures that when the user believes that the update is unnecessary or there is a risk, the update will not be forced, which guarantees the stability of the system and the user's right to choose.

[0114] It should be noted that when the automatic update conditions are not met, an update prompt is generated and sent to the target client, so that relevant personnel can understand the changes in the design specification documents in a timely manner, providing them with the opportunity to actively participate and make decisions. The target client verifies the update content to ensure the accuracy and rationality of the update. Receive the operation instruction and perform the corresponding operation according to its content, giving the user full choice and control. If the operation instruction includes the update content or part of the update content, the update can be carried out in a targeted manner, avoiding the waste of resources and potential risks caused by unnecessary comprehensive updates. If the operation instruction does not include the update content or part of the update content, the update operation will not be performed, ensuring the stability of the system and not affecting the ongoing work due to unnecessary updates. This method not only improves the flexibility and pertinence of the update, but also ensures the reliability of the system and user satisfaction.

[0115] In this embodiment, a device for building a code platform is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0116] This embodiment provides a device for building a code platform, such as Figure 3 As shown, including:

[0117] A first acquisition module 301 is used to acquire a structured parameter list obtained by identifying a design specification document corresponding to a code platform, wherein the structured parameter list includes design specification parameters in the design specification document and attribute values ​​corresponding to the design specification parameters;

[0118] A second acquisition module 302 is used to acquire a target configuration item corresponding to a design specification parameter from a code platform component;

[0119] Configuration module 303, used to configure the target configuration item using the attribute value corresponding to the design specification parameter to obtain the configured target configuration item;

[0120] The building module 304 is used to build a visual interface of the code platform using the configured target configuration items.

[0121] In the embodiment of the present application, the first acquisition module 301 includes:

[0122] An identification submodule, used to obtain a design specification document and identify text data in the design specification document;

[0123] An extraction submodule, used to extract design specification parameters included in the text data, and attribute values ​​corresponding to the design specification parameters;

[0124] The construction submodule is used to construct a structured parameter list using design specification parameters and attribute values.

[0125] In an embodiment of the present application, a recognition submodule is used to convert a design specification document into a design specification image; preprocess the design specification image to obtain a preprocessed design specification image, wherein the preprocessing includes but is not limited to adjusting the brightness, contrast, and noise removal of the image; calling an optical character recognition tool to recognize the preprocessed design specification image to obtain a recognition result, wherein the recognition result includes original text data; detecting semantic information of the original text data; and correcting the original text data using the semantic information to obtain text data.

[0126] In an embodiment of the present application, an extraction submodule is used to detect design specification parameters carried in text data; extract context information corresponding to the design specification parameters from the text data; and identify attribute values ​​corresponding to the design specification parameters based on the context information.

[0127] In an embodiment of the present application, a sub-module is constructed to obtain a pre-established mapping relationship table, wherein the mapping relationship table includes a mapping relationship between preset design specification parameters and configuration items; a target configuration item corresponding to the design specification parameter is obtained from the mapping relationship table, and the attribute value corresponding to the design relationship parameter is assigned to the corresponding target configuration item to obtain the configured target configuration item.

[0128] In an embodiment of the present application, the device also includes: an update monitoring module, which is used to monitor whether an update event occurs in the design specification document; if an update event occurs in the design specification document, parsing and obtaining the updated content of the design specification document; detecting whether the updated content satisfies an automatic update condition, and if the automatic update condition is satisfied, extracting the target design specification parameters to be updated and the target attribute values ​​corresponding to the target design specification parameters based on the updated content; using the target attribute values ​​to update the attribute values ​​of the target configuration items corresponding to the target design specification parameters to obtain the updated target configuration items; and using the updated target configuration items to rebuild the visual interface of the code platform.

[0129] In an embodiment of the present application, the update monitoring module is used to generate an update prompt based on the update content if the automatic update conditions are not met, and send the update prompt to the target client, wherein the target client is used to verify the update content; receive operation instructions from the target client based on the update prompt feedback; parse the operation instructions, and if the operation instructions include update content or partial update content, perform the update operation based on the update content or partial update content in the operation instructions.

[0130] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 4 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.

[0131] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0132] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0133] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0134] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0135] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0136] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0137] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for building a code platform, It is characterized in that The method comprises: Acquire a structured parameter list obtained by identifying a design specification document corresponding to a code platform, wherein the structured parameter list includes design specification parameters in the design specification document and attribute values ​​corresponding to the design specification parameters; Acquire a target configuration item corresponding to the design specification parameter from a code platform component; The target configuration item is configured using the attribute value corresponding to the design specification parameter to obtain the configured target configuration item; Use the configured target configuration items to build a visual interface for the code platform.

2. The method according to claim 1, It is characterized in that The obtaining of the structured parameter list obtained by identifying the design specification document corresponding to the code platform includes: Acquire a design specification document, and identify text data in the design specification document; Extracting design specification parameters included in the text data, and attribute values ​​corresponding to the design specification parameters; A structured parameter list is constructed using the design specification parameters and the attribute values.

3. The method according to claim 2, It is characterized in that The identifying text data in the design specification document includes: converting the design specification document into a design specification image; Preprocessing the design specification image to obtain a preprocessed design specification image, wherein the preprocessing includes but is not limited to adjusting the brightness and contrast of the image and removing noise; Invoking an optical character recognition tool to recognize the preprocessed design specification image to obtain a recognition result, wherein the recognition result includes original text data; Detecting semantic information of the original text data; The original text data is corrected using the semantic information to obtain the text data.

4. The method according to claim 2, It is characterized in that The extracting of the design specification parameters included in the text data and the attribute values ​​corresponding to the design specification parameters includes: Detecting design specification parameters carried in the text data; Extracting context information corresponding to the design specification parameters from the text data; An attribute value corresponding to the design specification parameter is identified based on the context information.

5. The method according to claim 1, It is characterized in that The configuring the target configuration item by using the attribute value corresponding to the design specification parameter to obtain the configured target configuration item includes: Acquire a pre-established mapping relationship table, wherein the mapping relationship table includes a mapping relationship between preset design specification parameters and configuration items; The target configuration item corresponding to the design specification parameter is obtained from the mapping relationship table, and the attribute value corresponding to the design relationship parameter is assigned to the corresponding target configuration item to obtain the configured target configuration item.

6. The method according to claim 1, It is characterized in that After building a visual interface of the code platform using the configured target configuration items, the method further includes: Monitoring whether an update event occurs to the design specification document; If an update event occurs to the design specification document, parsing and obtaining the updated content of the design specification document; Detecting whether the updated content satisfies an automatic update condition, and if so, extracting a target design specification parameter to be updated and a target attribute value corresponding to the target design specification parameter based on the updated content; Using the target attribute value, the attribute value of the target configuration item corresponding to the target design specification parameter is updated to obtain an updated target configuration item; The visual interface of the code platform is rebuilt using the updated target configuration items.

7. The method according to claim 6, It is characterized in that The method further comprises: If the automatic update condition is not met, generating an update prompt based on the update content, and sending the update prompt to the target client, wherein the target client is used to verify the update content; Receive an operation instruction from the target client based on the update prompt feedback; The operation instruction is parsed, and if the operation instruction includes update content or part of update content, an update operation is performed based on the update content or part of update content in the operation instruction.

8. A device for building a code platform, It is characterized in that The device comprises: A first acquisition module is used to acquire a structured parameter list obtained by identifying a design specification document corresponding to a code platform, wherein the structured parameter list includes design specification parameters in the design specification document and attribute values ​​corresponding to the design specification parameters; A second acquisition module is used to acquire a target configuration item corresponding to the design specification parameter from a code platform component; A configuration module, configured to configure the target configuration item using the attribute value corresponding to the design specification parameter to obtain the configured target configuration item; The building module is used to build a visual interface of the code platform using the configured target configuration items.

9. A computer device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.