CN115237438A - Data generation method and device for front-end development - Google Patents

Data generation method and device for front-end development Download PDF

Info

Publication number
CN115237438A
CN115237438A CN202210656878.5A CN202210656878A CN115237438A CN 115237438 A CN115237438 A CN 115237438A CN 202210656878 A CN202210656878 A CN 202210656878A CN 115237438 A CN115237438 A CN 115237438A
Authority
CN
China
Prior art keywords
service interface
service
document
data
interface document
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
CN202210656878.5A
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.)
Xinao Shuneng Technology Co Ltd
Original Assignee
Xinao Shuneng Technology 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 Xinao Shuneng Technology Co Ltd filed Critical Xinao Shuneng Technology Co Ltd
Priority to CN202210656878.5A priority Critical patent/CN115237438A/en
Publication of CN115237438A publication Critical patent/CN115237438A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques

Abstract

The present disclosure provides a data generation method and apparatus for front-end development, the method comprising: accessing a document server uploaded by a user in a back-end application server to obtain a service interface document predefined by the user in the document server; based on the service requirement list uploaded by the user, performing data filtering operation on the service interface document to obtain service interface data for providing online service, and performing modification marking on the service interface data at the front end; updating the service interface document at the front end by using the service interface data after the change mark to obtain an updated service interface document, and taking the updated service interface document as a project interface file required by local project development; and monitoring the service demand list, acquiring the updated service interface document again after monitoring that the service demand list is changed, and performing data operation and updating on the updated service interface document according to the changed service demand list.

Description

Data generation method and device for front-end development
Technical Field
The present disclosure relates to the field of internet application technologies, and in particular, to a data generation method and apparatus for front-end development.
Background
The front end and the back end of the software project adopt a separated mode, the front end is responsible for page display and logic interaction, and the back end is responsible for providing service interface data. The front end and the back end carry out data interaction through the application program interface, and when the back end interface is changed frequently and interface data cannot be provided for the front end, the back end provides service for the front end project through selecting and using analog data, so that the application interface achieves the expected effect.
When the front end and the back end are jointly adjusted, developers need to manually write a large number of codes, the process is complicated, the front-end interactive codes need to be manually modified along with the function change of the API of the server, the workload of the developers is large, the manual code writing is time-consuming and labor-consuming, the code writing error rate is high, and the development efficiency is low.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a data generation method and apparatus for front-end development, an electronic device, and a computer-readable storage medium, so as to solve the problem that development efficiency is low due to time and labor consumed by a developer to manually write a code and a high code writing error rate.
In a first aspect of the embodiments of the present disclosure, a data generation method for front-end development is provided, including:
accessing a document server uploaded by a user in a back-end application server to obtain a service interface document predefined by the user in the document server;
based on the service requirement list uploaded by the user, performing data filtering operation on the service interface document to obtain service interface data for providing online service, and performing modification marking on the service interface data at the front end;
updating the service interface document at the front end by using the service interface data after the change mark to obtain an updated service interface document, and taking the updated service interface document as a project interface file required by local project development;
and monitoring the service requirement list, acquiring the updated service interface document again after monitoring that the service requirement list is changed, and performing data operation and updating on the updated service interface document according to the changed service requirement list.
In a second aspect of the embodiments of the present disclosure, a data generation apparatus for front-end development is provided, including:
the acquisition module is configured to access a document server uploaded by a user in the back-end application server and acquire a service interface document predefined by the user in the document server;
the filtering module is configured to perform data filtering operation on the service interface document based on the service requirement list uploaded by the user to obtain service interface data for providing online service, and change and mark the service interface data at the front end;
the updating module is configured to update the service interface document at the front end by using the service interface data after the change mark to obtain an updated service interface document, and the updated service interface document is used as a project interface file required by local project development;
and the monitoring module is configured to monitor the service requirement list, obtain the updated service interface document again after monitoring that the service requirement list is changed, and perform data operation and update on the updated service interface document according to the changed service requirement list.
In a third aspect of the embodiments of the present disclosure, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
In a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, in which a computer program is stored, which when executed by a processor implements the steps of the above-mentioned method.
Compared with the prior art, the embodiment of the disclosure has the following beneficial effects: the method comprises the steps that a document server uploaded by a user in a back-end application server is accessed to obtain a service interface document predefined by the user in the document server; based on the service requirement list uploaded by the user, performing data filtering operation on the service interface document to obtain service interface data for providing online service, and performing modification marking on the service interface data at the front end; updating the service interface document at the front end by using the service interface data after the change mark to obtain an updated service interface document, and taking the updated service interface document as a project interface file required by local project development; and monitoring the service demand list, acquiring the updated service interface document again after monitoring that the service demand list is changed, and performing data operation and updating on the updated service interface document according to the changed service demand list. The method and the device can automatically generate the interface document and respond to the change of the business requirement in time, so that front-end personnel can call the interface document according to the business requirement, a large amount of communication cost is reduced, and the development efficiency of the code is improved.
Drawings
To more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without inventive efforts.
Fig. 1 is a schematic flow chart diagram of a data generation method for front-end development according to an embodiment of the present disclosure;
fig. 2 is a specific flowchart of a data generation method for front-end development according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a data generation apparatus for front-end development according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the disclosed embodiments. However, it will be apparent to one skilled in the art that the present disclosure may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present disclosure with unnecessary detail. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention, are within the scope of the invention. Unless otherwise specified, the technical means used in the examples are conventional means well known to those skilled in the art.
Technical solutions according to embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
When an application program is developed, data provided by a back end is needed for front end development, if the back end data is not completed, the front end development progress and the back end development progress cannot be unified, and in order to avoid a window empty period caused by inconsistent development progress and a project initial stage, analog data is used for front end development, and the analog data is usually written manually to provide support for the front end development. And after the back-end development is finished, performing function joint debugging of the front-end and the back-end, and finishing switching between real data and analog data by using an application programming interface of the back-end so as to realize data exchange under the condition of separating the front-end and the back-end.
However, in the process of code writing, because relevant codes are written manually and writing habits of developers are different, the problem that formats before and after code writing are inconsistent exists. When the service requirement of the user changes, developers need to manually modify the codes respectively, and a large amount of time is invested for communication and maintenance, so that the time cost of development is increased.
In the prior art, the following solutions are provided to solve the blank window period caused by different development schedules. Part of developers adopt the filling fixed data as the simulation data to display, the fixed data has the condition of inconsistent configuration, and if the fixed data is not thoroughly cleaned in the later stage, the system problem can be caused. Or selecting batch joint debugging, relieving the blank window period to a certain extent, and having the interface abnormity in the joint debugging process caused by the logic change of the server.
And a third party can provide simulation data, so that development risks to a certain degree can be relieved, and the data security problem cannot be guaranteed. And simulation data is generated through an independently researched and developed visual platform, and a simulation data service is provided by simulating network conditions and application configuration based on the capability of research and development personnel for configuring the simulation data, but the independently researched and developed platform needs to invest a large amount of service resources for operation and maintenance, so that the investment cost is greatly increased.
The embodiment of the disclosure provides a data generation method for front-end development, which obtains a service interface document predefined by a user in a document server by accessing the document server uploaded by the user in a back-end application server; based on the service requirement list uploaded by the user, performing data filtering operation on the service interface document to obtain service interface data for providing online service, and performing modification marking on the service interface data at the front end; updating the service interface document at the front end by using the service interface data after the change mark to obtain an updated service interface document, and taking the updated service interface document as a project interface file required by local project development; and monitoring the service demand list, acquiring the updated service interface document again after monitoring that the service demand list is changed, and performing data operation and updating on the updated service interface document according to the changed service demand list. The method and the device can automatically generate the interface document, thereby reducing the work of code writing and reducing the error rate of the code. Meanwhile, the change of the business requirement is responded in time, so that front-end personnel call the interface document according to the business requirement, a large amount of communication cost is reduced, interface calling can be realized without a third-party platform, repeated work is avoided, and the development efficiency of the code is improved.
Fig. 1 is a schematic diagram of a data generation method for front-end development provided in an embodiment of the present disclosure, where the data generation method for front-end development may be executed by a back-end application server, and may be run on a device such as a computer program or a mobile phone terminal, and is not limited in this respect. The code language for writing data can be Java or other programming languages, and the applicable system can be a Linux operating system, a Mac operating system or a Windows operating system.
As shown in fig. 1, a data generation method for front-end development includes the steps of:
s101, accessing a document server uploaded by a user in a back-end application server, and acquiring a service interface document predefined by the user in the document server.
Before accessing a document server uploaded by a user in a back-end application server, a service interface document jointly determined by a front-end developer and a back-end developer needs to be acquired, the service interface document is acquired, and interface parameters in the service interface document are mainly acquired, wherein the interface parameters at least comprise the name of the interface document, an interface request path URL and interface request parameter information, and the interface request parameter information comprises a parameter name and a parameter type. The interface here includes one or more interfaces based on service needs, and is not specifically limited herein.
And adding the service interface document into the document server at the back end, and deploying the document server containing the service interface document into a back end application server.
When a user accesses the back-end application server for the first time, the service interface document stored in the back-end application server is downloaded, the service interface document is stored to the local, and detailed data generated when the user accesses the back-end application server is written into the local environment.
S102, based on the service requirement list uploaded by the user, data filtering operation is carried out on the service interface document to obtain service interface data for providing online service, and modification marking is carried out on the service interface data at the front end.
Based on the service requirement list uploaded by the user, the service requirement list is generated by the user based on different service scene requirements. The service requirement list at least comprises basic information such as parameter names, description or annotation of keywords, request types, request addresses and the like. And executing filtering operation based on the service demand list to obtain service interface data for providing the online service.
And calling a file comparison module installed in the development tool, determining the change condition of the service interface data before and after the filtering operation is executed on the service interface document, and according to the change condition of the service interface data, using a diff algorithm in a tool data processing model to change and mark the data in the interface document, thereby reducing the operation load of the local service. When the mark is changed according to the code in the service interface document, a markdown format, a word format or an online document format can be adopted.
And S103, updating the service interface document at the front end by using the service interface data after the change mark to obtain an updated service interface document, and taking the updated service interface document as a project interface file required by local project development.
The changes to the service interface data include adding data, deleting data, and modifying data based on the marking of the changes to the service interface data. As an example, to add a routing configuration for an interface document, a light container may be selected to add a new routing configuration in an extension field. The embodiment does not limit the specific type of the data, and the data can be used as the change of the service interface data when being changed relative to the original service interface data.
And combing the changed data again by using the tool data processing model, and updating the front-end service interface document to ensure that the service interface document keeps a synchronous updating state. And storing the updated interface document in a back-end application server, and taking the updated service interface document as a project interface file required by local project development.
S104, monitoring the service requirement list, acquiring the updated service interface document again after monitoring that the service requirement list is changed, and performing data operation and updating on the updated service interface document according to the changed service requirement list.
After the project service is started, a monitoring module is called to monitor a service demand list uploaded by a user, whether an interface demand file in the service demand list changes or not is monitored, and the monitored file can be one or more files. The monitoring object at least comprises an interface document or a directory in the document server, and specifically, the change of the interface file can be copying, adding, copying of a sub-directory under the directory, modifying of a file name, and creating, modifying or deleting operation for the service interface document.
When the user front-end page operates, the back-end application server monitors that the service requirement list is changed, and obtains the updated service interface document again. And sending the updated interface document to the client corresponding to the interface document viewing request, and updating the front-end page. As an example, a user clicks a medicine purchase link of a medicine platform to generate a request for purchasing a medicine, at this time, a business requirement list changes, business identification information is acquired according to a user business request, configuration information of an interface is determined based on the identification information, the configuration information of the analysis interface is called, a corresponding business interface document is acquired, and a page of the medicine to be purchased is updated to a front-end page for the user to select.
Fig. 2 is a specific flowchart of a data generation method for front-end development according to an embodiment of the present disclosure. As shown in fig. 2, the method comprises the steps of:
s201, defining a service interface document.
The method comprises the steps that a front-end developer and a back-end developer jointly determine a business interface document, and the content of the interface document at least comprises a request path, request parameters, response content and the like.
S202, writing codes of front-end page layout.
The front-end developer writes codes of page layout through a work space (workplace), and the writing language of the codes can be written by one or more programming languages. The code of the page layout can be imported by selecting < script > tag and < link > tag, wherein the attribute value of the tag represents the specific path of the resource file. By writing the code, a developer can customize the function of the component based on the business needs, so that the component can be called by a user.
S203, starting a code generation service based on the page layout code.
And after the page layout code is completed, generating a service interface document, and deploying a document server containing the service interface document into a back-end application server.
And S204, writing back-end service codes.
And writing codes through a working space by a back-end worker based on the work items, configuring components used in code generation, including rule configuration such as data tables, fields, verification and the like, and generating the codes for back-end service after a table structure is established.
And S205, automatically generating simulation data and service item codes based on the back-end service codes.
Specifically, the human is involved in writing foreground logic and front-end and back-end data interactive codes, and the interactive codes are codes for executing interactive operation. And determining the interactive code as a mark language code of the hypertext, pushing the language code marked by the hypertext to a back-end application server, and automatically generating simulation data and a service item code.
And S206, changing a rear-end interface.
And changing the interface data of the back end and sending the interface data to the front end page.
And S207, updating the service interface document based on the changed rear-end interface.
And updating the business interface document of the front end based on the changed back end interface information.
And S208, automatically changing the simulation data and the related project codes based on the service interface document.
And based on the updated service interface document, performing data operation on the updated service interface document, and changing the simulation data and the related project codes.
S209, based on the simulation data and the related item code, switching the simulation data service to real interface data.
Under the condition that the development of the rear-end interface is completed, the simulation data is switched into real data, and the real data is returned to the front end by the rear-end application server through the interface; if the development is not finished, the simulation data is continuously returned.
And S210, joint debugging front-end and back-end application and development completion.
And when the simulation data in the interface document is returned to the front end, the front end page analyzes the returned simulation data.
The embodiment of the disclosure provides a data generation method for front-end development, which obtains a service interface document predefined by a user in a document server by accessing the document server uploaded by the user in a back-end application server; based on the service requirement list uploaded by the user, performing data filtering operation on the service interface document to obtain service interface data for providing online service, and performing modification marking on the service interface data at the front end; updating the service interface document at the front end by using the service interface data after the change mark to obtain an updated service interface document, and taking the updated service interface document as a project interface file required by local project development; and monitoring the service demand list, acquiring the updated service interface document again after monitoring that the service demand list is changed, and performing data operation and updating on the updated service interface document according to the changed service demand list. The method and the device can automatically generate the service interface document, and reduce the time for manually compiling the interface document. The change of the business requirement can be responded in time, so that front-end personnel call the interface document according to the business requirement, a large amount of communication cost is reduced, and the development efficiency of the code is improved.
Further, if a new interface is added, acquiring interface configuration information of the newly added interface, and matching the newly added interface configuration information with the parameter information in the service interface document based on the newly added interface configuration information, wherein the successfully matched interface configuration information in the newly added interface configuration information is the latest interface configuration information. Based on the latest interface configuration information, the front end automatically modifies the code.
The interface change is based on the original interface information. As an example, the original interface can only call information data of the user, the transaction information of the user can also be called after the interface is changed, the interface parameter needs to be adjusted when the interface is changed, the current interface information needs to be compared with the historical interface information when the interface parameter is adjusted, and the changed entry and exit parameters and the change of the interface address are determined. When the back-end interface is changed, the code of the layout of the front-end page is changed, the changed code is automatically generated, and developers do not need to manually write.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 3 is a schematic structural diagram of a data generation apparatus for front-end development according to an embodiment of the present disclosure. As shown in fig. 3, the data generating apparatus applied to front-end development includes an obtaining module 301, a filtering module 302, an updating module 303, and a monitoring module 304. The obtaining module 301 is configured to access a document server uploaded by a user in a backend application server, and obtain a service interface document predefined by the user in the document server; a filtering module 302, configured to perform data filtering operation on the service interface document based on the service requirement list uploaded by the user, obtain service interface data for providing online service, and perform modification marking on the service interface data at the front end; the updating module 303 is configured to update the service interface document at the front end by using the service interface data after the change mark to obtain an updated service interface document, and use the updated service interface document as a project interface file required during local project development; and the monitoring module 304 is configured to monitor the service requirement list, obtain the updated service interface document again after monitoring that the service requirement list is changed, and perform data operation and update on the updated service interface document according to the changed service requirement list.
Further, the obtaining module 301 is specifically configured to obtain a service interface document determined by both the front-end developer and the back-end developer, add the service interface document to the document server at the back end, and deploy the document server containing the service interface document to the back-end application server. When a user accesses the back-end application server for the first time, the service interface document stored in the back-end application server is downloaded, the service interface document is stored to the local, and detailed data generated when the user accesses the back-end application server is written into the local environment.
Further, the filtering module 302 is specifically configured to call a file comparison module installed in the development tool, determine the change condition of the service interface data before and after performing the filtering operation on the service interface document, and mark the change of the service interface data according to the change condition of the service interface data.
Further, the update module 303 is specifically configured to update the service interface document at the front end based on a flag made on a change of the service interface data, so that the service interface document maintains a synchronous update state, where the change of the service interface data includes adding data, deleting data, and modifying data.
Further, the monitoring module 304 is specifically configured to, after the project service is started, invoke the monitoring module to monitor the service requirement list uploaded by the user, where the monitoring module is configured to monitor whether an interface requirement file in the service requirement list changes, and when it is monitored that the interface requirement file in the service requirement list changes, re-acquire an updated service interface file; and based on the new service interface data and the service requirement list before modification, performing data operation and updating on the service interface document at the front end to obtain the latest modified service interface document.
Fig. 4 is a schematic structural diagram of an electronic device 4 provided in the embodiment of the present disclosure. As shown in fig. 4, the electronic apparatus 4 of this embodiment includes: a processor 401, a memory 402 and a computer program 403 stored in the memory 402 and executable on the processor 401. The steps in the various method embodiments described above are implemented when the processor 401 executes the computer program 403. Alternatively, the processor 401 implements the functions of the respective modules/units in the above-described respective apparatus embodiments when executing the computer program 403.
The electronic device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other electronic devices. The electronic device 4 may include, but is not limited to, a processor 401 and a memory 402. Those skilled in the art will appreciate that fig. 4 is merely an example of electronic device 4 and does not constitute a limitation of electronic device 4 and may include more or fewer components than shown, or some components may be combined, or different components.
The processor 401 may be a Central Processing Unit (CPU), other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 402 may be an internal storage unit of the electronic device 4, for example, a hard disk or a memory of the electronic device 4. The memory 402 may also be an external storage device of the electronic device 4, such as a plug-in hard disk provided on the electronic device 4, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (FlashCard), and the like. Further, the memory 402 may also include both internal storage units of the electronic device 4 and external storage devices. The memory 402 is used for storing computer programs and other programs and data required by the electronic device.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present disclosure may implement all or part of the flow of the method in the above embodiments, and may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the above methods and embodiments. The computer program may comprise computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain suitable additions or additions that may be required in accordance with legislative and patent practices within the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals or telecommunications signals in accordance with legislative and patent practices.
The above examples are only intended to illustrate the technical solution of the present disclosure, not to limit it; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present disclosure, and are intended to be included within the scope of the present disclosure.

Claims (10)

1. A data generation method for front-end development, comprising:
accessing a document server uploaded by a user in a back-end application server to acquire a service interface document predefined by the user in the document server;
based on the service requirement list uploaded by the user, performing data filtering operation on the service interface document to obtain service interface data for providing online service, and performing modification marking on the service interface data at the front end;
updating the service interface document at the front end by using the service interface data after the change mark to obtain an updated service interface document, and using the updated service interface document as a project interface file required by local project development;
and monitoring the service requirement list, acquiring the updated service interface document again after monitoring that the service requirement list is changed, and performing data operation and updating on the updated service interface document according to the changed service requirement list.
2. The method of claim 1, wherein prior to the accessing the document server uploaded by the user in the back-end application server, the method further comprises:
and acquiring the service interface document jointly determined by a front-end developer and a back-end developer, adding the service interface document into the document server at the back end, and deploying the document server containing the service interface document into the back-end application server.
3. The method of claim 2, wherein the obtaining the user-predefined service interface document in the document server comprises: when the user accesses the back-end application server for the first time, downloading the service interface document stored in the back-end application server, storing the service interface document to the local, and writing the detail data generated when the user accesses the back-end application server into the local environment.
4. The method of claim 1, wherein said marking changes to said traffic interface data at the head end comprises:
and calling a file comparison module installed in a development tool, determining the change condition of the service interface data before and after the filtering operation is executed on the service interface document, and marking the change of the service interface data according to the change condition of the service interface data.
5. The method of claim 4, wherein the updating the service interface document of the front end by using the service interface data after the change mark comprises:
and updating the service interface document at the front end based on the mark for changing the service interface data to keep the service interface document in a synchronous updating state, wherein the change of the service interface data comprises adding data, deleting data and modifying data.
6. The method according to claim 1, wherein the monitoring the service requirement list, and when it is monitored that the service requirement list is changed, reacquiring the updated service interface document comprises:
and calling a monitoring module to monitor the service demand list uploaded by the user after the project service is started, wherein the monitoring module is used for monitoring whether an interface demand file in the service demand list changes or not, and when the interface demand file in the service demand list changes, re-acquiring the updated service interface file.
7. The method of claim 6, wherein performing data operations and updating on the updated service interface document according to the changed service requirement list comprises:
and based on the changed service requirement list, filtering the service interface document by reusing the changed service requirement list to obtain new service interface data, and based on the new service interface data and the service requirement list before the change, performing data operation and updating on the service interface document at the front end to obtain the latest changed service interface document.
8. A data generation apparatus for front-end development, comprising:
the acquisition module is configured to access a document server uploaded by a user in a back-end application server, and acquire a service interface document predefined by the user in the document server;
the filtering module is configured to perform data filtering operation on the service interface document based on the service demand list uploaded by the user to obtain service interface data for providing online service, and change and mark the service interface data at the front end;
the updating module is configured to update the service interface document at the front end by using the service interface data after the change mark to obtain an updated service interface document, and the updated service interface document is used as a project interface file required by local project development;
and the monitoring module is configured to monitor the service requirement list, reacquire the updated service interface document after monitoring that the service requirement list is changed, and perform data operation and update on the updated service interface document according to the changed service requirement list.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor realizes the steps of the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202210656878.5A 2022-06-10 2022-06-10 Data generation method and device for front-end development Pending CN115237438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210656878.5A CN115237438A (en) 2022-06-10 2022-06-10 Data generation method and device for front-end development

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210656878.5A CN115237438A (en) 2022-06-10 2022-06-10 Data generation method and device for front-end development

Publications (1)

Publication Number Publication Date
CN115237438A true CN115237438A (en) 2022-10-25

Family

ID=83669579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210656878.5A Pending CN115237438A (en) 2022-06-10 2022-06-10 Data generation method and device for front-end development

Country Status (1)

Country Link
CN (1) CN115237438A (en)

Similar Documents

Publication Publication Date Title
CN108279932B (en) Method and device for dynamically configuring user interface of mobile terminal
CN108388622B (en) API interface dynamic generation method and device, computer equipment and storage medium
CA2707509A1 (en) Templating system and method for updating content in real time
CN110795649A (en) Target page display method, device and system and electronic equipment
CN111125064A (en) Method and device for generating database mode definition statement
CN112395027A (en) Widget interface generation method and device, storage medium and electronic equipment
CN111198685A (en) Method, device, system, server and storage medium for generating front-end interactive page based on user state
CN113656005B (en) Application component library construction method, application component configuration method and related devices
CN114706616A (en) Applet construction method and device
CN112783494A (en) Automatic skeleton screen generation method and device and application page updating method and device
CN110888794A (en) Interface test method and device
CN114756228A (en) Page processing method, device, equipment and storage medium
CN112199373A (en) Form development method and system
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN115237438A (en) Data generation method and device for front-end development
CN112104544B (en) Method and device for sending dynamic mail based on Freemarker
CN115758016A (en) Webpage content staticizing processing method and system
CN110727677B (en) Method and device for tracing blood relationship of table in data warehouse
CN113495498A (en) Simulation method, simulator, device, and medium for hardware device
CN113722007A (en) Configuration method, device and system of VPN branch equipment
CN109634500B (en) User data filling method and device, terminal equipment and storage medium
CN109271182B (en) Method and device for upgrading search engine
CN113448960A (en) Method and device for importing form file
CN113254019A (en) Method and device for registering front-end data stream state file
CN111597784A (en) Information sending method, device, terminal equipment and 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