CN113064734A - Data processing method and device, front-end middle layer assembly and front-end and back-end separated development system - Google Patents
Data processing method and device, front-end middle layer assembly and front-end and back-end separated development system Download PDFInfo
- Publication number
- CN113064734A CN113064734A CN202110225227.6A CN202110225227A CN113064734A CN 113064734 A CN113064734 A CN 113064734A CN 202110225227 A CN202110225227 A CN 202110225227A CN 113064734 A CN113064734 A CN 113064734A
- Authority
- CN
- China
- Prior art keywords
- data
- layer
- target
- target operation
- operation data
- 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
Links
- 238000011161 development Methods 0.000 title claims abstract description 58
- 238000003672 processing method Methods 0.000 title claims abstract description 27
- 238000012545 processing Methods 0.000 claims abstract description 84
- 239000010410 layer Substances 0.000 claims description 269
- 230000003993 interaction Effects 0.000 claims description 40
- 238000000034 method Methods 0.000 claims description 40
- 230000008569 process Effects 0.000 claims description 27
- 230000010365 information processing Effects 0.000 claims description 23
- 230000002776 aggregation Effects 0.000 claims description 19
- 238000004220 aggregation Methods 0.000 claims description 19
- 238000009877 rendering Methods 0.000 claims description 18
- 238000004891 communication Methods 0.000 claims description 16
- 238000013480 data collection Methods 0.000 claims description 13
- 239000011229 interlayer Substances 0.000 claims description 7
- 238000012986 modification Methods 0.000 claims description 7
- 230000004048 modification Effects 0.000 claims description 7
- 238000000926 separation method Methods 0.000 claims description 5
- 238000007792 addition Methods 0.000 claims description 3
- 238000012217 deletion Methods 0.000 claims description 3
- 230000037430 deletion Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 10
- 230000005540 biological transmission Effects 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 4
- 238000005859 coupling reaction Methods 0.000 description 4
- 230000002452 interceptive effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000033764 rhythmic process Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/547—Messaging middleware
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application relates to the technical field of computers, and discloses a data processing method, which is applied to a front-end and back-end separated development system and comprises the following steps: a front-end intermediate layer of the development system acquires target operation data, identification information of the target operation data and a target processing mode of the target operation data; determining a target data receiving layer corresponding to the target operation data according to the association relationship between the identification information of the operation data and the data receiving layer, wherein the data receiving layer respectively comprises one of a front-end data set layer, a front-end view layer and a back-end data layer of the development system; and processing the target operation data according to the target processing mode, and sending the processed target operation data to a target data receiving layer. Therefore, the joint debugging efficiency of front-end and back-end separated development is improved, and the problem tracing is facilitated under the condition that the problems occur on the line. The application also discloses a front-end middle layer assembly, a data processing device and a front-end and back-end separated development system.
Description
Technical Field
The present application relates to the field of computer technologies, and for example, to a data processing method, apparatus, front-end middle layer component, and front-end and back-end separated development system.
Background
At present, the front-end and back-end separation development gradually becomes a mainstream development mode, and the development mode can enable tasks between a front-end browser and a back-end server to be independent and divided, so that the working efficiency is improved well. However, the front-end and back-end separated development also easily causes the problems of non-uniform development rhythm, non-uniform front-end and back-end joint tone and the like. Meanwhile, on the basis of gradually frequent data interaction and gradually increased data volume, the problems of data coupling, difficult problem source tracing and the like also exist in front-end and back-end separated development.
In the conventional front-end and back-end separated development, the front end can be divided into an interaction layer, a view layer and a data store (collection of stored data) layer. The data store layer is responsible for data interaction with the back-end data layer, data modification calculation and data formatting; the interaction layer is responsible for responding to the user operation request, performing data interaction with the back-end data layer, performing data interaction with the data store layer, calculating and modifying data and formatting the data. Therefore, the data store layer and the interaction layer need to process data, functions are various and complex, complexity of the data and the range of development and maintenance are increased, and later debugging and problem tracing are not facilitated.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art: although the existing front-end and back-end separated development system can meet the business requirements, in the data processing process, the interaction of data is complicated, the development joint debugging efficiency is low, and the problem tracing is difficult.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides a data processing method and device, a front-end middle layer component and a front-end and back-end separated development system, so that joint debugging efficiency of front-end and back-end separated development is improved, traceability of on-line problems is facilitated, and the technical problem of complicated data interaction in the existing front-end and back-end separated development system is solved.
In some embodiments, the data processing method is applied to a front-end and back-end separated development system, and the data processing method comprises: a front-end middle layer of a development system acquires target operation data, identification information of the target operation data and a target processing mode of the target operation data; determining a target data receiving layer corresponding to the target operation data according to the association relationship between the identification information of the operation data and the data receiving layer, wherein the data receiving layer respectively comprises one of a front-end data set layer, a front-end view layer and a back-end data layer of the development system; and processing the target operation data according to the target processing mode, and sending the processed target operation data to a target data receiving layer.
In some embodiments, if the target operation data is page rendering data sent by the front-end data aggregation layer and/or the back-end data layer, determining a target data receiving layer corresponding to the target operation data includes: and determining the target data receiving layer as a front-end view layer according to the incidence relation.
In some embodiments, processing the target operation data according to a target processing manner of the target operation data includes: obtaining target data format information associated with a front end view layer; and rendering the page rendering data into a data format required by the front end view layer according to the target data format information.
In some embodiments, if the target operation data is user interaction data sent by a front end view layer, determining a target data receiving layer corresponding to the target operation data includes: and determining the target data receiving layer as a front-end data set layer or a back-end data layer according to the incidence relation.
In some embodiments, the target processing manner of the target operation data is one of addition, deletion, modification and query.
In some embodiments, after processing the target operation data according to the target processing manner of the target operation data, the method further includes: acquiring target data format information associated with a front-end data set layer or a back-end data layer; and formatting the processed user interaction data into a data format required by a front-end data set layer or a back-end data layer according to the target data format information.
In some embodiments, the data processing method further comprises: and locally storing the processed target operation data.
In some embodiments, the front-end middle-layer component is applied to a front-end and back-end separated development system, the front-end middle-layer component comprising: the device comprises a data collection module, an information storage module, an information processing module, an information release module and an information reporting module. The data collection module is respectively communicated with a front-end data set layer, a front-end view layer and a back-end data layer of the development system and is configured to receive target operation data sent by the front-end data set layer, the back-end data layer or the front-end view layer, identification information of the target operation data and a target processing mode of the target operation data; the information processing module is communicated with the data collection module and the information storage module respectively, and is configured to determine a target data receiving layer corresponding to target operation data according to the association relation between the identification information of the operation data and the data receiving layer, which is stored by the information storage module, when the target operation data, the identification information of the target operation data and the target processing mode of the target operation data are obtained, the target operation data are processed according to the target processing mode, and the processed target operation data are sent to the target data receiving layer; the information issuing module is communicated with the information processing module and the front end view layer respectively, and is configured to receive processed target operation data sent by the information processing module and send the processed target operation data to the front end view layer when the target data receiving layer is the front end view layer; the information reporting module is respectively communicated with the information processing module, the front-end data aggregation layer and the rear-end data layer, and is configured to receive the processed target operation data sent by the information processing module and send the processed target operation data to the front-end data aggregation layer or the rear-end data layer when the target data receiving layer is the front-end data aggregation layer or the rear-end data layer.
In some embodiments, the data processing apparatus comprises a processor and a memory storing program instructions. The processor is configured to perform the data processing method described above when executing the program instructions.
In some embodiments, the front-end and back-end split development system includes a front end and a back end. The front end comprises a front end middle layer, a front end interaction layer and a front end data set layer. The front end intermediate layer comprises the front end intermediate layer assembly; the front-end view layer and the front-end data set layer respectively send target operation data, identification information of the target operation data and a target processing mode of the target operation data to the front-end intermediate layer; and processing the target operation data by the front-end intermediate layer assembly to obtain the processed target operation data.
The data processing method, the data processing device, the front-end middle layer assembly and the front-end and back-end separated development system provided by the embodiment of the disclosure can realize the following technical effects:
the front-end intermediate layer of the front-end and back-end separated development system obtains target operation data, identification information of the target operation data and a target processing mode; according to the incidence relation between the identification information of at least one operation data and the data receiving layer, the target data receiving layer corresponding to the target operation data is determined, the data receiving layer can be one of a front-end data set layer, a front-end view layer and a rear-end data layer of the development system, therefore, the accuracy of the transmission flow direction of the target operation data can be ensured in the subsequent data processing process, the target operation data after the subsequent processing flows to the correct target data receiving layer, and the trouble of secondary data modification is avoided. In addition, the target operation data are processed according to the target processing mode and sent to the target data receiving layer, so that the complete processing process of the data can be guaranteed to be carried out in the front-end middle layer, the unicity of data operation processing is realized, the joint debugging efficiency of front-end and back-end separated development is improved, and the problem tracing is facilitated under the condition that problems occur on line.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the accompanying drawings and not in limitation thereof, in which elements having the same reference numeral designations are shown as like elements and not in limitation thereof, and wherein:
FIG. 1 is a schematic diagram of a front-end and back-end split development system provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a data processing method provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a front end intermediate layer assembly provided by embodiments of the present disclosure;
FIG. 4 is a schematic diagram of a data processing apparatus provided by an embodiment of the present disclosure;
fig. 5 is a schematic diagram of another front-end and back-end separation development system provided by an embodiment of the present disclosure.
Reference numerals
30: a front end intermediate layer assembly; 31: a data collection module; 32: an information storage module; 33: an information processing module; 34: an information release module; 35: an information reporting module; 36: a front-end dataset overlay; 37: front-end viewing layers; 38: a back-end data layer;
100: a processor; 101: a memory; 102: a communication interface; 103: bus line
Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be made. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
Fig. 1 is a schematic diagram of a front-end and back-end separated development system provided by an embodiment of the present disclosure. As shown in fig. 1, embodiments of the present disclosure provide a front-end and back-end separated development system, which may include a front end and a back end. The front end can be deployed at one side of a terminal associated with a browser and a client, and comprises a front end interaction layer, a front end data set layer and a front end intermediate layer, wherein the front end interaction layer comprises a front end view layer and a user interaction layer. The backend may be deployed on the server side, including the backend data layer. The front-end middle layer establishes communication relations with the front-end interaction layer, the front-end data aggregation layer and the rear-end data layer respectively. Therefore, the front-end data set layer, the front-end interaction layer and the rear-end data layer are three, the effects of simplifying responsibility and independence of tasks are achieved through the front-end middle layer, and the problems that the joint debugging efficiency of the front-end and rear-end separated development systems is low and the problems are difficult to trace to the source are solved.
In the actual application process, the front-end middle layer of the front-end and back-end separated development system can obtain the target operation data, the identification information of the target operation data and the target processing mode of the target operation data, so as to establish a receiving and sending relation with the target data receiving layer and send the processed target operation data to the target data receiving layer. Under different usage scenarios, the target data receiving layer may be one of a front-end view layer, a front-end data aggregation layer, and a back-end data layer. Therefore, the complete processing process of the data can be ensured to be carried out in the front-end middle layer, and the singleness of data operation processing is realized. The specific implementation process can be referred to as the following description.
The terminal may include a mobile phone, a computer, a wearable device, a smart mobile device, a virtual display device, and the like, or any combination thereof.
Fig. 2 is a schematic diagram of a data processing method according to an embodiment of the present disclosure. With reference to fig. 2, an embodiment of the present disclosure provides a data processing method applicable to a front-end middle layer of a front-end and back-end separated development system, where the method may include:
s21, the front end middle layer of the development system obtains the target operation data, the identification information of the target operation data and the target processing mode of the target operation data.
In one usage scenario, the target operation data may be page rendering data; alternatively, in another usage scenario, the target operational data may be user interaction data. It is understood that the user interaction data is data of which the display changes corresponding to the interaction during the interaction between the user and the user interaction layer, and therefore, the front end view layer can be regarded as a data source of the user interaction data. For example, the user interaction data may be that when the user clicks a "focus" key while browsing a certain page, the original "focus" key is changed to "focused", and the presentation change data is the user interaction data.
And S22, determining a target data receiving layer corresponding to the target operation data according to the incidence relation between the identification information of the operation data and the data receiving layer, wherein the data receiving layer is one of a front-end data set layer, a front-end view layer and a rear-end data layer of the development system.
The association relationship between the identification information of the operation data and the data receiving layer, that is, the interface of the data receiving layer corresponding to the operation data, may be pre-configured by the user and locally stored. Therefore, data can be transmitted to a correct data receiving layer in the flowing process, the accuracy of data transmission is ensured, and the accuracy of the whole front-end developed service is improved.
As an example, if the target operation data is page rendering data sent by the front-end data aggregation layer and/or the back-end data layer, determining a target data receiving layer corresponding to the target operation data includes: and determining the target data receiving layer as a front-end view layer according to the incidence relation.
As another example, if the target operation data is user interaction data sent by the front end view layer, determining a target data receiving layer corresponding to the target operation data includes: and determining the target data receiving layer as a front-end data set layer or the back-end data layer according to the incidence relation.
And S23, processing the target operation data according to the target processing mode, and sending the processed target operation data to the target data receiving layer.
The front-end intermediate layer obtains the association relationship between the identification information of the operation data and the processing mode by defining a function mode, namely the processing mode corresponding to the operation data. In this way, under the condition that the target operation data and the identification information thereof are obtained, the target processing mode corresponding to the target operation data can be called, so that the target operation data is processed according to the target processing mode. Therefore, the accuracy of the front-end middle layer in the data processing process is improved, and the data processing efficiency is optimized.
As an example, if the target operation data is page rendering data, the target operation manner of the target operation data is format rendering processing.
Correspondingly, the processing of the target operation data according to the target processing mode of the target operation data comprises the following steps: obtaining target data format information associated with a front end view layer; and rendering the page rendering data into a data format required by the front end view layer according to the target data format information. Therefore, the correctness of data rendering is ensured, and a basis is provided for finding out the corresponding data problem from the page problem in the debugging process. Meanwhile, the process of processing the page rendering data occurs in the front-end middle layer, so that other data layers, such as the neatness of the front-end data assembly layer and the rear-end data layer, can be ensured, and the data of the other data layers are protected.
As another example, if the target operation data is user interaction data, the target processing manner of the target operation data may be one of addition, deletion, modification, and query. The following examples are given.
In the practical application process, if the item to be developed is a shopping website, a shopping cart interface can be developed for the user to add the commodity to be purchased. Therefore, if the user clicks the 'join shopping cart' key on the item detail page of a certain item, correspondingly, the related pre-purchase information of the item is added to the shopping cart interface; if a user clicks a 'delete' key on one side of a certain commodity in the shopping cart interface, correspondingly, the related pre-purchase information of the commodity is deleted in the shopping cart interface; if the user inputs the quantity 5 in the related pre-purchase information of a certain commodity in the shopping cart interface, correspondingly, the related pre-purchase information of the commodity in the shopping cart interface is modified from the default quantity 1 to the quantity 5; if the user inputs the name information of a certain commodity in the query column configured on the shopping cart interface, the shopping cart interface loads the related pre-purchase information of the commodity correspondingly. The related pre-purchase information includes related attributes of the goods that the user wants to purchase, such as the type of pre-purchase, the number of pre-purchases, the color of pre-purchases, and the like.
Taking an operation action of 'adding a shopping cart' by a user as an example, the front-end view layer sends interactive data corresponding to the operation action to the front-end middle layer, and if a target data receiving layer of the interactive data is a back-end data layer, the front-end middle layer adds the interactive data to the back-end data layer associated with the shopping cart interface and formats the interactive data into a data format required by the back-end data layer. After the back-end data layer obtains the interaction data, relevant processing for adding the target product to the shopping cart in the interaction data can be performed, for example, an association relationship between the target product and the user account is established. After the back end data layer completes the relevant processing, the back end data layer can also return the processing result data of the relevant processing to the front end middle layer. Correspondingly, the front-end intermediate layer can determine that the target data receiving layer of the processing result data is the front-end view layer, so that the processing result data can be sent to the front-end view layer after being rendered according to the data format required by the front-end view layer. Thus, the user can see the related pre-purchase information of the commodity on the shopping cart interface.
Optionally, after processing the user interaction data according to a target processing manner of the user interaction data, the method further includes: acquiring target data format information associated with a front-end data set layer or a back-end data layer; and formatting the processed user interaction data into a data format required by a front-end data set layer or a back-end data layer according to the target data format information. Therefore, the subsequent front-end data set layer or the rear-end data layer can be ensured to directly receive the corresponding data, and the trouble of modifying the data format is saved. In addition, the data processing process is carried out in the front-end middle layer, so that the data processing process can be ensured to be single, and the problem tracing, troubleshooting and debugging are facilitated when the problem occurs on line.
In summary, the data processing method applicable to the front-end middle layer of the front-end and back-end separated development system provided by the embodiment of the disclosure is used for processing data by using the front-end middle layer, so that the unicity of data operation processing is realized, and the joint debugging efficiency of the front-end and back-end separated development is improved. Meanwhile, the accuracy of the transmission flow direction of the operation data can be ensured, so that the processed operation data can flow to a correct target data receiving layer, and the trouble of secondary data modification is avoided. Therefore, the developer, i.e. the user mentioned above, only needs to pay attention to the accuracy of the data flow and the correctness of the processing result, so that more work can be put on the business itself.
Optionally, the data processing method applicable to the front-end middle layer of the front-end and back-end separated development system further includes: and locally storing the processed target operation data. Therefore, under the condition that the problems occur on the line, the problems can be traced conveniently.
Fig. 3 is a schematic diagram of a front end interlayer assembly provided by embodiments of the present disclosure. Referring to fig. 3, an embodiment of the present disclosure provides a front-end middle layer assembly, which is applied to a front-end and back-end separated development system. The front end intermediate layer assembly 30 includes: a data collection module 31, an information storage module 32, an information processing module 33, an information release module 34, and an information reporting module 35. The data collection module 31 establishes communication with the front-end data set layer 36, the front-end view layer 37, and the back-end data layer 38 of the development system, and is configured to receive target operation data, identification information of the target operation data, and a target processing mode of the target operation data, which are sent by the front-end data set layer 36, the back-end data layer 38, or the front-end view layer 37; the information processing module 33 establishes communication with the data collection module 31 and the information storage module 32, and is configured to determine a target data receiving layer corresponding to target operation data according to an association relationship between identification information of the operation data stored in the information storage module 32 and the data receiving layer when obtaining the target operation data sent by the data collection module, identification information of the target operation data, and a target processing mode of the target operation data, and process the target operation data according to the target processing mode, and send the processed target operation data to the target data receiving layer; the information publishing module 34 establishes communication with the information processing module 33 and the front-end view layer 37, and is configured to receive the processed target operation data sent by the information processing module 33 and send the processed target operation data to the front-end view layer 37 when the target data receiving layer is the front-end view layer 37; the information reporting module 35 establishes communication with the information processing module 33, the front-end data aggregation layer 36, and the back-end data layer 38, respectively, and is configured to receive the processed target operation data sent by the information processing module 33 and send the processed target operation data to the front-end data aggregation layer 36 or the back-end data layer 38 when the target data receiving layer is the front-end data aggregation layer 36 or the back-end data layer 38.
As an example, when the processed target operation data is sent, the target operation data may be split into two functional modules as shown in fig. 3, that is, the information publishing module 34 and the information reporting module 35, to implement the function of sending data. Correspondingly, when sending data to the front-end view layer 37, the information publishing module 34 establishes a communication relationship with the information processing module 33, receives the processed target operation data, and sends the processed target operation data to the front-end view layer 37 via other data layers of the front end, for example, a user interaction layer included in the front-end interaction layer; when data is sent to the front-end data aggregation layer 36 and the back-end data layer 38, a communication relationship is established between the information reporting module 35 and the information processing module 33, and the processed target operation data is received and directly sent to the corresponding target data receiving layer. As another example, the sending function for sending data to the two directions may be integrated into one functional module. The dividing manner of the modules in the embodiments of the present disclosure may not be specifically limited.
Alternatively, the information storage module 32 may store the target operation data sent by the data collection module 31, the identification information of the target operation data, and the target processing mode of the target operation data. In this way, the original target operation data is protected and can be used for data tracing. Alternatively, the information storage module 32 may store the processed target operation data transmitted from the information processing module 33. Thus, tracing to the problem in debugging or maintenance process is facilitated.
In summary, the front-end interlayer component applied to the front-end and back-end separated development system provided by the embodiment of the disclosure is used for processing data through the information processing module, and the function of processing the data by using the front-end interlayer is realized, so that the unicity of data operation processing is ensured, and the joint debugging efficiency of the front-end and back-end separated development is improved. Meanwhile, the correctness of the data source of the operation data and the accuracy of the data transmission flow direction can be ensured, so that the processed operation data can flow to a correct target data receiving layer, and the trouble of secondary data modification is avoided.
Fig. 4 is a schematic diagram of a data processing apparatus according to an embodiment of the disclosure. As shown in fig. 4, an embodiment of the present disclosure provides a data processing apparatus, which includes a processor (processor)100 and a memory (memory) 101. Optionally, the apparatus may also include a Communication Interface (Communication Interface)102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other via a bus 103. The communication interface 102 may be used for information transfer. The processor 100 may call logic instructions in the memory 101 to perform the data processing method of the above-described embodiment.
In addition, the logic instructions in the memory 101 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 101, which is a computer-readable storage medium, may be used for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 100 executes functional applications and data processing by executing program instructions/modules stored in the memory 101, that is, implements the data processing method in the above-described embodiments.
The memory 101 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. In addition, the memory 101 may include a high-speed random access memory, and may also include a nonvolatile memory.
Fig. 5 is a schematic diagram of another front-end and back-end separation development system provided by an embodiment of the present disclosure. Referring to fig. 5, a front-end and back-end separated development system provided by the embodiment of the present disclosure includes a front end and a back end. The front end comprises a front end intermediate layer, a front end view layer and a front end data set layer; the front end intermediate layer comprises the front end intermediate layer assembly; the front-end view layer and the front-end data set layer respectively send target operation data, identification information of the target operation data and a target processing mode of the target operation data to the front-end intermediate layer; and processing the target operation data by the front-end intermediate layer assembly to obtain the processed target operation data.
As an example, in the process of operating a page by a user, the front end view layer sends user interaction data, that is, target operation data 1 shown in the drawing, to the front end middle layer, and after the front end middle layer component processes the user interaction data, the front end data aggregation layer receives the processed user interaction data, that is, target operation data 1', sent by the front end middle layer component. As another example, in the page rendering process, the front-end data aggregation layer sends page rendering data, that is, the target operation data 2, to the front-end intermediate layer, and after the front-end intermediate layer component processes the page rendering data, the front-end view layer receives the processed page rendering data, that is, the target operation data 2', sent by the front-end intermediate layer component.
To sum up, adopt the front and back end disconnect-type development system that this disclosed embodiment provided, handle operation data through front end intermediate level subassembly, make front end data set put together and the front end interaction layer including the front end view layer, only be responsible for transmission data and use data, realize dividing apart of responsibility to guarantee the unicity of data operation processing, improved the joint debugging efficiency of front and back end disconnect-type development.
Embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions configured to perform the data processing method of the above.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-mentioned data processing method.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Claims (10)
1. A data processing method is applied to a front-end and back-end separated development system, and comprises the following steps:
a front-end intermediate layer of the development system acquires target operation data, identification information of the target operation data and a target processing mode of the target operation data;
determining a target data receiving layer corresponding to the target operation data according to the association relationship between the identification information of the operation data and the data receiving layer, wherein the data receiving layer is one of a front-end data set layer, a front-end view layer and a rear-end data layer of the development system;
and processing the target operation data according to the target processing mode, and sending the processed target operation data to the target data receiving layer.
2. The data processing method according to claim 1, wherein determining a target data receiving layer corresponding to the target operation data if the target operation data is page rendering data sent by the front-end data aggregation layer and/or the back-end data layer comprises:
and determining the target data receiving layer as the front-end view layer according to the incidence relation.
3. The data processing method according to claim 2, wherein the processing the target operation data according to the target processing manner of the target operation data comprises:
obtaining target data format information associated with the front end view layer;
and rendering the page rendering data into a data format required by the front end view layer according to the target data format information.
4. The data processing method according to claim 1, wherein if the target operation data is user interaction data sent by the front end view layer, determining a target data receiving layer corresponding to the target operation data comprises:
and determining the target data receiving layer to be the front-end data set layer or the back-end data layer according to the incidence relation.
5. The data processing method of claim 4, wherein the target processing manner of the target operation data is one of addition, deletion, modification and query.
6. The data processing method according to claim 5, wherein after processing the target operation data according to the target processing manner of the target operation data, the method further comprises:
obtaining target data format information associated with the front-end data set layer or the back-end data layer;
and formatting the processed user interaction data into a data format required by the front-end data aggregation layer or the back-end data layer according to the target data format information.
7. The data processing method according to any one of claims 1 to 6, further comprising:
and locally storing the processed target operation data.
8. A front end interlayer assembly for use in a front end and back end separation development system, the front end interlayer assembly comprising:
the system comprises a data collection module, an information storage module, an information processing module, an information release module and an information reporting module;
the data collection module is respectively communicated with a front-end data set layer, a front-end view layer and a back-end data layer of the development system, and is configured to receive target operation data sent by the front-end data set layer, the back-end data layer or the front-end view layer, identification information of the target operation data, and a target processing mode of the target operation data;
the information processing module is respectively communicated with the data collection module and the information storage module, and is configured to determine a target data receiving layer corresponding to target operation data according to the association relationship between the identification information of the operation data and the data receiving layer stored in the information storage module when acquiring the target operation data sent by the data collection module, the identification information of the target operation data and a target processing mode of the target operation data, process the target operation data according to the target processing mode, and send the processed target operation data to the target data receiving layer;
the information issuing module establishes communication with the information processing module and the front end view layer respectively, and is configured to receive the processed target operation data sent by the information processing module and send the processed target operation data to the front end view layer when the target data receiving layer is the front end view layer;
the information reporting module establishes communication with the information processing module, the front-end data aggregation layer and the back-end data layer, and is configured to receive the processed target operation data sent by the information processing module and send the processed target operation data to the front-end data aggregation layer or the back-end data layer when the target data receiving layer is the front-end data aggregation layer or the back-end data layer.
9. A data processing apparatus comprising a processor and a memory storing program instructions, wherein the processor is configured to perform the data processing method of any one of claims 1 to 7 when executing the program instructions.
10. A front-end and back-end separation type development system, the development system comprising a front end and a back end, the front end comprising:
a front end intermediate layer, a front end view layer, and a front end data aggregation layer;
the front end interlayer comprising the front end interlayer assembly of claim 8;
the front-end view layer and the front-end data set layer respectively send target operation data, identification information of the target operation data and a target processing mode of the target operation data to the front-end intermediate layer; and after the front-end intermediate layer assembly processes the target operation data, obtaining the processed target operation data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110225227.6A CN113064734A (en) | 2021-03-01 | 2021-03-01 | Data processing method and device, front-end middle layer assembly and front-end and back-end separated development system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110225227.6A CN113064734A (en) | 2021-03-01 | 2021-03-01 | Data processing method and device, front-end middle layer assembly and front-end and back-end separated development system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113064734A true CN113064734A (en) | 2021-07-02 |
Family
ID=76559384
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110225227.6A Pending CN113064734A (en) | 2021-03-01 | 2021-03-01 | Data processing method and device, front-end middle layer assembly and front-end and back-end separated development system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113064734A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108062382A (en) * | 2017-12-13 | 2018-05-22 | 广州视源电子科技股份有限公司 | information interaction method, device, equipment and storage medium |
CN108153798A (en) * | 2016-12-02 | 2018-06-12 | 阿里巴巴集团控股有限公司 | Page info processing method, apparatus and system |
CN108829383A (en) * | 2018-05-31 | 2018-11-16 | 达飞云贷科技(北京)有限公司 | A kind of data processing method and device of interface separation |
US20190325199A1 (en) * | 2018-07-02 | 2019-10-24 | Baidu Online Network Technology (Beijing) Co., Ltd. | Information processing method, device, system and storage medium |
CN110958278A (en) * | 2018-09-26 | 2020-04-03 | 北京国双科技有限公司 | API gateway-based data processing method and system and API gateway |
CN110968388A (en) * | 2019-11-01 | 2020-04-07 | 苏宁云计算有限公司 | Page processing method and system |
CN111752559A (en) * | 2019-11-07 | 2020-10-09 | 北京沃东天骏信息技术有限公司 | Front-end and back-end separation system, method, device and storage medium |
-
2021
- 2021-03-01 CN CN202110225227.6A patent/CN113064734A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108153798A (en) * | 2016-12-02 | 2018-06-12 | 阿里巴巴集团控股有限公司 | Page info processing method, apparatus and system |
CN108062382A (en) * | 2017-12-13 | 2018-05-22 | 广州视源电子科技股份有限公司 | information interaction method, device, equipment and storage medium |
CN108829383A (en) * | 2018-05-31 | 2018-11-16 | 达飞云贷科技(北京)有限公司 | A kind of data processing method and device of interface separation |
US20190325199A1 (en) * | 2018-07-02 | 2019-10-24 | Baidu Online Network Technology (Beijing) Co., Ltd. | Information processing method, device, system and storage medium |
CN110958278A (en) * | 2018-09-26 | 2020-04-03 | 北京国双科技有限公司 | API gateway-based data processing method and system and API gateway |
CN110968388A (en) * | 2019-11-01 | 2020-04-07 | 苏宁云计算有限公司 | Page processing method and system |
CN111752559A (en) * | 2019-11-07 | 2020-10-09 | 北京沃东天骏信息技术有限公司 | Front-end and back-end separation system, method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11647117B2 (en) | Systems and methods for customer service agent-guided chat session digital assistant | |
CN110716951B (en) | Label configuration method, device and equipment convenient to configure and storage medium | |
CA2942146C (en) | Visualizing random characters for keyboard-less devices | |
EP1152362A1 (en) | An information providing system and a method for providing information | |
US9218433B2 (en) | Online logo tool | |
CN107798579B (en) | Method for generating protocol file and terminal thereof | |
CN110363542B (en) | Customer service system construction method and device, storage medium and electronic equipment | |
WO2014176748A1 (en) | Method, device, and system for accessing third party platforms via a messaging application | |
KR20140148466A (en) | Method and system to provide a scroll map | |
CN105590243A (en) | Method, system, client, and server for centralized processing on discrete data | |
CN105719329A (en) | Accounting voucher generating method and accounting voucher generating system | |
EP3232335A1 (en) | Method and device for providing authentication information on web page | |
US20210200782A1 (en) | Creating and Performing Transforms for Indexed Data on a Continuous Basis | |
KR102425758B1 (en) | System for recommending company based machine learning | |
CN107735785A (en) | Automated information retrieval | |
CN105518607A (en) | Navigating fixed format document in e-reader application | |
CN113064734A (en) | Data processing method and device, front-end middle layer assembly and front-end and back-end separated development system | |
CN110740153B (en) | Monitoring data acquisition method, system and device | |
CN114415911B (en) | Data entry method and device | |
CN112947984B (en) | Application program development method and device | |
CN112991000B (en) | Method, device, equipment, system, search interface and storage medium for displaying search results, commodity orders and search interface | |
US20160110387A1 (en) | Product lifecycle management system | |
TWM559464U (en) | E-commerce system of communication software | |
CN110874378A (en) | Multi-channel internet book purchasing mall system based on big data analysis | |
KR20230162351A (en) | Electronic apparatus and method for managing image providing detail information relating to item |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210702 |
|
RJ01 | Rejection of invention patent application after publication |