CN112417348A - Function list generation method, storage medium and computer device - Google Patents

Function list generation method, storage medium and computer device Download PDF

Info

Publication number
CN112417348A
CN112417348A CN201910784820.7A CN201910784820A CN112417348A CN 112417348 A CN112417348 A CN 112417348A CN 201910784820 A CN201910784820 A CN 201910784820A CN 112417348 A CN112417348 A CN 112417348A
Authority
CN
China
Prior art keywords
user
function list
access path
access
identification code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910784820.7A
Other languages
Chinese (zh)
Inventor
黄俊炜
赖家劲
张家琪
赵慧子
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910784820.7A priority Critical patent/CN112417348A/en
Publication of CN112417348A publication Critical patent/CN112417348A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for generating a function list, a storage medium and computer equipment, wherein the method comprises the following steps: acquiring an identification code of a current user logging in a website by a Spring Boot background program; inquiring an access path associated with the identification code of the current user and the access times of each access path from a knowledge base stored in a Redis database by a Spring Boot background program, wherein the identification code of the user, the access path associated with each identification code and the access times of each access path are stored in the knowledge base; and generating a function list aiming at the current user by the Spring Boot background program based on the query result. According to the invention, the practicability of the system is improved, and meanwhile, the function list commonly used by the user is generated according to the habit of using the website or the system by the user, so that the convenience of using the website by the user can be improved, the friendliness of the website to the user is improved, and the use experience of the user is greatly improved.

Description

Function list generation method, storage medium and computer device
Technical Field
The invention relates to the technical field of computer software, in particular to a method for generating a function list, a computer readable storage medium and computer equipment.
Background
Today, the internet is developed at a high speed, and the internet is already brought into the lives of common people, even in all aspects. The campus air conditioner rental system improves the convenience of campus life.
However, most websites or systems can only add functions to the common function list according to the user's own needs, which wastes the time of the user actually using the system and reduces the convenience and user friendliness of the websites or systems.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: at present, most websites or systems can only add functions into a common function list according to the user, the user needs to operate the system independently, the time for the user to actually use the system is wasted, and the convenience and the user friendliness of the websites or the systems are reduced.
In order to solve the above technical problem, the present invention provides a method for generating a function list, a computer-readable storage medium, and a computer device.
According to an aspect of the present invention, there is provided a method of generating a function list, including:
acquiring an identification code of a current user logging in a website by a Spring Boot background program;
inquiring an access path associated with the identification code of the current user and the access times of each access path from a knowledge base stored in a Redis database by a Spring Boot background program, wherein the identification code of the user, the access path associated with each identification code and the access times of each access path are stored in the knowledge base;
and generating a function list aiming at the current user by the Spring Boot background program based on the query result.
Preferably, the method for generating a function list further includes constructing and updating the knowledge base, and includes:
the Spring Boot background program respectively executes the following steps aiming at each user logging in the website:
acquiring an identification code of the user;
monitoring functions used by the user after logging in the website, and executing the following steps for each function respectively:
determining an access path of the function;
determining record information according to the identification code and the access path of the function;
when the recorded information is judged to be stored in the knowledge base, the access times of the access path stored in the knowledge base are increased once;
and when the recorded information is judged not to be stored in the knowledge base, storing the identification code and the access path of the function into the knowledge base in a mutual correlation manner, and newly establishing the access times of the access path in the knowledge base and setting the access times to be 1.
Preferably, determining the record information according to the identification code and the access path includes:
character string splicing is carried out on the identification code and the access path;
and determining the spliced character string as the recording information.
Preferably, the INC of the Redis database increments the number of accesses to the access path in the knowledge base.
Preferably, generating the function list for the current user based on the query result includes:
determining an access path with the access times larger than the preset times from the query result;
generating the function list based on the determined access path.
Preferably, the function list is generated based on the determined access paths, and the access paths in the function list are arranged in the order of the access times from large to small.
Preferably, the method for generating the function list further includes:
and displaying the generated function list to the current user.
Preferably, the generated function list is presented to the current user by the front end of the website.
According to another aspect of the present invention, there is provided a computer-readable storage medium in which a computer program is stored, which, when executed by a processor, implements the above-described method of generating a functional module.
According to still another aspect of the present invention, there is provided a computer apparatus including a processor and a readable storage medium storing a computer program, the computer program implementing the above-described functional module generation method when executed by the processor.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
the method for generating the function list solves the technical problem that the frequently-used function list of the user cannot be automatically generated in the prior art, and the frequently-used function list of the user is automatically and dynamically generated according to the habit of the user by utilizing Redis and Spring Boot. According to the invention, the practicability of the system is improved, and meanwhile, the function list commonly used by the user is generated according to the habit of using the website or the system by the user, so that the convenience of using the website by the user can be improved, the friendliness of the website to the user is improved, and the use experience of the user is greatly improved.
Drawings
The scope of the present disclosure may be better understood by reading the following detailed description of exemplary embodiments in conjunction with the accompanying drawings. Wherein the included drawings are:
fig. 1 is a flowchart illustrating a method for generating a function list according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for generating a function list according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the following will describe in detail an implementation method of the present invention with reference to the accompanying drawings and embodiments, so that how to apply technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented.
In the prior art, most websites or systems can only add functions to a common function list according to users, and users need to operate the websites or systems independently, so that the time for the users to actually use the systems is wasted, and the convenience and the user friendliness of the websites or systems are reduced. In order to solve the above technical problem, an embodiment of the present invention provides a method for generating a function list.
Example one
Fig. 1 is a flowchart illustrating a method for generating a function list according to an embodiment of the present invention. As shown in fig. 1, the method for generating a function list according to the embodiment of the present invention mainly includes steps S101 to S103.
In step S101, the Spring Boot background program obtains an identification code of a current user logging in the website.
Specifically, the Spring Boot background program acquires an identification code of a current user of a website home page. Here, each user is assigned a unique identification code to enable the system to uniquely identify each user accessing the website.
In step S102, the Spring Boot daemon queries, from a knowledge base stored in the Redis database, an access path associated with the identification code of the current user and the number of times of access of each access path. Here, the knowledge base stores identification codes of users, access paths associated with each identification code, and the number of accesses for each access path.
Specifically, the system builds a knowledge base in advance and saves the knowledge base in the Redis database. The knowledge base stores the identification codes of the users, the access paths associated with each identification code and the access times of each access path. The specific method of constructing the knowledge base will be described in detail below.
After the Spring Boot background program acquires the identification code of the current user, all access paths associated with the identification code of the user and the access times of the current user for accessing each access path can be inquired from the knowledge base. Here, all the access paths associated with the identification code of the user and the number of times that the current user accesses each access path are the query result.
In step 103, a function list for the current user is generated by the Spring Boot daemon based on the query result.
Specifically, the Spring Boot daemon generates a function list for the current user based on the query result obtained in step S102.
In a preferred embodiment of the present invention, the method for generating the function list for the current user based on the query result includes: determining an access path having an access number greater than a predetermined number of times from the query result, and then generating the function list based on the determined access path. Therefore, the system can automatically provide a common function list for the current user, and the access experience of the user is improved.
In a further preferred embodiment, the function list is generated based on the determined access paths, and the access paths in the function list are arranged in the order of the access times from large to small. The access paths are sequenced from large to small according to the access times, so that the user can quickly know the most frequently used access path, and the access experience of the user can be further improved.
The knowledge base stored in the Redis database may be built online or offline. The method for specifically constructing and updating the knowledge base comprises the following steps: for each user logging on to the website, performing the following steps: firstly, acquiring an identification code of a user, monitoring functions used after the user logs in the website, determining an access path of each function, splicing character strings of the identification code and the access path of the user to determine recorded information, and automatically increasing the access times of the access path stored in a knowledge base once by an INCR (intelligent network communications) self-increasing program of a Redis database when the recorded information is judged to be stored in the knowledge base; on the other hand, when it is judged that the record information is not stored in the knowledge base, the identification code and the access path of the function are stored in the knowledge base in a mutually associated manner, the number of times of access of the access path is newly established in the knowledge base and is set to 1.
In a preferred embodiment of the present invention, after the function list of the user is generated, the generated function list is presented to the user by the front end of the website.
By applying the method for generating the function list, the technical problem that the user frequently-used function list cannot be automatically generated in the prior art is solved, and the user frequently-used function list is automatically and dynamically generated according to the habits of the user by utilizing Redis and Spring Boot. According to the invention, the practicability of the system is improved, and meanwhile, the function list commonly used by the user is generated according to the habit of using the website or the system by the user, so that the convenience of using the website by the user can be improved, the friendliness of the website to the user is improved, and the use experience of the user is greatly improved.
Example two
Fig. 2 is a flowchart illustrating a method for generating a function list according to an embodiment of the present invention. Referring to fig. 2, a client requests a website address of a related website, when a certain function is used, a SpringBoot background program acquires a current user ID (identification code) and an access path of the function and simultaneously splices character strings to generate corresponding KEY (record information), whether cached KEY exists in a Redis database is judged according to the KEY, if yes, a digital value (access frequency of the access path) stored in the KEY is increased by 1, and if not, the KEY is written into the Redis database and an INCR operation is executed to realize that the KEY value can be increased by itself. Meanwhile, when the user accesses the website home page, the SpringBoot background program reads the KEY (namely the current user ID) with the appointed prefix from the Redis database according to the obtained ID logged in by the current user, obtains the first n KEys with larger numerical values (namely the access times) in the KEY values, intercepts the appointed suffixes (namely the access paths) of the KEY according to corresponding rules to generate a commonly used function list path which is fed back to the front end, so that the function list which is commonly used when the current logged-in user uses the website or the system is displayed.
In this embodiment, the operation records of each user are continuously recorded according to the rule for generating the KEY and the self-increment of the KEY value, which should include the current user ID and the function path, and thus, the more frequently used functions of each user are represented by using the KEY with a higher value.
A controller in the Springboot program realizes the reading and writing of the KEY under the corresponding request of the corresponding user, can generate the KEY value according to the IP and the access path of the user and simultaneously compares the KEY value with a Redis database, if the KEY value is the same, the self-increment is realized, and if the KEY value is different, the writing is realized and the INCR operation realizes the self-increment of the KEY value.
The key for realizing the embodiment of the invention is that the INCR self-increment of Redis and the reading and writing of the Redis database by the background SpringBoot are reasonably used. Meanwhile, the common function lists of different users can be distinguished according to the user ID instead of the same list for each fixed user based on the above embodiment of Redis and SpringBoot, and the common function lists are continuously changed in the website or system which is continuously used by the user, so that the personalized dynamic common function lists are realized.
By applying the method for generating the function list, the technical problem that the user frequently-used function list cannot be automatically generated in the prior art is solved, and the user frequently-used function list is automatically and dynamically generated according to the habits of the user by utilizing Redis and Spring Boot. According to the invention, the practicability of the system is improved, and meanwhile, the function list commonly used by the user is generated according to the habit of using the website or the system by the user, so that the convenience of using the website by the user can be improved, the friendliness of the website to the user is improved, and the use experience of the user is greatly improved.
EXAMPLE III
The embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method for generating the functional module according to the first embodiment or the second embodiment.
The embodiment of the present invention further provides a computer-readable storage medium, which includes a processor and a readable storage medium storing a computer program, where the computer program, when executed by the processor, implements the method for generating the functional module according to the first embodiment or the second embodiment.
By applying the embodiment of the invention, the technical problem that the user common function list cannot be automatically generated in the prior art is solved, and the user common function list is automatically and dynamically generated by utilizing Redis and Spring Boot according to the habits of the user. According to the invention, the practicability of the system is improved, and meanwhile, the function list commonly used by the user is generated according to the habit of using the website or the system by the user, so that the convenience of using the website by the user can be improved, the friendliness of the website to the user is improved, and the use experience of the user is greatly improved.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for generating a function list, comprising:
acquiring an identification code of a current user logging in a website by a Spring Boot background program;
inquiring an access path associated with the identification code of the current user and the access times of each access path from a knowledge base stored in a Redis database by a Spring Boot background program, wherein the identification code of the user, the access path associated with each identification code and the access times of each access path are stored in the knowledge base;
and generating a function list aiming at the current user by the Spring Boot background program based on the query result.
2. The method of generating as claimed in claim 1, further comprising building and updating the knowledge base comprising:
the Spring Boot background program respectively executes the following steps aiming at each user logging in the website:
acquiring an identification code of the user;
monitoring functions used by the user after logging in the website, and executing the following steps for each function respectively:
determining an access path of the function;
determining record information according to the identification code and the access path of the function;
when the recorded information is judged to be stored in the knowledge base, the access times of the access path stored in the knowledge base are increased once;
and when the recorded information is judged not to be stored in the knowledge base, storing the identification code and the access path of the function into the knowledge base in a mutual correlation manner, and newly establishing the access times of the access path in the knowledge base and setting the access times to be 1.
3. The method for generating a function list according to claim 2, wherein determining record information based on the identification code and the access path includes:
character string splicing is carried out on the identification code and the access path;
and determining the spliced character string as the recording information.
4. The method of claim 2, wherein the INC of the Redis database increments the number of accesses to the access path in the repository.
5. The method for generating the function list according to any one of claims 1 to 4, wherein generating the function list for the current user based on the query result comprises:
determining an access path with the access times larger than the preset times from the query result;
generating the function list based on the determined access path.
6. The method according to claim 5, wherein the function list is generated based on the determined access paths, and the access paths in the function list are arranged in descending order of access times.
7. The method for generating a function list according to any one of claims 1 to 6, further comprising:
and displaying the generated function list to the current user.
8. The method according to claim 7, wherein the generated function list is presented to the current user by a front end of the website.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out a method of generating a functional module according to any one of claims 1 to 8.
10. A computer device comprising a processor and a readable storage medium storing a computer program which, when executed by the processor, implements a method of generating a functional module according to any one of claims 1 to 8.
CN201910784820.7A 2019-08-23 2019-08-23 Function list generation method, storage medium and computer device Pending CN112417348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910784820.7A CN112417348A (en) 2019-08-23 2019-08-23 Function list generation method, storage medium and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910784820.7A CN112417348A (en) 2019-08-23 2019-08-23 Function list generation method, storage medium and computer device

Publications (1)

Publication Number Publication Date
CN112417348A true CN112417348A (en) 2021-02-26

Family

ID=74779832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910784820.7A Pending CN112417348A (en) 2019-08-23 2019-08-23 Function list generation method, storage medium and computer device

Country Status (1)

Country Link
CN (1) CN112417348A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819602A (en) * 2012-08-16 2012-12-12 优视科技有限公司 Browsing method and device and browser for web page content
CN103078967A (en) * 2013-01-11 2013-05-01 北京奇虎科技有限公司 Client, server, system and method for generating commonly used websites
CN104504136A (en) * 2014-12-31 2015-04-08 北京国双科技有限公司 Website access path analyzing method and device
CN108920204A (en) * 2018-05-30 2018-11-30 维沃移动通信有限公司 A kind of interface display method and terminal device
CN109992331A (en) * 2017-12-28 2019-07-09 重庆南华中天信息技术有限公司 The common function portal assembly dynamic adjusting method and system of Behavior-based control analysis

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819602A (en) * 2012-08-16 2012-12-12 优视科技有限公司 Browsing method and device and browser for web page content
CN103078967A (en) * 2013-01-11 2013-05-01 北京奇虎科技有限公司 Client, server, system and method for generating commonly used websites
CN104504136A (en) * 2014-12-31 2015-04-08 北京国双科技有限公司 Website access path analyzing method and device
CN109992331A (en) * 2017-12-28 2019-07-09 重庆南华中天信息技术有限公司 The common function portal assembly dynamic adjusting method and system of Behavior-based control analysis
CN108920204A (en) * 2018-05-30 2018-11-30 维沃移动通信有限公司 A kind of interface display method and terminal device

Similar Documents

Publication Publication Date Title
KR101422859B1 (en) Permission-based document server
KR101143217B1 (en) Method, system and apparatus for managing computer identity
JP4846922B2 (en) Method and system for accessing information on network
US7200806B2 (en) System and method for generating pre-populated forms
US8856168B2 (en) Contextual application recommendations
JP4671332B2 (en) File server that converts user identification information
JP2018506756A (en) Website access method, apparatus, and website system
WO2007033338A2 (en) Networked information indexing and search apparatus and method
JP2010508582A (en) FAQ automatic generation and update device
CN110519240B (en) Single sign-on method, device and system
CN103067463A (en) Centralized management system and centralized management method for user root permission
CN113886743B (en) Method, device and system for refreshing cache resources
KR20050013961A (en) Method and apparatus for late-binding/dynamic pathname resolution
CN107357557B (en) Information updating method and device
KR101666064B1 (en) Apparatus for managing data by using url information in a distributed file system and method thereof
US10455010B2 (en) Information processing apparatus and non-transitory computer readable medium
CN112417348A (en) Function list generation method, storage medium and computer device
JP5197726B2 (en) Screen transition control device
CN113420241A (en) Page access method and device, electronic equipment and storage medium
CN107508878B (en) Key name deleting method and device based on cache proxy server
US7216151B2 (en) Computer apparatus and program for controlling same
CN106993036B (en) Running environment information processing method and switch
CN114338634B (en) Data processing method and device
CN106649473B (en) Operational issue feedback query method
CN116305288B (en) Method, device, equipment and storage medium for isolating database resources

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