Method, device, equipment and computer storage medium for notifying interface content changes
By obtaining and analyzing the identification information and user communication address of the interface change, and only sending the associated interface change notification to the user, the problem of inefficient notification sending in the prior art is solved and the user experience is improved.
Patent Information
- Application Number
- CN202111582809.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2041-12-22
AI Technical Summary
In the prior art, when the content of the service data interface changes, notifications of changes in the interface content are sent to all users, resulting in low efficiency in sending notifications, and users frequently receive changes notifications, which affects the user experience.
By obtaining the identification information of multiple interfaces whose contents have changed within the preset time period, the identification information and communication address information of users using these interfaces are determined, and only each user is notified of their relevant interface changes according to the user's usage in the multiple interfaces.
It effectively improves the notification sending efficiency of interface content changes, reduces the number of notifications received by users, and improves the user experience.
Smart Images

Figure CN114238484B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of Internet technology, and in particular, to a method, device, electronic device, and computer storage medium for notifying interface content changes. Background Art
[0002] With the continuous development of computer technology, the scientific and technological achievements it has brought have been integrated into all aspects of people's lives, bringing many conveniences to people's lives.
[0003] The existing client has business data interfaces with information of different dimensions, and users can call the information of the required dimensions through the business data interface. If the content of the business data interface changes, it is necessary to notify the user of the content change of the business data interface. In the prior art, when the content of a business data interface changes, a notification of the interface content change is sent to all users of the business data interface. If the content of multiple business data interfaces changes, and a user is a user of multiple business data interfaces, the user will receive notifications of content changes of multiple business data interfaces. In this way, on the one hand, the efficiency of sending notifications of interface content changes is reduced, and on the other hand, users will frequently receive change notification messages, resulting in a poor user experience.
[0004] It can be seen that how to effectively improve the efficiency of sending notifications of interface content changes has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method, device, electronic device and computer storage medium for notifying interface content changes, so as to solve the technical problem existing in the prior art of how to effectively improve the efficiency of sending notifications of interface content changes.
[0006] According to a first aspect of an embodiment of the present invention, a method for notifying changes in interface content is provided, the method comprising: obtaining identification information of multiple interfaces whose content has changed within a preset time period; obtaining identification information and communication address information of at least one user who uses the multiple interfaces based on the identification information of the multiple interfaces; determining identification information of the interface used by each of the at least one user in the multiple interfaces based on the identification information of the at least one user; determining the changed content of the interface used by each user in the multiple interfaces based on the identification information of the interface used by each user in the multiple interfaces; and notifying each user of the changed content of the interface used by each user in the multiple interfaces based on the communication address information of each user.
[0007] According to a second aspect of an embodiment of the present invention, there is provided a device for notifying of changes in interface content, the device comprising: a first acquisition module, for acquiring identification information of multiple interfaces whose content has changed within a preset time period; a second acquisition module, for acquiring identification information and communication address information of at least one user who uses the multiple interfaces based on the identification information of the multiple interfaces; a first determination module, for determining identification information of the interface used by each of the at least one user in the multiple interfaces based on the identification information of the at least one user; a second determination module, for determining the changed content of the interface used by each user in the multiple interfaces based on the identification information of the interface used by each user in the multiple interfaces; and a notification module, for notifying each user of the changed content of the interface used by each user in the multiple interfaces based on the communication address information of each user.
[0008] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the method for notifying the interface content change as described in the first aspect.
[0009] According to a fourth aspect of an embodiment of the present invention, there is provided a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the method for notifying the interface content change as described in the first aspect is implemented.
[0010] Through the notification scheme for interface content changes provided by the embodiment of the present invention, the identification information of the interface used by each of the at least one user in the multiple interfaces and its corresponding change content are determined according to the identification information of the at least one user, and the change content of the interface used by each user in the multiple interfaces is notified to each user according to the communication address information of each user. According to different user situations, each user only receives one notification related to himself, which can effectively improve the efficiency of sending notifications of interface content changes, thereby effectively improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0012] Figure 1This is a flowchart of the method for notifying interface content changes in the first embodiment;
[0013] Figure 2 This is a flowchart of step S101 in the method for notifying interface content change in the first embodiment;
[0014] Figure 3 This is a flowchart of step S103 in the method for notifying interface content change in the first embodiment;
[0015] Figure 4 This is a flowchart of step S105 in the method for notifying interface content change in the first embodiment;
[0016] Figure 5 This is a schematic diagram of the structure of the notification device for interface content change in the second embodiment;
[0017] Figure 6 This is a schematic diagram of the structure of the electronic device in the third embodiment. DETAILED DESCRIPTION
[0018] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in the field based on the embodiments in the embodiments of the present invention should fall within the scope of protection of the embodiments of the present invention.
[0019] The specific implementation of the embodiment of the present invention is further described below in conjunction with the accompanying drawings of the embodiment of the present invention.
[0020] Reference Figure 1 , shows a step flow chart of the method for notifying interface content changes in the first embodiment of the present invention.
[0021] Specifically, the method for notifying interface content changes provided in this embodiment includes the following steps:
[0022] In step S101, identification information of multiple interfaces whose contents are changed within a preset time period is obtained.
[0023] In this embodiment, the preset time period can be set by those skilled in the art according to actual needs, and this embodiment does not impose any limitation on this. For example, the preset time period can be half a day, a day, a week, a month, or half a year, etc. The interface can be understood as an interface for obtaining business data, for example, an interface for obtaining basic information of a special enterprise, an interface for obtaining basic information of an enterprise, an interface for obtaining an income statement, an interface for obtaining a balance sheet, an interface for obtaining a cash flow statement, etc. The identification information can be understood as information for identifying an interface, for example, the identification information of the interface for obtaining basic information of a special enterprise can be 459, the identification information of the interface for obtaining basic information of an enterprise can be 817, etc. The change content can be understood as a change in the content field of the interface. It can be understood that the above description is only exemplary, and this embodiment does not impose any limitation on this.
[0024] In some optional embodiments, such as Figure 2 As shown, the method of obtaining identification information of multiple interfaces whose contents have changed within a preset time period includes: in step S201, obtaining data in a first data format consisting of identification information of the multiple interfaces and the changed contents of the multiple interfaces within the preset time period; in step S202, converting the data in the first data format to obtain data in a second data format, and obtaining an entity set corresponding to the data in the second data format; in step S203, traversing the entity set, and storing the identification information of the interfaces obtained through the traversal into an identification set, and storing the identification information and changed contents of the interfaces obtained through the traversal into a value container. In this way, the identification information of multiple interfaces whose contents have changed within a preset time period and the changed contents of the multiple interfaces can be accurately obtained. It can be understood that the above description is only exemplary, and this embodiment does not impose any limitation on this.
[0025] In a specific example, the first data format is an entity object format in a container form, for example, a JsonObject object in a container form. The second data format is a string format in a key-value pair form, for example, a JSON string in a key-value pair form.
[0026] Specifically, a JsonObject object in the form of a container consisting of the identification information of the multiple interfaces and the changed contents of the multiple interfaces is obtained; the JsonObject object in the form of a container is converted to obtain a JSON string in the form of a key-value pair, wherein the identification information of the multiple interfaces is used as the key object in the key-value pair in the JSON string, and the changed contents of the multiple interfaces are used as the value object in the key-value pair in the JSON string; an entity set corresponding to the JSON string is obtained, wherein the number of entities in the entity set is the same as the number of the multiple interfaces, and each entity in the entity set includes the identification information of each interface in the multiple interfaces and the changed contents of each interface; the entity set is traversed, and the identification information of each interface obtained by the traversal is stored in the identification set, and the identification information and changed contents of each interface obtained by the traversal are stored in the value container. Wherein, each entity in the entity set includes a key object and a value object in the key-value pair. The identification information of each interface in the multiple interfaces is used as the key object in the key-value pair, and the changed contents of each interface are used as the value object in the key-value pair. It can be understood that the above description is only exemplary and this embodiment does not impose any limitation on this.
[0027] In some optional embodiments, when converting data in the first data format to obtain data in the second data format and obtaining an entity set corresponding to the data in the second data format, obtain a static internal nested interface in a container corresponding to the entity object format; obtain a mapping item in the container through the static internal nested interface, and obtain data in a string format according to the mapping item in the container, and store the data in the string format into a data container; determine that the data container is an entity set corresponding to the data in the string format. In this way, the entity set corresponding to the data in the string format can be accurately obtained. It can be understood that the above description is only exemplary and this embodiment does not impose any limitation on this.
[0028] In a specific example, a static internal nested interface in a container corresponding to a JsonObject object in a container form is obtained; a mapping item in the container is obtained through the static internal nested interface, and a JSON string in a key-value pair form is obtained according to the mapping item in the container, and the JSON string in the key-value pair form is stored in a data container; and the data container is determined to be an entity set corresponding to the JSON string in the key-value pair form. It can be understood that the above description is only exemplary and this embodiment does not impose any limitation on this.
[0029] In a specific example, a JsonObject object in the form of a Map is converted into a JSON string in the form of a key-value pair. Specifically, a mapping item represented by the Entry (static internal nested interface) internal interface in the Map object is obtained, and the mapping item contains Key and Value, and a JSON string in the form of a key-value pair is obtained according to the mapping item, and then the JSON string in the form of a key-value pair is stored in the declared dataMap object. Determine that the dataMap object is an entity set corresponding to the JSON string in the form of a key-value pair. Loop through the entities in this entity set, declare a valueMap object, declare an identifier set, put the looped key into the identifier set, and put the looped key and value into this valueMap object. It can be understood that the above description is only exemplary, and this embodiment does not impose any limitation on this.
[0030] In step S102, identification information and communication address information of at least one user who uses the multiple interfaces are acquired according to the identification information of the multiple interfaces.
[0031] In this embodiment, the identification information of the at least one user may be the ID of the at least one user, and the communication address information of the at least one user may be the communication number of the mobile phone terminal held by the at least one user, the email address of the at least one user, etc. It can be understood that the above description is only exemplary and this embodiment does not impose any limitation on this.
[0032] In some optional embodiments, after obtaining the identification information and communication address information of at least one user using the multiple interfaces, the method further includes: generating a user list according to the identification information of the multiple interfaces, and the identification information and communication address information of the at least one user, and traversing the user list line by line; if the identification information of the user in the row information of the current row does not appear, then creating a user object storage set, assigning the row information of the current row to the first user object, then storing the first user object in the user object storage set, and then storing the user object storage set in an associated container; if the identification information of the user in the row information of the current row already appears, then creating a new user object storage set, assigning the row information of the current row to the second user object, then storing the second user object and the old user object storage set in the new user object storage set, and then storing the new user object storage set in the associated container. Wherein, each row of information in the user list includes the identification information of the interface, the identification information of the user, and the communication address information of the user, and the associated container uses the identification information of the user as a key object and the user object storage set as a value object. Thereby, the identification information of the user can be effectively associated with the user object storage set and stored in the association container. It can be understood that the above description is only exemplary and this embodiment does not impose any limitation on this.
[0033] In a specific example, a groupMap object is declared, and then it is determined whether the user list is empty. If it is not empty, the user list is looped and a user object is declared. If the user object storage collection of the user cannot be obtained, a new collection is created, and the user object is put into the collection. The collection is placed in a groupMap object with the user ID as the key object and the collection as the value object. If the user object storage collection of the user is obtained, a new collection is created, and the old collection and the new user object are placed in the new collection, and the new collection is placed in a groupMap object with the user ID as the key object and the collection as the value object. It can be understood that the above description is only exemplary, and this embodiment does not impose any limitation on this.
[0034] In step S103, identification information of an interface used by each of the at least one user among the multiple interfaces is determined according to the identification information of the at least one user.
[0035] In some optional embodiments, such as Figure 3As shown, the method of determining the identification information of the interface used by each user in the multiple interfaces according to the identification information of the at least one user includes: in step S301, traversing the associated container according to the identification information of each user in the at least one user to obtain a user object storage set corresponding to the identification information of each user; in step S302, determining the identification information of the interface used by each user in the multiple interfaces according to the user objects in the user object storage set corresponding to the identification information of each user. Thus, the identification information of the interface used by each user in the multiple interfaces can be accurately determined through the user objects in the user object storage set corresponding to the identification information of each user. It can be understood that the above description is only exemplary and this embodiment does not impose any limitation on this.
[0036] In step S104, the content of the change of the interface used by each user among the multiple interfaces is determined according to the identification information of the interface used by each user among the multiple interfaces.
[0037] In this embodiment, the identification information of the interface used by each user in the multiple interfaces is different, so the changed content of the interface used by each user in the multiple interfaces is also different. Therefore, the changed content of the interface used by each user in the multiple interfaces can be notified to each user at one time. It can be understood that the above description is only exemplary, and this embodiment does not make any limitation to this.
[0038] In step S105, each user is notified of the change content of the interface used by each user among the multiple interfaces according to the communication address information of each user.
[0039] In some optional embodiments, the communication address information of each user includes the email address information of each user. Figure 4 As shown, the method of notifying each user of the changed content of the interface used by each user in the multiple interfaces according to the communication address information of each user includes: in step S401, adding the changed content of the interface used by each user in the multiple interfaces and the email title to the email template of the custom style to generate the email content to be sent; in step S402, sending the email content to be sent to the mailbox of each user according to the email address information of each user. In this way, through the email communication method, the changed content of the interface used by each user in the multiple interfaces can be notified to each user in a timely and accurate manner. It can be understood that the above description is only exemplary and this embodiment does not impose any limitation on this.
[0040] In a specific example, you can use FTL prediction to write an email template with a custom style, put it into the project configuration file, and use the corresponding email template each time. You can get the email template by the name of the email template, get the changed content of the interface used by each user in the multiple interfaces, put the content into the email template, output a string, add the user's email address, and send it to the user in the form of sending an email. In this way, some interface change content is inserted and a specific email is sent according to a specific user. It can be understood that the above description is only exemplary, and this embodiment does not make any limitation to this.
[0041] In some optional embodiments, after sending the email content to be sent to the mailbox of each user, the method further includes: updating the sending status of the email content to be sent, and recording the creation time of the email content to be sent, the number of interfaces involved in the email content to be sent, and the identification information of the user who updated the content of the interface involved in the email content to be sent. In this way, the notification status of the changed content of the interface used by each user in the multiple interfaces can be timely understood. It can be understood that the above description is only exemplary and this embodiment does not make any limitation to this.
[0042] Through the notification method for interface content changes provided by the embodiment of the present invention, the identification information of the interface used by each of the at least one user in the multiple interfaces and its corresponding change content are determined according to the identification information of the at least one user, and the change content of the interface used by each user in the multiple interfaces is notified to each user according to the communication address information of each user. According to different user situations, each user only receives one notification related to himself, which can effectively improve the efficiency of sending notifications of interface content changes, thereby effectively improving the user experience.
[0043] The interface content change notification method provided in this embodiment can be executed by any appropriate device with data processing capabilities, including but not limited to: cameras, terminals, mobile terminals, PCs, servers, vehicle-mounted devices, entertainment equipment, advertising equipment, personal digital assistants (PDAs), tablet computers, laptop computers, handheld game consoles, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices, etc.
[0044] Reference Figure 5 , showing a schematic diagram of the structure of the notification device for interface content changes in the second embodiment of the present application.
[0045] The interface content change notification device provided in this embodiment includes: a first acquisition module 201, used to obtain the identification information of multiple interfaces whose contents have changed within a preset time period; a second acquisition module 202, used to obtain the identification information and communication address information of at least one user who uses the multiple interfaces based on the identification information of the multiple interfaces; a first determination module 203, used to determine the identification information of the interface used by each user of the at least one user in the multiple interfaces based on the identification information of the at least one user; a second determination module 204, used to determine the changed content of the interface used by each user in the multiple interfaces based on the identification information of the interface used by each user in the multiple interfaces; a notification module 205, used to notify each user of the changed content of the interface used by each user in the multiple interfaces based on the communication address information of each user.
[0046] Optionally, the first acquisition module 201 includes: a first acquisition sub-module, used to acquire data in a first data format consisting of identification information of the multiple interfaces and change content of the multiple interfaces within the preset time period; a second acquisition sub-module, used to convert the data in the first data format to obtain data in a second data format, and acquire an entity set corresponding to the data in the second data format; a traversal sub-module, used to traverse the entity set, and store the identification information of the interface obtained by the traversal into the identification set, and store the identification information and change content of the interface obtained by the traversal into a value container.
[0047] Optionally, the first data format is an entity object format in the form of a container, and the second data format is a string format in the form of a key-value pair, and the second acquisition submodule is specifically used to: obtain a static internal nested interface in a container corresponding to the entity object format; obtain a mapping item in the container through the static internal nested interface, and obtain data in a string format based on the mapping item in the container, and store the data in the string format into a data container; determine that the data container is an entity set corresponding to the data in the string format.
[0048] Optionally, after the second acquisition module 202, the device also includes: a traversal module, used to generate a user list according to the identification information of the multiple interfaces, and the identification information and communication address information of the at least one user, and traverse the user list row by row; a first storage module, used to create a user object storage set if the identification information of the user in the row information of the current row does not appear, and assign the row information of the current row to the first user object, and then store the first user object in the user object storage set, and then store the user object storage set in an associated container; a second storage module, used to create a new user object storage set if the identification information of the user in the row information of the current row already appears, and assign the row information of the current row to the second user object, and then store the second user object and the old user object storage set in the new user object storage set, and then store the new user object storage set in the associated container.
[0049] Optionally, the first determination module 203 is specifically used to: traverse the associated container according to the identification information of each user among the at least one user to obtain a user object storage set corresponding to the identification information of each user; and determine the identification information of the interface used by each user in the multiple interfaces according to the user objects in the user object storage set corresponding to the identification information of each user.
[0050] Optionally, the communication address information of each user includes the email address information of each user, and the notification module 205 is specifically used to: add the changed content and email title of the interface used by each user in the multiple interfaces to the email template of the custom style to generate the email content to be sent; and send the email content to be sent to the mailbox of each user according to the email address information of each user.
[0051] Optionally, after the notification module 205, the device also includes: a recording module, which is used to update the sending status of the email content to be sent, and record the creation time of the email content to be sent, the number of interfaces involved in the email content to be sent, and the identification information of the user who updates the content of the interface involved in the email content to be sent.
[0052] The device for notifying interface content changes provided in this embodiment is used to implement the corresponding methods for notifying interface content changes in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described in detail herein.
[0053] Reference Figure 6 , shows a schematic diagram of the structure of an electronic device according to Embodiment 3 of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
[0054] like Figure 6 As shown, the electronic device may include: a processor (processor) 302 , a communication interface (Communications Interface) 304 , a memory (memory) 306 , and a communication bus 308 .
[0055] in:
[0056] The processor 302 , the communication interface 304 , and the memory 306 communicate with each other via the communication bus 308 .
[0057] The communication interface 304 is used to communicate with other electronic devices or servers.
[0058] The processor 302 is used to execute the program 310, and specifically can execute the relevant steps in the above-mentioned embodiment of the notification method for interface content change.
[0059] Specifically, the program 310 may include program codes, which include computer operation instructions.
[0060] The processor 302 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0061] The memory 306 is used to store the program 310. The memory 306 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0062] Program 310 can be specifically used to enable processor 302 to perform the following operations: obtain identification information of multiple interfaces whose contents have changed within a preset time period; obtain identification information and communication address information of at least one user who uses the multiple interfaces based on the identification information of the multiple interfaces; determine identification information of the interface used by each of the at least one user in the multiple interfaces based on the identification information of the at least one user; determine the changed content of the interface used by each user in the multiple interfaces based on the identification information of the interface used by each user in the multiple interfaces; and notify each user of the changed content of the interface used by each user in the multiple interfaces based on the communication address information of each user.
[0063] In an optional embodiment, the program 310 is also used to enable the processor 302 to obtain data in a first data format consisting of the identification information of multiple interfaces whose contents have changed within a preset time period when obtaining the identification information of multiple interfaces whose contents have changed within the preset time period; convert the data in the first data format to obtain data in a second data format, and obtain an entity set corresponding to the data in the second data format; traverse the entity set, and store the identification information of the interfaces obtained by the traversal into the identification set, and store the identification information and change content of the interfaces obtained by the traversal into a value container.
[0064] In an optional embodiment, the first data format is an entity object format in the form of a container, and the second data format is a string format in the form of a key-value pair. The program 310 is also used to enable the processor 302 to convert the data in the first data format to obtain the data in the second data format, and obtain the entity set corresponding to the data in the second data format, and obtain the static internal nested interface in the container corresponding to the entity object format; obtain the mapping item in the container through the static internal nested interface, and obtain the data in the string format according to the mapping item in the container, and store the data in the string format into the data container; determine that the data container is the entity set corresponding to the data in the string format.
[0065] In an optional embodiment, the program 310 is also used to enable the processor 302 to generate a user list based on the identification information of the multiple interfaces and the identification information and communication address information of the at least one user after obtaining the identification information and communication address information of the multiple interfaces, and traverse the user list row by row; if the identification information of the user in the row information of the current row does not appear, create a user object storage set, assign the row information of the current row to the first user object, then store the first user object in the user object storage set, and then store the user object storage set in an associated container; if the identification information of the user in the row information of the current row already appears, create a new user object storage set, assign the row information of the current row to the second user object, then store the second user object and the old user object storage set in the new user object storage set, and then store the new user object storage set in the associated container.
[0066] In an optional embodiment, the program 310 is also used to enable the processor 302 to traverse the associated container according to the identification information of each user in the at least one user to obtain a user object storage set corresponding to the identification information of each user; and determine the identification information of the interface used by each user in the multiple interfaces according to the user objects in the user object storage set corresponding to the identification information of each user.
[0067] In an optional embodiment, the communication address information of each user includes the email address information of each user, and the program 310 is also used to enable the processor 302 to add the changed content of the interface used by each user in the multiple interfaces and the email title to a custom-style email template to generate email content to be sent when notifying each user of the changed content of the interface used by each user in the multiple interfaces based on the communication address information of each user, and to generate email content to be sent; and send the email content to be sent to the mailbox of each user based on the email address information of each user.
[0068] In an optional embodiment, the program 310 is also used to enable the processor 302 to update the sending status of the email content to be sent after sending the email content to the mailbox of each user, and record the creation time of the email content to be sent, the number of interfaces involved in the email content to be sent, and the identification information of the user who updates the content of the interface involved in the email content to be sent.
[0069] The specific implementation of each step in program 310 can refer to the corresponding description of the corresponding steps and units in the above-mentioned interface content change notification method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0070] Through the electronic device of this embodiment, the identification information of the interface used by each of the at least one user in the multiple interfaces and its corresponding change content are determined according to the identification information of the at least one user, and the change content of the interface used by each user in the multiple interfaces is notified to each user according to the communication address information of each user. According to different user situations, each user only receives one notification related to himself, which can effectively improve the efficiency of sending notifications of interface content changes, thereby effectively improving the user experience.
[0071] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present invention can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present invention.
[0072] The above-described method according to an embodiment of the present invention may be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or as computer code that is originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and will be stored in a local recording medium, so that the method described herein may be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an ASIC or FPGA). It is understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor, or hardware, the method for notifying the interface content change described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method for notifying the interface content change shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the method for notifying the interface content change shown herein.
[0073] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present invention.
[0074] The above implementation methods are only used to illustrate the embodiments of the present invention, and are not limitations of the embodiments of the present invention. Ordinary technicians in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present invention. The patent protection scope of the embodiments of the present invention should be defined by the claims.
Claims
1. A method for notifying interface content changes, characterized in that: The method comprises: Obtain identification information of multiple interfaces whose contents have changed within a preset time period; Acquire identification information and communication address information of at least one user using the multiple interfaces according to the identification information of the multiple interfaces; Determining, according to the identification information of the at least one user, identification information of an interface used by each of the at least one user among the plurality of interfaces; Determining, according to identification information of the interface used by each user in the multiple interfaces, a change content of the interface used by each user in the multiple interfaces; Notifying each user of the change content of the interface used by each user in the plurality of interfaces according to the communication address information of each user; The step of obtaining identification information of multiple interfaces whose contents have been changed within a preset time period includes: Acquire data in a first data format consisting of identification information of the multiple interfaces and change contents of the multiple interfaces within the preset time period; Converting the data in the first data format to obtain data in a second data format, and acquiring an entity set corresponding to the data in the second data format; Traversing the entity set, storing the identification information of the interface obtained through the traversal into the identification set, and storing the identification information and the changed content of the interface obtained through the traversal into the value container; The communication address information of each user includes the email address information of each user, The notifying each user of the change content of the interface used by each user in the multiple interfaces according to the communication address information of each user includes: Adding the changed content of the interface used by each user in the multiple interfaces and the email title to the email template of the custom style to generate the email content to be sent; According to the email address information of each user, the email content to be sent is sent to the mailbox of each user.
2. The method for notifying interface content changes according to claim 1, characterized in that: The first data format is an entity object format in the form of a container, and the second data format is a string format in the form of a key-value pair; The converting the data in the first data format to obtain the data in the second data format, and acquiring the entity set corresponding to the data in the second data format, includes: Obtain a static internal nested interface in a container corresponding to the entity object format; Obtaining the mapping item in the container through the static internal nested interface, and obtaining the data in a string format according to the mapping item in the container, and storing the data in the string format into a data container; Determine that the data container is an entity set corresponding to the data in the string format.
3. The method for notifying interface content changes according to claim 1, characterized in that: After obtaining identification information and communication address information of at least one user using the multiple interfaces, the method further includes: Generate a user list according to the identification information of the multiple interfaces, and the identification information and communication address information of the at least one user, and traverse the user list line by line; If the user identification information in the row information of the current row does not appear, create a user object storage set, assign the row information of the current row to the first user object, store the first user object in the user object storage set, and then store the user object storage set in an associated container; If the identification information of the user already appears in the row information of the current row, a new user object storage set is created, and the row information of the current row is assigned to the second user object, and then the second user object and the old user object storage set are stored in the new user object storage set, and then the new user object storage set is stored in the associated container.
4. The method for notifying interface content changes according to claim 3, characterized in that: The determining, according to the identification information of the at least one user, identification information of an interface used by each of the at least one user in the plurality of interfaces comprises: According to the identification information of each user in the at least one user, the associated container is traversed to obtain a user object storage set corresponding to the identification information of each user; The identification information of the interface used by each user among the multiple interfaces is determined according to the user objects in the user object storage set corresponding to the identification information of each user.
5. The method for notifying interface content changes according to claim 1, characterized in that: After sending the content of the email to be sent to the mailbox of each user, the method further includes: The sending status of the email content to be sent is updated, and the creation time of the email content to be sent, the number of interfaces involved in the email content to be sent, and the identification information of the user who updates the content of the interfaces involved in the email content to be sent are recorded.
6. A notification device for interface content change, characterized in that: The device comprises: A first acquisition module, used to acquire identification information of multiple interfaces whose contents have been changed within a preset time period; A second acquisition module, configured to acquire identification information and communication address information of at least one user using the multiple interfaces according to the identification information of the multiple interfaces; A first determining module, configured to determine, according to the identification information of the at least one user, identification information of an interface used by each of the at least one user among the multiple interfaces; A second determining module, configured to determine the change content of the interface used by each user in the multiple interfaces according to the identification information of the interface used by each user in the multiple interfaces; A notification module, used for notifying each user of the change content of the interface used by each user in the multiple interfaces according to the communication address information of each user; The step of obtaining identification information of multiple interfaces whose contents have been changed within a preset time period includes: Acquire data in a first data format consisting of identification information of the multiple interfaces and change contents of the multiple interfaces within the preset time period; Converting the data in the first data format to obtain data in a second data format, and acquiring an entity set corresponding to the data in the second data format; Traversing the entity set, storing the identification information of the interface obtained through the traversal into the identification set, and storing the identification information and the changed content of the interface obtained through the traversal into the value container; The communication address information of each user includes the email address information of each user, The notifying each user of the change content of the interface used by each user in the multiple interfaces according to the communication address information of each user includes: Adding the changed content of the interface used by each user in the multiple interfaces and the email title to the email template of the custom style to generate the email content to be sent; According to the email address information of each user, the email content to be sent is sent to the mailbox of each user.
7. An electronic device, characterized in that: The device comprises: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the method for notifying the interface content change as described in any one of claims 1 to 5.
8. A computer storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the method for notifying the interface content change as claimed in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Interface change prompting method and interface change prompting system
CN105045577A
Information processing system, method and device and readable storage medium
CN111708589A