CN114329088A - Directory structure file generation method, device, equipment and storage medium - Google Patents

Directory structure file generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN114329088A
CN114329088A CN202111605357.9A CN202111605357A CN114329088A CN 114329088 A CN114329088 A CN 114329088A CN 202111605357 A CN202111605357 A CN 202111605357A CN 114329088 A CN114329088 A CN 114329088A
Authority
CN
China
Prior art keywords
file
data information
directory structure
relation
initial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111605357.9A
Other languages
Chinese (zh)
Inventor
董琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Unicompay Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Unicompay Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd, Unicompay Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202111605357.9A priority Critical patent/CN114329088A/en
Publication of CN114329088A publication Critical patent/CN114329088A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

According to the method, the device, the equipment and the storage medium for generating the directory structure file, the original file of the product is obtained; wherein, the original file is a data file of the product; the original file comprises a file type and data information; generating a directory structure initial file according to the file type, the data information jump relation and the data information hierarchy relation in the data information; wherein, the initial file of the directory structure comprises data information; and after extracting the directory name in the initial file of the directory structure, eliminating the data information in the initial file of the directory structure to generate the file of the directory structure. By adopting the technical scheme, the problem that application program code catalogs of products written by different developers are different can be solved, so that the application program code catalogs of the products are more standard, and the application program code catalogs of the products can be conveniently modified in the later period.

Description

Directory structure file generation method, device, equipment and storage medium
Technical Field
The present application relates to the field of front-end page generation technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a directory structure file.
Background
At present, when a product is developed, a product manager is required to display the structure of the product by software, and a developer writes codes of the product represented by an original structure diagram according to the displayed original structure diagram, so that application program codes of the product are obtained, and the product is used.
However, because different developers write different codes in the same original structure diagram, if multiple developers write different parts of the same product, the code writing is disordered.
Therefore, a method for generating a directory structure file is needed to solve the problem that application program code directories of products written by different developers are different, so that the application program code directories of the products are more standard, and the application program code directories of the products are convenient to modify at a later stage.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for generating a directory structure file, which can solve the problem that application program code directories of products written by different developers are different, so that the application program code directories of the products are more standard, and the application program code directories of the products can be conveniently modified in the later period.
In a first aspect, the present application provides a method for generating a directory structure file, where the method includes:
acquiring an original file of a product; wherein the original file is a data file of the product; the original file comprises a file type and data information;
generating a directory structure initial file according to the file type, the data information jump relation and the data information hierarchy relation in the data information; wherein, the initial file of the directory structure comprises data information;
and after extracting the directory name in the initial file of the directory structure, eliminating the data information in the initial file of the directory structure to generate the file of the directory structure.
In one example, generating a directory structure initial file according to the file type and the data information jump relation and the data information hierarchy relation in the data information comprises:
determining a file analysis rule matched with the file type in configuration data according to the file type;
analyzing the data information jumping relation and the data information hierarchy relation according to a file analysis rule to obtain an analysis file;
and generating a directory structure initial file from the analysis file, and automatically generating a program code of the page route in the directory structure initial file according to the data information jump relation in the data information.
In one example, parsing the data information skip relation and the data information hierarchy relation according to a file parsing rule to obtain a parsed file includes:
acquiring keyword information in the data information skip relation and the data information hierarchy relation according to a file analysis rule;
and analyzing the keyword information to obtain an analysis file.
In one example, before generating the directory structure initial file according to the file type and the data information jump relation and the data information hierarchy relation in the data information, the method further includes:
and modifying the non-English data information in the data information into corresponding English data information.
In one example, the method further comprises:
if the data information has a preset identifier, the data information is not generated into the initial file of the directory structure; wherein the preset identifier represents unrelated data information.
In a second aspect, the present application provides a directory structure file generating apparatus, including:
the acquisition unit is used for acquiring an original file of a product; wherein the original file is a data file of the product; the original file comprises a file type and data information;
the first generating unit is used for generating a directory structure initial file according to the file type, the data information jump relation and the data information hierarchy relation in the data information; wherein, the initial file of the directory structure comprises data information;
and the second generation unit is used for extracting the directory name in the initial file of the directory structure, eliminating the data information in the initial file of the directory structure and generating the file of the directory structure.
In one example, the first generating unit includes:
the first determining module is used for determining a file analysis rule matched with the file type in configuration data according to the file type;
the second determining module is used for analyzing the data information jumping relation and the data information hierarchy relation according to a file analysis rule to obtain an analysis file;
and the generating module is used for generating a directory structure initial file from the analysis file and automatically generating a program code of the page route in the directory structure initial file according to the data information jump relation in the data information.
In one example, the second determining module includes:
the obtaining submodule is used for obtaining the keyword information in the data information skip relation and the data information hierarchy relation according to a file analysis rule;
and the determining submodule is used for analyzing the keyword information to obtain an analysis file.
In one example, the apparatus further comprises:
and the modifying unit is used for modifying the non-English data information in the data information into corresponding English data information.
In one example, the apparatus further comprises:
if the data information has a preset identifier, the data information is not generated into the initial file of the directory structure; wherein the preset identifier represents unrelated data information.
According to the method, the device, the equipment and the storage medium for generating the directory structure file, the original file of the product is obtained; wherein the original file is a data file of the product; the original file comprises a file type and data information; generating a directory structure initial file according to the file type, the data information jump relation and the data information hierarchy relation in the data information; wherein, the initial file of the directory structure comprises data information; and after extracting the directory name in the initial file of the directory structure, eliminating the data information in the initial file of the directory structure to generate the file of the directory structure. By adopting the technical scheme, the problem that application program code catalogs of products written by different developers are different can be solved, so that the application program code catalogs of the products are more standard, and the application program code catalogs of the products can be conveniently modified in the later period.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart illustrating a directory structure file generating method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an interface display form of an original document of a product according to an embodiment of the present disclosure;
FIG. 3 is a diagram illustrating a directory structure file according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a directory structure file generation method according to a second embodiment of the present application;
FIG. 5 is a diagram of generating an initial file of a directory structure from an original file of a product according to the second embodiment of the present application;
FIG. 6 is a parsing file provided in accordance with an embodiment of the present application;
fig. 7 is a schematic diagram of a directory structure file generation apparatus according to a third embodiment of the present application;
fig. 8 is a schematic diagram of a directory structure file generation apparatus according to the fourth embodiment of the present application;
fig. 9 is a block diagram illustrating a terminal device according to an example embodiment.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a directory structure file generation method according to an embodiment of the present application. The first embodiment comprises the following steps:
s101, obtaining an original file of a product; wherein, the original file is a data file of the product; the original file includes file type and data information.
In this embodiment, the original file of the product is a data file formed by the prototype tool, where the original file includes data files of a plurality of interface display forms of the product, for example, see a schematic diagram of the interface display forms of the original file of one product shown in fig. 2. The product is an original model of a travel car booking APP, and the interface display form of the original file comprises a first hierarchy directory which is a starting directory and a main page directory, a second hierarchy directory which is a starting page directory under the starting directory, and a second hierarchy directory which is a calling page under the main page directory, an updated popup directory, a calling page, an active popup directory, a calling page, an unregistered directory and a calling page, a registered directory. The lower-level relations of the starting page directories are a welcome 1 directory, a welcome 2 directory and a welcome 3 directory, wherein the next-level directory of the calling page-updating popup directory is an updating reminding directory, the next-level directory of the calling page-unregistered directory is a login directory and a new user first login or registration target, and the next-level directory of the calling page-registered directory is an active special directory and a security center directory. As can be seen from fig. 2, the welcome 3 directory interface displays a form, and text content can be edited by double-clicking the editing text on the interface.
The interface display form of the original file of the product also corresponds to corresponding data information, wherein the data information comprises code files, the file types of the code files generated by the same product in different prototype tools are different, and the interface display form of the generated original file of the product is also different.
S102, generating a directory structure initial file according to the file type, the data information jump relation and the data information hierarchy relation in the data information; wherein, the initial file of the directory structure comprises data information.
In this embodiment, the jump relationship of the data information refers to a connection relationship between different data information, for example, a jump relationship between the data information a and the data information B is a result of converting the data information a to another data information B in a preset response manner. The data information hierarchy relationship refers to a hierarchical relationship or a level relationship between data information, for example, if the data information a includes data information B and data information C, the lower relationship of the data information a is the data information B and the data information C. The hierarchical relationship of the data information refers to data information B and data information C, wherein a data information jump relationship may exist between the data information B and the data information C, or the data information jump relationship may not exist.
After determining the data information jump relation and the data information hierarchy relation in the data information, generating a directory structure initial file by the relation.
S103, after extracting the directory name in the initial file of the directory structure, eliminating the data information in the initial file of the directory structure to generate the file of the directory structure.
In this embodiment, after the initial file of the directory structure is obtained, the identifier in the directory name in the initial file of the directory structure is extracted, and the data information under the directory name is deleted to generate the file of the directory structure. Specifically, see a schematic diagram of a directory structure file shown in fig. 3. It can be seen from fig. 3 that the directory structure file is src as the first hierarchical directory, and then the directories of the next hierarchy of src are assets, components, router, views, app. The next level directories of views are CallCar, MinePage, and StartPage, and the next level directory of StartPage is welome.
According to the method, the device, the equipment and the storage medium for generating the directory structure file, the original file of the product is obtained; wherein, the original file is a data file of the product; the original file comprises a file type and data information; generating a directory structure initial file according to the file type, the data information jump relation and the data information hierarchy relation in the data information; wherein, the initial file of the directory structure comprises data information; and after extracting the directory name in the initial file of the directory structure, eliminating the data information in the initial file of the directory structure to generate the file of the directory structure. By adopting the technical scheme, the problem that application program code catalogs of products written by different developers are different can be solved, so that the application program code catalogs of the products are more standard, and the application program code catalogs of the products can be conveniently modified in the later period.
Fig. 4 is a schematic flowchart of a directory structure file generation method according to a second embodiment of the present application. The second embodiment comprises the following steps:
s401, obtaining an original file of a product; wherein, the original file is a data file of the product; the original file includes file type and data information.
For example, this step may refer to step S101 described above, and is not described again.
S402, modifying the non-English data information in the data information into corresponding English data information.
In this embodiment, the non-english data information in the data information is modified into corresponding english data information, so that the advantage of the configuration is that the directory in the subsequently generated initial file of the directory structure is an english directory.
S403, determining a file analysis rule matched with the file type in the configuration data according to the file type.
In this embodiment, the file parsing rules adopted by different file types are different, so that after the file type is determined, and the file type is found in the configuration data, the file parsing rule matched with the file type is determined.
S404, analyzing the data information jumping relation and the data information hierarchy relation according to the file analysis rule to obtain an analysis file.
In one example, parsing the data information skip relation and the data information hierarchy relation according to a file parsing rule to obtain a parsed file includes:
acquiring keyword information in a data information jumping relation and a data information hierarchy relation according to a file analysis rule;
and analyzing the keyword information to obtain an analysis file.
In this embodiment, the keyword information is preset, and may be, for example, cid and parent _ cid. Fig. 5 shows a schematic diagram of generating an initial file of a directory structure from an original file of a product, and it can be seen that the original file includes code information, and if a cid found in the original file of the product in fig. 5 is a current page of the original file, and a parent _ cid is a jump page of the current page of the original file, that is, a parent page of the current page, different cids are used as a same hierarchical directory, and the parent _ cid of the parent page of the cid is nested in the same hierarchical directory. For example, it can be seen from fig. 5 that cid "skqnc 8xnd6 ryosa" is in the same hierarchical directory [ 0 ] as parent _ cid "skqnc 8xndx8ef1 w".
S405, generating a directory structure initial file from the analyzed file, and automatically generating a program code of a page route in the directory structure initial file according to a data information jump relation in the data information.
In this embodiment, in one parsing file shown in fig. 6, directories in the same hierarchical relationship and directories in different hierarchical relationships can be seen from the parsing file.
If the data information has the preset identification, the data information is not generated into a directory structure initial file; the preset identification represents irrelevant data information.
In this embodiment, if a blank page or invalid data information exists in the data information, the data information may be marked by using a preset identifier "null", and the data information may not be generated into a directory structure initial file.
S406, after the directory name in the initial file of the directory structure is extracted, the data information in the initial file of the directory structure is removed, and the file of the directory structure is generated.
In an example, this step may refer to step S103 described above, and is not described again.
According to the method, the device, the equipment and the storage medium for generating the directory structure file, the original file of the product is obtained, wherein the original file is a data file of the product; the method comprises the steps that an original file comprises a file type and data information, non-English data information in the data information is modified into corresponding English data information, a file analysis rule matched with the file type is determined in configuration data according to the file type, a data information skip relation and a data information hierarchy relation are analyzed according to the file analysis rule to obtain an analysis file, and the analysis file is generated into a directory structure initial file. By adopting the technical scheme, the problem that application program code catalogs of products written by different developers are different can be solved, so that the application program code catalogs of the products are more standard, and the application program code catalogs of the products can be conveniently modified in the later period.
Fig. 7 is a schematic diagram of a directory structure file generation apparatus according to a third embodiment of the present application. The apparatus 70 of the third embodiment, comprising:
an obtaining unit 701, configured to obtain an original file of a product; wherein, the original file is a data file of the product; the original file includes file type and data information.
A first generating unit 702, configured to generate a directory structure initial file according to a file type, a data information jump relationship and a data information hierarchy relationship in data information; wherein, the initial file of the directory structure comprises data information.
The second generating unit 703 is configured to extract the directory name in the initial file of the directory structure, and then remove the data information in the initial file of the directory structure to generate the file of the directory structure.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the above-described apparatus may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Fig. 8 is a schematic diagram of a directory structure file generation apparatus according to the fourth embodiment of the present application. The center device 80 of the fourth embodiment includes:
an obtaining unit 801, configured to obtain an original file of a product; wherein, the original file is a data file of the product; the original file includes file type and data information.
A first generating unit 802, configured to generate a directory structure initial file according to a file type, a data information jump relationship and a data information hierarchy relationship in data information; wherein, the initial file of the directory structure comprises data information.
The second generating unit 803 is configured to extract the directory name in the initial file of the directory structure, and then remove the data information in the initial file of the directory structure to generate the file of the directory structure.
In one example, the first generating unit 802 includes:
the first determining module 8021 is configured to determine, according to the file type, a file parsing rule matching the file type in the configuration data.
The second determining module 8022 is configured to analyze the data information skip relation and the data information hierarchy relation according to a file analysis rule, so as to obtain an analysis file.
The generating module 8023 is configured to generate an initial file of a directory structure from the parsed file, and automatically generate a program code of a page route in the initial file of the directory structure according to a data information jump relationship in the data information.
In one example, the second determining module 8022 includes:
the obtaining sub-module 80221 is configured to obtain keyword information in the data information skip relation and the data information hierarchy relation according to the file parsing rule.
The determining sub-module 80222 is configured to analyze the keyword information to obtain an analysis file.
In one example, the apparatus further comprises:
the modifying unit 804 is configured to modify non-english data information in the data information into corresponding english data information.
In one example, the apparatus further comprises:
the identification unit 805 is configured to not generate the data information as an initial file of a directory structure if the data information has a preset identifier; the preset identification represents irrelevant data information.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the above-described apparatus may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Fig. 9 is a block diagram illustrating a terminal device, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, etc., according to one exemplary embodiment.
The apparatus 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the apparatus 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices 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 memory, flash memory, magnetic or optical disks.
The power supply component 906 provides power to the various components of the device 900. The power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
The multimedia component 908 includes a screen that provides an output interface between the device 900 and a 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 touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The 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 apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, sensor assembly 914 may detect an open/closed state of device 900, the relative positioning of components, such as a display and keypad of device 900, the change in position of device 900 or a component of device 900, the presence or absence of user contact with device 900, the orientation or acceleration/deceleration of device 900, and the change in temperature of device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The 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, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. 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.
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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the apparatus 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, in which instructions are executed by a processor of a terminal device, so that the terminal device can perform the directory structure file generation method of the terminal device.
The application also discloses a computer program product comprising a computer program which, when executed by a processor, implements the method as described in the embodiments.
Various implementations of the systems and techniques described here above may be realized in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or electronic device.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a 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 may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data electronic device), or that includes a middleware component (e.g., an application electronic device), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include a client and an electronic device. The client and the electronic device are generally remote from each other and typically interact through a communication network. The relationship of client and electronic device arises by virtue of computer programs running on the respective computers and having a client-electronic device relationship to each other. The electronic device may be a cloud electronic device, which is also called a cloud computing electronic device or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service extensibility in a traditional physical host and a VPS service ("Virtual Private Server", or "VPS" for short). The electronic device may also be a distributed system of electronic devices or an electronic device incorporating a blockchain. It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A directory structure file generation method, the method comprising:
acquiring an original file of a product; wherein the original file is a data file of the product; the original file comprises a file type and data information;
generating a directory structure initial file according to the file type, the data information jump relation and the data information hierarchy relation in the data information; wherein, the initial file of the directory structure comprises data information;
and after extracting the directory name in the initial file of the directory structure, eliminating the data information in the initial file of the directory structure to generate the file of the directory structure.
2. The method of claim 1, wherein generating a directory structure initial file according to the file type and a data information jump relation and a data information hierarchy relation in the data information comprises:
determining a file analysis rule matched with the file type in configuration data according to the file type;
analyzing the data information jumping relation and the data information hierarchy relation according to a file analysis rule to obtain an analysis file;
and generating a directory structure initial file from the analysis file, and automatically generating a program code of the page route in the directory structure initial file according to the data information jump relation in the data information.
3. The method of claim 2, wherein parsing the data information hopping relationship and the data information hierarchy relationship according to a file parsing rule to obtain a parsed file comprises:
acquiring keyword information in the data information skip relation and the data information hierarchy relation according to a file analysis rule;
and analyzing the keyword information to obtain an analysis file.
4. The method of claim 1, further comprising, before generating a directory structure initial file according to the file type and the data information jump relation and the data information hierarchy relation in the data information:
and modifying the non-English data information in the data information into corresponding English data information.
5. The method according to any one of claims 1-4, further comprising:
if the data information has a preset identifier, the data information is not generated into the initial file of the directory structure; wherein the preset identifier represents unrelated data information.
6. A directory structure file generation apparatus, comprising:
the acquisition unit is used for acquiring an original file of a product; wherein the original file is a data file of the product; the original file comprises a file type and data information;
the first generating unit is used for generating a directory structure initial file according to the file type, the data information jump relation and the data information hierarchy relation in the data information; wherein, the initial file of the directory structure comprises data information;
and the second generation unit is used for extracting the directory name in the initial file of the directory structure, eliminating the data information in the initial file of the directory structure and generating the file of the directory structure.
7. The apparatus of claim 6, wherein the first generating unit comprises:
the first determining module is used for determining a file analysis rule matched with the file type in configuration data according to the file type;
the second determining module is used for analyzing the data information jumping relation and the data information hierarchy relation according to a file analysis rule to obtain an analysis file;
and the generating module is used for generating a directory structure initial file from the analysis file and automatically generating a program code of the page route in the directory structure initial file according to the data information jump relation in the data information.
8. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any of claims 1-5.
9. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the method of any one of claims 1-5.
10. A computer program product, comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-5.
CN202111605357.9A 2021-12-24 2021-12-24 Directory structure file generation method, device, equipment and storage medium Pending CN114329088A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111605357.9A CN114329088A (en) 2021-12-24 2021-12-24 Directory structure file generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111605357.9A CN114329088A (en) 2021-12-24 2021-12-24 Directory structure file generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114329088A true CN114329088A (en) 2022-04-12

Family

ID=81012596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111605357.9A Pending CN114329088A (en) 2021-12-24 2021-12-24 Directory structure file generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114329088A (en)

Similar Documents

Publication Publication Date Title
US20200007944A1 (en) Method and apparatus for displaying interactive attributes during multimedia playback
CN111339744B (en) Ticket information display method, device and storage medium
CN105930536B (en) Index establishing method, page jumping method and device
EP3416070A1 (en) Page display method and device and storage medium
CN112256563A (en) Android application stability testing method and device, electronic equipment and storage medium
CN115687303A (en) Data information migration method, device, equipment and storage medium
CN114090738A (en) Method, device and equipment for determining scene data information and storage medium
CN112333233B (en) Event information reporting method and device, electronic equipment and storage medium
CN113869295A (en) Object detection method and device, electronic equipment and storage medium
CN114329088A (en) Directory structure file generation method, device, equipment and storage medium
CN112581102A (en) Task management method and device, electronic equipment and storage medium
CN108021399B (en) Note processing method, device and equipment and storage medium
CN112988822A (en) Data query method, device, equipment, readable storage medium and product
CN111538544B (en) Method and device for displaying configuration data, electronic equipment and storage medium
CN113778385B (en) Component registration method, device, terminal and storage medium
CN114756319A (en) Applet page display method, device and equipment and storage medium
CN110020244B (en) Method and device for correcting website information
CN110209775B (en) Text processing method and device
CN115905387A (en) Data code information generation method, device, equipment and storage medium
CN117472931A (en) Method, device, equipment and storage medium for calling database execution statement
CN116088735A (en) Account relationship data processing method and device, electronic equipment and storage medium
CN113987247A (en) Training data searching method and device, electronic equipment and storage medium
CN116723272A (en) Voice information pushing method, device, equipment and storage medium
CN116257160A (en) Sub-application configuration method, device and equipment under micro front end framework and storage medium
CN116755694A (en) Page information display method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination