A page processing method and device

By obtaining and generating the preset data model corresponding to page requests, the problems of high repetition rate and complex process of page development in the existing technology are solved, and the page is visualized and modified and effective immediately, reducing the risk of frequent online launches.

CN113779448BActive Publication Date: 2025-02-21BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010795853.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-10
Publication Date
2025-02-21
Estimated Expiration
2040-08-10

AI Technical Summary

Technical Problem

In the existing technology, page development has a high repetition rate and complex process, and frequent modifications and online releases pose great risks.

Method used

By receiving page requests, a preset data model is obtained. The data model includes fixed configuration items and type configuration items, and corresponding configuration items are generated based on page data in page requests, and page rendering and data storage are performed.

Benefits of technology

It reduces the workload of repeated development, realizes visual modification and immediate effectiveness of the page, reduces the risk of frequent online launches, shortens product update time, and simplifies the process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113779448B_ABST
    Figure CN113779448B_ABST
Patent Text Reader

Abstract

The present invention discloses a page processing method and device, and relates to the field of computer technology. A specific implementation of the method includes receiving a page request, obtaining a preset data model corresponding to the page request; wherein the data model includes fixed configuration items and type configuration items, and the fixed configuration items and type configuration items are generated according to the page data in the page request; performing corresponding page rendering according to the data model, and storing the page data in a corresponding storage structure according to the data model. Therefore, the implementation of the present invention can solve the problems of high repetition rate and complex process of existing page development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a page processing method and device. Background Art

[0002] At present, all query pages in the system are static pages that are fixed and developed. When new business needs are encountered or pages need to be updated, the page code needs to be modified and debugged, and then tested and launched. In other words, the traditional design requires custom development of the page every time a modification is made, and corresponding modifications and development are required from the page to the backend.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] The repeated development of pages is very labor-intensive and the process is complicated. Moreover, if frequent modifications are involved, the pages need to be frequently released online, which is risky. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a page processing method and device, which can solve the problems of high duplication rate and complex process of existing page development.

[0006] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, a page processing method is provided, including receiving a page request, obtaining a preset data model corresponding to the page request; wherein the data model includes fixed configuration items and type configuration items, and the fixed configuration items and type configuration items are generated according to the page data in the page request; performing corresponding page rendering according to the data model, and storing the page data in a corresponding storage structure according to the data model.

[0007] Optionally, performing corresponding page rendering according to the data model includes:

[0008] Based on the fixed configuration items of the data model, obtain the corresponding control type;

[0009] A corresponding page rendering mode is obtained according to the control type, and then the page is rendered based on the data model.

[0010] Optionally, storing the page data in a corresponding storage structure according to the data model includes:

[0011] Based on the fixed configuration items of the data model, obtain corresponding attribute types;

[0012] According to the attribute type, the page data is stored in a corresponding storage structure.

[0013] Optionally, the page data is stored in a corresponding storage structure, including:

[0014] According to the fixed configuration items and type configuration items in the data model, identifying configuration items with a preset label as verification;

[0015] Based on the configuration item, the page data is verified, and after the verification passes, the page data is stored in a corresponding storage structure.

[0016] Optionally, receiving a page request and obtaining a preset data model corresponding to the page request includes:

[0017] According to the page request, obtain the business type to match the corresponding preset data model;

[0018] Based on the page data in the page request, the fixed configuration items of the data model are generated, and then based on the control type of the fixed configuration items, the corresponding type configuration items are obtained.

[0019] In addition, the present invention also provides a page processing device, including an acquisition module, used to receive a page request and obtain a preset data model corresponding to the page request; wherein the data model includes fixed configuration items and type configuration items, and the fixed configuration items and type configuration items are generated according to the page data in the page request; a processing module, used to perform corresponding page rendering according to the data model, and store the page data in a corresponding storage structure according to the data model.

[0020] Optionally, the processing module performs corresponding page rendering according to the data model, including:

[0021] Based on the fixed configuration items of the data model, obtain the corresponding control type;

[0022] A corresponding page rendering mode is obtained according to the control type, and then the page is rendered based on the data model.

[0023] Optionally, the processing module stores the page data in a corresponding storage structure according to the data model, including:

[0024] Based on the fixed configuration items of the data model, obtain corresponding attribute types;

[0025] According to the attribute type, the page data is stored in a corresponding storage structure.

[0026] One embodiment of the above invention has the following advantages or beneficial effects: the present invention obtains the preset data model corresponding to the page request; wherein the data model includes fixed configuration items and type configuration items, generates fixed configuration items and type configuration items according to the page data in the page request; performs corresponding page rendering according to the data model, and stores the page data in the corresponding storage structure according to the data model. The technical solution can reduce the workload of repeated development, realize visual modification of the page, take effect immediately, reduce the risk of frequent online releases, shorten product update time, and simplify the process. At the same time, flexible rendering of the page, dynamic field storage and function support in the back end are realized.

[0027] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0029] Figure 1 is a schematic diagram of the main flow of the page processing method according to the first embodiment of the present invention;

[0030] Figure 2 is a schematic diagram of displaying a search page according to an embodiment of the present invention;

[0031] Figure 3 is a schematic diagram of the main flow of the page processing method according to the second embodiment of the present invention;

[0032] Figure 4 is a schematic diagram of main modules of a page processing device according to an embodiment of the present invention;

[0033] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0034] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0036] Figure 1is a schematic diagram of the main flow of the page processing method according to the first embodiment of the present invention. Figure 1 As shown, the page processing method includes:

[0037] Step S101, receiving a page request, and obtaining a preset data model corresponding to the page request; wherein the data model includes fixed configuration items and type configuration items, and the fixed configuration items and type configuration items are generated according to page data in the page request.

[0038] In some embodiments, a page request is received and a preset data model corresponding to the page request is obtained. The specific implementation process includes:

[0039] According to the page request, the business type is obtained to match the corresponding preset data model. Then, based on the page data in the page request, the fixed configuration item of the data model is generated, and then the corresponding type configuration item is obtained based on the control type of the fixed configuration item.

[0040] That is to say, step S101 needs to abstract the corresponding data model according to the specific business, and then generate fixed configuration items of the data model according to the page data, which may include: field name, alias, control type, attribute type, whether it is required, whether it is searchable, whether it is editable, sorting, etc. Different types of type configuration items correspond to different control types, for example, they may include: text type: maximum allowed length, minimum length, default value; box type: style (single choice, checkbox, drop-down box), option value, default selected item, maximum selected number, etc.

[0041] It is worth mentioning that the control type refers to the type of a certain element on the page. For example, the control types are divided into: box, text, textarea, fulltext, datetime. Box refers to the option type page control. Text refers to the text box type page control. Textarea refers to the multi-line text type page control. Fulltext refers to the rich text type page control. Datetime refers to the time type page control. Sku refers to the inventory holding unit, which is a unique identifier for each product and service.

[0042] Step S102: performing corresponding page rendering according to the data model, and storing the page data in a corresponding storage structure according to the data model.

[0043] In some embodiments, the corresponding page rendering is performed according to the data model, and the specific implementation process includes:

[0044] Based on the fixed configuration items of the data model, the corresponding control type is obtained. Then, the corresponding page rendering mode is obtained according to the control type, and then the page is rendered based on the data model.

[0045] It can be seen that the present invention can construct pages according to the data model, and the front-end page renders and displays the page according to the configuration of the data model fields. The front end first obtains the data model corresponding to the page, and then obtains the fixed configuration items and type configuration items of the data model based on the page data to render the page. For example: if the control type of the data model is obtained as Box, and the style is single choice, the corresponding single choice Box style rendering is performed. If the corresponding page needs to be reversed, the data model field configuration information is obtained to render the page, and the business data is obtained for data filling. If it corresponds to a list page that needs to be searched, the search field is rendered based on whether the data model field configuration supports search, and the background program performs flexible search, such as Figure 2 The search page shown in the figure shows that the search conditions in the upper area are displayed through the data model field configuration.

[0046] In some other embodiments, the page data is stored in a corresponding storage structure according to the data model, and the specific implementation process includes:

[0047] Based on the fixed configuration items of the data model, the corresponding attribute type is obtained. Then, according to the attribute type, the page data is stored in the corresponding storage structure. Among them, the attribute type can be divided into: SKU product extended attribute, SKU extended attribute, storage location extended attribute, batch extended attribute, storage location-batch extended attribute, etc.

[0048] Preferably, the background program uses Elastic Search for storage, and when the background program stores data, different data will be stored in different Elastic Search storage structures according to different attribute types. ElasticSearch is a search server based on Lucene, which provides a distributed multi-user full-text search engine.

[0049] In a further embodiment, storing the page data in a corresponding storage structure may include: identifying a configuration item with a preset tag of verification based on the fixed configuration items and type configuration items in the data model; verifying the page data based on the configuration items, and storing the page data in a corresponding storage structure after the verification passes. That is, when storing, the page data will be verified according to the configuration of the data model field (e.g., whether it is required, whether it is editable, etc.), and will be stored after the verification passes.

[0050] In summary, the various embodiments described above can greatly improve labor efficiency, shorten the time required for page development, and reduce complex processes. At the same time, the configuration changes take effect immediately, eliminating the need for frequent online visits and reducing risks. In addition, the page is flexible, variable, and customizable, and the backend data is controllable and supports flexible addition and deletion of fields and search.

[0051] Figure 3 is a schematic diagram of the main flow of a page processing method according to a second embodiment of the present invention. The page processing method may include:

[0052] Step S301, receiving a page request, and obtaining a business type according to the page request to match a corresponding preset data model.

[0053] Step S302: generating fixed configuration items of the data model based on the page data in the page request, and then obtaining corresponding type configuration items based on the control types of the fixed configuration items.

[0054] Step S303: acquiring corresponding control types based on the fixed configuration items of the data model.

[0055] Step S304, obtaining a corresponding page rendering mode according to the control type, and then rendering the page based on the data model.

[0056] Step S305: identifying configuration items with preset tags as verification according to the fixed configuration items and type configuration items in the data model.

[0057] Step S306: verify the page data based on the configuration item.

[0058] Step S307, after verification is passed, the corresponding attribute type is obtained based on the fixed configuration items of the data model to store the page data in the corresponding storage structure.

[0059] It is worth noting that steps S303 to S304 can be performed simultaneously with steps S304 to S307, or steps S303 to S304 can be performed first and then steps S304 to S307, or steps S304 to S307 can be performed first and then steps S303 to S304.

[0060] Figure 4 is a schematic diagram of the main modules of the page processing device according to an embodiment of the present invention. Figure 4As shown, the page processing device 400 includes an acquisition module 401 and a processing module 402. The acquisition module 401 receives a page request and acquires a preset data model corresponding to the page request; the data model includes fixed configuration items and type configuration items, and the fixed configuration items and type configuration items are generated according to the page data in the page request; the processing module 402 performs corresponding page rendering according to the data model, and stores the page data in a corresponding storage structure according to the data model.

[0061] In some embodiments, the processing module 402 performs corresponding page rendering according to the data model, including:

[0062] Based on the fixed configuration items of the data model, obtain the corresponding control type;

[0063] A corresponding page rendering mode is obtained according to the control type, and then the page is rendered based on the data model.

[0064] In some embodiments, the processing module 402 stores the page data in a corresponding storage structure according to the data model, including:

[0065] Based on the fixed configuration items of the data model, obtain corresponding attribute types;

[0066] According to the attribute type, the page data is stored in a corresponding storage structure.

[0067] In some embodiments, the processing module 402 stores the page data in a corresponding storage structure, including:

[0068] According to the fixed configuration items and type configuration items in the data model, identifying configuration items with a preset label as verification;

[0069] Based on the configuration item, the page data is verified, and after the verification passes, the page data is stored in a corresponding storage structure.

[0070] In some embodiments, the acquisition module 401 receives a page request and obtains a preset data model corresponding to the page request, including:

[0071] According to the page request, obtain the business type to match the corresponding preset data model;

[0072] Based on the page data in the page request, the fixed configuration items of the data model are generated, and then based on the control type of the fixed configuration items, the corresponding type configuration items are obtained.

[0073] It should be noted that the page processing method and the page processing device of the present invention have a corresponding relationship in terms of specific implementation contents, so the repeated contents will not be described again.

[0074] Figure 5 An exemplary system architecture 500 is shown to which the page processing method or the page processing apparatus according to the embodiment of the present invention can be applied.

[0075] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0076] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0077] The terminal devices 501 , 502 , and 503 may be various electronic devices having a page processing screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0078] The server 505 may be a server that provides various services, such as a backend management server (for example only) that supports shopping websites browsed by users using the terminal devices 501, 502, and 503. The backend management server may analyze and process the received product information query request and other data, and feed back the processing results (for example, target push information, product information - for example only) to the terminal device.

[0079] It should be noted that the page processing method provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the computing device is generally disposed in the server 505 .

[0080] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0081] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0082] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0083] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal page processor (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0084] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.

[0085] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0086] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0087] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, it may be described as follows: a processor includes an acquisition module and a processing module. The names of these modules do not, in some cases, limit the modules themselves.

[0088] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes receiving a page request and obtaining a preset data model corresponding to the page request; wherein the data model includes fixed configuration items and type configuration items, and the fixed configuration items and type configuration items are generated according to the page data in the page request; the corresponding page rendering is performed according to the data model, and the page data is stored in the corresponding storage structure according to the data model.

[0089] The technical solution according to the embodiment of the present invention can solve the problems of high duplication rate and complicated process of existing page development.

[0090] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A page processing method, characterized in that: include: A page request is received, and the front end obtains a preset data model corresponding to the page request; wherein the data model includes fixed configuration items and type configuration items, and the fixed configuration items and type configuration items are generated according to the page data in the page request; the fixed configuration items include: control type; the control type is the type of a certain element of the page; the control type corresponds to the type configuration item; The front end performs corresponding page rendering according to the data model, and stores the page data in a corresponding storage structure according to the data model; Storing the page data in a corresponding storage structure according to the data model includes: Based on the fixed configuration items of the data model, obtain corresponding attribute types; According to the attribute type, the page data is stored in a corresponding storage structure.

2. The method according to claim 1, characterized in that Performing corresponding page rendering according to the data model includes: Based on the fixed configuration items of the data model, obtain the corresponding control type; A corresponding page rendering mode is obtained according to the control type, and then the page is rendered based on the data model.

3. The method according to claim 1, characterized in that Store page data in the corresponding storage structure, including: According to the fixed configuration items and type configuration items in the data model, identifying configuration items with a preset label as verification; Based on the configuration item, the page data is verified, and after the verification passes, the page data is stored in a corresponding storage structure.

4. The method according to any one of claims 1 to 3, characterized in that: Receiving a page request and obtaining a preset data model corresponding to the page request includes: According to the page request, obtain the business type to match the corresponding preset data model; Based on the page data in the page request, the fixed configuration items of the data model are generated, and then based on the control type of the fixed configuration items, the corresponding type configuration items are obtained.

5. A page processing device, characterized in that: include: The acquisition module is used to receive a page request, and the front end acquires a preset data model corresponding to the page request; wherein the data model includes fixed configuration items and type configuration items, and the fixed configuration items and type configuration items are generated according to the page data in the page request; the fixed configuration items include: control type; the control type is the type of a certain element of the page; the control type corresponds to the type configuration item; A processing module is used for the front end to render the corresponding page according to the data model, and store the page data in a corresponding storage structure according to the data model; The processing module is specifically used to: obtain corresponding attribute types based on the fixed configuration items of the data model; According to the attribute type, the page data is stored in a corresponding storage structure.

6. The device according to claim 5, characterized in that The processing module performs corresponding page rendering according to the data model, including: Based on the fixed configuration items of the data model, obtain the corresponding control type; A corresponding page rendering mode is obtained according to the control type, and then the page is rendered based on the data model.

7. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.

8. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Page creating method and apparatus

    CN106708484A

  • Method and device used for generating pages

    CN107977380A