CN111475141B - Method and device for generating list and electronic equipment - Google Patents

Method and device for generating list and electronic equipment Download PDF

Info

Publication number
CN111475141B
CN111475141B CN202010247650.1A CN202010247650A CN111475141B CN 111475141 B CN111475141 B CN 111475141B CN 202010247650 A CN202010247650 A CN 202010247650A CN 111475141 B CN111475141 B CN 111475141B
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.)
Active
Application number
CN202010247650.1A
Other languages
Chinese (zh)
Other versions
CN111475141A (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

Abstract

The invention discloses a method and a device for generating a list and electronic equipment, wherein the method comprises the following steps: loading configuration information of a plurality of lists to be generated into a configuration file by using a scheduler; configuring an independent controller file and view files for each list to be generated through the scheduler; configuring the same model file for the multiple list to be generated through the scheduler; and converting the corresponding configuration information of the list to be generated into a 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 that the list acquisition request of the user is received. The method can reduce a large amount of redundant codes, save resources, reduce the maintenance cost of the codes, shorten the development period of products and improve the efficiency of generating the list view.

Description

Method and device for generating list and electronic equipment
Technical Field
The invention relates to the field of internet, in particular to a method and a device for generating a list and electronic equipment.
Background
With the development of the internet, a list service for recording and ordering certain business data appears in many application scenarios, so that the statistical business data is displayed to a user.
The types of the list products are various, each type of list product has respective service numbers, account numbers and the like, the data dimensions of the various types of list products are different, and the visual interfaces displayed to users and the user interactions are also different. Therefore, each type of list product has an independent item, and each type of list needs to be matched with a set of independent MVC (Model View Controller, model-view-controller) structure to realize the corresponding list function. Every new item list product needs to be added, a development flow of a complete item life cycle needs to be carried out, the development cost of the complete item life cycle is high, codes of each item life cycle are repeated in a large amount, and therefore resource waste is caused.
Disclosure of Invention
The embodiment of the invention provides a method and a device for generating a list and electronic equipment, which are used for solving the problems of independent development of each type of list product, high cost and resource waste in the prior art.
In order to solve the technical problems, 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 list to be generated into configuration files by using a scheduler, wherein the configuration files are a plurality of configuration files corresponding to the list to be generated one by one;
configuring an independent controller file and a view file for each list to be generated through the 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 the multiple to-be-generated lists through the scheduler, wherein the model file is configured to acquire configuration information of each to-be-generated list from the configuration file;
converting the configuration information of the corresponding list to be generated into a corresponding list view through the view file;
and under the condition that a list acquisition request of a user is received, displaying a list view corresponding to the list acquisition request to a user interface.
In a second aspect, a device for generating a list is provided, where the device includes:
the loading module is used for 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 corresponding to the lists to be generated one by one;
the first configuration module is used for configuring an independent controller file and a view file for each list to be generated through the 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;
the second configuration module is used for configuring the same model file for the multiple charts to be generated through the scheduler, wherein the model file is configured to acquire configuration information of each chart 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 a corresponding list view through the view file;
and the generation module is used for displaying the list view corresponding to the list request to the user interface under the condition that the list acquisition request of the user is received.
In a third aspect, there is provided an electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, a computer-readable storage medium is provided, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method according to the first aspect.
In the embodiment of the invention, firstly, a scheduler is utilized to load configuration information of a plurality of to-be-generated list into a configuration file, secondly, a separate controller file and view file are configured for each to-be-generated list through the scheduler, a model file is configured for all to-be-generated list, the configuration information of the corresponding to-be-generated list 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 configuration information of different list in the configuration file, so that all the list to be generated can use one model file, and compared with some technologies, the method can realize multiple list views without configuring one model file for each list, reduces a large amount of redundant codes, saves resources, reduces the maintenance cost of the codes, shortens the development period of products, and improves the efficiency of generating list views.
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 do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flowchart illustrating a method for generating a list according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for presenting a list according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for displaying a list according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating a device for generating a list according to an embodiment of the present invention;
fig. 5 is a schematic hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the application provides a method and device for generating a list and electronic equipment. The list generation method is to add a scheduler based on a traditional MVC (Model View Controller, model-view-controller) framework to add configuration information of different lists to be generated in configuration files, configure individual 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 lists to be generated, namely, configure models in the framework for each list to be generated. According to the generation method of the list, a set of models is not required to be configured for each list to be generated, but all the lists to be generated share one set of models, so that 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 to be added, only configuration files, corresponding controller files and view files are required to be added, and model files are not required to be additionally added, so that the life cycle of project development is reduced, and the development cost of the project cycle can be reduced.
Fig. 1 is a schematic flow chart of a method for generating a list according to an embodiment of the present application. As shown in the figure, the method for generating a list may include the contents shown in steps S101 to S104.
In step S101, a scheduler is used to load configuration information of a plurality of charts to be generated into a configuration file.
In the embodiment of the application, the configuration information of the multiple charts to be generated is loaded into one configuration file, and one configuration file is not required to be configured for each chart 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 by the scheduler for each list to be generated.
The controller file comprises page information of a 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 charts to be generated by the scheduler.
The model file is configured to acquire configuration information of each list to be generated from the configuration file.
In step S104, the configuration information of the corresponding 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, a scheduler is utilized to load configuration information of a plurality of to-be-generated list into a configuration file, secondly, a separate controller file and view file are configured for each to-be-generated list through the scheduler, a model file is configured for all to-be-generated list, the view file is utilized again to convert the configuration information of the corresponding to-be-generated list into a corresponding list view, 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 scheduler is used for adding configuration information of different lists in the configuration file, so that all the lists to be generated can use one model file, and compared with some technologies, multiple list views can be realized without configuring one model file for each list, a large number of redundant codes can be reduced, resources are saved, maintenance of the codes is reduced, meanwhile, the development period of products can be shortened, and the efficiency of generating the list views is improved.
In one possible implementation 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 configuration information for the list to be generated, and to set a controller, view, or model for the list to be generated.
All the lists to be generated share one set of models, namely one set of databases, when the lists are generated, the types of the lists are judged through a dispatcher, corresponding list information is obtained in the models and the databases, the corresponding list information is sent to the corresponding views through the controllers corresponding to the lists, and then the corresponding list views are displayed on a user interface.
Specifically, as shown in fig. 2, a flow chart of a method for displaying a list is provided in an embodiment of the present application. As shown, step S105 may specifically include: contents shown in steps S1051 to S1054.
In step S1051, a list acquisition request of a user is received.
Wherein the list acquisition request includes access path information. For example: 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.
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 invoked according to the list, and a list view corresponding to the list is obtained.
In step S1054, a list view is presented to the user interface of the user.
In the embodiment of the invention, the dispatcher can 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 multiple sheets can be obtained through the model, and then controllers and views corresponding to different sheets are distinguished through the scheduler, and different sheet views are respectively displayed to client interfaces of different clients.
In one possible implementation manner of the present application, the method for generating a list may further include: when a new list to be generated is added, the configuration information of the added list to be generated is loaded into the configuration file through the scheduler, and the corresponding controller file and view file are configured for the added list to be generated through the scheduler.
That is, when a different list is newly added in the MVC frame, the configuration information of the list can be loaded into the configuration file through the scheduler, then the corresponding controller and view are set for the list through the scheduler, no additional setting model is needed, the model shared in the MVC frame is used, the flow of the newly added list is reduced, a large number of redundant codes are reduced, and the period and cost for developing new products are saved.
In one possible implementation of the present application, the database may include a variety of types, such as MC (Memcached, a distributed cache system), redis (Remote Dictionary Server, remote dictionary service), mySQL (relational database management system), and the like. When the corresponding view configuration information is obtained through the model, the data of the corresponding configuration information can be obtained from the database so as to generate a list view.
In one possible implementation manner of the present application, the configuration information may include information such as 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.
The list generated in the embodiment of the present application may have multiple functions, including program ranking, user interaction display, and the like, and when the user interacts display, the interaction displays of different lists are different, for example, some include an open dimension, a desired dimension, and some may be forwarded or searched, which is not listed in this embodiment.
Fig. 3 is a specific flow chart of a method for displaying a list according to an embodiment of the present application. As shown, the following flow 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/epi code; then the scheduler acquires the access path information, judges a list corresponding to the access path information, for example, whether the judgment in fig. 3 is an episode list or not, judges that the answer is the episode list but not other lists, and invokes an episode list controller corresponding to the episode list; and acquiring corresponding data from a Model layer in fig. 3 through the episode 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 episode list controller, wherein the episode list controller sends the data to an episode list view, and further responds to a list acquisition request of a user to display the episode list view to a user interface of the user.
The embodiment of the application also provides a list generation device. Fig. 4 is a schematic structural diagram of a list generating device according to an embodiment of the present application. As shown in the figure, the list generating device 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 configuration information of a plurality of to-be-generated list into a configuration file by using a scheduler, where the configuration file is a plurality of configuration files corresponding to the to-be-generated list one by one; the first configuration module 402 is configured to configure, through 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 403 is configured to configure the same model file for a plurality of to-be-generated list through the scheduler, where the model file is configured to obtain configuration information of each to-be-generated list from the configuration file; the conversion module 404 is configured to convert the configuration information of the corresponding list to be generated into a corresponding list view through the view file; the generating module 405 is configured to display a list view corresponding to a list acquisition request to a user interface when the list acquisition request is received.
In this embodiment of the present application, firstly, the loading module 401 loads configuration information of a plurality of to-be-generated list into a configuration file by using a scheduler, secondly, the first configuration module 402 configures an independent controller file and view file for each to-be-generated list through the scheduler, the second configuration module 403 configures a model file for all to-be-generated list, the converting module 404 converts the configuration information of each to-be-generated list into a corresponding list view through the view file, and finally, the generating module 405 displays the list view corresponding to the list acquisition request to the user interface when receiving the list acquisition request of the user. According to the invention, the scheduler adds configuration information of different lists in the configuration file, so that all the lists to be generated can use one model file, and compared with some technologies, the method can realize multiple list views without configuring one model file for each list, reduces a large number of redundant codes, saves resources, reduces the maintenance cost of the codes, shortens the development period of products, and improves the efficiency of generating list views.
In one possible implementation of the present application, the generation 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 obtain a list view corresponding to the list;
and displaying the list view to a user interface of the user.
In a possible implementation manner of the present application, the generating device of the list may further include: and adding a module.
The adding module is configured to load 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 corresponding controller files and view files for the added list to be generated through the scheduler.
In one possible implementation manner of the present 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 list generating device provided in the embodiment of the present application are described in detail in the method embodiments of fig. 1 to 3, and in order to avoid repetition, a detailed description is omitted here.
Figure 5 is a schematic diagram of a hardware architecture of an electronic device implementing various embodiments of the invention,
the electronic device 500 includes, but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510, and power source 511. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 5 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, 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 list to be generated into configuration files by using a scheduler, wherein the configuration files are a plurality of configuration files corresponding to the list to be generated one by one;
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 list to be generated through a scheduler, wherein the model file is configured to acquire configuration information of the list to be generated from the configuration file;
and converting the corresponding configuration information of the list to be generated into a corresponding list view through the view file.
A display unit 506, which may be used to:
and under the condition that a list acquisition request of a user is received, displaying a list view corresponding to the list acquisition request to a user interface.
In the embodiment of the application, firstly, a scheduler is utilized to load configuration information of a plurality of to-be-generated list into a configuration file, secondly, a separate controller file and view file are configured for each to-be-generated list through the scheduler, a model file is configured for all to-be-generated list, the configuration information of the corresponding to-be-generated list 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 configuration information of different lists in the configuration file, so that all the lists to be generated can use one model file, and compared with some technologies, the method can realize multiple list views without configuring one model file for each list, reduces a large number of redundant codes, saves resources, reduces the maintenance cost of the codes, shortens the development period of products, and improves the efficiency of generating list views.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used to receive and send information or signals during a call, specifically, receive downlink data from a base station, and then process the downlink data with the processor 510; and, the uplink data is transmitted to the base station. Typically, the 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 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 502, such as helping the user to send and receive e-mail, browse web pages, access streaming media, and the like.
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 (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 500. The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used for receiving an audio or video signal. The input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, the graphics processor 5041 processing image data of still pictures 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 graphics 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. Microphone 5042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 501 in case of a phone call mode.
The electronic device 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, 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 the backlight when the electronic device 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 505 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 506 is used to display information input by a user or information provided to the user. 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 (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 is operable to receive input numeric or character information and to 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 thereon or thereabout by a user (e.g., operations of the user on touch panel 5071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). Touch panel 5071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection 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 resistive, capacitive, infrared, and 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, physical keyboards, function keys (e.g., volume control keys, switch keys, etc.), trackballs, mice, joysticks, and so forth, 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 thereabout, the touch operation is transmitted to the processor 510 to determine a type of touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components for implementing 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, which 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 devices may include a wired or wireless headset port, an external power (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 an external device 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 an external device.
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 for 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, phonebook, etc.) created according to the use of the handset, etc. In addition, 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 entire electronic device using various interfaces and lines, and 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 that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 510.
The electronic device 500 may also include a power supply 511 (e.g., a battery) for powering the various components, and preferably the power supply 511 may be logically connected to the processor 510 via a power management system that performs functions such as managing charging, discharging, and power consumption.
In addition, the electronic device 500 includes some functional modules, which are not shown, and will not be described herein.
Preferably, the embodiment of the present invention further provides an electronic device, which includes a processor 510, a memory 509, and a computer program stored in the memory 509 and capable of running on the processor 510, where the computer program when executed by the processor 510 implements each process of the above list generation method embodiment, and the same technical effects can be achieved, so that repetition is avoided, and no redundant description is provided herein.
The embodiment of the invention also provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the process of the embodiment of the method for generating the list is realized, and the same technical effect can be achieved, so that repetition is avoided, and no redundant description is provided herein. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
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 hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention 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 (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (8)

1. The method for generating the list is characterized by comprising the following steps:
loading configuration information of a plurality of lists to be generated into the same configuration file by using a scheduler; the multiple to-be-generated list corresponds to different types of list products, the data dimension, the visual interface and the user interaction of the various list products are different, and the scheduler is added into the model-view-controller MVC framework in a plug-in mode;
configuring an independent controller file and a view file for each list to be generated through the 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 the multiple to-be-generated lists through the scheduler, wherein the model file is configured to acquire configuration information of each to-be-generated list from the configuration file;
converting the configuration information of the corresponding list to be generated into a corresponding list view through the view file;
under the condition that a list acquisition request of a user is received, displaying a list view corresponding to the list acquisition request to a user interface;
the method further comprises the steps of:
when a new list to be generated is added, loading configuration information of the added list to be generated into the configuration file through the scheduler, and configuring a corresponding controller file and view file for the added list to be generated through the scheduler.
2. The method recited in claim 1, wherein the presenting the list view corresponding to the list retrieval request to the user interface upon receiving the list retrieval 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 according to the access path information through the scheduler;
calling a corresponding controller according to the list to obtain a list view corresponding to the list;
and displaying the list view to a user interface of the user.
3. The method recited in claim 1, wherein the configuration information includes a list identification of a list to be generated, a business number of the list to be generated, and a list name of the list to be generated.
4. The utility model provides a generating device of list, which is characterized in that includes:
the loading module is used for loading the configuration information of a plurality of lists to be generated into the same configuration file by using the scheduler; the multiple to-be-generated list corresponds to different types of list products, the data dimension, the visual interface and the user interaction of the various list products are different, and the scheduler is added into the model-view-controller MVC framework in a plug-in mode;
the first configuration module is used for configuring an independent controller file and a view file for each list to be generated through the 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;
the second configuration module is used for configuring the same model file for the multiple charts to be generated through the scheduler, wherein the model file is configured to acquire configuration information of each chart 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 a corresponding list view through the view file;
the generation module is used for displaying the list view corresponding to the list request to the user interface under the condition that the list acquisition request of the user is received;
wherein the apparatus further comprises:
and the adding module is used for loading the configuration information of the added list to be generated into the configuration file through the scheduler when the new list to be generated is added, and configuring the corresponding controller file and view file for the added list to be generated through the scheduler.
5. The apparatus of claim 4, wherein the means for generating 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 according to the access path information through the scheduler;
calling a corresponding controller according to the list to obtain a list view corresponding to the list;
and displaying the list view to a user interface of the user.
6. The apparatus recited in claim 4, wherein the configuration file includes a list identification to be generated, a business number of the list to be generated, and a list name of the list to be generated.
7. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor performs the steps of the method according to any one of claims 1 to 3.
8. A computer-readable storage medium, comprising: the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method according to any of claims 1 to 3.
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 CN111475141A (en) 2020-07-31
CN111475141B true 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)

Families Citing this family (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 (4)

* 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
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107273112B (en) * 2017-05-04 2021-02-02 武汉斗鱼网络科技有限公司 Method and device for displaying gift list information
CN107376356B (en) * 2017-07-07 2018-09-11 腾讯科技(深圳)有限公司 List service, application on site list implementation method and device are realized for application on site
CN108200070B (en) * 2018-01-10 2020-10-27 武汉斗鱼网络科技有限公司 Method and device for generating list

Patent Citations (4)

* 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
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

Also Published As

Publication number Publication date
CN111475141A (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN111049979B (en) Application sharing method, electronic equipment and computer readable storage medium
CN109768926B (en) Data processing method, terminal equipment and computer readable storage medium
CN111143005B (en) Application sharing method, electronic equipment and computer readable storage medium
CN107368518B (en) Notification message management method, terminal and computer readable storage medium
US20220353144A1 (en) Configuration information sharing method, terminal device, and computer readable storage medium
CN111049980A (en) Application sharing method, electronic equipment and computer readable storage medium
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
CN108920040B (en) Application icon sorting method and mobile terminal
JP2021516826A (en) Fingerprint scanning method and mobile terminal
CN108196781B (en) Interface display method and mobile terminal
CN111163449B (en) Application sharing method, first electronic device and computer-readable storage medium
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN107765954B (en) Application icon updating method, mobile terminal and server
CN111163227B (en) Sharing method and electronic equipment
CN111475141B (en) Method and device for generating list and electronic equipment
CN111200648B (en) Service calling method, device, terminal equipment and storage medium
CN109889613B (en) Message pushing method and device and mobile terminal
CN109597546B (en) Icon processing method and terminal equipment
CN111399819A (en) Data generation method and device, electronic equipment and storage medium
CN111142998A (en) Sharing method of background application and electronic equipment
CN111142759A (en) Information sending method and electronic equipment
CN110851219A (en) Information processing method and electronic equipment
CN115509770A (en) Micro-service calling method and device, electronic equipment and readable storage medium
CN110855550B (en) Communication method, electronic device, and storage medium
CN111045588B (en) Information viewing 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