CN117271635A - List export method, device, computer equipment and storage medium - Google Patents

List export method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN117271635A
CN117271635A CN202311199146.9A CN202311199146A CN117271635A CN 117271635 A CN117271635 A CN 117271635A CN 202311199146 A CN202311199146 A CN 202311199146A CN 117271635 A CN117271635 A CN 117271635A
Authority
CN
China
Prior art keywords
list
target
page
data
export
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
CN202311199146.9A
Other languages
Chinese (zh)
Inventor
陈德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Health Insurance Company of China Ltd
Original Assignee
Ping An Health Insurance Company of China 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 Ping An Health Insurance Company of China Ltd filed Critical Ping An Health Insurance Company of China Ltd
Priority to CN202311199146.9A priority Critical patent/CN117271635A/en
Publication of CN117271635A publication Critical patent/CN117271635A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation
    • G06F16/166File name conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24568Data stream processing; Continuous queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a list export method, a device, electronic equipment and a storage medium. The method comprises the following steps: receiving a list export instruction for a target page; responding to a list export instruction, calling a preset list export interface to respectively perform data processing on scene parameters and query parameters, and generating a target data template and a target data set; generating a data stream corresponding to the target page according to the target data template and the target data set; and analyzing the data stream to derive a page list corresponding to the target page. Compared with the scheme that a corresponding interface is arranged for the page under each service scene in the prior art, the list export method provided by the embodiment of the invention can determine the data flow corresponding to the page under different service scenes by only developing one list export interface, then analyze the data flow and export the page list, thereby reducing the workload of developers and further improving the service development efficiency.

Description

List export method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of data processing technology and the field of digital medical treatment, and in particular, to a method, an apparatus, a computer device, and a storage medium for deriving a manifest.
Background
In daily business development, there is a need to derive page listings in different business scenarios.
Currently, a developer typically sets a corresponding interface for a page in each service scenario at the back end, and provides a list-derived requirement for the corresponding page through the interface.
However, the applicant found that in the above list derivation method, a corresponding interface needs to be set for the page under each service scenario, which increases the workload of the developer, and further reduces the efficiency of service development.
Disclosure of Invention
The invention mainly aims to provide a list export method, a device, computer equipment and a storage medium, and aims to solve the technical problem that in the prior art, corresponding interfaces are required to be set for pages in each service scene, and therefore the efficiency of service development is reduced.
In order to achieve the above object, the present invention provides a manifest export method applied to a manifest export device, the manifest export device being communicatively connected to a software system, the method comprising:
receiving a list export instruction aiming at a target page, wherein the list export instruction comprises scene parameters and query parameters, the scene parameters are used for representing a service scene where the target page is located, and the query parameters are used for representing page functions corresponding to the target page;
responding to the list export instruction, calling a preset list export interface to respectively perform data processing on the scene parameter and the query parameter, and generating a target data template and a target data set;
generating a data stream corresponding to the target page according to the target data template and the target data set;
and analyzing the data stream to derive a page list corresponding to the target page.
Optionally, the generating, according to the target data template and the target data set, a data stream corresponding to the target page includes:
writing the data in the target data set into the target data template to obtain a data list;
renaming the data list according to the scene parameters;
and converting the renamed data list to obtain the data stream corresponding to the target page.
Optionally, the calling a preset list export interface to perform data processing on the scene parameters to generate a target data template includes:
inquiring the service scene represented by the scene parameter in a preset first mapping relation through a preset list export interface to obtain a target data template;
the first mapping relation is used for representing a mapping relation between a service scene and a data template.
Optionally, the calling a preset list export interface to perform data processing on the query parameters to generate a target data set includes:
calling a preset list export interface to inquire the page function represented by the inquiry parameter in a preset second mapping relation to obtain a target data set;
the second mapping relation is used for representing the mapping relation between the page function and the data set.
Optionally, renaming the data list according to the scene parameter includes:
inquiring the service scene represented by the scene parameter in a preset third mapping relation to obtain a target file name;
naming the file name of the data list as the target file name;
the third mapping relationship is used for representing the mapping relationship between the service scene and the file name.
Optionally, the target page includes a manifest export component, and before receiving the manifest export instruction for the target page, the method further includes:
and generating a list export instruction for the target page under the condition that input of a user to the list export component is received.
Optionally, after the generating the data stream corresponding to the target page, the method further includes:
generating an abnormal information stream under the condition that the data stream corresponding to the target page is an abnormal data stream;
analyzing the abnormal information flow to obtain an abnormal reminding message, wherein the abnormal reminding message is used for characterizing the list of the target page to export an abnormality.
In addition, in order to achieve the above object, the present invention provides a manifest deriving device, which is communicatively connected to a software system, the manifest deriving device including:
the receiving module is used for receiving a list export instruction aiming at a target page; the list export instruction comprises scene parameters and query parameters, wherein the scene parameters are used for representing a service scene where the target page is located, and the query parameters are used for representing page functions corresponding to the target page;
the first generation module is used for responding to the list export instruction and calling a preset list export interface to respectively perform data processing on the scene parameters and the query parameters so as to generate a target data template and a target data set;
the second generation module is used for generating a data stream corresponding to the target page according to the target data template and the target data set;
the first analyzing module is used for analyzing the data stream to derive a page list corresponding to the target page.
In order to solve the above technical problems, the embodiments of the present application further provide a computer device, which adopts the following technical schemes:
the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to realize the steps of the list export method according to any one of the embodiments of the application.
In order to solve the above technical problems, embodiments of the present application further provide a computer readable storage medium, which adopts the following technical solutions:
the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the manifest derivation method according to any one of the embodiments presented in the present application.
Compared with the prior art, the embodiment of the application has the following main beneficial effects:
the invention provides a list export method, a device, computer equipment and a storage medium. Receiving a list export instruction for a target page; the list export instruction comprises scene parameters and query parameters, wherein the scene parameters are used for representing a business scene where the target page is located, and the query parameters are used for representing page functions corresponding to the target page; responding to a list export instruction, calling a preset list export interface to respectively perform data processing on scene parameters and query parameters, and generating a target data template and a target data set; generating a data stream corresponding to the target page according to the target data template and the target data set; and analyzing the data stream to derive a page list corresponding to the target page. Compared with the scheme that a corresponding interface is arranged for the page under each service scene in the prior art, the list export method provided by the embodiment of the invention can determine the data flow corresponding to the page under different service scenes by only developing one list export interface, then analyze the data flow and export the page list, thereby reducing the workload of developers and further improving the service development efficiency.
Drawings
For a clearer description of the solution in the present application, a brief description will be given below of the drawings that are needed in the description of the embodiments of the present application, it being obvious that the drawings in the following description are some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow chart of a manifest export method provided by an embodiment of the present invention;
FIG. 3 is an application scenario diagram of a manifest export method provided by an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of one embodiment of a computer device according to the present application;
fig. 5 is a basic structural block diagram of the computer device of the present embodiment.
Detailed Description
The method for determining a data format provided in the embodiments of the present invention is applied to a data processing system, and all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains unless defined otherwise; the terminology used in the description of the applications herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having" and any variations thereof in the description and claims of the present application and in the description of the figures above are intended to cover non-exclusive inclusions. The terms first, second and the like in the description and in the claims or in the above-described figures, are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In order to better understand the technical solutions of the present application, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as a web browser application, a shopping class application, a search class application, an instant messaging tool, a mailbox client, social networking platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablet computers, electronic book readers, MP3 players (Moving Picture Experts Group Audio Layer III, dynamic video expert compression standard audio plane 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic video expert compression standard audio plane 4) players, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that, the manifest export method provided in the embodiments of the present application is generally executed by a server/terminal device, and accordingly, the manifest export method apparatus is generally set in the server/terminal device.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow chart of one embodiment of a manifest export method according to the present application is shown. The method for exporting the list can be applied to a list exporting device, wherein the list exporting device comprises a front-end development module and a back-end development module, a target page in the embodiment is a front-end page displayed by the front-end development module, and a list exporting interface in the embodiment is an interface for receiving data transmitted by the front-end display module by the back-end development module. The list export method provided by the embodiment of the invention comprises the following steps:
s210, receiving a list export instruction for a target page.
The list export instruction comprises scene parameters and query parameters, wherein the scene parameters are used for representing a business scene where the target page is located, and the query parameters are used for representing page functions corresponding to the target page.
In an alternative embodiment, the list deriving means is communicatively connected to other electronic devices, and the other electronic devices send list deriving instructions to the list deriving means so that the list deriving means receives the list deriving instructions for the target page.
S220, responding to the list export instruction, calling a preset list export interface to respectively process the scene parameters and the query parameters, and generating a target data template and a target data set.
As described above, the back-end development module of the manifest export apparatus is provided with the manifest export interface, and the interface type of the manifest export interface is not limited.
As described above, the manifest export apparatus includes the front-end development module and the back-end development module, and the back-end development module includes the manifest export interface for transmitting the data sent by the front-end development module to the back-end development module.
Specifically, the scene parameters in the manifest export instruction may be sent to the backend development module by calling the manifest export interface to determine the target data templates. Wherein, can confirm different goal data templates according to the scene parameter of the different business scenes of characteristic.
The query parameters in the manifest export instructions may be sent to the back-end development module by invoking the manifest export interface to determine the target dataset. The target data set is a set of data queried in a preset database according to the query parameters.
For example, if the query parameter is used for characterizing that the account information is queried, all account data associated with the target page can be queried in a preset database, and a target data set is generated based on all account data associated with the target page.
S230, generating a data stream corresponding to the target page according to the target data template and the target data set.
In this step, after the target data template and the target data set are determined, data included in the target data set may be processed based on the target data template to obtain a data list. For specific embodiments, please refer to the following examples.
S240, analyzing the data stream to derive a page list corresponding to the target page.
The front-end development module analyzes the received data stream, namely, the front-end development module downloads the file represented by the data stream to derive a page list corresponding to the target page.
The page list corresponding to the target page may represent information such as a service scene and service data corresponding to the target service.
In the embodiment of the invention, a list export instruction aiming at a target page is received; the list export instruction comprises scene parameters and query parameters, wherein the scene parameters are used for representing a business scene where the target page is located, and the query parameters are used for representing page functions corresponding to the target page; responding to a list export instruction, calling a preset list export interface to respectively perform data processing on scene parameters and query parameters, and generating a target data template and a target data set; generating a data stream corresponding to the target page according to the target data template and the target data set; and analyzing the data stream to derive a page list corresponding to the target page. Compared with the scheme that a corresponding interface is arranged for the page under each service scene in the prior art, the list export method provided by the embodiment of the invention can determine the data flow corresponding to the page under different service scenes by only developing one list export interface, then analyze the data flow and export the page list, thereby reducing the workload of developers and further improving the service development efficiency.
Optionally, the generating, according to the target data template and the target data set, a data stream corresponding to the target page includes:
writing the data in the target data set into the target data template to obtain a data list;
renaming the data list according to the scene parameters;
and converting the renamed data list to obtain the data stream corresponding to the target page.
In this embodiment, the target data set is converted into a data list according to the target data template. Specifically, a table is created according to the target data template, and then data in the target data set is written into the table to obtain a data list.
Alternatively, the table may be a sheet table in an Excel file format, and for each field in the table, a basic style such as a column width, a number format, a date format, etc. of the field in the table may be defined by adjusting a target data template.
Optionally, after the data list is generated, header information, a file name coding format and the like of the data list are set, so that the front-end development module can correctly derive a page list corresponding to the target page.
In this embodiment, the data list may be renamed according to the service scenario represented by the scenario parameter, and the renamed data list may be converted to obtain a data stream corresponding to the target page. Alternatively, the renamed data list may be binarized to obtain a data stream represented as a binary array.
In this embodiment, the data flow corresponding to the target page is obtained after conversion processing is performed on the data list, the data list is obtained after conversion processing is performed on the target data set according to the target data template, the target data template is obtained according to the scene parameter representing the service scene, and the target data set is obtained according to the query parameter, so that there is a strong correlation between the data flow corresponding to the target page and the service scene and the service function corresponding to the target page, and the accurate data flow can be obtained through the implementation manner provided in this embodiment.
Optionally, the calling a preset list export interface to perform data processing on the scene parameters to generate a target data template includes:
calling a preset list export interface to inquire a service scene represented by the scene parameter in a preset first mapping relation to obtain a target data template;
the first mapping relation is used for representing a mapping relation between a service scene and a data template.
In this embodiment, a first mapping relationship is preset, where the first mapping relationship is used to characterize a mapping relationship between a service scene and a data template.
In this embodiment, a preset list export interface is called to query a service scene represented by a scene parameter in a preset first mapping relationship, so as to obtain a target data template. The first mapping relation can represent the mapping relation between the service scene and the data template, so that the service scene represented by the scene parameter can be queried in the first mapping relation to obtain an accurate target data template.
Optionally, the calling a preset list export interface to perform data processing on the query parameters to generate a target data set includes:
calling a preset list export interface to inquire the page function represented by the inquiry parameter in a preset second mapping relation to obtain a target data set;
the second mapping relation is used for representing the mapping relation between the page function and the data set.
In this embodiment, a second mapping relationship is preset, where the second mapping relationship is used to characterize a mapping relationship between a page function and a data set.
In this embodiment, a target data set is obtained by querying a page function represented by a query parameter in a preset second mapping relationship by calling a preset list export interface. Because the second mapping relation can represent the mapping relation between the page function and the data set, the page function represented by the query parameter can be queried in the second mapping relation, and an accurate target data set is obtained.
Optionally, renaming the data list according to the scene parameter includes:
inquiring the service scene represented by the scene parameter in a preset third mapping relation to obtain a target file name;
naming the file name of the data list as the target file name;
the third mapping relationship is used for representing the mapping relationship between the service scene and the file name.
In this embodiment, a third mapping relationship is preset, where the third mapping relationship is used to characterize a mapping relationship between a service scene and a file name.
In the embodiment, a service scene represented by scene parameters is queried in a preset third mapping relation to obtain a target file name; the file name of the data list is named the target file name. Because the third mapping relation can represent the mapping relation between the service scene and the file names, the service scene represented by the scene parameters can be queried in the third mapping relation to obtain an accurate target file name, and then the data list is renamed.
Optionally, the target page includes a manifest export component, and before receiving the manifest export instruction for the target page, the method further includes:
and generating a list export instruction for the target page under the condition that input of a user to the list export component is received.
In this embodiment, the target page includes a manifest export component. An alternative implementation is that a user performs corresponding input on a list export component of the target page, and generates a list export instruction for the target page.
For example, the user clicks a manifest export component displayed on the target page through an input device such as a mouse, thereby generating a manifest export instruction for the target page.
For another example, the list deriving component is a component supporting sliding input, and the user slides the list deriving component displayed on the target page through an input device such as a mouse, so as to generate a list deriving instruction for the target page.
In this embodiment, by setting the list export component on the target page, when the user has a need of exporting the target page list, the list of the target page can be exported only by executing corresponding input on the list export component, which simplifies the operation mode of exporting the page list for the user, and the user can export the page list through fewer operation steps, so that the mode of exporting the list is more convenient.
Optionally, after the generating the data stream corresponding to the target page, the method further includes:
generating an abnormal information stream under the condition that the data stream corresponding to the target page is an abnormal data stream;
and analyzing the abnormal information flow to obtain an abnormal reminding message.
In this embodiment, if the data stream corresponding to the target page is an abnormal data stream, an abnormal information stream is generated. The abnormal information stream may be a data stream formed by binary groups.
Optionally, in the process of converting the data list to obtain the data stream, if the conversion fails, determining the data stream corresponding to the target page as an abnormal data stream.
Optionally, if the service scene represented by the scene parameter is a service scene which is not preset, that is, the data template corresponding to the service scene represented by the scene parameter is not queried through the first mapping relation, determining that the data stream corresponding to the target page is an abnormal data stream.
In this embodiment, the front-end development module analyzes the abnormal information flow to obtain an abnormal reminding message, where the abnormal reminding message is used to characterize the list of the target page to export an abnormality.
In this embodiment, under the condition that the page list corresponding to the target page cannot be exported, determining that the data stream corresponding to the target page is an abnormal data stream, generating an abnormal information stream, and obtaining an abnormal reminding message by analyzing the abnormal information stream, so as to prompt a developer to repair the list export function in time.
In order to facilitate understanding of the overall technical solution, referring to fig. 3, as shown in fig. 3, a front end component of the manifest export device receives a manifest export instruction, and the front end component transmits scene parameters representing a service scene and query parameters representing a page function in the manifest export instruction to a manifest export interface, so that a target data set and a target data template are queried in a back end development module by calling the manifest export interface. And generating a data stream based on the target data set and the target data template, and sending the data stream to a front-end component by calling a list export interface, and analyzing the data stream by the front-end component to obtain a page list corresponding to the target page. And under the condition that the target data template or the data stream error cannot be inquired, the abnormal information stream is sent to the front-end component by calling the list export interface so as to remind a developer of timely repairing the list export function.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored in a computer-readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. The storage medium may be a nonvolatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a random access Memory (Random Access Memory, RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
With further reference to fig. 4, as an implementation of the method shown in fig. 2, the present application provides an embodiment of a manifest deriving device 300, which corresponds to the method embodiment shown in fig. 2, and is particularly applicable to various electronic devices.
The embodiment of the present invention provides a manifest deriving device 300, where the manifest deriving device 300 includes:
a receiving module 310, configured to receive a manifest export instruction for a target page; the list export instruction comprises scene parameters and query parameters, wherein the scene parameters are used for representing a service scene where the target page is located, and the query parameters are used for representing page functions corresponding to the target page;
a first generating module 320, configured to respond to the manifest export instruction, call a preset manifest export interface to perform data processing on the scene parameter and the query parameter, and generate a target data template and a target data set;
a second generating module 330, configured to generate a data stream corresponding to the target page according to the target data template and the target data set;
the first parsing module 340 is configured to parse the data stream to derive a page list corresponding to the target page.
Optionally, the first generating module 320 is specifically configured to:
writing the data in the target data set into the target data template to obtain a data list;
renaming the data list according to the scene parameters;
and converting the renamed data list to obtain the data stream corresponding to the target page.
Optionally, the first generating module 320 is further specifically configured to:
calling a preset list export interface to inquire a service scene represented by the scene parameter in a preset first mapping relation to obtain a target data template;
the first mapping relation is used for representing a mapping relation between a service scene and a data template.
Optionally, the first generating module 320 is further specifically configured to:
calling a preset list export interface to inquire the page function represented by the inquiry parameter in a preset second mapping relation to obtain a target data set;
the second mapping relation is used for representing the mapping relation between the page function and the data set.
Optionally, the first generating module 320 is further specifically configured to:
inquiring the service scene represented by the scene parameter in a preset third mapping relation to obtain a target file name;
naming the file name of the data list as the target file name;
the third mapping relationship is used for representing the mapping relationship between the service scene and the file name.
Optionally, the manifest deriving device 300 further includes:
and the third generation module is used for generating a list export instruction aiming at the target page under the condition that the input of the user to the list export component is received.
Optionally, the manifest deriving device 300 further includes:
the fourth generation module is used for generating an abnormal information stream when the data stream corresponding to the target page is an abnormal data stream;
the second analysis module is used for analyzing the abnormal information flow to obtain an abnormal reminding message, and the abnormal reminding message is used for representing the list of the target page to export an abnormality.
In the embodiment of the invention, a list export instruction aiming at a target page is received; the list export instruction comprises scene parameters and query parameters, wherein the scene parameters are used for representing a business scene where the target page is located, and the query parameters are used for representing page functions corresponding to the target page; responding to a list export instruction, calling a preset list export interface to respectively perform data processing on scene parameters and query parameters, and generating a target data template and a target data set; generating a data stream corresponding to the target page according to the target data template and the target data set; and analyzing the data stream to derive a page list corresponding to the target page. Compared with the scheme that a corresponding interface is arranged for the page under each service scene in the prior art, the list export method provided by the embodiment of the invention can determine the data flow corresponding to the page under different service scenes by only developing one list export interface, then analyze the data flow and export the page list, thereby reducing the workload of developers and further improving the service development efficiency.
In order to solve the technical problems, the embodiment of the application also provides computer equipment. Referring specifically to fig. 5, fig. 5 is a basic structural block diagram of a computer device according to the present embodiment.
The computer device 5 comprises a memory 51, a processor 52, a network interface 53 which are communicatively connected to each other via a system bus. It should be noted that only the computer device 5 with components 51-53 is shown in the figures, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead. It will be appreciated by those skilled in the art that the computer device herein is a device capable of automatically performing numerical calculations and/or information processing in accordance with predetermined or stored instructions, the hardware of which includes, but is not limited to, microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASICs), programmable gate arrays (fields-Programmable Gate Array, FPGAs), digital processors (Digital Signal Processor, DSPs), embedded devices, etc.
The computer equipment can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing equipment. The computer equipment can perform man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch pad or voice control equipment and the like.
The memory 51 includes at least one type of readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the storage 51 may be an internal storage unit of the computer device 5, such as a hard disk or a memory of the computer device 5. In other embodiments, the memory 51 may also be an external storage device of the computer device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the computer device 5. Of course, the memory 51 may also comprise both an internal memory unit of the computer device 5 and an external memory device. In this embodiment, the memory 51 is typically used to store an operating system and various types of application software installed on the computer device 5, such as program codes of the X method, and the like. Further, the memory 51 may be used to temporarily store various types of data that have been output or are to be output.
The processor 52 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 52 is typically used to control the overall operation of the computer device 5. In this embodiment, the processor 52 is configured to execute the program code stored in the memory 51 or process data, such as the program code for executing the X method.
The network interface 53 may comprise a wireless network interface or a wired network interface, which network interface 53 is typically used to establish communication connections between the computer device 5 and other electronic devices.
The present application also provides another embodiment, namely, a computer-readable storage medium storing the manifest export program, where the manifest export program is executable by at least one processor to cause the at least one processor to perform the steps of the manifest export method as described above.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general purpose hardware online platform, and of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The subject application is operational with numerous general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
It is apparent that the embodiments described above are only some embodiments of the present application, but not all embodiments, the preferred embodiments of the present application are given in the drawings, but not limiting the patent scope of the present application. This application may be embodied in many different forms, but rather, embodiments are provided in order to provide a more thorough understanding of the present disclosure. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described in the foregoing, or equivalents may be substituted for elements thereof. All equivalent structures made by the specification and the drawings of the application are directly or indirectly applied to other related technical fields, and are also within the protection scope of the application.

Claims (10)

1. A manifest export method, comprising:
receiving a list export instruction aiming at a target page, wherein the list export instruction comprises scene parameters and query parameters, the scene parameters are used for representing a service scene where the target page is located, and the query parameters are used for representing page functions corresponding to the target page;
responding to the list export instruction, calling a preset list export interface to respectively perform data processing on the scene parameter and the query parameter, and generating a target data template and a target data set;
generating a data stream corresponding to the target page according to the target data template and the target data set;
and analyzing the data stream to derive a page list corresponding to the target page.
2. The method of claim 1, wherein generating a data stream corresponding to the target page from the target data template and the target data set comprises:
writing the data in the target data set into the target data template to obtain a data list;
renaming the data list according to the scene parameters;
and converting the renamed data list to obtain the data stream corresponding to the target page.
3. The method of claim 1, wherein invoking a preset manifest export interface to perform data processing on the scene parameters, generating a target data template, comprises:
calling a preset list export interface to inquire a service scene represented by the scene parameter in a preset first mapping relation to obtain a target data template;
the first mapping relation is used for representing a mapping relation between a service scene and a data template.
4. The method of claim 1, wherein the invoking the preset manifest export interface to perform data processing on the query parameters to generate a target data set comprises:
calling a preset list export interface to inquire the page function represented by the inquiry parameter in a preset second mapping relation to obtain a target data set;
the second mapping relation is used for representing the mapping relation between the page function and the data set.
5. The method of claim 2, wherein renaming the data list according to the scene parameters comprises:
inquiring the service scene represented by the scene parameter in a preset third mapping relation to obtain a target file name;
naming the file name of the data list as the target file name;
the third mapping relationship is used for representing the mapping relationship between the service scene and the file name.
6. The method of claim 1, wherein the target page includes a manifest export component, the method further comprising, prior to receiving the manifest export instruction for the target page:
and generating a list export instruction for the target page under the condition that input of a user to the list export component is received.
7. The method of claim 1, wherein after the generating the data stream corresponding to the target page, the method further comprises:
generating an abnormal information stream under the condition that the data stream corresponding to the target page is an abnormal data stream;
analyzing the abnormal information flow to obtain an abnormal reminding message, wherein the abnormal reminding message is used for characterizing the list of the target page to export an abnormality.
8. A manifest deriving device, comprising:
the system comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving a list export instruction aiming at a target page, the list export instruction comprises scene parameters and query parameters, the scene parameters are used for representing a service scene where the target page is located, and the query parameters are used for representing page functions corresponding to the target page;
the first generation module is used for responding to the list export instruction and calling a preset list export interface to respectively perform data processing on the scene parameters and the query parameters so as to generate a target data template and a target data set;
the second generation module is used for generating a data stream corresponding to the target page according to the target data template and the target data set;
the first analyzing module is used for analyzing the data stream to derive a page list corresponding to the target page.
9. A computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the manifest export method according to any of claims 1 to 7 when the computer program is executed.
10. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the manifest derivation method according to any one of claims 1 to 7.
CN202311199146.9A 2023-09-15 2023-09-15 List export method, device, computer equipment and storage medium Pending CN117271635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311199146.9A CN117271635A (en) 2023-09-15 2023-09-15 List export method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311199146.9A CN117271635A (en) 2023-09-15 2023-09-15 List export method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117271635A true CN117271635A (en) 2023-12-22

Family

ID=89209812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311199146.9A Pending CN117271635A (en) 2023-09-15 2023-09-15 List export method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117271635A (en)

Similar Documents

Publication Publication Date Title
CN115794437A (en) Calling method and device of microservice, computer equipment and storage medium
CN111552463A (en) Page jump method and device, computer equipment and storage medium
CN112860662B (en) Automatic production data blood relationship establishment method, device, computer equipment and storage medium
CN114564294A (en) Intelligent service arranging method and device, computer equipment and storage medium
CN112966304B (en) Tamper-proof method and device for flow document, computer equipment and medium
CN113010542B (en) Service data processing method, device, computer equipment and storage medium
CN117033249A (en) Test case generation method and device, computer equipment and storage medium
CN116974927A (en) Performance automatic test method, system, computer equipment and storage medium
CN116383787A (en) Page creation method, page creation device, computer equipment and storage medium
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN114626352B (en) Report automatic generation method, device, computer equipment and storage medium
CN115712422A (en) Form page generation method and device, computer equipment and storage medium
CN102663063B (en) System and method for showing general information of multiple user platforms based on XSLT (extensible stylesheet language transformation)
CN115578170A (en) Financial batch certificate making method, device, equipment and storage medium
CN114615325A (en) Message pushing method and device, computer equipment and storage medium
CN117271635A (en) List export method, device, computer equipment and storage medium
CN114637672A (en) Automatic data testing method and device, computer equipment and storage medium
CN117290019A (en) Interface calling method and device, computer equipment and storage medium
CN117217684A (en) Index data processing method and device, computer equipment and storage medium
CN114969482A (en) Method for automatically completing request by online configuration interface and related equipment thereof
CN117278623A (en) Method and device for processing request data, computer equipment and storage medium
CN116894736A (en) Mail management method, device, computer equipment and storage medium
CN116541417A (en) Batch data processing method, device, computer equipment and storage medium
CN117499270A (en) Flow processing method and device, computer equipment and storage medium
CN117111957A (en) Code generation method, device, computer 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