CN111475141A - List generation method and device and electronic equipment - Google Patents

List generation method and device and electronic equipment Download PDF

Info

Publication number
CN111475141A
CN111475141A CN202010247650.1A CN202010247650A CN111475141A CN 111475141 A CN111475141 A CN 111475141A CN 202010247650 A CN202010247650 A CN 202010247650A CN 111475141 A CN111475141 A CN 111475141A
Authority
CN
China
Prior art keywords
list
generated
file
view
scheduler
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.)
Granted
Application number
CN202010247650.1A
Other languages
Chinese (zh)
Other versions
CN111475141B (en
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.)
Weimeng Chuangke Network Technology China Co Ltd
Original Assignee
Weimeng Chuangke Network Technology China 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 Weimeng Chuangke Network Technology China Co Ltd filed Critical Weimeng Chuangke Network Technology China Co Ltd
Priority to CN202010247650.1A priority Critical patent/CN111475141B/en
Publication of CN111475141A publication Critical patent/CN111475141A/en
Application granted granted Critical
Publication of CN111475141B publication Critical patent/CN111475141B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a list generation method, a list generation device and electronic equipment, wherein the method comprises the following steps: loading the configuration information of a plurality of lists to be generated into a configuration file by using a scheduler; configuring a separate controller file and a view file for each list to be generated through the scheduler; configuring the same model file for the plurality of lists to be generated through the scheduler; and converting the corresponding configuration information of the list to be generated into the corresponding list view through the view file, and displaying the list view corresponding to the list acquisition request to a user interface under the condition of receiving the list acquisition request of the user. The method has the advantages that a large number of redundant codes can be reduced, resources are saved, the maintenance cost of the codes is reduced, meanwhile, the development period of products can be shortened, and the efficiency of generating the list view is improved.

Description

List generation method and device and electronic equipment
Technical Field
The invention relates to the field of internet, in particular to a list generation method and device and electronic equipment.
Background
With the development of the internet, a list service for recording and sorting certain business data so as to show the counted business data to a user appears in many application scenes.
The types of list products are various, each type of list product has a respective service number, account number and the like, the data dimensions of the various types of list products are different, and the visual interface displayed to the user and the user interaction are also different. Therefore, each type of list product has an independent item, and each type of list needs to be matched with an independent MVC (Model view controller) structure to realize a corresponding list function. Every time a new list product is added, a new project needs to be added, a development process of a complete project life cycle needs to be performed once, the development cost of the complete project life cycle is high, and a large amount of repeated codes exist in each project life cycle, so that resource waste is caused.
Disclosure of Invention
The embodiment of the invention provides a list generation method and device and electronic equipment, and aims to solve the problems that each type of list product needs to be independently developed, the cost is high and resources are wasted in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, a method for generating a list is provided, where the method includes:
loading configuration information of a plurality of lists to be generated into configuration files by using a scheduler, wherein the configuration files are a plurality of configuration files which are in one-to-one correspondence with the lists to be generated;
configuring, by the scheduler, a separate controller file and a view file for each list to be generated, wherein the controller file includes page information of the list to be generated, and the view file includes visual content information of the list to be generated;
configuring the same model file for the plurality of lists to be generated through the scheduler, wherein the model file is configured to acquire configuration information of each list to be generated from the configuration file;
converting the corresponding configuration information of the list to be generated into a corresponding list view through the view file;
the method includes the steps that under the condition that a list obtaining request of a user is received, a list view corresponding to the list obtaining request is displayed to a user interface.
In a second aspect, an apparatus for generating a list is provided, the apparatus comprising:
the system comprises a loading module, a scheduling module and a sending module, wherein the loading module is used for loading configuration information of a plurality of lists to be generated into configuration files by using a scheduler, and the configuration files are a plurality of configuration files which are in one-to-one correspondence with the lists to be generated;
a first configuration module, configured to configure, by the scheduler, a separate controller file and a view file for each list to be generated, where the controller file includes page information of the list to be generated, and the view file includes visual content information of the list to be generated;
the second configuration module is used for configuring the same model file for the plurality of lists to be generated through the scheduler, wherein the model file is configured to acquire configuration information of each list to be generated from the configuration file;
the conversion module is used for converting the corresponding configuration information of the list to be generated into the corresponding list view through the view file;
the generation module is used for displaying the list view corresponding to the list request to a user interface under the condition that the list acquisition request of the user is received.
In a third aspect, an electronic device is provided, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to the first aspect.
In the embodiment of the invention, firstly, the configuration information of a plurality of lists to be generated is loaded into a configuration file by using a scheduler, secondly, a controller file and a view file are configured for each list to be generated by the scheduler, a model file is configured for all the lists to be generated, the corresponding configuration information of the lists to be generated is converted into a corresponding list view by the view file, and finally, the list view corresponding to the list acquisition request is displayed on a user interface under the condition that the list acquisition request of a user is received. According to the invention, the configuration information of different lists is added in the configuration file through the scheduler, so that one model file can be used by all the lists to be generated.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flowchart of a method for generating a list according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a list presentation method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for displaying a list according to an embodiment of the present invention;
fig. 4 is a block diagram of a structure of a list generation apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the application provides a list generation method and device and electronic equipment. The method for generating the list is to add a scheduler on the basis of a traditional MVC (Model View Controller) framework to increase configuration information of different lists to be generated in configuration files, configure separate Controller files and View files for each list configuration to be generated, namely configure controllers and views in the framework for each list to be generated, and then configure a Model file for all the lists to be generated, namely configure a Model in the framework for each list to be generated. According to the list generation method, a set of models does not need to be configured for each list to be generated, all the lists to be generated share one set of models, a large number of redundant codes can be reduced, and meanwhile the maintenance cost of the codes can be reduced.
When a new list is required, only the configuration file, the corresponding controller file and the view file need to be added, and no additional model file needs to be added, so that the life cycle of project development is reduced, and the development cost of the project cycle can be reduced.
As shown in fig. 1, a flowchart of a method for generating a list provided in an embodiment of the present application is shown. As shown in the figure, the list generation method may include the contents shown in step S101 to step S104.
In step S101, the scheduler is used to load the configuration information of the multiple lists to be generated into the configuration file.
In the embodiment of the application, the configuration information of the plurality of lists to be generated is loaded into one configuration file, and one configuration file does not need to be configured for each list to be generated, so that a large number of redundant codes can be reduced, and resources are saved.
In step S102, a separate controller file and view file are configured for each list to be generated by the scheduler.
The controller file comprises page information of the list to be generated, and the view file comprises visual content information of the list to be generated.
In step S103, the same model file is configured for a plurality of lists to be generated by the scheduler.
The model file is configured to obtain configuration information of each list to be generated from the configuration file.
In step S104, the corresponding configuration information of the list to be generated is converted into a corresponding list view through the view file.
In step S105, when a list acquisition request of a user is received, a list view corresponding to the list acquisition request is displayed on a user interface.
In the embodiment of the application, firstly, the configuration information of a plurality of lists to be generated is loaded into a configuration file by using a scheduler, secondly, a controller file and a view file are configured for each list to be generated through the scheduler, a model file is configured for all the lists to be generated, the configuration information of the corresponding list to be generated is converted into a corresponding list view through the view file, and finally, the list view corresponding to the list acquisition request is displayed on a user interface under the condition that the list acquisition request of a user is received. According to the method and the device, the configuration information of different lists is added in the configuration file through the scheduler, so that one model file can be used by all the lists to be generated.
In one possible embodiment of the present application, the scheduler may be added to the MVC framework in the form of a plug-in, and then used to load the configuration information of the list to be generated and set the controller, view or model for the list to be generated.
All the lists to be generated share one set of model, namely share one set of database, when the lists are generated, the types of the lists are judged through a scheduler, corresponding list information is obtained from the model and the database, then the list information is sent to a corresponding view through a controller corresponding to the lists, and then the corresponding list view is displayed on a user interface.
Specifically, as shown in fig. 2, a flowchart of a list showing method provided in the embodiment of the present application is shown. As shown in the figure, step S105 may specifically include: the contents shown in step S1051 to step S1054.
In step S1051, a list acquisition request of the user is received.
The list obtaining request comprises access path information. For example: and the access path information sent by a certain user is rprank. That is, the user accesses the list through the path, and the scheduler displays the list configuration information to the user interface through the corresponding view, so that the user can see the corresponding list view, specifically, the following steps.
In step S1052, the scheduler determines a list corresponding to the access path information from the access path information.
In step S1053, the corresponding controller is called according to the list, and the list view corresponding to the list is acquired.
In step S1054, the list view is presented to the user interface of the user.
In the embodiment of the application, the scheduler may determine the corresponding list according to the access path information carried in the list acquisition request of the user, then acquire the configuration information of the list from the model through the controller corresponding to the list, then determine the corresponding list view through the controller, and display the list view to the user interface of the user. The configuration information of the plurality of lists can be obtained through the model, then the controllers and the views corresponding to different lists are distinguished through the scheduler, and different list views are respectively displayed to client interfaces of different clients.
In one possible embodiment of the present application, the method for generating the list may further include: when a new list to be generated is added, the added configuration information of the list to be generated is loaded into the configuration file through the scheduler, and the corresponding controller file and the view file are configured for the added list to be generated through the scheduler.
That is, when different lists are newly added in the MVC framework, the configuration information of the lists can be loaded into the configuration file through the scheduler, and then the corresponding controller and view are set for the lists through the scheduler, without additionally setting a model, only a model shared in the MVC framework is used, so that the process of newly adding the lists is reduced, a large number of redundant codes are reduced, and the period and the cost for developing new products are saved.
In one possible embodiment of the present application, the database may include various types, such as MC (Memcached, a distributed cache system), Redis (Remote Dictionary service), MySQ L (relational database management system), etc. when the corresponding view configuration information is obtained through the model, the data of the corresponding configuration information may be obtained in the database to generate the list view.
In one possible embodiment of the application, the configuration information may include a list identifier of the list to be generated, a service number of the list to be generated, a list name of the list to be generated, and the like.
The list generated in the embodiment of the application may have multiple functions, which may include program ranking, user interaction display, and the like, and when the user interacts and displays, the interaction and displays of different lists are different, for example, some lists include an opening dimension and a viewing dimension, and others can be forwarded or searched, and are not listed one by one in the embodiment.
As shown in fig. 3, a specific flowchart of a method for displaying a list provided in the embodiment of the present application is shown. As shown, the following process is specifically included.
Receiving a list acquisition request of a user, wherein the list acquisition request comprises access path information rprank.tv.weibo.com.cn/epamode; then the scheduler acquires the access path information, judges whether the list corresponding to the access path information is a list of the episode, for example, judges whether the list is the list of the episode in fig. 3, and calls the controller of the episode list corresponding to the list of the episode if the list is judged to be the list of the episode but not other lists; and then, acquiring corresponding data from a Model, namely a Model layer in fig. 3, by the scenario list controller, wherein the Model layer can acquire corresponding data from a cache layer, a persistent layer and the like connected with the Model layer, and then returning the data to the scenario list controller, and the scenario list controller sends the data to a scenario list view, so as to respond to a list acquisition request of a user and display the scenario list view to a user interface of the user.
The embodiment of the application further provides a list generating device. As shown in fig. 4, a schematic structural diagram of a list generation apparatus according to an embodiment of the present application is provided. As shown, the generating means of the list may include: a loading module 401, a first configuration module 402, a second configuration module 403, a conversion module 404 and a generation module 405.
Specifically, the loading module 401 is configured to load, by using a scheduler, configuration information of a plurality of lists to be generated into configuration files, where the configuration files are a plurality of configuration files in one-to-one correspondence with the lists to be generated; the first configuration module 402 is configured to configure, through a scheduler, a separate controller file and a view file for each list to be generated, where the controller file includes page information of the list to be generated, and the view file includes visual content information of the list to be generated; the second configuring module 403 is configured to configure, through the scheduler, the same model file for multiple lists to be generated, where the model file is configured to obtain configuration information of each list to be generated from the configuration file; the conversion module 404 is configured to convert the configuration information of the corresponding list to be generated into the corresponding list view through the view file; the generation module 405 is configured to display a list view corresponding to a list request to a user interface when the list acquisition request of a user is received.
In the embodiment of the application, the loading module 401 loads configuration information of a plurality of lists to be generated into a configuration file by using a scheduler, the first configuration module 402 configures a separate controller file and a view file for each list to be generated through the scheduler, the second configuration module 403 configures a model file for all the lists to be generated, the second conversion module 404 converts the configuration information of each list to be generated into a corresponding list view through the view file, and the generation module 405 displays the list view corresponding to the list acquisition request to a user interface in a case that the list acquisition request of the user is received. According to the invention, the scheduler adds the configuration information of different lists in the configuration file, so that one model file can be used by all lists to be generated.
In one possible embodiment of the present application, the generating module 405 may be configured to,
receiving a list acquisition request of a user, wherein the list acquisition request comprises access path information;
determining a list corresponding to the access path information through a scheduler according to the access path information;
calling a corresponding controller according to the list to acquire a list view corresponding to the list;
the list view is presented to a user interface of the user.
In one possible embodiment of the present application, the generating device of the list may further include: and adding a module.
The adding module is configured to load the configuration information of the added list to be generated into the configuration file through the scheduler when a new list type to be generated is added, and configure the corresponding controller file and the view file for the added list to be generated through the scheduler.
In one possible embodiment of the application, the configuration file includes a list identifier to be generated, a service number of the list to be generated, and a list name of the list to be generated.
The functions of the apparatus for generating a list provided in the embodiment of the present application have been described in detail in the method embodiments of fig. 1 to 3, and are not repeated here to avoid repetition.
Figure 5 is a schematic diagram of a hardware configuration of an electronic device implementing various embodiments of the invention,
the electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 510 may be configured to:
loading configuration information of a plurality of lists to be generated into configuration files by using a scheduler, wherein the configuration files are a plurality of configuration files which are in one-to-one correspondence with the lists to be generated;
configuring an independent controller file and a view file for each list to be generated through a scheduler, wherein the controller file comprises page information of the list to be generated, and the view file comprises visual content information of the list to be generated;
configuring the same model file for a plurality of lists to be generated through a scheduler, wherein the model file is configured to acquire configuration information of the plurality of lists to be generated from the configuration file;
and converting the corresponding configuration information of the list to be generated into the corresponding list view through the view file.
A display unit 506 operable to:
the method includes the steps that under the condition that a list obtaining request of a user is received, a list view corresponding to the list obtaining request is displayed on a user interface.
In the embodiment of the application, firstly, the configuration information of a plurality of lists to be generated is loaded into a configuration file by using a scheduler, secondly, a controller file and a view file are configured for each list to be generated through the scheduler, a model file is configured for all the lists to be generated, the corresponding configuration information of the lists to be generated is converted into a corresponding list view through the view file, and finally, the list view corresponding to the list acquisition request is displayed on a user interface under the condition that the list acquisition request of a user is received. According to the invention, the scheduler adds the configuration information of different lists in the configuration file, so that one model file can be used by all lists to be generated.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light Emitting Diode (O L ED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, each process of the foregoing list generation method embodiment is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
The embodiment of the invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned list generation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for generating a list is characterized by comprising the following steps:
loading the configuration information of a plurality of lists to be generated into a configuration file by using a scheduler;
configuring, by the scheduler, a separate controller file and a view file for each list to be generated, wherein the controller file includes page information of the list to be generated, and the view file includes visual content information of the list to be generated;
configuring the same model file for the plurality of lists to be generated through the scheduler, wherein the model file is configured to acquire configuration information of each list to be generated from the configuration file;
converting the corresponding configuration information of the list to be generated into a corresponding list view through the view file;
the method includes the steps that under the condition that a list obtaining request of a user is received, a list view corresponding to the list obtaining request is displayed on a user interface.
2. The method of claim 1, wherein the presenting the list view corresponding to the list acquisition request to a user interface upon receiving the list acquisition request of the user comprises:
receiving a list acquisition request of a user, wherein the list acquisition request comprises access path information;
determining a list corresponding to the access path information through the scheduler according to the access path information;
calling a corresponding controller according to the list to acquire a list view corresponding to the list;
presenting the list view to a user interface of the user.
3. The method of claim 1, further comprising:
when a new list to be generated is added, the scheduler loads the configuration information of the added list to be generated into the configuration file, and the scheduler configures the corresponding controller file and the view file for the added list to be generated.
4. The method of claim 1, wherein the configuration information comprises a list identifier of a list to be generated, a service number of the list to be generated, and a list name of the list to be generated.
5. An apparatus for generating a list, comprising:
the loading module is used for loading the configuration information of the plurality of lists to be generated into the configuration file by using the scheduler;
a first configuration module, configured to configure, by the scheduler, a separate controller file and a view file for each list to be generated, where the controller file includes page information of the list to be generated, and the view file includes visual content information of the list to be generated;
the second configuration module is used for configuring the same model file for the plurality of lists to be generated through the scheduler, wherein the model file is configured to acquire configuration information of each list to be generated from the configuration file;
the conversion module is used for converting the corresponding configuration information of the list to be generated into the corresponding list view through the view file;
the generation module is used for displaying the list view corresponding to the list request to a user interface under the condition that the list acquisition request of the user is received.
6. The apparatus of claim 5, wherein the generating means is configured to,
receiving a list acquisition request of a user, wherein the list acquisition request comprises access path information;
determining a list corresponding to the access path information through the scheduler according to the access path information;
calling a corresponding controller according to the list to acquire a list view corresponding to the list;
presenting the list view to a user interface of the user.
7. The apparatus of claim 5, further comprising:
and the adding module is used for loading the configuration information of the added list to be generated into a configuration file through the scheduler when a new list to be generated is added, and configuring the corresponding controller file and the view file for the added list to be generated through the scheduler.
8. The apparatus of claim 5, wherein the configuration file comprises a list identification to be generated, a traffic number of the list to be generated, and a list name of the list to be generated.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method according to any one of claims 1 to 4.
10. A computer-readable storage medium, comprising: the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN202010247650.1A 2020-03-31 2020-03-31 Method and device for generating list and electronic equipment Active CN111475141B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010247650.1A CN111475141B (en) 2020-03-31 2020-03-31 Method and device for generating list and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010247650.1A CN111475141B (en) 2020-03-31 2020-03-31 Method and device for generating list and electronic equipment

Publications (2)

Publication Number Publication Date
CN111475141A true CN111475141A (en) 2020-07-31
CN111475141B CN111475141B (en) 2023-06-13

Family

ID=71749527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010247650.1A Active CN111475141B (en) 2020-03-31 2020-03-31 Method and device for generating list and electronic equipment

Country Status (1)

Country Link
CN (1) CN111475141B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114444004A (en) * 2022-04-11 2022-05-06 飞狐信息技术(天津)有限公司 List processing method and apparatus

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361008A (en) * 2014-10-11 2015-02-18 北京中搜网络技术股份有限公司 Microblog classification method based on dictionary or/and threshold value
WO2015066542A1 (en) * 2013-10-31 2015-05-07 Understand.Com, Llc Video role-play learning system and process
US20160001187A1 (en) * 2014-07-04 2016-01-07 Trendy Entertainment Multi-platform system and methods
CN107273112A (en) * 2017-05-04 2017-10-20 武汉斗鱼网络科技有限公司 A kind of present list method for information display and device
CN107376356A (en) * 2017-07-07 2017-11-24 腾讯科技(深圳)有限公司 List service, application on site list implementation method and device are realized for application on site
CN108200070A (en) * 2018-01-10 2018-06-22 武汉斗鱼网络科技有限公司 A kind of method and device for generating list
CN108389094A (en) * 2017-02-03 2018-08-10 长沙六人行网络科技合伙企业(有限合伙) It is a kind of to be realized based on the technology for selling king's electric business operation directly to households
CN108573408A (en) * 2018-04-13 2018-09-25 浙江工业大学 A kind of much-sought-after item list formulating method maximizing interests
CN110278283A (en) * 2019-07-10 2019-09-24 广州虎牙科技有限公司 Ranking list processing method, device, computer readable storage medium and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015066542A1 (en) * 2013-10-31 2015-05-07 Understand.Com, Llc Video role-play learning system and process
US20160001187A1 (en) * 2014-07-04 2016-01-07 Trendy Entertainment Multi-platform system and methods
CN104361008A (en) * 2014-10-11 2015-02-18 北京中搜网络技术股份有限公司 Microblog classification method based on dictionary or/and threshold value
CN108389094A (en) * 2017-02-03 2018-08-10 长沙六人行网络科技合伙企业(有限合伙) It is a kind of to be realized based on the technology for selling king's electric business operation directly to households
CN107273112A (en) * 2017-05-04 2017-10-20 武汉斗鱼网络科技有限公司 A kind of present list method for information display and device
CN107376356A (en) * 2017-07-07 2017-11-24 腾讯科技(深圳)有限公司 List service, application on site list implementation method and device are realized for application on site
CN108200070A (en) * 2018-01-10 2018-06-22 武汉斗鱼网络科技有限公司 A kind of method and device for generating list
CN108573408A (en) * 2018-04-13 2018-09-25 浙江工业大学 A kind of much-sought-after item list formulating method maximizing interests
CN110278283A (en) * 2019-07-10 2019-09-24 广州虎牙科技有限公司 Ranking list processing method, device, computer readable storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
金甲虫SCARB: "SC2Rank 星际2天梯排行榜 SpringMVC + Spring + Mybatis + Mysql + Maven java web项目", pages 1 - 3, Retrieved from the Internet <URL:https://blog.csdn.net/jjhfen00/article/details/52672693?locationNum=1&fps=1> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114444004A (en) * 2022-04-11 2022-05-06 飞狐信息技术(天津)有限公司 List processing method and apparatus

Also Published As

Publication number Publication date
CN111475141B (en) 2023-06-13

Similar Documents

Publication Publication Date Title
CN109768926B (en) Data processing method, terminal equipment and computer readable storage medium
CN107368518B (en) Notification message management method, terminal and computer readable storage medium
CN110752980A (en) Message sending method and electronic equipment
CN110752981B (en) Information control method and electronic equipment
CN108984066B (en) Application icon display method and mobile terminal
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
CN111049980A (en) Application sharing method, electronic equipment and computer readable storage medium
CN108920040B (en) Application icon sorting method and mobile terminal
CN111399819B (en) Data generation method, device, electronic equipment and storage medium
CN111163449B (en) Application sharing method, first electronic device and computer-readable storage medium
CN108196781B (en) Interface display method and mobile terminal
CN107765954B (en) Application icon updating method, mobile terminal and server
CN110309003B (en) Information prompting method and mobile terminal
CN111309390A (en) Method for acquiring configuration information and electronic equipment
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN108429805B (en) File downloading processing method, sending terminal and receiving terminal
CN111163227B (en) Sharing method and electronic equipment
CN111200648B (en) Service calling method, device, terminal equipment and storage medium
CN110908751B (en) Information display and collection method and device, electronic equipment and medium
CN110471895B (en) Sharing method and terminal device
CN110213437B (en) Editing method and mobile terminal
CN111475141B (en) Method and device for generating list and electronic equipment
CN111142998A (en) Sharing method of background application and electronic equipment
CN110888572A (en) Message display method and terminal equipment
CN110851042A (en) Interface display method and electronic equipment

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
GR01 Patent grant
GR01 Patent grant