Directory structure file generation method, apparatus, device, and storage medium

By generating directory structure files, the problem of inconsistent code logic structures written by different developers is solved, and the standardization and ease of modification of the application code directory are achieved.

CN114329088BActive Publication Date: 2025-10-28CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111605357.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2025-10-28
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

Different developers write different code logic structures for the same original architecture diagram, resulting in a messy product application code directory that is difficult to standardize and modify.

Method used

By obtaining the original product files, an initial directory structure file is generated based on the file type and data information. After removing the data information, a directory structure file is generated, ensuring the consistency and standardization of directory names.

Benefits of technology

This solves the problem of inconsistent application code directories written by different developers, and standardizes the application code directory, making it easier to modify later.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114329088B_ABST
    Figure CN114329088B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, device, and storage medium for generating a directory structure file. The method involves obtaining the original files of a product; these original files are product data files; the original files include file types and data information; generating an initial directory structure file according to the file types and the jump relationships and hierarchical relationships of the data information; these initial directory structure files include data information; and extracting the directory names from the initial directory structure file, then removing the data information from the initial directory structure file to generate the final directory structure file. This technical solution can solve the problem of different application code directories written by different developers, thereby making the product's application code directory more standardized and facilitating later modifications to the product's application code directory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of front-end page generation technology, and in particular to a method, apparatus, device and storage medium for generating directory structure files. Background Art

[0002] Currently, when developing a product, the product manager needs to use software to demonstrate the product's structure. Based on the demonstrated original structure diagram, the developers write code for the product as presented in the original structure diagram, thereby obtaining the application code for the product and enabling its use.

[0003] However, since different developers write code with different logical structures for the same original structure diagram, it can cause code writing chaos when multiple developers are writing different parts of the same product.

[0004] Therefore, there is an urgent need for a directory structure file generation method that can solve the problem of different product application code directories written by different developers, thereby making the product application code directory more standardized and facilitating later modifications to the product application code directory. Summary of the Invention

[0005] This application provides a method, apparatus, device, and storage medium for generating directory structure files, which can solve the problem of different product application code directories written by different developers, thereby making the product application code directory more standardized and facilitating later modification of the product's application code directory.

[0006] Firstly, this application provides a method for generating a directory structure file, the method comprising:

[0007] Obtain the original file of the product; wherein, the original file is the data file of the product; the original file includes file type and data information;

[0008] An initial directory structure file is generated according to the file type and the data information jump relationship and data information hierarchy relationship in the data information; wherein, the initial directory structure file includes data information;

[0009] After extracting the directory names from the initial directory structure file, the data information in the initial directory structure file is removed to generate the directory structure file.

[0010] In one example, an initial directory structure file is generated according to the file type and the data information jump relationship and data information hierarchy relationship in the data information, including:

[0011] Based on the file type, determine the file parsing rules that match the file type in the configuration data;

[0012] The data information jump relationship and data information hierarchy relationship are parsed according to the file parsing rules to obtain the parsed file;

[0013] The parsed file generates an initial directory structure file, and the program code for page routing in the initial directory structure file is automatically generated based on the jump relationship of the data information in the data information.

[0014] In one example, the data information jump relationship and data information hierarchy relationship are parsed according to file parsing rules to obtain a parsed file, including:

[0015] According to the file parsing rules, obtain the keyword information in the data information jump relationship and data information hierarchy relationship;

[0016] The keyword information is parsed to obtain a parsing file.

[0017] In one example, before generating the initial directory structure file according to the file type and the data information jump relationship and data information hierarchy relationship in the data information, the method further includes:

[0018] Modify the non-English data information in the data information to the corresponding English data information.

[0019] In one example, the method further includes:

[0020] If the data information has a preset identifier, then the data information will not be generated as the initial file of the directory structure; wherein, the preset identifier represents irrelevant data information.

[0021] Secondly, this application provides a directory structure file generation apparatus, comprising:

[0022] An acquisition unit is used to acquire the original file of the product; wherein the original file is the data file of the product; the original file includes file type and data information;

[0023] The first generation unit is configured to generate an initial directory structure file according to the file type and the data information jump relationship and data information hierarchy relationship in the data information; wherein, the initial directory structure file includes data information;

[0024] The second generation unit is used to extract the directory names from the initial directory structure file, remove the data information from the initial directory structure file, and generate a directory structure file.

[0025] In one example, the first generating unit includes:

[0026] The first determining module is used to determine, based on the file type, a file parsing rule matching the file type in the configuration data;

[0027] The second determining module is used to parse the data information jump relationship and data information hierarchical relationship according to the file parsing rules to obtain the parsed file;

[0028] The generation module is used to generate an initial directory structure file from the parsed file, and to automatically generate program code for page routing in the initial directory structure file based on the data information jump relationship in the data information.

[0029] In one example, the second determining module includes:

[0030] The acquisition submodule is used to obtain keyword information in the data information jump relationship and data information hierarchy relationship according to the file parsing rules;

[0031] The determination submodule is used to parse the keyword information to obtain a parsing file.

[0032] In one example, the device further includes:

[0033] The modification unit is used to modify the non-English data information in the data information to the corresponding English data information.

[0034] In one example, the device further includes:

[0035] If the data information has a preset identifier, then the data information will not be generated as the initial file of the directory structure; wherein, the preset identifier represents irrelevant data information.

[0036] This application provides a method, apparatus, device, and storage medium for generating a directory structure file. The method involves obtaining the original file of a product; wherein the original file is the product's data file; the original file includes file type and data information; generating an initial directory structure file according to the file type and the data information's jump relationships and hierarchical relationships; wherein the initial directory structure file includes data information; and extracting the directory names from the initial directory structure file, then removing the data information from the initial directory structure file to generate the final directory structure file. This technical solution can solve the problem of different application code directories written by different developers, thereby making the product's application code directory more standardized and facilitating later modifications to the product's application code directory. Attached Figure Description

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

[0038] Figure 1 This is a flowchart illustrating a method for generating a directory structure file according to Embodiment 1 of this application;

[0039] Figure 2 This is a schematic diagram showing the interface of the original file of a product according to Embodiment 1 of this application;

[0040] Figure 3 This is a schematic diagram of a directory structure file provided according to Embodiment 1 of this application;

[0041] Figure 4 This is a flowchart illustrating a method for generating a directory structure file according to Embodiment 2 of this application;

[0042] Figure 5 This is a schematic diagram illustrating the generation of an initial directory structure file from the original files of a product according to Embodiment 2 of this application;

[0043] Figure 6 This is a parsing file provided according to Embodiment 2 of this application;

[0044] Figure 7 This is a schematic diagram of a directory structure file generation device according to Embodiment 3 of this application;

[0045] Figure 8 This is a schematic diagram of a directory structure file generation device according to Embodiment 4 of this application;

[0046] Figure 9 This is a block diagram illustrating a terminal device according to an exemplary embodiment.

[0047] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. Detailed Implementation

[0048] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

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

[0050] Figure 1 This is a flowchart illustrating a directory structure file generation method according to Embodiment 1 of this application. Embodiment 1 includes the following steps:

[0051] S101. Obtain the original files of the product; wherein, the original files are the data files of the product; the original files include file type and data information.

[0052] In this embodiment, the original product file is a data file generated by prototyping tools. This original file includes data files for multiple interface display formats of the product; for example, see [link to relevant documentation]. Figure 2 The image shows a schematic diagram of the interface display of a product's original documentation. This product is a prototype of a ride-hailing app. The interface display of this original documentation includes the following hierarchical directories: the first level is the startup directory and the home directory; the second level is the startup page directory under the startup directory; the second level is the ride-hailing page - update pop-up directory, ride-hailing page - activity pop-up directory, ride-hailing page - not logged in directory, and ride-hailing page - logged in directory under the home directory. The startup page directory has three subdirectories: Welcome 1, Welcome 2, and Welcome 3. The next level of the ride-hailing page - update pop-up directory is the update reminder directory; the next level of the ride-hailing page - not logged in directory is the login directory and the target for new users' first login or registration; and the next level of the ride-hailing page - logged in directory is the activity topic directory and the security center directory. (The last sentence appears to be incomplete and possibly refers to a separate section.) Figure 2 As can be seen from the interface of the Welcome 3 directory, the text content can be edited by double-clicking the text editing area on the interface.

[0053] The interface display of the product's original files also corresponds to the corresponding data information, including code files. The file types of the code files generated for the same product in different prototyping tools are different, and the interface display of the generated original files of the product is also different.

[0054] S102. Generate an initial directory structure file according to the file type and the jump relationship and hierarchical relationship of the data information; wherein, the initial directory structure file includes data information.

[0055] In this embodiment, the jump relationship of data information refers to the connection relationship between different data information. For example, the transformation of data information A to another data information B under a preset response mode is a jump relationship between data information A and data information B. The hierarchical relationship of data information refers to the superior-subordinate or peer-subordinate relationship between data information. For example, if data information A includes data information B and data information C, then the subordinate relationship of data information A is data information B and data information C. The peer-subordinate relationship of data information refers to data information B and data information C. A jump relationship may or may not exist between data information B and data information C.

[0056] After determining the data information jump relationships and data information hierarchy relationships, the above relationships are used to generate the initial directory structure file.

[0057] S103. Extract the directory names from the initial directory structure file, remove the data information from the initial directory structure file, and generate the directory structure file.

[0058] In this embodiment, after obtaining the initial directory structure file, the identifiers in the directory names are extracted, and the data information under those directory names is deleted to generate the directory structure file. For details, please refer to... Figure 3 The image shows a schematic diagram of a directory structure file. From... Figure 3 As can be seen from the directory structure, the first level directory is src, and the next level directory of src is assets, components, router, views, APP.vue, and main.js. The next level directory of views is CallCar, MinePage, and StartPage, and the next level directory of StartPage is welcome.js and welcome.vue.

[0059] This application provides a method, apparatus, device, and storage medium for generating a directory structure file. The method involves obtaining the original files of a product; these original files are product data files; the original files include file types and data information; generating an initial directory structure file according to the file types and the jump relationships and hierarchical relationships of the data information; these initial directory structure files include data information; and extracting the directory names from the initial directory structure file, then removing the data information from the initial directory structure file to generate the final directory structure file. This technical solution can solve the problem of different application code directories written by different developers, thereby making the product's application code directory more standardized and facilitating later modifications to the product's application code directory.

[0060] Figure 4 This is a flowchart illustrating a directory structure file generation method according to Embodiment 2 of this application. Embodiment 2 includes the following steps:

[0061] S401. Obtain the original files of the product; wherein, the original files are the data files of the product; the original files include file type and data information.

[0062] For example, this step can refer to step S101 above, and will not be repeated here.

[0063] S402. Modify the non-English data information in the data information to the corresponding English data information.

[0064] In this embodiment, non-English data information in the data information is modified to the corresponding English data information. The advantage of this setting is that the directory in the initial file of the subsequently generated directory structure is in English.

[0065] S403. Based on the file type, determine the file parsing rules that match the file type in the configuration data.

[0066] In this embodiment, different file parsing rules are used for different file types. Therefore, after determining the file type, the file parsing rule that matches the file type is determined after finding the file type in the configuration data.

[0067] S404. Parse the data information jump relationship and data information hierarchy relationship according to the file parsing rules to obtain the parsed file.

[0068] In one example, the data information jump relationships and data information hierarchy relationships are parsed according to file parsing rules to obtain a parsed file, including:

[0069] According to the file parsing rules, obtain keyword information in the data information jump relationship and data information hierarchy relationship;

[0070] The keyword information is parsed to obtain a parsing file.

[0071] In this embodiment, the keyword information is preset, such as cid and parent_cid. Figure 5 This diagram illustrates the initial directory structure of a product's original files. It shows that the original files include code information. Figure 5 If the original file of the product is located and `cid` is the current page of the original file, and `parent_cid` is the page that the original file redirects to (i.e., the parent page of the current page), then different `cid` values ​​are treated as the same level directory, and the `parent_cid` values ​​of the parent pages of each `cid` are nested within the same level directory. For example, from... Figure 5 It can be seen that cid "skqnc8xnd6ryosa" and parent_cid "skqnc8xndx8ef1w" are in the same level directory [0].

[0072] S405. Generate an initial directory structure file from the parsed file, and automatically generate the page routing code in the initial directory structure file based on the jump relationship in the data information.

[0073] In this embodiment, Figure 6 The document shows a parsing file from which directories within the same hierarchical relationship and directories with different hierarchical relationships can be seen.

[0074] If the data information has a preset identifier, the data information will not be generated as the initial file of the directory structure; the preset identifier represents irrelevant data information.

[0075] In this embodiment, if there are blank pages or invalid data information in the data information, the preset identifier "null" can be used to mark it, and the data information will not be generated into the initial directory structure file.

[0076] S406. Extract the directory names from the initial directory structure file, remove the data information from the initial directory structure file, and generate the directory structure file.

[0077] In one example, this step can be referred to step S103 above, and will not be repeated here.

[0078] This application provides a method, apparatus, device, and storage medium for generating a directory structure file. The method involves obtaining the original file of a product, which is a data file containing file type and data information. Non-English data information is modified to the corresponding English data information. Based on the file type, file parsing rules matching the file type are determined in configuration data. The data information jump relationships and hierarchical relationships are parsed according to the file parsing rules to obtain a parsed file. This parsed file is then used to generate an initial directory structure file. This technical solution can solve the problem of inconsistent application code directories for products written by different developers, thereby making the product's application code directory more standardized and facilitating subsequent modifications to the product's application code directory.

[0079] Figure 7 This is a schematic diagram of a directory structure file generation apparatus according to Embodiment 3 of this application. The apparatus 70 in Embodiment 3 includes:

[0080] The acquisition unit 701 is used to acquire the original files of the product; wherein, the original files are the data files of the product; the original files include file type and data information.

[0081] The first generation unit 702 is used to generate an initial directory structure file according to the file type and the jump relationship and hierarchical relationship of the data information in the data information; wherein, the initial directory structure file includes data information.

[0082] The second generation unit 703 is used to extract the directory names from the initial directory structure file, remove the data information from the initial directory structure file, and generate a directory structure file.

[0083] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0084] Figure 8 This is a schematic diagram of a directory structure file generation apparatus according to Embodiment 4 of this application. The apparatus 80 in Embodiment 4 includes:

[0085] The acquisition unit 801 is used to acquire the original files of the product; wherein, the original files are the data files of the product; the original files include file type and data information.

[0086] The first generation unit 802 is used to generate an initial directory structure file according to the file type and the jump relationship and hierarchical relationship of the data information in the data information; wherein, the initial directory structure file includes data information.

[0087] The second generation unit 803 is used to extract the directory names from the initial directory structure file, remove the data information from the initial directory structure file, and generate a directory structure file.

[0088] In one example, the first generating unit 802 includes:

[0089] The first determining module 8021 is used to determine the file parsing rules that match the file type in the configuration data based on the file type.

[0090] The second determining module 8022 is used to parse the jump relationship and hierarchical relationship of data information according to the file parsing rules to obtain the parsed file.

[0091] The generation module 8023 is used to generate an initial directory structure file from the parsed file, and to automatically generate program code for page routing in the initial directory structure file based on the jump relationship of the data information in the data information.

[0092] In one example, the second determining module 8022 includes:

[0093] The 80221 submodule is used to retrieve keyword information in the data information jump relationship and data information hierarchy relationship according to the file parsing rules.

[0094] The 80222 submodule is used to parse keyword information and obtain a parsed file.

[0095] In one example, the device also includes:

[0096] Modification unit 804 is used to modify non-English data information in the data information to the corresponding English data information.

[0097] In one example, the device also includes:

[0098] The identification unit 805 is used to prevent the data information from being generated as the initial file of the directory structure if the data information has a preset identifier; wherein the preset identifier represents irrelevant data information.

[0099] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0100] Figure 9 This is a block diagram illustrating a terminal device according to an exemplary embodiment. The device may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.

[0101] The device 900 may include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.

[0102] Processing component 902 typically controls the overall operation of device 900, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 902 may include one or more modules to facilitate interaction between processing component 902 and other components. For example, processing component 902 may include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902.

[0103] Memory 904 is configured to store various types of data to support the operation of device 900. Examples of this data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, etc. Memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0104] Power supply component 906 provides power to various components of device 900. Power supply component 906 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 900.

[0105] Multimedia component 908 includes a screen that provides an output interface between device 900 and user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of a touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 908 includes a front-facing camera and / or a rear-facing camera. When device 900 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0106] Audio component 910 is configured to output and / or input audio signals. For example, audio component 910 includes a microphone (MIC) configured to receive external audio signals when device 900 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 904 or transmitted via communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.

[0107] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0108] Sensor assembly 914 includes one or more sensors for providing status assessments of various aspects of device 900. For example, sensor assembly 914 may detect the on / off state of device 900, the relative positioning of components such as the display and keypad of device 900, changes in position of device 900 or a component of device 900, the presence or absence of user contact with device 900, orientation or acceleration / deceleration of device 900, and temperature changes of device 900. Sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 914 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0109] Communication component 916 is configured to facilitate wired or wireless communication between device 900 and other devices. Device 900 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 916 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0110] In an exemplary embodiment, the apparatus 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0111] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, which can be executed by a processor 920 of the device 900 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0112] A non-transitory computer-readable storage medium, wherein when the instructions in the storage medium are executed by the processor of a terminal device, the terminal device is able to execute the aforementioned method for generating a directory structure file for the terminal device.

[0113] This application also discloses a computer program product, including a computer program that, when executed by a processor, implements the method described in this embodiment.

[0114] Various embodiments of the systems and technologies described above in this application can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0115] The program code used to implement the methods of this application may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or electronic device.

[0116] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

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

[0118] The systems and technologies described herein can be implemented in computing systems that include back-end components (e.g., as data electronic devices), or computing systems that include middleware components (e.g., application electronic devices), or computing systems that include front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0119] Computer systems can include client and electronic devices. Clients and electronic devices are generally geographically separated and typically interact via communication networks. The client-electronic device relationship is created by computer programs running on the respective computers and having a client-electronic device relationship with each other. The electronic device can be a cloud electronic device, also known as a cloud computing electronic device or cloud host, a host product within the cloud computing service system, addressing the shortcomings of traditional physical hosts and VPS services ("Virtual Private Server," or simply "VPS") in terms of management difficulty and weak business scalability. The electronic device can also be an electronic device in a distributed system or an electronic device incorporating blockchain technology. It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this application is achieved, and this is not limited herein.

[0120] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0121] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A method for generating directory structure files, characterized in that, The method includes: Obtain the original file of the product; wherein, the original file is the data file of the product; the original file includes file type and data information; An initial directory structure file is generated according to the file type and the data information jump relationship and data information hierarchy relationship in the data information; wherein, the initial directory structure file includes data information; After extracting the directory names from the initial directory structure file, the data information under the directory names is removed to generate the directory structure file; After obtaining the initial directory structure file, the identifiers in the directory names are extracted, and the data information under those directory names is deleted to generate the directory structure file.

2. The method according to claim 1, characterized in that, Generate an initial directory structure file according to the file type and the data information jump relationship and data information hierarchy relationship in the data information, including: Based on the file type, determine the file parsing rules that match the file type in the configuration data; The data information jump relationship and data information hierarchy relationship are parsed according to the file parsing rules to obtain the parsed file; The parsed file generates an initial directory structure file, and the program code for page routing in the initial directory structure file is automatically generated based on the jump relationship of the data information in the data information.

3. The method according to claim 2, characterized in that, The data information jump relationship and data information hierarchy relationship are parsed according to the file parsing rules to obtain the parsed file, including: According to the file parsing rules, obtain the keyword information in the data information jump relationship and data information hierarchy relationship; The keyword information is parsed to obtain a parsing file.

4. The method according to claim 1, characterized in that, Before generating the initial directory structure file according to the file type and the data information jump relationship and data information hierarchy relationship in the data information, the process also includes: Modify the non-English data information in the data information to the corresponding English data information.

5. The method according to any one of claims 1-4, characterized in that, The method further includes: If the data information has a preset identifier, then the data information will not be generated as the initial file of the directory structure; wherein, the preset identifier represents irrelevant data information.

6. A directory structure file generation device, characterized in that, The device includes: An acquisition unit is used to acquire the original file of the product; wherein the original file is the data file of the product; the original file includes file type and data information; The first generation unit is configured to generate an initial directory structure file according to the file type and the data information jump relationship and data information hierarchy relationship in the data information; wherein, the initial directory structure file includes data information; The second generation unit is used to extract the directory names from the initial directory structure file, remove the data information under the directory names, and generate a directory structure file. The second generation unit is specifically used to extract the identifier from the directory name in the initial directory structure file after obtaining the initial directory structure file, delete the data information under the directory name, and generate the directory structure file.

7. The apparatus according to claim 6, characterized in that, The first generation unit includes: The first determining module is used to determine, based on the file type, a file parsing rule matching the file type in the configuration data; The second determining module is used to parse the data information jump relationship and data information hierarchical relationship according to the file parsing rules to obtain the parsed file; The generation module is used to generate an initial directory structure file from the parsed file, and to automatically generate program code for page routing in the initial directory structure file based on the data information jump relationship in the data information.

8. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-5.

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

10. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Data acquisition method and device, data storage method and device, equipment and storage medium

    CN112860625A