Search

CN-122019044-A - Method and corresponding device for recommending common menu

CN122019044ACN 122019044 ACN122019044 ACN 122019044ACN-122019044-A

Abstract

The application discloses a method and a corresponding device for recommending a common menu, and relates to the technical field of menu design; the behavior data comprises the number of times of accessing a certain menu and the latest access time, a recommended value is calculated based on the behavior data, a menu sequence is generated based on the recommended value, the menu sequence is a route address sequence corresponding to the menu, a menu list in a menu management module is matched based on the menu sequence to obtain menu list information commonly used by a user, the menu list comprises a plurality of menus, each menu comprises a name, a route address and an icon, and the menu list information is rendered into a page to realize recommendation of the commonly used menu. According to the application, the access frequency can be counted according to the behavior data of the user, and related menu information is dynamically pushed, so that the user can quickly jump to a required functional page, the operation efficiency of the user on a service platform is improved, and the user experience is obviously optimized.

Inventors

  • XIAO XUDONG
  • LIU FENG

Assignees

  • 金保信社保卡科技有限公司

Dates

Publication Date
20260512
Application Date
20260325

Claims (10)

  1. 1. The method for recommending the common menu is characterized by comprising the following steps: The method comprises the steps of obtaining behavior data of a user accessing a menu, wherein the behavior data comprises the number of times of accessing a certain menu and the latest access time; Calculating a recommended value based on the behavior data; generating menu ordering based on the recommended value, wherein the menu ordering is routing address ordering corresponding to the menu; based on the menu ordering, matching a menu list in a menu management module to obtain menu list information commonly used by a user, wherein the menu list comprises a plurality of menus, and each menu comprises a name, a routing address and an icon; and rendering the menu list information into a page to realize the recommendation of the common menu.
  2. 2. The usual menu recommendation method according to claim 1, wherein before acquiring behavior data of a user accessing a menu, the usual menu recommendation method further comprises: Configuring a plurality of menus in a menu management module; Creating a custom annotation with parameters, and marking the custom annotation to a query interface of each menu, wherein the custom annotation is a parameter with a routing address.
  3. 3. The usual menu recommendation method according to claim 1, wherein after acquiring behavior data of a user accessing a menu, before calculating a recommendation value based on the behavior data, the usual menu recommendation method further comprises: the behavior data is stored and updated using an ordered set of Redis.
  4. 4. The method for recommending a menu according to claim 1, wherein the step of acquiring behavior data of a user accessing a menu comprises: Acquiring a custom annotation from a section of the Spring AOP; Based on the user-defined annotation, behavior data of a user accessing a menu is obtained; or acquiring information of the login user from the surrounding notification; And obtaining behavior data of the user for accessing the menu based on the information of the login user.
  5. 5. The usual menu recommendation method according to claim 1, wherein the calculation formula of the recommendation value is: ; time_weight=math.exp(-(current_time-last_access_time)/3600); the score is a recommended value, count is the number of times of accessing a menu, time_weight is the weight of the latest access time, math.exp () is an exponential operation with e as a base, current_time is the current time, and last_access_time is the latest access time.
  6. 6. The method for recommending a commonly used menu according to claim 1, wherein generating a menu ranking based on the recommended value comprises: and sorting the recommended values by adopting a dynamic sorting algorithm to generate menu sorting.
  7. 7. A usual menu recommendation device for implementing the usual menu recommendation method of any one of claims 1-6, the usual menu recommendation device comprising: The behavior data acquisition module is used for acquiring behavior data of a user accessing a menu, wherein the behavior data comprises the number of times of accessing a certain menu and the latest access time; The recommended value calculation module is used for calculating a recommended value based on the behavior data; the ordering module is used for generating menu ordering based on the recommended value, wherein the menu ordering is the routing address ordering corresponding to the menu; The matching module is used for matching a menu list in the menu management module based on the menu ordering to obtain menu list information commonly used by a user, wherein the menu list comprises a plurality of menus, and each menu comprises a name, a routing address and an icon; and the recommending module is used for rendering the menu list information into the page to realize the recommendation of the common menu.
  8. 8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor executes the computer program to implement the usual menu recommendation method as claimed in any one of claims 1-6.
  9. 9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the usual menu recommendation method according to any one of claims 1-6.
  10. 10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the usual menu recommendation method as claimed in any one of claims 1-6.

Description

Method and corresponding device for recommending common menu Technical Field The application relates to the technical field of menu design, in particular to a common menu recommendation method and a corresponding device. Background In the digital era, various online service platforms are developed vigorously, and rich and various functions and services are provided for users. Taking the national social security card service platform as an example, the national social security card service platform comprises a large number of menu options and function modules. However, conventional system designs are generally subject to the problem of ignoring the excessive path of user operation. In the existing implementation scheme most similar to the invention, the menu design is usually fixed and cannot be dynamically adjusted according to the use habit and frequency of the user. After the user logs in the platform each time, the user can click on different levels of menus for multiple times to find out the commonly used functions, so that the use efficiency is reduced, and the user experience is greatly influenced. Disclosure of Invention The application aims to provide a common menu recommending method and a corresponding device, which can count the access frequency according to behavior data of a user and dynamically push related menu information so that the user can quickly jump to a required functional page, thereby improving the operation efficiency of the user on a service platform and remarkably optimizing the user experience. In order to achieve the above object, the present application provides the following. In a first aspect, the present application provides a method for recommending a commonly used menu, the method comprising the following steps. And acquiring behavior data of the user for accessing the menu, wherein the behavior data comprises the number of times of accessing a certain menu and the latest access time. And calculating a recommended value based on the behavior data. And generating menu ordering based on the recommended value, wherein the menu ordering is routing address ordering corresponding to the menu. Based on the menu ordering, a menu list in a menu management module is matched to obtain menu list information commonly used by a user, wherein the menu list comprises a plurality of menus, and each menu comprises a name, a routing address and an icon. And rendering the menu list information into a page to realize the recommendation of the common menu. Optionally, before acquiring the behavior data of the user accessing the menu, the method for recommending the common menu further comprises the following steps. A number of menus are configured in a menu management module. Creating a custom annotation with parameters, and marking the custom annotation to a query interface of each menu, wherein the custom annotation is a parameter with a routing address. Optionally, after acquiring the behavior data of the user accessing the menu, the method for recommending the common menu further comprises the following steps before calculating the recommended value based on the behavior data. The behavior data is stored and updated using an ordered set of Redis. Optionally, the behavior data of the user accessing the menu is acquired, which specifically includes the following steps. Custom annotations are obtained in the tangential plane of Spring AOP. And obtaining behavior data of the user for accessing the menu based on the custom annotation. Or the information of the logged-in user is acquired in the surround notification. And obtaining behavior data of the user for accessing the menu based on the information of the login user. Alternatively, the calculation formula of the recommended value is as follows. 。 time_weight=math.exp(-(current_time-last_access_time)/3600)。 The score is a recommended value, count is the number of times of accessing a menu, time_weight is the weight of the latest access time, math.exp () is an exponential operation with e as a base, current_time is the current time, and last_access_time is the latest access time. Optionally, based on the recommended value, generating a menu ranking, including the following steps. And sorting the recommended values by adopting a dynamic sorting algorithm to generate menu sorting. In a second aspect, the present application provides a conventional menu recommendation device, where the conventional menu recommendation device is configured to implement the conventional menu recommendation method described in any one of the foregoing, and the conventional menu recommendation device includes the following modules. The behavior data acquisition module is used for acquiring behavior data of a user accessing a menu, wherein the behavior data comprises the number of times of accessing a certain menu and the latest access time. And the recommended value calculation module is used for calculating and obtaining a recommended value based on the behavior da