CN112835577A - Data processing method, data processing device, computer equipment and readable storage medium - Google Patents

Data processing method, data processing device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN112835577A
CN112835577A CN202110115699.6A CN202110115699A CN112835577A CN 112835577 A CN112835577 A CN 112835577A CN 202110115699 A CN202110115699 A CN 202110115699A CN 112835577 A CN112835577 A CN 112835577A
Authority
CN
China
Prior art keywords
page
target
template
article
created
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110115699.6A
Other languages
Chinese (zh)
Inventor
刘金雨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baijia Technology Group Co ltd
Original Assignee
Beijing Baijia Technology Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baijia Technology Group Co ltd filed Critical Beijing Baijia Technology Group Co ltd
Priority to CN202110115699.6A priority Critical patent/CN112835577A/en
Publication of CN112835577A publication Critical patent/CN112835577A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present disclosure provides a data processing method, an apparatus, a computer device and a readable storage medium, wherein the method comprises: responding to a page creating request of a user side, and determining the page category of a page to be created indicated in the page creating request; searching a target page template matched with the page category in a page template library, wherein the page template library comprises at least one page template belonging to at least one page category; and responding to the template filling operation of the target page template, determining target filling information matched with the target page template, filling and rendering the target filling information into the target page template, and obtaining the page to be created after rendering. According to the method and the device for webpage development, the target webpage template is determined, and the target filling information in the database is filled and rendered to the target webpage template, so that the webpage to be created is obtained, the efficiency of the network webpage development is improved, the labor is saved, and the development cost of the network webpage development is reduced.

Description

Data processing method, data processing device, computer equipment and readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data processing method, an apparatus, a computer device, and a readable storage medium.
Background
Currently, with the development from the media industry, more and more network users choose to publish corresponding articles through a network platform (e.g., a network public platform). At this time, the network user may create a network page including the corresponding article through the network public platform, and then, present the network page to the user through the network public platform, so as to present the corresponding article content through the network page. However, in the existing page development technology, engineers who need clients and servers create corresponding web pages in a customized manner according to development requirements, and the development technology reduces the development efficiency of the web pages and increases the development cost of web page development.
Disclosure of Invention
The embodiment of the disclosure provides at least a data processing method, a data processing device, a computer device and a readable storage medium.
In a first aspect, an embodiment of the present disclosure provides a data processing method, applied to a client, including: responding to a page creating request of a user side, and determining the page category of a page to be created indicated in the page creating request; searching a target page template matched with the page category in a page template library, wherein the page template library comprises at least one page template belonging to at least one page category; and responding to the template filling operation of the target page template, determining target filling information matched with the target page template, filling and rendering the target filling information into the target page template, and obtaining the page to be created after rendering.
With reference to the first aspect, embodiments of the present disclosure provide a first possible implementation manner of the first aspect, where: the target filling information is article content of a target article; determining the article content of the target article according to information stored in a preset database, wherein the preset database comprises: the method comprises the steps of presetting an article library and/or a material library, wherein the preset article library comprises article contents of at least one article to be filled, and the preset material library comprises at least one material data used for constructing a target article.
With reference to the first possible implementation manner of the first aspect, this disclosed embodiment provides a second possible implementation manner of the first aspect, where: in response to an article adding instruction of a user side, searching at least one target material for constructing the target article in the preset material library; and combining the at least one target material according to a preset combination mode to obtain the article content of the target article.
With reference to the first aspect, embodiments of the present disclosure provide a third possible implementation manner of the first aspect, where: under the condition that a target page template matched with the page category is not found in a page template base, at least one target component for constructing the target page template is found, wherein the at least one target component is used for representing at least one functional unit in the page to be created; and combining the at least one target assembly to obtain the target page template, and determining target filling information matched with the target page template in response to the template filling operation of the target page template.
With reference to the third possible implementation manner of the first aspect, this disclosed embodiment provides a fourth possible implementation manner of the first aspect, where: sending a component addition request to a server under the condition that the at least one target component is not found; and acquiring a component development file returned by the server based on the component addition request, creating at least one added component based on the component development file, and determining the at least one added component as the at least one target component.
With reference to the first aspect, embodiments of the present disclosure provide a fifth possible implementation manner of the first aspect, where: after the page to be created is obtained after rendering, determining the type identification information of the page to be created according to the page category of the page to be created; and storing the page content of the page to be created according to a preset format according to the type identification information.
In combination with the method implementation manner of any one of the first aspects, the embodiments of the present disclosure provide a sixth possible implementation manner of the first aspect, where: after the page to be created is obtained after rendering, determining newly added components and/or newly added materials in the page to be created; and sending the newly added component and/or the newly added material to a server for storage.
In a second aspect, an embodiment of the present disclosure further provides a data processing apparatus, including: a first determination module: the method comprises the steps of responding to a page creating request of a user side, and determining the page category of a page to be created indicated in the page creating request; a searching module: the page template library is used for searching a target page template matched with the page category, wherein the page template library comprises at least one page template belonging to at least one page category; a second determination module: and the target filling information is determined in response to the template filling operation of the target page template, the target filling information matched with the target page template is filled and rendered into the target page template, and the page to be created is obtained after rendering.
In a third aspect, an embodiment of the present disclosure further provides a computer device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect described above, or any possible implementation of the first aspect.
In a fourth aspect, this disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.
Compared with the mode of customizing the network page in the prior art, the mode provided by the embodiment of the disclosure improves the efficiency of network page development, saves manpower and reduces the development cost of the network page development.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 shows a flow chart of a data processing method provided by an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating filling a rendering-target page template in a data processing method provided by an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating the construction of a target page template in the data processing method according to the embodiment of the disclosure;
FIG. 4 is a schematic diagram of a data processing apparatus provided by an embodiment of the present disclosure;
fig. 5 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The term "and/or" herein merely describes an associative relationship, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Research shows that in the prior art, a customized development mode needs to be performed on each page to be created, and the development efficiency of the page is reduced.
Based on the research, the data processing method and device, the computer device and the readable storage medium are provided in the present disclosure, and the page development efficiency is improved by determining the target page template and filling and rendering the target filling information in the database to the target page template to obtain the page to be created.
To facilitate understanding of the present embodiment, first, a data processing method disclosed in the embodiments of the present disclosure is described in detail, where an execution subject of the data processing method provided in the embodiments of the present disclosure is generally a computer device with certain computing capability, where a corresponding client is installed in the computer device, and the computer device includes, for example: a terminal device, which may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle mounted device, a wearable device, or a server or other processing device. In some possible implementations, the data processing method may be implemented by a processor calling computer readable instructions stored in a memory.
The applicable scenes of the data processing method provided by the embodiment of the disclosure include internet +, online education and the like, such as a blog, a work log, a scientific and technological paper, a learning log, a learning plan, a teaching and research log and the like, which are not limited at all.
Example one
Referring to fig. 1, a flowchart of a data processing method provided by the embodiment of the present disclosure is shown, where the method includes steps S101 to S105, where:
s101: and responding to a page creating request of a user side, and determining the page category of the page to be created indicated in the page creating request.
In the embodiment of the present disclosure, first, a client detects a page creation request sent by a user (e.g., a network user) when a corresponding operation is performed on a display interface of the client. After the page creation request is detected, the page category of the page to be created indicated in the page creation request is obtained, for example, the page category may be a promotion page, a research page, a learning page, a technology sharing page, or a function page. The propaganda page can be a page which is published on a propaganda platform in the client and contains propaganda contents such as products, commodities, education resources, education courses and the like; the function page can be a function page with a video preview function and an online payment function.
For example, if the client is an education client, the page to be created may be a promotion page including a course to be sold promoted in the education client; the page to be created can also be a function page with a video preview function and containing the corresponding online education video.
It should be noted that, on the display interface of the client, a corresponding creation button may be set, and the client may trigger the page creation request by clicking the creation button. For example, when the user clicks the create button, a corresponding selection window may pop up, where the selection window is used to indicate a page type of a page to be created, for example, a promotion page and/or a function page.
S103: and searching a target page template matched with the page category in a page template library, wherein the page template library comprises at least one page template belonging to at least one page category.
In the embodiment of the present disclosure, after the page creation request is detected, at least one page template in the page template library, which conforms to the page category, is called according to the page category indicated by the page creation request. And then, displaying the at least one page template on a display interface of the client so that the client can determine a target page template matched with the creation requirement in the at least one page template.
In the embodiment of the disclosure, a page template library is preset, and the page template library contains page templates belonging to at least one page category. Wherein, at least one page category may be: a promotion class page and/or a function class page. The page template in the page template library may be a preset template, or may also be a page template made by the user through the client, which is not specifically limited by the present disclosure.
In some possible embodiments, after searching the page template library for the target page template matching the page category, the method may further include:
and editing each component in the target page template to obtain a final target page template. Each component in the target page template may include all components (i.e., functional units) of the target page template, such as a picture display area, a text display area, a video display area, an audio display area, and the like, which are not described in detail herein.
It should be noted that, the components in each target page template can be edited at will, for example, changing positions, angles, sizes, deleting, adding, etc., which is not limited in any way.
S105: and responding to the template filling operation of the target page template, determining target filling information matched with the target page template, filling and rendering the target filling information into the target page template, and obtaining the page to be created after rendering.
It should be noted that each component in the target page template may be filled with target filling information corresponding to the component attribute, for example, in a picture display area (picture component), only the picture information may be filled, in a video display area, only the video information may be filled, and in a text display area, only the text information may be filled, which is not limited at all.
In the embodiment of the present disclosure, after the target page template is determined, target filling information matched with the target page template may be determined in the database, and the target filling information is filled and rendered into the target page template. For example, the target padding information may be the following types of information: video, audio, text, pictures.
A large amount of filler material is pre-stored in the database, which may be, for example, the following types of material: video, audio, text, pictures. In the embodiment of the present disclosure, after the target page template is determined, matching filling materials may be determined in the database as target filling information. The filling materials can be stored in a folder of a database in a compressed package mode, and can be respectively stored in subfiles of the folder according to different types of the filling materials. For example, corresponding subfiles can be set in a database for video, audio, text and pictures respectively, and then, compressed packages of filling materials of corresponding types are stored in the subfiles.
In the embodiment of the disclosure, the target page template of the page to be created is determined, and the target filling information matched with the target page template is filled and rendered into the target page template, so that the page to be created is rendered.
In an optional implementation manner, in the case that the target filling information is article content of the target article, when determining the target filling information matched with the target page template in step S105, the following process is specifically included:
determining the article content of the target article according to information stored in a preset database, wherein the preset database comprises: the method comprises the steps of presetting an article library and/or a material library, wherein the preset article library comprises article contents of at least one article to be filled, and the preset material library comprises at least one material data used for constructing a target article.
In this disclosure, when the target filling information is the article content of the target article, the article content of the target article in the folder of the preset database may be called and displayed on the display interface of the client, so that the user determines the target filling information in the filling information.
In one case, the article content of the target article may be determined in a preset article library, and the determined article content is filled and rendered into the target page template as target filling information, and the page to be created is obtained after rendering.
In another case, the article content of the target article may be determined in a preset article library, and under the condition that the article content is not determined, the material data in the preset material library is obtained, and the material data is displayed on the display interface of the client according to a preset display mode, so as to obtain the page to be created.
In the embodiment of the disclosure, when the target filling information is the article content of the target article, the article content of the target article is determined in the preset article library, and the article content is filled and rendered to the target page template, so that the step of constructing the target article can be simplified, and the development efficiency of the network page is improved.
It should be noted that, in the embodiment of the present disclosure, when determining the article content of the target article in the preset article library, first, one or more articles to be filled may be selected in the preset article library, and then, the user side may further edit and modify the article content of the selected article to be filled. The editing and modifying can be understood as adding article content and/or deleting article content.
Specifically, the deleting of the article content may be understood as deleting a part of the article content in the article content of the selected article to be filled, where the article content may be content data of a type such as a text, a picture, or a video. The newly-added article content can be understood as that any type of content data such as characters, pictures or videos are newly added in the selected chapter content of the article to be filled. For example, the user side may select corresponding material data from a preset material library and add the corresponding material data to the article content of the selected article to be filled.
In an optional embodiment, if the preset database is a preset material library, the determining, according to the information stored in the preset database, the article content of the target article includes the following steps:
(1) in response to an article adding instruction of a user side, searching at least one target material for constructing the target article in the preset material library;
in the embodiment of the disclosure, the user terminal may select to determine the article content of the target article based on the material data in the preset material library. At this time, the user side can initiate an article adding instruction, and then, target materials for constructing the target article are searched in the material data based on the article adding instruction.
If part of target materials are not found or are not found in the preset material library, the user side can upload the target materials for constructing the target article through the client side, wherein the material types of the target materials can be in various forms such as images, characters, videos and audios.
In this disclosure, the material data in the preset material library may be default material preset by the system, or may also be material data uploaded by the user side, which is not specifically limited by this disclosure.
(2) And combining the at least one target material according to a preset combination mode to obtain the article content of the target article.
In the embodiment of the disclosure, when the user side selects to determine the article content of the target article through the material data in the preset material library, the preset combination mode of the material data can be determined according to the creation requirement of the article, wherein the creation requirement of the article can be included in the page creation request. After the preset combination mode is determined, the user side can combine the at least one acquired target material according to the preset combination mode to obtain the article content of the target article.
According to the description, the method for obtaining the article content of the target article by combining the target materials in the preset material library can provide a personalized method for editing the article content for the user, so that the diversified requirements of the user are met, and the determined article content of the target article is more suitable for the operation requirements of the user in the actual use process.
An alternative data processing method is shown in the flow chart of fig. 2. As shown in fig. 2, in an embodiment of the present disclosure, the method includes the steps of:
step S201, determining a target page template in a page template library, wherein in the embodiment of the present disclosure, first, after a page creation request is detected, in response to the page creation request, determining a page category of a page to be created, which is indicated in the page creation request;
step S202, determining article content of a target article according to information stored in a preset database; if the article content of the target article is found, executing step S203, otherwise executing step S204;
step S203, determining the determined article content as target filling information matched with the target page template;
step S204, detecting an article adding instruction sent by a user;
step S205, responding to the article adding instruction, judging whether a preset material library contains target materials, wherein the target materials are at least one material for constructing a target article; if the determination result is that the content is contained, executing step S207, otherwise executing step S206;
step S206, uploading target materials for constructing a target article by a user side; and executing step S207;
step S207, combining the target materials to obtain article contents of the target article;
and S208, filling and rendering the article content of the target article into the target page template, and obtaining the page to be created after rendering.
According to the description, if the target page template matched with the page type is found in the page template library, determining target filling information matched with the target page template in response to the template filling operation of the target page template, filling and rendering the target filling information into the target page template, and obtaining the page to be created after rendering. If the target page template matched with the page category is not found in the page template library, the following process may be executed:
(1) and searching at least one target component for constructing the target page template, wherein the at least one target component is used for representing at least one functional unit in the page to be created.
In this embodiment of the present disclosure, when a target page template matching the page category is not found in the page template library, at least one target component for constructing the target page template may be first found in the component library, where the component library includes at least one type of component, the component may be a basic functional unit forming a network page (for example, a page to be created), and a data type of the basic functional unit is a data type of an image class. Wherein the basic function unit may comprise the following units: the page comprises a page header of the page, a side frame of the page, a functional area of the page, functional buttons in the page and the like.
(2) And combining the at least one target assembly to obtain the target page template, and determining target filling information matched with the target page template in response to the template filling operation of the target page template.
In this embodiment of the present disclosure, after the at least one target component is obtained, the user side may combine the obtained at least one target component in sequence according to the creation requirement of the page, so as to obtain the target page template. Specifically, at least one target component may be combined according to a display position of each target component in the page to be created, so as to obtain a target page template.
It should be noted that, in the embodiment of the present disclosure, when determining a target page template in the page template library, first, one or more page templates may be selected in the page template library, and then, the user side may further edit and modify the template content of the selected page template. The editing modification here can be understood as adding template content and/or deleting template content.
In particular, deleting the template content may be understood as deleting a part of the template content in the template content of the selected page template, where the template content may be a component in the template. The new addition of the template content can be understood as that the user side can select a corresponding target component from the component library to be newly added to the template content of the selected page template.
As can be seen from the above description, in the embodiment of the present disclosure, when the target page template is not found in the page template library, the target components in the component library may be combined to construct the target page template, and a process of jointly developing and constructing a corresponding network page at the front end and the back end may be omitted, so that the code amount in the back end server is reduced, and a worker can more conveniently maintain and expand the page template in the page template library at the later stage.
In the embodiment of the present disclosure, as can be seen from the above description, in the case that at least one target component is found, the at least one target component is combined to obtain the target page template, and in response to the template filling operation of the target page template, the target filling information matched with the target page template is determined. In case the at least one target component is not found, the method further comprises the following process:
(1) and sending a component adding request to the server.
In the embodiment of the present disclosure, when the target page template is constructed by the components in the component library, a situation that a certain target component cannot be found in the component library or all target components may occur, and at this time, a component addition request may be sent to the server according to a creation requirement of the page.
(2) And acquiring a component development file returned by the server based on the component addition request, creating at least one added component based on the component development file, and determining the at least one added component as the at least one target component.
In the embodiment of the present disclosure, after acquiring the component addition request, the server may determine the component development file of the request indicated in the component addition request, and then, the server may generate a component development file with a fixed format, where the format of the component development file may be a compressed file, and then return the component development file to the client.
After receiving the component development file, the client performs a parsing operation on the component development file, for example, decompression. Then, at least one newly added component is created according to the component development file. An optional creation mode is that after the component development file is subjected to parsing operation, data obtained by the parsing operation is determined as at least one newly added component, and the at least one newly added component is determined as at least one target component.
Compared with the mode that the corresponding required component needs to be built in the creating process of each network page in the prior art, in the embodiment of the invention, the component obtaining mode can be simplified, the creating speed of the page to be created is improved, and the creating operation process of the page to be created is simplified by setting the component library and searching at least one target component in the component library. Under the condition that at least one target assembly is not found, the assembly development file is obtained from the server, the assembly in the assembly library can be perfected, and therefore the assembly in the assembly library can meet the creation requirements of various pages of a user.
In the embodiment of the present disclosure, after obtaining the page to be created after rendering, the method includes the following processes:
(1) and determining the type identification information of the page to be created according to the page category of the page to be created.
In the embodiment of the present disclosure, the type identification information of the page to be created may be determined according to the page type of the page to be created indicated in the page creation request, and the page to be created may be labeled according to the type identification information.
(2) And storing the page content of the page to be created according to a preset format according to the type identification information.
In the embodiment of the present disclosure, a page content database may be set in the client for storing the page content of the page to be created, wherein, in the page content database, different folders may be set for storing the page content of the page to be created corresponding to different types of identification information according to different types of identification information of the page to be created.
And after the completion of the creation of the page to be created is detected, acquiring the type identification information of the page to be created, and storing the page content of the page to be created into a corresponding folder in the page content database according to a preset format.
In addition, after the creation of the page to be created is completed, the client may publish the page content of the page to be created to the network platform through a publishing operation. Meanwhile, the client can also send the page content of the page to be created to the server, so that the server can maintain the page content of the page to be created conveniently.
As can be seen from the above description, in the embodiment of the present disclosure, after the creation of the page to be created is completed, the user may store the page content of the page to be created, so as to conveniently search and maintain the page to be created in a later period.
Fig. 3 shows a flow chart of an alternative data processing method. As shown in fig. 3, in an embodiment of the present disclosure, the method includes the steps of:
step S301, detecting a page creation request, and determining the page type of a page to be created according to the page creation request;
step S302, searching a target page template matched with the page category in a page template library; wherein, under the condition of finding, executing step S303, otherwise executing step S304;
step S303, taking the page template matched with the page category searched in the page template library as a target page template;
step S304, at least one target component for constructing a target page template is searched; wherein, if the target component is found, step S305 is executed, otherwise step S306 is executed.
Step S305, combining at least one target assembly to obtain a target page template;
step S306, sending a component adding request to a server;
step S307, acquiring a component development file returned by the server based on the component addition request, and determining at least one target component according to the component development file; and executing step S305 to combine at least one target component to obtain a target page template.
When the page template of the target page is constructed, firstly, a target component required for constructing the target template is determined in a component library, if the target component is not found in the component library, a component newly-adding request is sent to a server, the target component is created according to a component development file returned by the server, and finally, the target components are combined to obtain the page to be created.
In this embodiment of the present disclosure, after obtaining the page to be created after rendering, the method further includes the following process:
(1) and after the page to be created is obtained after rendering, determining newly added components and/or newly added materials in the page to be created.
(2) And sending the newly added component and/or the newly added material to a server for storage.
In the embodiment of the disclosure, after the page to be created is obtained, a newly added component and/or a newly added material in the process of constructing the page to be created can be determined, and the newly added component and/or the newly added material are/is sent to the server. In addition, the target article obtained in the process of constructing the page to be created can be sent to the server, so that the server stores the newly added components, the newly added materials and the article content of the target article.
It should be noted that the client may also store the newly added content in the component library, the preset material library, and the preset document library in a preset mode, respectively.
As can be seen from the above description, in the embodiment of the present disclosure, newly added contents such as newly added materials, newly added components, newly added articles, and the like, generated in the process of constructing the page to be created, may be sent to the server, so that the server may manage and backup the newly added contents. In addition, the newly added content can be stored in a database of the client, so that the newly added content can be directly called when the page to be created is constructed next time.
In summary, in the embodiment of the present disclosure, by determining the target page template and filling and rendering the target filling information in the database to the target page template, the page to be created is obtained, so that customized development for each page to be created is avoided, and the efficiency of page development is improved.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, a data processing apparatus corresponding to the data processing method is also provided in the embodiments of the present disclosure, and because the principle of the apparatus in the embodiments of the present disclosure for solving the problem is similar to the data processing method described above in the embodiments of the present disclosure, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not described again.
Example two
Referring to fig. 4, a schematic diagram of a data processing apparatus provided in an embodiment of the present disclosure is shown, where the apparatus includes: the device comprises a first determining module, a searching module, a second determining module and a filling rendering module; wherein the content of the first and second substances,
the first determining module is used for responding to a page creating request of a user side and determining the page category of a page to be created, which is indicated in the page creating request;
the searching module is used for searching a target page template matched with the page category in a page template library, wherein the page template library comprises at least one page template belonging to at least one page category;
and the second determining module is used for responding to the template filling operation of the target page template, determining target filling information matched with the target page template, filling and rendering the target filling information into the target page template, and obtaining the page to be created after rendering.
A filling and rendering module: and the target filling information is filled and rendered into the target page template, and the page to be created is obtained after rendering.
In the embodiment of the disclosure, the target page template of the page to be created is determined, and the target filling information matched with the target page template is filled and rendered into the target page template, so that the page to be created is rendered.
In a possible implementation, the second determining module is further configured to: determining the article content of the target article according to information stored in a preset database, wherein the preset database comprises: the method comprises the steps of presetting an article library and/or a material library, wherein the preset article library comprises article contents of at least one article to be filled, and the preset material library comprises at least one material data used for constructing a target article.
In a possible implementation, the second determining module is further configured to: in response to an article adding instruction of a user side, searching at least one target material for constructing the target article in the preset material library; and combining the at least one target material according to a preset combination mode to obtain the article content of the target article.
In one possible embodiment, the apparatus is further configured to: under the condition that a target page template matched with the page category is not found in a page template base, at least one target component for constructing the target page template is found, wherein the at least one target component is used for representing at least one functional unit in the page to be created; and combining the at least one target assembly to obtain the target page template, and determining target filling information matched with the target page template in response to the template filling operation of the target page template.
In one possible embodiment, the apparatus is further configured to: sending a component addition request to a server under the condition that the at least one target component is not found; and acquiring a component development file returned by the server based on the component addition request, creating at least one added component based on the component development file, and determining the at least one added component as the at least one target component.
In one possible embodiment, the apparatus is further configured to: after the page to be created is obtained after rendering, determining the type identification information of the page to be created according to the page category of the page to be created; and storing the page content of the page to be created according to a preset format according to the type identification information.
In one possible embodiment, the apparatus is further configured to: after the page to be created is obtained after rendering, determining newly added components and/or newly added materials in the page to be created; and sending the newly added component and/or the newly added material to a server for storage.
EXAMPLE III
Corresponding to the data processing method in fig. 1, an embodiment of the present disclosure further provides a computer device 500, and as shown in fig. 5, a schematic structural diagram of the computer device 500 provided in the embodiment of the present disclosure includes:
a processor 51, a memory 52, and a bus 53; the storage 52 is used for storing execution instructions and comprises a memory 521 and an external storage 522; the memory 521 is also referred to as an internal memory, and is used for temporarily storing the operation data in the processor 51 and the data exchanged with the external memory 522 such as a hard disk, the processor 51 exchanges data with the external memory 522 through the memory 521, and when the computer device 500 operates, the processor 51 communicates with the memory 52 through the bus 53, so that the processor 51 executes the following instructions:
responding to a page creating request of a user side, and determining the page category of a page to be created indicated in the page creating request; searching a target page template matched with the page category in a page template library, wherein the page template library comprises at least one page template belonging to at least one page category; and responding to the template filling operation of the target page template, determining target filling information matched with the target page template, filling and rendering the target filling information into the target page template, and obtaining the page to be created after rendering.
The embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the data processing method described in the above method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The embodiments of the present disclosure also provide a computer program product, where the computer program product carries a program code, and instructions included in the program code may be used to execute the steps of the data processing method in the foregoing method embodiments, which may be referred to specifically in the foregoing method embodiments, and are not described herein again.
The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of 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 of devices or units through some communication interfaces, 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 achieve the purpose of the solution of the 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing 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 according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A data processing method is applied to a client and comprises the following steps:
responding to a page creating request of a user side, and determining the page category of a page to be created indicated in the page creating request;
searching a target page template matched with the page category in a page template library, wherein the page template library comprises at least one page template belonging to at least one page category;
and responding to the template filling operation of the target page template, determining target filling information matched with the target page template, filling and rendering the target filling information into the target page template, and obtaining the page to be created after rendering.
2. The method of claim 1, wherein the target filling information is article content of a target article; the determining of the target filling information matched with the target page template comprises:
determining the article content of the target article according to information stored in a preset database, wherein the preset database comprises: the method comprises the steps of presetting an article library and/or a material library, wherein the preset article library comprises article contents of at least one article to be filled, and the preset material library comprises at least one material data used for constructing a target article.
3. The method of claim 2, wherein the preset database is the preset material library, and the determining the article content of the target article according to the information stored in the preset database comprises:
in response to an article adding instruction of a user side, searching at least one target material for constructing the target article in the preset material library;
and combining the at least one target material according to a preset combination mode to obtain the article content of the target article.
4. The method of claim 1, further comprising:
under the condition that a target page template matched with the page category is not found in a page template base, at least one target component for constructing the target page template is found, wherein the at least one target component is used for representing at least one functional unit in the page to be created;
and combining the at least one target assembly to obtain the target page template, and determining target filling information matched with the target page template in response to the template filling operation of the target page template.
5. The method of claim 4, further comprising:
sending a component addition request to a server under the condition that the at least one target component is not found;
and acquiring a component development file returned by the server based on the component addition request, creating at least one added component based on the component development file, and determining the at least one added component as the at least one target component.
6. The method of claim 1, further comprising:
after the page to be created is obtained after rendering, determining the type identification information of the page to be created according to the page category of the page to be created;
and storing the page content of the page to be created according to a preset format according to the type identification information.
7. The method according to any one of claims 1 to 6, further comprising:
after the page to be created is obtained after rendering, determining newly added components and/or newly added materials in the page to be created;
and sending the newly added component and/or the newly added material to a server for storage.
8. A data processing apparatus, comprising:
a first determination module: the method comprises the steps of responding to a page creating request of a user side, and determining the page category of a page to be created indicated in the page creating request;
a searching module: the page template library is used for searching a target page template matched with the page category, wherein the page template library comprises at least one page template belonging to at least one page category;
a second determination module: the target page template filling method comprises the steps of responding to template filling operation of the target page template, and determining target filling information matched with the target page template;
a filling and rendering module: and the target filling information is filled and rendered into the target page template, and the page to be created is obtained after rendering.
9. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when a computer device is running, the machine-readable instructions when executed by the processor performing the steps of the data processing method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the data processing method according to any one of claims 1 to 7.
CN202110115699.6A 2021-01-28 2021-01-28 Data processing method, data processing device, computer equipment and readable storage medium Pending CN112835577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110115699.6A CN112835577A (en) 2021-01-28 2021-01-28 Data processing method, data processing device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110115699.6A CN112835577A (en) 2021-01-28 2021-01-28 Data processing method, data processing device, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112835577A true CN112835577A (en) 2021-05-25

Family

ID=75932081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110115699.6A Pending CN112835577A (en) 2021-01-28 2021-01-28 Data processing method, data processing device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112835577A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377481A (en) * 2021-06-30 2021-09-10 深圳市华曦达科技股份有限公司 Page management method, system and computer readable storage medium
CN114925664A (en) * 2022-06-15 2022-08-19 北京搜房科技发展有限公司 Information input method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110109A (en) * 2009-12-28 2011-06-29 北大方正集团有限公司 Digital report topic making method and system
CN106021389A (en) * 2016-05-12 2016-10-12 新华通讯社 System and method for automatically generating news based on template
CN111008522A (en) * 2019-12-11 2020-04-14 浙江大搜车软件技术有限公司 Automatic article writing method and device, computer equipment and storage medium
CN111046645A (en) * 2019-12-11 2020-04-21 浙江大搜车软件技术有限公司 Method and device for generating article, computer equipment and storage medium
CN112241259A (en) * 2020-11-19 2021-01-19 湖南红网新媒体集团有限公司 Webpage editing system, method, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110109A (en) * 2009-12-28 2011-06-29 北大方正集团有限公司 Digital report topic making method and system
CN106021389A (en) * 2016-05-12 2016-10-12 新华通讯社 System and method for automatically generating news based on template
CN111008522A (en) * 2019-12-11 2020-04-14 浙江大搜车软件技术有限公司 Automatic article writing method and device, computer equipment and storage medium
CN111046645A (en) * 2019-12-11 2020-04-21 浙江大搜车软件技术有限公司 Method and device for generating article, computer equipment and storage medium
CN112241259A (en) * 2020-11-19 2021-01-19 湖南红网新媒体集团有限公司 Webpage editing system, method, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377481A (en) * 2021-06-30 2021-09-10 深圳市华曦达科技股份有限公司 Page management method, system and computer readable storage medium
CN114925664A (en) * 2022-06-15 2022-08-19 北京搜房科技发展有限公司 Information input method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
WO2018177251A1 (en) Application program processing method, computer device and storage medium
CN105094775B (en) Webpage generation method and device
CN111324535B (en) Control abnormity detection method and device and computer equipment
US20150058708A1 (en) Systems and methods of character dialog generation
CN108459998B (en) Document updating method, document updating device, document format converting method, document updating format converting device, document format converting device and readable storage medium
CN112835577A (en) Data processing method, data processing device, computer equipment and readable storage medium
CN110826002A (en) Information sharing method and device, terminal and storage medium
CN110968314A (en) Page generation method and device
EP4080507A1 (en) Method and apparatus for editing object, electronic device and storage medium
CN111078915A (en) Click-to-read content acquisition method in click-to-read mode and electronic equipment
WO2018208412A1 (en) Detection of caption elements in documents
CN113010149A (en) Application loading method and device, user terminal and server
CN116110065A (en) Method, device, computer equipment and storage medium for generating question card data
CN108121693B (en) Slide beautifying method and device
CN111222065B (en) Information display method and device, electronic equipment and medium
CN111079399B (en) Image-text data processing method, image-text data processing device, computer equipment and storage medium
CN114741139A (en) sketch graphic file processing method and device, electronic equipment and storage medium
CN111339465A (en) Picture processing method and device, computer equipment and storage medium
US20160027082A1 (en) Virtual shop for electronic greeting cards
CN111782309A (en) Method and device for displaying information and computer readable storage medium
CN113779465B (en) Page preview method, related device and equipment
CN112765096B (en) Copying method and electronic equipment
CN111625303B (en) Event processing method, device, equipment and readable storage medium
CN117763173A (en) Method and device for generating demonstration file, electronic equipment and storage medium
CN116795367A (en) Front-end page development method, device, equipment and storage medium

Legal Events

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