CN110597812B - Menu configuration method, device, terminal and readable storage medium - Google Patents

Menu configuration method, device, terminal and readable storage medium Download PDF

Info

Publication number
CN110597812B
CN110597812B CN201910849781.4A CN201910849781A CN110597812B CN 110597812 B CN110597812 B CN 110597812B CN 201910849781 A CN201910849781 A CN 201910849781A CN 110597812 B CN110597812 B CN 110597812B
Authority
CN
China
Prior art keywords
menu
configuration file
function
identification information
view
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
CN201910849781.4A
Other languages
Chinese (zh)
Other versions
CN110597812A (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.)
Shanghai Junzheng Network Technology Co Ltd
Original Assignee
Shanghai Junzheng Network Technology 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 Shanghai Junzheng Network Technology Co Ltd filed Critical Shanghai Junzheng Network Technology Co Ltd
Priority to CN201910849781.4A priority Critical patent/CN110597812B/en
Publication of CN110597812A publication Critical patent/CN110597812A/en
Application granted granted Critical
Publication of CN110597812B publication Critical patent/CN110597812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2428Query predicate definition using graphical user interfaces, including menus and forms

Abstract

The application provides a menu configuration method, a device, a terminal and a readable storage medium, wherein the terminal can acquire a function identification information base according to a database, convert the function identification information base into a first configuration file in a preset format, acquire an initial menu view through the first configuration file in the preset format, and update the initial menu view according to the function requirement of a newly added menu and the first configuration file in the preset format to acquire a target menu view; the method can acquire the first configuration file in the preset format according to the database, and when the application program has a new requirement, the initial menu view is updated by combining the first configuration file in the preset format, so that the menu view operation is developed once, the initial menu view can be automatically updated according to the new requirement of the application program, the new menu view is obtained, developers are prevented from re-developing the corresponding menu view and the code corresponding to the background server according to the new requirement of the application program, the development time of the developers is shortened, and the utilization rate of the application program is improved.

Description

Menu configuration method, device, terminal and readable storage medium
Technical Field
The present application relates to the field of intelligent terminal technologies, and in particular, to a menu configuration method and apparatus, a terminal, and a readable storage medium.
Background
With the rapid development of internet systems, more and more functions are provided by intelligent terminals, and further, User Interface (UI) technologies of various application programs are revolutionized. In the aspect of user interaction UI, the view operation is provided by an application program in the function of the screening menu, when a user performs click operation, the click operation is sent to a server side by the application program according to the formats of keywords and values, the server side searches from a background database according to received data and then sends the searched result to the application program, and the application program processes the searched result and then presents the target result to the user.
In the traditional technology, developers define 'keywords' and 'values' according to product function requirements and existing data in a server database, then the developers of an application program and a server develop according to the function requirements of a screening menu, and finally the screening menu visible to users is achieved. However, when the code upgrade of the server results in a change in the information transmitted between the server and the application, or a new screening menu is added to the application, the original screening menu cannot be compatible with the new menu function, and usually, a developer needs to spend some time rearranging the new function requirements of the screening menu, resulting in a decrease in the utilization rate of the application.
Disclosure of Invention
Therefore, it is necessary to provide a menu configuration method, device, terminal and readable storage medium capable of automatically upgrading a menu view according to the requirement of a new menu function and increasing the utilization rate of an application program, in order to solve the above technical problems.
The embodiment of the application provides a menu configuration method, which comprises the following steps:
acquiring a function identification information base according to the database;
converting the function identification information base into a first configuration file with a preset format; wherein the preset format comprises a data exchange format;
acquiring an initial menu view through the first configuration file with the preset format;
and updating the initial menu view according to the function requirement of the newly added menu and the first configuration file in the preset format to obtain a target menu view.
In one embodiment, the obtaining the functional identification information base according to the database includes:
determining the function requirement of an initial menu according to a database;
and acquiring a function identification information base according to the initial menu function requirement, wherein the function identification information base comprises attribute information corresponding to the initial menu function requirement and corresponding index information.
In one embodiment, the obtaining a function identification information base according to the function requirement of the initial menu includes:
determining first menu identification information and a corresponding first index value according to the initial menu function requirement;
and obtaining the function identification information base according to the different first menu identification information and the different first index values.
In one embodiment, the converting the function identification information base into a first configuration file in a preset format includes: and converting the function identification information base into a first configuration file in a numbered musical notation format of the transliterated script language object.
In one embodiment, the obtaining an initial menu view through the first configuration file with the preset format includes: and determining the initial menu view according to the first configuration file of the transliteration script language object numbered notation format and the initial menu function requirement.
In one embodiment, the updating the initial menu view according to the requirement of the new menu function and the first configuration file in the preset format to obtain a target menu view includes:
acquiring a second configuration file of the numbered musical notation format of the transliterated script language object according to the function requirement of the newly added menu;
and obtaining the target menu view according to the second configuration file of the transliterated script language object numbered notation format and the first configuration file of the transliterated script language object numbered notation format.
In one embodiment, the method further comprises: and receiving the function requirement of the newly added menu.
In one embodiment, the method further comprises:
receiving a click command;
acquiring second menu identification information and a second index value corresponding to the click command according to the click command;
searching the second menu identification information and the second index value in the function identification information base according to the second menu identification information and the second index value;
and presenting the searched second menu identification information and the second index value in a view form.
The embodiment of the application provides a menu configuration device, the device includes:
the acquisition information base module is used for acquiring a function identification information base according to the database;
the conversion module is used for converting the function identification information base into a first configuration file in a preset format; wherein the preset format comprises a data exchange format;
the view acquisition module is used for acquiring an initial menu view through the first configuration file with the preset format;
and the menu updating module is used for updating the initial menu view according to the function requirement of the newly added menu and the first configuration file in the preset format to obtain a target menu view.
The embodiment of the application provides a terminal, which comprises a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, and the processor executes the computer program to realize the following steps:
acquiring a function identification information base according to the database;
converting the function identification information base into a first configuration file with a preset format; wherein the preset format comprises a data exchange format;
acquiring an initial menu view through the first configuration file with the preset format;
and updating the initial menu view according to the function requirement of the newly added menu and the first configuration file in the preset format to obtain a target menu view.
An embodiment of the application provides a readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the following steps:
acquiring a function identification information base according to the database;
converting the function identification information base into a first configuration file with a preset format; wherein the preset format comprises a data exchange format;
acquiring an initial menu view through the first configuration file with the preset format;
and updating the initial menu view according to the function requirement of the newly added menu and the first configuration file in the preset format to obtain a target menu view.
According to the menu configuration method, the menu configuration device, the terminal and the readable storage medium, the terminal can acquire the function identification information base according to the database and convert the function identification information base into the first configuration file with the preset format; the method comprises the steps that a preset format comprises a data exchange format, an initial menu view is obtained through a first configuration file of the preset format, and the initial menu view is updated according to the function requirement of a newly added menu and the first configuration file of the preset format to obtain a target menu view; the method can acquire the first configuration file in the preset format according to the database, and when the application program has a new requirement, the initial menu view is updated by combining the first configuration file in the preset format, so that the menu view operation is developed once, the initial menu view can be automatically updated according to the new requirement of the application program, the new menu view is obtained, developers are prevented from re-developing the corresponding menu view and the code corresponding to the background server according to the new requirement of the application program, the development time of the developers is shortened, and the utilization rate of the application program is improved.
Drawings
Fig. 1 is an application scenario diagram of a menu configuration method according to an embodiment;
FIG. 2 is a flowchart illustrating a menu configuration method according to another embodiment;
fig. 3 is a schematic flowchart illustrating a menu configuration method according to another embodiment;
FIG. 4 is a schematic structural diagram of a menu configuration apparatus according to an embodiment;
fig. 5 is an internal structural diagram of a terminal according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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, but 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 menu configuration method provided by this embodiment may be applied to the menu configuration system shown in fig. 1. As shown in fig. 1, the system includes a terminal and a background server, wherein various applications can be installed on the terminal. Optionally, the menu configuration system may determine the initial menu function requirement according to data stored in the background server database. Optionally, developers of the background server may develop a corresponding screening function database according to the initial menu function requirement, developers of the application program may develop a menu view with a screening function according to the initial menu function requirement, and meanwhile, the application program may update the initial menu view according to the new menu function requirement to obtain a new menu view. Optionally, if the user clicks any one of the menus in the new menu view, the application program may send the screening parameter corresponding to the click operation to the backend server, the backend server searches for corresponding data in the screening function database according to the received screening parameter, and sends the searched data to the application program, and the application program performs conversion processing on the data to display the conversion result in the new menu view. The background server and the terminal can communicate through wireless connection. Optionally, the wireless connection mode may be Wi-Fi, mobile network or bluetooth connection. Optionally, the terminal may be an electronic device capable of installing a taxi taking application program, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, or a personal digital assistant. In this embodiment, the data format recognized by the backend server and the data format recognized by the application program may not be the same. The present embodiment does not limit the specific types of the terminal and the application program. In the following embodiments, a specific process of the menu configuration method will be specifically described, and the menu configuration method described below is suitable for automatically upgrading the initial menu view when the menu function is added to the initial menu view according to actual needs, so as to avoid re-executing development operations according to the added menu function.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention are further described in detail by the following embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 2 is a flowchart illustrating a menu configuration method according to an embodiment. The embodiment relates to a process how to obtain a new menu view according to a developed initial menu view and the requirement of a new menu function. As shown in fig. 2, the method includes:
and S101, acquiring a function identification information base according to the database.
Specifically, the database may be information stored in the background server, and the information stored in the database may include menu identification information and a corresponding index value. In this embodiment, the menu identification information may be a keyword.
It should be noted that the background server may determine the function identification information base according to the database, and the function identification information base may be a database corresponding to the screening function of different menu views.
S102, converting the function identification information base into a first configuration file in a preset format; wherein the preset format comprises a data exchange format.
Specifically, the conversion process may be characterized by editing the function identification information library into a first configuration file in a preset format. Optionally, the data exchange format may include Extensible Markup Language (XML), interpreted script Object Notation (JSON), and Markup Language (YAML Ain't Markup Language, YAML).
Optionally, the step of converting the function identification information base into the first configuration file with the preset format in S102 may specifically include: and converting the function identification information base into a first configuration file in a numbered musical notation format of the transliterated script language object.
In this embodiment, the preset format may be a JSON format. For example, the following code is a piece of JSON formatted file code:
Figure BDA0002196489780000071
Figure BDA0002196489780000081
the "body" may represent the main content of the configuration file, the "version" may represent the version of the configuration file, the "version" in the first configuration file may be defined as 1, the "items" may be the portions that need to be shown in the configuration file, the "showText" may be the text content that is shown to the user on the terminal screen, and the "id", "searchKey", and "searchValue" may be the content that needs to be sent to the backend server after the user selects "clothing". Optionally, the code is in a standard format of a JSON file, listed contents are the most basic contents required by a function menu, wherein each feature must contain three fields of "showText", "searchKey", and "searchValue", and the name definition is not limited to the 3 field names; "showText" may be textual content presented to a user; the 'searchKey' can be transmitted to the background server, so that the background server can identify the field of the 'searchValue' meaning; the "searchValue" may be passed to the backend server for the backend server to look up the fields of the information from the database.
S103, obtaining an initial menu view through the first configuration file with the preset format.
Specifically, the initial menu view may be a menu view to which a new menu view is not added in the initial application. Alternatively, the initial menu view may include a plurality of different menu views.
It should be noted that the related function code of the menu view may be preset in an application program corresponding to the menu view, and the application program may parse specific content in the first configuration file according to the first configuration file in the preset format, update page content in a manner of reloading a page, and present the content of the first configuration file on the terminal interface in a view form. Optionally, the JSON format is a general data format, and the analysis of the JSON format by the application program may be a function defaulted by all terminal operating systems.
And S104, updating the initial menu view according to the function requirement of the newly added menu and the first configuration file in the preset format to obtain a target menu view.
Optionally, before the step of updating the initial menu view according to the function requirement of the new menu and the first configuration file in the preset format in S104 to obtain the target menu view, the method further includes: and receiving the function requirement of the newly added menu.
Specifically, the background server may receive a requirement for a function of a newly added menu, or may be understood as an update of a code of the background server. Optionally, the background server may send the new menu function requirement to the application program, and the application program may update the initial menu view according to the new menu function requirement and the first configuration file in the preset format, that is, add the menu view corresponding to the new menu function requirement to the initial menu view to obtain a new menu view, that is, the target menu view.
It should be noted that the function requirement of the newly added menu may be a function requirement corresponding to one newly added menu view, or a function requirement corresponding to a plurality of newly added menu views. Alternatively, the target menu view may be a visual interface.
In the menu configuration method provided by this embodiment, the terminal may obtain the function identification information base according to the database, and convert the function identification information base into the first configuration file in the preset format; the method comprises the steps that a preset format comprises a data exchange format, an initial menu view is obtained through a first configuration file of the preset format, and the initial menu view is updated according to the function requirement of a newly added menu and the first configuration file of the preset format to obtain a target menu view; the method can acquire the first configuration file in the preset format according to the database, and when the application program has a new requirement, the initial menu view is updated by combining the first configuration file in the preset format, so that the menu view operation is developed once, the initial menu view can be automatically updated according to the new requirement of the application program, the new menu view is obtained, developers are prevented from re-developing the corresponding menu view and the code corresponding to the background server according to the new requirement of the application program, the development time of the developers is shortened, and the utilization rate of the application program is improved.
As an embodiment, the step of acquiring the function identification information base according to the database in S101 may include the following steps:
and S1011, determining the function requirement of the initial menu according to the database.
Specifically, the menu configuration system may determine the initial menu function requirement according to data stored in the background server database. Alternatively, the menu function requirement may be characterized as the actual function that the plurality of menus contained by the application have.
It should be noted that the database may contain a large amount of information, the background server may classify the characteristics of the information, and the menu function is to express the classified characteristics, so that the user can implement corresponding functions according to the characteristics. Optionally, the background server classifies the existing information in the currently stored database to develop a functional menu corresponding to each type of feature, and accurately and completely displays the functional menu to the user in a view form.
S1012, acquiring a function identification information base according to the initial menu function requirement, wherein the function identification information base comprises attribute information corresponding to the initial menu function requirement and corresponding index information.
Specifically, the background server may perform first-level classification on existing information in the stored database, and then continue second-level classification on each type of information obtained by the first-level classification, thereby obtaining multiple sub-types. For example, various commodities are stored in the database, and the first-layer classification can classify all the commodities into large categories such as "clothes", "household appliances", "digital products", and "fresh products". Alternatively, the second tier of categorization may be characterized as being determined based on common sense or based on the business of the company.
It should be noted that after the database is classified, a function identification information base is obtained, and then a developer develops a code level according to the function identification information base.
For example, the "clothing" in the classification may be written as a fixed code in the JSON format, i.e.
{
"showText": "clothing",
“searchKey”:“category”,
“searchValue”:“clothes”
};
the codes can be a part of a first configuration file, the result of the first-layer classification and the result of the second-layer classification both have corresponding codes, the codes can be developed according to the classification result, then the first configuration file with the software codes is sent to the terminal, the terminal can display 'clothes' in 'showText' on a terminal interface, and 'searchKey' and 'searchValue' attached behind the code of the showText are contents which need to be sent to a background server after a user selects 'clothes', and the user cannot see the contents on the terminal interface. Optionally, "category" after "searchKey" in the code may be attribute information corresponding to the initial menu function requirement, and "links" after "searchValue" may be index information corresponding to the initial menu function requirement.
Optionally, the step of acquiring the function identification information base according to the function requirement of the initial menu in S1012 may specifically include:
s1012, 1012a, determining first menu identification information and a corresponding first index value according to the initial menu function requirement.
Specifically, the background server may define corresponding first menu identification information and a corresponding first index value according to the initial menu function requirement; in this embodiment, the first menu identification information may be a keyword. Optionally, the first menu identification information corresponding to different menu functions may be different, and the first index values corresponding to different menu functions may also be different. Optionally, the first menu identification information may include menu identification information corresponding to a plurality of menu views, and the corresponding first index values may also be a plurality of. Alternatively, the number of the first index values may be equal to the number of the first menu identification information.
S1012b, obtaining the function identification information base according to the different first menu identification information and the different first index value.
Specifically, the background server may obtain the function identification information base according to the plurality of sets of first menu identification information and the corresponding first index values. Optionally, the function identification information base may include a function information base corresponding to a plurality of menu views included in the initial menu view.
According to the menu configuration method provided by the embodiment, the terminal can determine the function requirement of the initial menu according to the database, acquire the function identification information base according to the function requirement of the initial menu, further convert the function identification information base into the first configuration file in the preset format, acquire the initial menu view through the first configuration file in the preset format, and update the initial menu view according to the function requirement of the newly added menu and the first configuration file in the preset format to acquire the target menu view; the method can update the initial menu view, so that the initial menu view can be automatically updated according to the new requirements of the application program to obtain the new menu view, if a user clicks the new menu view, the screening parameters corresponding to the clicking operation are searched in the function identification information base, and the searched screening information is converted to display the conversion result on the new menu view, thereby shortening the development time of developers and improving the utilization rate of the application program.
As an embodiment, the step of obtaining the initial menu view through the first configuration file with the preset format in S103 may specifically include: and determining the initial menu view according to the first configuration file of the transliteration script language object numbered notation format and the initial menu function requirement.
Specifically, the application program can obtain an initial menu view corresponding to the initial menu function requirement according to the first configuration file of the transliterated script language object numbered notation format and the initial menu function requirement.
It should be noted that the style of the menu view may be in the form of buttons and text. Alternatively, the style of the button may be set arbitrarily, but has no influence on the function of the menu view. Optionally, the text may be a brief description of feature information obtained by classifying the database, and the background server may configure the menu according to the classification feature to obtain the corresponding menu view. Optionally, the step of obtaining the corresponding menu view from the configuration menu may be characterized in that each feature in the configuration menu is developed and configured as a button, and then a plurality of buttons configured by a plurality of features are arranged on the terminal interface, so that the user can perform a click operation to implement the corresponding function.
According to the menu configuration method provided by the embodiment, the terminal can determine the initial menu view according to the first configuration file of the transliteration type script language object numbered notation format and the initial menu function requirement, and then update the initial menu view according to the newly added menu function requirement and the first configuration file of the preset format to obtain the target menu view; according to the method, when the application program has a new requirement, the initial menu view is updated by combining the first configuration file in the preset format, so that one-time menu view operation is developed, the initial menu view can be automatically updated according to the new requirement of the application program to obtain a new menu view, developers are prevented from re-developing the corresponding menu view and the corresponding code of the background server according to the new requirement of the application program, the development time of the developers is shortened, and the utilization rate of the application program is improved.
As an embodiment, the step of updating the initial menu view according to the requirement of the new menu function and the first configuration file in the preset format in S104 to obtain the target menu view may specifically include:
s1041, acquiring a second configuration file of the numbered musical notation format of the transliterated script language object according to the function requirement of the new menu.
Specifically, the background server may obtain the second configuration file in the JSON format according to the requirement of the function of the new menu. Optionally, the information contained in the second configuration file in the JSON format and the information contained in the first configuration file in the JSON format may be different. Optionally, in the JSON-format file code, the second configuration file may define "version" as 2; and by analogy, the value of "version" in all subsequent new configuration files is increased by 1 on the basis of the value of "version" in the previous configuration file.
It should be noted that the above-mentioned newly added menu function requirements can be divided into two cases, one is that the database adds more information types, and the classified features are more than those of the menu function requirements that are not added, that is, the code information in the first configuration file is also correspondingly increased, so that the newly added features need to be sent to the terminal to provide new function selection for the user, at this time, the information types included in the database can be increased or decreased, that is, the number of features included in the second configuration file is inconsistent with the number of features included in the first configuration file; and the other is that the definition of information classification in the database is changed, so that the characteristic information in the first configuration file cannot be associated with the information in the database, the original menu function is disabled, and the second configuration file in the numbered musical notation format of the transliterated script language object is edited again according to the change.
S1042, obtaining the target menu view according to the second configuration file of the transliterated script language object numbered notation format and the first configuration file of the transliterated script language object numbered notation format.
Specifically, the application program can update the initial menu view according to the second configuration file of the transliterated script language object numbered notation format and the first configuration file of the transliterated script language object numbered notation format; that is, the menu view corresponding to the requirement of the new menu function is added to the initial menu view to obtain a new menu view, namely the target menu view, while the second configuration file of the transliterated script language object numbered notation format and the first configuration file of the transliterated script language object numbered notation format are both satisfied.
It should be noted that the terminal may delete the content in the first configuration file, replace the content in the second configuration file with the content in the first configuration file, then configure the feature configuration menu after classifying the new data required by the new menu function by the background server, develop and configure each feature in the configuration menu as a button, and then arrange a plurality of buttons configured with a plurality of features on the terminal interface for the user to click to implement the corresponding function.
In this embodiment, the first configuration file is used as an initial configuration file, which may be stored in the terminal in advance, except that the content contained in the initial configuration file is updated by the second configuration file, and all the second configuration files of the subsequent processing will provide the updated content to the initial configuration file as a carrier for transferring data information.
Optionally, after the step of updating the initial menu view according to the requirement of the new menu function and the first configuration file in the preset format in S104 to obtain the target menu view, the method may further include:
and S105, receiving a click command.
Specifically, the application program may receive a click command input by the user, and the click command may be characterized as an operation of the user for clicking a menu view in the application program. Optionally, the click commands corresponding to different menu views may be the same. Alternatively, the application may receive one click command at a time.
S106, according to the click command, obtaining second menu identification information and a second index value corresponding to the click command.
Specifically, the application program may obtain, according to a click command corresponding to different menu views, second menu identification information and a second index value corresponding to the click command, that is, a user clicks different view menus, and menu identification information and an index value corresponding to the view menus; the application may then send the second menu identification information and the second index value to the backend server. Optionally, the first menu identification information may include second menu identification information, and correspondingly, the first index value may also include a second index value.
S107, searching the second menu identification information and the second index value in the function identification information base according to the second menu identification information and the second index value.
Specifically, the background server may search the second menu identification information and the second index value in the function identification information base according to the received second menu identification information and the received second index value.
S108, presenting the searched second menu identification information and the second index value in a view form.
Specifically, the background server may send the found second menu identification information and the second index value to the application program; and the application program converts the second menu identification information and the second index value into a self-identified result and presents the result in a view form. Optionally, the view form may be a text form or an image form, which is not limited in this embodiment.
According to the menu configuration method provided by the embodiment, after the application program obtains the new menu view, the user can click the new menu view, the application program can respond to the click operation, and the response result is displayed on the new menu view
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
For the specific definition of the menu configuration device, reference may be made to the above definition of the menu configuration method, which is not described herein again. The respective modules in the menu configuration means of the terminal described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the terminal, and can also be stored in a memory in the terminal in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 3 is a schematic structural diagram of a menu configuration apparatus according to an embodiment. As shown in fig. 3, the apparatus may include: an acquisition information base module 11, a conversion module 12, an acquisition view module 13 and an update menu module 14.
Specifically, the obtaining information base module 11 is configured to obtain a function identification information base according to a database;
the conversion module 12 is configured to convert the function identification information base into a first configuration file in a preset format; wherein the preset format comprises a data exchange format;
the view acquiring module 13 is configured to acquire an initial menu view through the first configuration file in the preset format;
the menu updating module 14 is configured to update the initial menu view according to the function requirement of the new menu and the first configuration file in the preset format, so as to obtain a target menu view.
The menu configuration apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, the acquisition information base module 11 includes: the system comprises a demand determining unit and an information base acquiring unit.
The determining demand unit is used for determining the function demand of an initial menu according to a database;
and the acquisition information base unit is used for acquiring a function identification information base according to the initial menu function requirement, wherein the function identification information base comprises attribute information corresponding to the initial menu function requirement and corresponding index information.
Optionally, the information obtaining base unit is specifically configured to determine, according to the initial menu function requirement, first menu identification information and a corresponding first index value; and obtaining the function identification information base according to the different first menu identification information and the different first index values.
The menu configuration apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, the conversion module 12 is specifically configured to convert the functional identification information base into a first configuration file in a notation format of an transliterated script language object.
The menu configuration apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, the view acquiring module 13 is specifically configured to determine the initial menu view according to the first configuration file of the transliterated script language object notation format and the initial menu function requirement.
The menu configuration apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, the update menu module 14 includes: the method comprises a configuration file obtaining unit and a target menu view obtaining unit.
The configuration file obtaining unit is used for obtaining a second configuration file of the tablature format of the transliterated script language object according to the function requirement of the newly added menu;
the target menu view obtaining unit is used for obtaining the target menu view according to the second configuration file of the transliterated script language object numbered notation format and the first configuration file of the transliterated script language object numbered notation format.
The menu configuration apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, the menu configuration device further comprises a receiving requirement module 15.
The module 15 for receiving the requirement is configured to receive a requirement for a new menu function.
The menu configuration apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 4 is a schematic diagram of a specific structure of a menu configuration device, and based on the structure of the menu configuration device shown in fig. 3, as shown in fig. 4, the menu configuration device further includes: a command receiving module 16, an identification information acquiring module 17, a searching module 18 and a display module 19.
The command receiving module 16 is configured to receive a click command;
the identification information obtaining module 17 is configured to obtain, according to the click command, second menu identification information and a second index value corresponding to the click command;
the searching module 18 is configured to search the second menu identification information and the second index value in the function identification information base according to the second menu identification information and the second index value;
the display module 19 is configured to perform conversion processing on the found second menu identification information and the second index value, and display a conversion result on the target menu view.
The menu configuration apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, a terminal is provided, an internal structure of which may be as shown in fig. 5. The terminal comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the terminal is configured to provide computing and control capabilities. The memory of the terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the terminal is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a menu configuration method. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen, and the input device of the terminal can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the terminal, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the terminal to which the present application is applied, and that a particular terminal may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a terminal comprising a memory and a processor, the memory having a computer program stored therein, the processor when executing the computer program implementing the steps of:
acquiring a function identification information base according to the database;
converting the function identification information base into a first configuration file with a preset format; wherein the preset format comprises a data exchange format;
acquiring an initial menu view through the first configuration file with the preset format;
and updating the initial menu view according to the function requirement of the newly added menu and the first configuration file in the preset format to obtain a target menu view.
In one embodiment, a readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring a function identification information base according to the database;
converting the function identification information base into a first configuration file with a preset format; wherein the preset format comprises a data exchange format;
acquiring an initial menu view through the first configuration file with the preset format;
and updating the initial menu view according to the function requirement of the newly added menu and the first configuration file in the preset format to obtain a target menu view.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of menu configuration, the method comprising:
determining the function requirement of an initial menu according to a database;
acquiring a function identification information base according to the initial menu function requirement, wherein the function identification information base comprises attribute information corresponding to the initial menu function requirement and corresponding index information;
converting the function identification information base into a first configuration file with a preset format; wherein the preset format comprises a data exchange format;
acquiring an initial menu view through the first configuration file with the preset format;
updating the initial menu view according to the function requirement of the newly added menu and the first configuration file in the preset format to obtain a target menu view; the new menu function requirements include: the newly added information type of the database and the definition of the information classification in the database are changed.
2. The method of claim 1, wherein obtaining a function identification information base according to the initial menu function requirement comprises:
determining first menu identification information and a corresponding first index value according to the initial menu function requirement;
and obtaining the function identification information base according to the first menu identification information and the first index value.
3. The method according to claim 1, wherein the converting the functional identification information base into a first configuration file with a preset format comprises: and converting the function identification information base into a first configuration file in a numbered musical notation format of the transliterated script language object.
4. The method according to claim 3, wherein the obtaining an initial menu view through the first configuration file with the preset format comprises: and determining the initial menu view according to the first configuration file of the transliteration script language object numbered notation format and the initial menu function requirement.
5. The method of claim 1, wherein the updating the initial menu view according to the requirement of the new menu function and the first configuration file in the preset format to obtain a target menu view comprises:
acquiring a second configuration file of the numbered musical notation format of the transliterated script language object according to the function requirement of the newly added menu;
and obtaining the target menu view according to the second configuration file of the transliterated script language object numbered notation format and the first configuration file of the transliterated script language object numbered notation format.
6. The method of claim 5, further comprising: and receiving the function requirement of the newly added menu.
7. The method of claim 1, further comprising:
receiving a click command;
acquiring second menu identification information and a second index value corresponding to the click command according to the click command;
searching the second menu identification information and the second index value in the function identification information base;
and presenting the searched second menu identification information and the second index value in a view form.
8. An apparatus for menu configuration, the apparatus comprising:
the acquisition information base module is used for acquiring a function identification information base according to the database;
the conversion module is used for converting the function identification information base into a first configuration file in a preset format; wherein the preset format comprises a data exchange format;
the view acquisition module is used for acquiring an initial menu view through the first configuration file with the preset format;
the menu updating module is used for updating the initial menu view according to the function requirement of the newly added menu and the first configuration file in the preset format to obtain a target menu view; the new menu function requirements include: the newly added information type of the database and the definition of the information classification in the database are changed.
9. A terminal comprising a memory, a processor, said memory having stored thereon a computer program operable on the processor, wherein the processor, when executing the computer program, performs the steps of the method of any of claims 1 to 7.
10. A readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201910849781.4A 2019-09-09 2019-09-09 Menu configuration method, device, terminal and readable storage medium Active CN110597812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910849781.4A CN110597812B (en) 2019-09-09 2019-09-09 Menu configuration method, device, terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910849781.4A CN110597812B (en) 2019-09-09 2019-09-09 Menu configuration method, device, terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN110597812A CN110597812A (en) 2019-12-20
CN110597812B true CN110597812B (en) 2022-04-15

Family

ID=68858333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910849781.4A Active CN110597812B (en) 2019-09-09 2019-09-09 Menu configuration method, device, terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN110597812B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338706B (en) * 2020-02-13 2024-04-09 深信服科技股份有限公司 Method, device and equipment for importing configuration file and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115180A (en) * 2007-09-07 2008-01-30 中兴通讯股份有限公司 Electronic program menu system and functional module dynamic load operating method
CN101583125A (en) * 2009-06-08 2009-11-18 厦门敏讯信息技术股份有限公司 Method, terminal and server for realizing customization function of wireless terminal
CN102436473A (en) * 2011-09-29 2012-05-02 用友软件股份有限公司 Menu management device and menu management method
CN106406844A (en) * 2015-08-03 2017-02-15 腾讯科技(深圳)有限公司 A method and a device for realizing a communication interaction platform official account menu
CN107688423A (en) * 2017-05-19 2018-02-13 平安科技(深圳)有限公司 The management method and processing equipment of menu option in a kind of system
CN109117133A (en) * 2018-07-04 2019-01-01 广州视源电子科技股份有限公司 Configuration method, device, electronic equipment and the readable storage medium storing program for executing of menu
CN109324850A (en) * 2018-07-16 2019-02-12 百度在线网络技术(北京)有限公司 Display processing method, terminal and the server of application program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100984691B1 (en) * 2007-10-01 2010-10-01 김기미 Contents Relationship Management system By multiple internet domain
CN101222710A (en) * 2008-01-31 2008-07-16 中兴通讯股份有限公司 System and method for implementing menu dynamic configuration on mobile terminal
US8819562B2 (en) * 2010-09-30 2014-08-26 Honeywell International Inc. Quick connect and disconnect, base line configuration, and style configurator
US9912826B2 (en) * 2016-05-11 2018-03-06 Kabushiki Kaisha Toshiba Business customized multifunction peripherals
CN109857378A (en) * 2019-01-17 2019-06-07 武汉大学 A kind of construction method and device of Web system Development Framework

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115180A (en) * 2007-09-07 2008-01-30 中兴通讯股份有限公司 Electronic program menu system and functional module dynamic load operating method
CN101583125A (en) * 2009-06-08 2009-11-18 厦门敏讯信息技术股份有限公司 Method, terminal and server for realizing customization function of wireless terminal
CN102436473A (en) * 2011-09-29 2012-05-02 用友软件股份有限公司 Menu management device and menu management method
CN106406844A (en) * 2015-08-03 2017-02-15 腾讯科技(深圳)有限公司 A method and a device for realizing a communication interaction platform official account menu
CN107688423A (en) * 2017-05-19 2018-02-13 平安科技(深圳)有限公司 The management method and processing equipment of menu option in a kind of system
CN109117133A (en) * 2018-07-04 2019-01-01 广州视源电子科技股份有限公司 Configuration method, device, electronic equipment and the readable storage medium storing program for executing of menu
CN109324850A (en) * 2018-07-16 2019-02-12 百度在线网络技术(北京)有限公司 Display processing method, terminal and the server of application program

Also Published As

Publication number Publication date
CN110597812A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
US11328004B2 (en) Method and system for intelligently suggesting tags for documents
US10990644B2 (en) Systems and methods for contextual vocabularies and customer segmentation
US10318360B2 (en) Registry for app features referenced pointers and pointer definitions
CN110020292B (en) Webpage content extraction method and terminal equipment
US8756593B2 (en) Map generator for representing interrelationships between app features forged by dynamic pointers
US20230259691A9 (en) Method, apparatus, device and storage medium for determining page theme
US11354119B2 (en) Automatically upgrading and finding components similar to legacy versions
CN108399072B (en) Application page updating method and device
WO2018045489A1 (en) Data collection method, apparatus and system
US10803237B2 (en) Systems and methods for data entry into a region of a display
CN108809718A (en) Network Access Method, system, computer equipment based on virtual resource and medium
CN110020280B (en) Application page display method and device, storage medium and computer equipment
CN107908679B (en) Script statement conversion method and device and computer readable storage medium
US20180089154A1 (en) Computer implemented system and method for transforming web content for display on multiple form factors
CN110597812B (en) Menu configuration method, device, terminal and readable storage medium
US20150317297A1 (en) System and method for managing data and data models
CN115701299A (en) Combined local and server context menu
CN112114907A (en) Application loading method based on e-commerce cloud computing and artificial intelligence computing center
CN111427577A (en) Code processing method and device and server
CN112905931B (en) Page information display method and device, electronic equipment and storage medium
US10430711B2 (en) Method and system for FUNC-based experience framework with cross-user intelligence
CN110780970A (en) Data screening method, device, equipment and computer readable storage medium
CN114020589A (en) Embedded point processing method and device, computer equipment and storage medium
KR102131080B1 (en) Method for analyzing detail page of web-application using document of model and apparatus thereof
CN113918142B (en) Data acquisition task code generation method, device and computer 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