CN113779422B - Method and device for realizing relationship chain label, electronic equipment and storage medium - Google Patents

Method and device for realizing relationship chain label, electronic equipment and storage medium Download PDF

Info

Publication number
CN113779422B
CN113779422B CN202110970876.9A CN202110970876A CN113779422B CN 113779422 B CN113779422 B CN 113779422B CN 202110970876 A CN202110970876 A CN 202110970876A CN 113779422 B CN113779422 B CN 113779422B
Authority
CN
China
Prior art keywords
target
relation
label
relationship
chain label
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110970876.9A
Other languages
Chinese (zh)
Other versions
CN113779422A (en
Inventor
杨文强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110970876.9A priority Critical patent/CN113779422B/en
Publication of CN113779422A publication Critical patent/CN113779422A/en
Application granted granted Critical
Publication of CN113779422B publication Critical patent/CN113779422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure relates to a method, a device, an electronic device and a storage medium for realizing a relationship chain label, wherein the method comprises the following steps: responding to a display request of a client for a display page of a current scene, and acquiring a target user identifier to be displayed in the display page, wherein the display request comprises a current user identifier of a login client; acquiring a priority list of a relationship chain label corresponding to a current scene, wherein the relationship chain label is used for representing the association relationship between a current user identifier and a target user identifier; determining a target relationship chain label corresponding to the current user identifier and the target user identifier according to the relationship chain label in the relationship chain label priority list; and sending the target relation chain label to the client, wherein the client is used for correspondingly displaying the target relation chain label and the target user identifier in the display page. In the method, the scene and the relation chain label priority list can be flexibly configured without modifying codes, so that the stability of the service can be improved, the development efficiency is improved, and the iteration efficiency of the product is improved.

Description

Method and device for realizing relationship chain label, electronic equipment and storage medium
Technical Field
The disclosure relates to the field of computer technologies, and in particular, to a method and device for implementing a relationship chain label, an electronic device and a storage medium.
Background
In social applications, it is generally required to display relationship chain labels in pages of multiple scenes, such as "your friends", "your interests", "your fans", etc., and display the relationship chain labels on the right of nicknames of page users, so as to highlight social properties of the users, which has important meaning for further enhancing social willingness of users. A good relationship chain label can well highlight the social relationship between the current user and the display user, and the attention rate between the users can be effectively improved.
In the related art, when the relationship chain label is implemented, whether a certain relationship chain relation exists among a plurality of users is often judged by oneself in each service scene, which leads to the need of modifying codes when a new relationship chain label type is added or dropped in a certain service scene, and deployment is very complicated, and because new problems are possibly brought about when the new relationship chain label is re-uploaded, the stability of the service is influenced, and meanwhile, because the development amount is increased, the iteration efficiency of the product is also influenced to a certain extent.
Disclosure of Invention
The disclosure provides a method, a device, an electronic device and a storage medium for realizing a relationship chain label, so as to at least solve the problems of low service stability and low development efficiency in the related art. The technical scheme of the present disclosure is as follows:
According to a first aspect of an embodiment of the present disclosure, there is provided a method for implementing a relationship chain label, including:
Responding to a display request of a client for a display page of a current scene, and acquiring a target user identifier to be displayed in the display page, wherein the display request comprises a current user identifier logged in the client;
Acquiring a relation chain label priority list corresponding to the current scene, wherein the relation chain label is used for representing the association relation between the current user identifier and the target user identifier;
Determining a target relationship chain label corresponding to the current user identifier and the target user identifier according to the relationship chain label in the relationship chain label priority list;
and sending the target relation chain label to the client, wherein the client is used for correspondingly displaying the target relation chain label and the target user identifier in the display page.
Optionally, determining, according to the relationship chain label in the relationship chain label priority list, a target relationship chain label corresponding to the current user identifier and the target user identifier includes:
Sequentially calling a judging strategy corresponding to the relationship chain labels according to the priority order of the relationship chain labels in the relationship chain label priority list, wherein the judging strategy is used for determining the association relationship of the current user identification and the target user identification;
When the association relation between the current user identification and the target user identification is determined, determining a relation chain label corresponding to the association relation between the current user identification and the target user identification as a target relation chain label corresponding to the current user identification and the target user identification.
Optionally, before sending the target relationship chain label to the client, the method further includes:
Determining a target document primary key corresponding to the target relation chain label, acquiring a display document corresponding to the target document primary key, and acquiring a target display document with a language type being the current display language from the display document according to the current display language of the display page;
sending the target relationship chain label to the client, comprising:
and sending the target display text to the client, wherein the client is used for correspondingly displaying the target display text and the target user identifier in the display page.
Optionally, before obtaining the relationship chain label priority list corresponding to the current scene, the method further comprises:
the corresponding relation between the relation chain label and the text main key;
the corresponding relation between the text main key and the display text;
the correspondence of the scene to the relationship chain tag priority list.
Optionally, the method further comprises:
When the new relation chain label is received, the corresponding relation between the new relation chain label and the new document main key is configured, and the corresponding relation between the new document main key and the new display document is configured.
Optionally, the method further comprises:
and responding to a relation chain label updating request of a target scene, and updating a relation chain label priority list corresponding to the target scene.
Optionally, the updating the relationship chain label priority list corresponding to the target scene includes at least one of the following:
carrying out priority adjustment on a relation chain label priority list corresponding to the target scene;
deleting a designated relationship chain label in a relationship chain label priority list corresponding to the target scene;
and adding the relationship chain label newly added to the target scene to the appointed position of the relationship chain label priority list corresponding to the target scene.
Optionally, the method further comprises:
when the new scene is received, the corresponding relation between the new scene and the new relation chain label priority list is configured.
According to a second aspect of the embodiments of the present disclosure, there is provided an implementation apparatus of a relationship chain label, including:
The user identification acquisition module is configured to execute a display request of responding to a display page of a current scene of a client to acquire a target user identification to be displayed in the display page, wherein the display request comprises a current user identification logged in the client;
The scene tag acquisition module is configured to acquire a relationship chain tag priority list corresponding to the current scene, wherein the relationship chain tag is used for representing the association relationship between the current user identifier and the target user identifier;
the relation label determining module is configured to determine a target relation chain label corresponding to the current user identifier and the target user identifier according to the relation chain labels in the relation chain label priority list;
and the relation tag sending module is configured to send the target relation tag to the client, and the client is used for correspondingly displaying the target relation tag and the target user identifier in the display page.
Optionally, the relationship tag determining module includes:
The relation judging unit is configured to execute a judging strategy corresponding to the relation chain labels according to the priority order of the relation chain labels in the relation chain label priority list, and the judging strategy is used for determining the association relation of the current user identification and the target user identification;
and the relationship label determining unit is configured to determine a relationship chain label corresponding to the association relationship between the current user identifier and the target user identifier as a target relationship chain label corresponding to the current user identifier and the target user identifier when determining the association relationship between the current user identifier and the target user identifier.
Optionally, the apparatus further includes:
The display document acquisition module is configured to execute the target document primary key corresponding to the target relation chain label, acquire a display document corresponding to the target document primary key, and acquire a target display document with a language type being the current display language from the display document according to the current display language of the display page;
The relation tag sending module includes:
and the display text sending unit is configured to send the target display text to the client, and the client is used for correspondingly displaying the target display text and the target user identifier in the display page.
Optionally, the apparatus is further configured with:
the corresponding relation between the relation chain label and the text main key;
the corresponding relation between the text main key and the display text;
the correspondence of the scene to the relationship chain tag priority list.
Optionally, the apparatus further includes:
The new label configuration module is configured to execute the configuration of the corresponding relation between the new relation chain label and the new document main key and the configuration of the corresponding relation between the new document main key and the new display document when the new relation chain label is received.
Optionally, the apparatus further includes:
And the target scene updating module is configured to execute updating of the relation chain label priority list corresponding to the target scene in response to the relation chain label updating request of the target scene.
Optionally, the target scene update module includes at least one of:
The priority adjustment unit is configured to execute priority adjustment on the relation chain label priority list corresponding to the target scene;
A tag deleting unit configured to perform deletion of a specified relationship chain tag in a relationship chain tag priority list corresponding to the target scene;
And a tag adding unit configured to add the relationship chain tag newly added by the target scene to a designated position of a relationship chain tag priority list corresponding to the target scene.
Optionally, the apparatus further includes:
The new scene configuration module is configured to execute the configuration of the corresponding relation between the new scene and the new relation chain label priority list when the new scene is received.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
A processor;
A memory for storing the processor-executable instructions;
Wherein the processor is configured to execute the instructions to implement the method of implementing a relationship chain tag as described in the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the method of implementing a relationship chain label as described in the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program or computer instructions which, when executed by a processor, implement the method of implementing the relationship chain label of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
In the embodiment of the disclosure, since the scene and the relationship chain label priority list can be preconfigured, when receiving the display request of the client for the display page of the current scene, the target user identifier to be displayed in the display page is obtained, the relationship chain label priority list corresponding to the current scene is obtained, the target relationship chain label corresponding to the current user identifier and the target user identifier is determined, flexible configuration of the scene and the relationship chain label priority list is realized, and codes are not required to be modified when the scene and the corresponding relationship chain label priority list are required to be modified, so that the stability of service can be improved, the development efficiency is improved, and the iteration efficiency of products is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a diagram of an implementation architecture of a relational chain tag in the related art;
FIG. 2 is a flowchart illustrating a method of implementing a relationship chain tag, according to an example embodiment;
FIG. 3 is an implementation architecture diagram of a relationship chain tag in an embodiment of the present disclosure;
FIG. 4 is a block diagram illustrating an implementation of a relationship chain tag according to an example embodiment;
Fig. 5 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is a schematic diagram of a related art implementation of a relationship link label, as shown in fig. 1, in the implementation of the relationship link label, whether a plurality of users have a certain relationship link relationship is often determined in each service scenario by self, and then the determination, the splicing and the display are performed according to a priority order specified by the service scenario. In the same scene, if a new relation chain relation is needed to be added in the priority list, the codes are needed to be modified again, corresponding new relation judgment logic is developed, and the new relation is added in the priority list. When a relationship chain label is needed to be displayed in a new scene, the judgment logic corresponding to the new business scene is required to be rewritten, when the relationship chain relationship in a certain priority list is needed to be off line, the code is also required to be modified, the logic is required to be recalculated, and then the function can be realized.
The related technical scheme is equivalent to that each business scene processes the current relation chain label requirement, and is a method for realizing the relation chain label which is solidified and stiff in comparison. When the label type of the relation chain is newly added or downloaded in a certain business scene, the code needs to be modified, the online deployment is very complicated, new problems possibly caused by the online re-entry can influence the stability of the service, and meanwhile, the iteration efficiency of the product is also influenced to a certain extent due to the increase of the development quantity. In order to solve the technical problem, the embodiment of the disclosure provides the following technical scheme.
Fig. 2 is a flowchart of a method for implementing a relationship chain label according to an exemplary embodiment, and as shown in fig. 2, the method for implementing a relationship chain label is used in an electronic device such as a server, and includes the following steps.
In step S21, in response to a display request of a client for a display page of a current scene, a target user identifier to be displayed in the display page is obtained, where the display request includes a current user identifier logged in the client.
When a client receives a display request of a display page of a current scene, acquiring content to be displayed of the page to be displayed, and acquiring a target user identifier corresponding to the content to be displayed, so as to acquire the target user identifier to be displayed in the display page. For example, when the display page of the current scene is a message page, a message list composed of the messages to be displayed in the message page is obtained, and the target user identifier corresponding to each message in the message list is obtained, so that the target user identifier to be displayed in the message page is obtained.
In step S22, a priority list of a relationship link label corresponding to the current scene is obtained, where the relationship link label is used to characterize an association relationship between the current user identifier and the target user identifier.
And acquiring a relationship chain label priority list corresponding to the current scene from the corresponding relationship between the scene and the relationship chain label priority list. The corresponding relation between the scene and the relation chain label priority list can be configured in advance through a label configuration platform. The priority order of each relationship chain label is determined in the relationship chain label priority list. The relationship chain tag may include: "Special attention", "your friends", "your attention", "your fan", etc.
In step S23, a target relationship chain label corresponding to the current user identifier and the target user identifier is determined according to the relationship chain labels in the relationship chain label priority list.
And sequentially calling a judging strategy corresponding to each relationship chain label according to the priority order of the relationship chain labels in the relationship chain label priority list, judging whether the current user label and the target user label have the association relation corresponding to the judged relationship chain label, if the current user label and the target user label have the association relation corresponding to the judged relationship chain label, determining the relationship chain label as the target relationship chain label corresponding to the current user label and the target user label, and if the current user label and the target user label do not have the association relation corresponding to the judged relationship chain label, continuing to judge the next relationship chain label in the relationship chain label list until the target relationship chain label corresponding to the current user label and the target user label or the relationship chain label in the relationship chain label priority list is judged to be ended. And if the relationship chain labels in the relationship chain label priority list are judged to be finished, determining that the association relationship corresponding to the relationship chain labels in the relationship chain label priority list does not exist between the current user identification and the target user identification.
In an exemplary embodiment, determining, according to the relationship chain label in the relationship chain label priority list, a target relationship chain label corresponding to the current user identifier and the target user identifier includes: sequentially calling a judging strategy corresponding to the relationship chain labels according to the priority order of the relationship chain labels in the relationship chain label priority list, wherein the judging strategy is used for determining the association relationship of the current user identification and the target user identification; when the association relation between the current user identification and the target user identification is determined, determining a relation chain label corresponding to the association relation between the current user identification and the target user identification as a target relation chain label corresponding to the current user identification and the target user identification.
The judging strategies corresponding to the relationship chain labels provide calling interfaces, and when the same relationship chain label is judged in different scenes, the judging strategies corresponding to the relationship chain label can be called to judge, so that the reuse of the judging strategies of the relationship chain label is realized, the independent deployment of the judging strategies in each scene is not needed, and the flexibility of the scene and the configuration of the relationship chain label can be improved.
Judging each relationship chain label in the relationship chain label priority list in turn according to the priority order of the relationship chain labels in the relationship chain label priority list, when judging one of the relationship chain labels, invoking a judging strategy corresponding to the relationship chain label to judge whether the current user label and the target user label have the association relation corresponding to the relationship chain label, when determining that the current user label and the target user label have the association relation corresponding to one relationship chain label, stopping judging the relationship chain label behind the relationship chain label in the relationship chain label list, and determining the relationship chain label as the target relationship chain label corresponding to the current user label and the target user label. When judging whether the current user identifier and the target user identifier have an association relationship corresponding to one of the relationship chain labels through a judging strategy, acquiring a user identifier list which has the association relationship corresponding to the relationship chain label with the current user identifier, inquiring whether the current user identifier and the target user identifier are provided in the user identifier list, if the target user identifier is provided in the user identifier list, determining that the current user identifier and the target user identifier have the association relationship corresponding to the relationship chain label, and if the target user identifier is not provided in the user identifier list, determining that the current user identifier and the target user identifier do not have the association relationship corresponding to the relationship chain label.
For example, the list of relational link label priorities corresponding to the message page is: the method comprises the steps that a judgment strategy of special attention is called according to a priority order, whether the current user identifier and the target user identifier have an association relationship of special attention or not is judged, and if the judgment strategy returns to be null, the current user identifier and the target user identifier are determined to have no association relationship of special attention; and then, invoking a judgment strategy of your friend to judge whether the current user identifier and the target user identifier have an association relationship of your friend, if the judgment strategy returns yes, determining that the current user identifier and the target user identifier have an association relationship of your friend, stopping judging the relationship chain label of your attention, and determining the relationship chain label of your friend as a target relationship chain label corresponding to the current user identifier and the target user identifier.
According to the priority order of the relationship chain labels in the relationship chain label priority list, the judgment strategies corresponding to the relationship chain labels are sequentially called to determine the target relationship chain labels corresponding to the current user identification and the target user identification, and the judgment strategies can be reused in different scenes, so that the flexibility of scene and relationship chain label configuration can be improved.
In step S24, the target relationship chain label is sent to the client, where the client is configured to display the target relationship chain label and the target user identifier in the display page correspondingly.
After the target relationship chain label is determined, the target relationship chain label can be sent to the client, and when the target user identifier is displayed in the display page, the client displays the determined relationship chain label and the target user identifier correspondingly, so that the current user can know the association relationship between the displayed target user identifier and the current user identifier.
According to the method for realizing the relationship chain label, the scene and the relationship chain label priority list can be preconfigured, when a display request of a client side to a display page of the current scene is received, a target user identification to be displayed in the display page is obtained, the relationship chain label priority list corresponding to the current scene is obtained, the target relationship chain label corresponding to the current user identification and the target user identification is determined, flexible configuration of the scene and the relationship chain label priority list is realized, and codes are not required to be modified when the scene and the corresponding relationship chain label priority list are required to be modified, so that the stability of service can be improved, the development efficiency is improved, and the iteration efficiency of products is improved.
On the basis of the above technical solution, before the target relationship chain label is sent to the client, the method further includes: determining a target document primary key corresponding to the relation chain label, acquiring a display document corresponding to the target document primary key, and acquiring a target display document with a language type being the current display language from the display document according to the current display language of the display page;
Sending the target relationship chain label to the client, comprising: and sending the target display text to the client, wherein the client is used for correspondingly displaying the target display text and the target user identifier in the display page.
The corresponding relation between the relation chain label and the document main key can be pre-configured in the label configuration platform, and the display document corresponding to the document main key is configured in the document configuration platform. One document primary key may correspond to multiple presentation documents of different language types.
After determining a target relation chain label corresponding to the current user identification and the target user identification, inquiring a document primary key corresponding to the target relation chain label from a label configuration platform, acquiring a display document corresponding to the document primary key from a document display platform, acquiring a current display language of the display page, and acquiring a target display document with a language type being the current display language from the display document. For example, the language type of the display document obtained from the document display platform through the document primary key includes chinese, english, and the like, and the current display language of the display page is chinese, then the display document whose language type is chinese may be determined as the target display document.
After the target display file is obtained, the target display file is sent to the client, and when the target user identifier is displayed in the display page, the client displays the target display file and the target user identifier correspondingly, so that the current user can know the relationship between the displayed target user identifier and the current user identifier.
Through respectively configuring the corresponding relation between the relation chain label and the document main key and the corresponding relation between the document main key and the display document, the display document with multiple language types can be flexibly configured.
On the basis of the technical scheme, before the relationship chain label priority list corresponding to the current scene is acquired, the method is further configured with: the corresponding relation between the relation chain label and the text main key; the corresponding relation between the text main key and the display text; the correspondence of the scene to the relationship chain tag priority list.
The configuration user can configure the corresponding relation between the relation chain label and the document main key in advance through the label configuration platform, configure the corresponding relation between the document main key and the display document through the document configuration platform, configure the corresponding relation between the scene and the relation chain label priority list through the label configuration platform, and the configuration user needs to configure the judgment strategy corresponding to the relation chain label at the same time, and a calling interface is provided in the judgment strategy so as to call the relation chain label when judging.
Through pre-configuring the corresponding relation between the relation chain label and the main key of the document, the corresponding relation between the main key of the document and the displayed document, and the corresponding relation between the scene and the priority list of the relation chain label, when the target relation chain label corresponding to the current user identification and the target user identification is determined, each corresponding relation is only acquired from the configuration, and is determined based on the configuration, the relation chain label is not required to be independently realized in each service scene, thereby realizing the isolation of the relation chain label and the service scene, and being capable of flexibly configuring each corresponding relation.
On the basis of the technical scheme, the method further comprises the following steps: when the new relation chain label is received, the corresponding relation between the new relation chain label and the new document main key is configured, and the corresponding relation between the new document main key and the new display document is configured.
When the new relation chain label is needed, a configuration user can configure the new relation chain label and the corresponding new document main key through the label configuration platform, and configure the corresponding relation between the new document main key corresponding to the new relation chain label and the new display document through the document configuration platform, so that the configuration user needs to configure a judging strategy corresponding to the new relation chain label at the same time, namely, the code of the judging strategy needs to be added. When the label configuration platform receives the newly added relation chain label, configuring the corresponding relation between the newly added relation chain label and the newly added document main key, configuring the corresponding relation between the newly added document main key and the newly added display document, and storing a judging strategy corresponding to the newly added relation chain label, wherein a calling interface is provided in the judging strategy, so that the calling is facilitated when the newly added relation chain label is judged.
For example, existing relationship chain labels include: when a relationship chain label is "QQ friend", a new relationship chain label "QQ friend" and a corresponding new document primary key can be added in the relationship chain label, and a new display document corresponding to the new document primary key is added in the document configuration platform, if the new document primary key is "key_ qqFriend _text", the new display document corresponding to the new document primary key is "QQ friend", and a judging strategy of the new relationship chain label "QQ friend" is added, and then each scene can call the judging strategy to judge the relationship between the target user identifier and the current user identifier "QQ friend".
When the relation chain label is newly added, the new relation chain label can be configured in the relation chain label priority list by only configuring the corresponding relation between the new relation chain label and the main key of the new document and the corresponding relation between the main key of the new document and the new display document, and judgment can be carried out based on a judgment strategy, so that flexible configuration of the new relation chain label is realized. The new relationship chain label is equivalent to the basic type of the relationship chain label, but the general logic of each subsequent scene can be realized only by adding the judging strategy of the new relationship chain label into the code.
On the basis of the technical scheme, the method further comprises the following steps: and responding to a relation chain label updating request of a target scene, and updating a relation chain label priority list corresponding to the target scene.
When the relation chain label priority list of the target scene needs to be updated, the updating can be performed through the label configuration platform, when the relation chain label updating request of the target scene is received through the label configuration platform, the relation chain label priority list of the target scene can be displayed through the label configuration platform, based on the displayed relation chain label priority list, a configuration user can update the relation chain label priority list, such as deleting a certain relation chain label, adjusting the priority order of the relation chain label, adding a new relation chain label and the like, and after the updated relation chain label priority list is obtained, the relation chain label priority list corresponding to the target scene is updated. When the priority list of the relation chain label corresponding to the target scene needs to be updated, the corresponding configuration can be directly updated without modifying codes, so that the configuration flexibility of the scene and the relation chain label is improved, and the development efficiency can be improved.
Based on the above technical solution, the updating the relationship chain tag priority list corresponding to the target scene includes at least one of the following: carrying out priority adjustment on a relation chain label priority list corresponding to the target scene; deleting a designated relationship chain label in a relationship chain label priority list corresponding to the target scene; and adding the relationship chain label newly added to the target scene to the appointed position of the relationship chain label priority list corresponding to the target scene.
The updating of the relationship chain label priority may include: at least one of adjusting the priority, deleting the designated relationship chain label and the newly added relationship chain label. For example, the target scene is a message page, and the list of the relational link label priorities corresponding to the message page is: the relationship chain label update request is a priority adjustment request, the relationship chain label is adjusted to the highest priority, and the updated relationship chain label priority list is as follows: "your attention, special attention, your friends. For another example, in the above target scenario, a new relationship link label "your vermicelli" is required, and then a relationship link label priority list corresponding to the message page may be displayed through the label configuration platform, and the configuration user may newly add the relationship link label "your vermicelli" to the relationship link label priority list based on the displayed relationship link label priority list, where the updated relationship link label priority list is: "your attention, special attention, your friends, your fan".
After the relation chain label priority list is updated by the target scene, the relation chain label under the target scene can be judged according to the updated relation chain label priority list when the relation chain label under the target scene is required to be judged, so that updating can be completed without modifying codes when the relation chain label priority list corresponding to the target scene is updated, and the flexibility of relation chain label configuration is improved.
On the basis of the technical scheme, the method further comprises the following steps: when the new scene is received, the corresponding relation between the new scene and the new relation chain label priority list is configured.
When a scene needs to be newly added, the configuration can be performed through a tag configuration platform, the tag configuration platform receives a scene newly-added request, a configuration page of the scene and the relationship chain tag is displayed, a configuration user can input the newly-added scene and a corresponding newly-added relationship chain tag priority list in the configuration page, after the newly-added scene and the relationship chain tag priority list input by the configuration user are obtained, the corresponding relationship between the newly-added scene and the newly-added relationship chain tag priority list can be configured, and then the scene can be newly added. For example, when the relationship link label needs to be displayed on the video detail page, the configuration user may add the new scene "video detail page" and the corresponding new relationship link label priority list based on the configuration page displayed on the label configuration platform, and the obtained correspondence between the new scene and the new relationship link label priority list may be: "video details page: your friends, your interests, special interests, QQ friends).
When a scene is newly added, the corresponding relation between the newly added scene and the priority list of the newly added relation chain label can be directly configured, namely the relation chain label in the newly added scene can be judged by using the judgment strategy of the relation chain label, codes are not required to be modified, a large number of code development is avoided, flexible access of the relation chain label of the service scene is realized, and the judgment strategy of each relation chain label can be completely reused.
Fig. 3 is an implementation architecture diagram of a relationship link label in an embodiment of the present disclosure, as shown in fig. 3, when a server receives a request for displaying a display page of a current scene from a client, the server obtains a relationship link label priority list of the display page from a label configuration platform, the relationship link label priority list is transmitted to a relationship link label analysis module, the relationship link label analysis module invokes a judgment policy corresponding to the relationship link label to judge, determines a target relationship link label corresponding to a current user identifier and a target user identifier, and obtains a corresponding target display document from the document configuration platform based on a target document primary key corresponding to the target relationship link label, the server returns the target display document to the client, and the client can correspondingly display the display document and the target user identifier in the display page. The corresponding relationship chain labels can be displayed on the page only by configuring the scenes and the relationship chain labels, codes are not required to be modified, the scenes with different judgment strategies for the relationship chain labels can be reused, and the flexibility of label access is improved.
FIG. 4 is a block diagram illustrating an implementation of a relationship chain tag according to an example embodiment. Referring to fig. 4, the apparatus includes a user identification acquisition module 41, a scene tag acquisition module 42, a relationship tag determination module 43, and a relationship tag transmission module 44.
The user identifier obtaining module 41 is configured to perform obtaining a target user identifier to be displayed in a display page of a current scene in response to a display request of a client, wherein the display request comprises a current user identifier logged in the client;
The scene tag obtaining module 42 is configured to obtain a relationship link tag priority list corresponding to the current scene, where the relationship link tag is used to characterize an association relationship between the current user identifier and the target user identifier;
The relationship tag determination module 43 is configured to determine a target relationship chain tag corresponding to the current user identifier and the target user identifier according to the relationship chain tags in the relationship chain tag priority list;
The relationship tag sending module 44 is configured to perform sending the target relationship tag to the client, where the client is configured to correspondingly display the target relationship tag and the target user identifier in the display page.
Optionally, the relationship tag determining module includes:
The relation judging unit is configured to execute a judging strategy corresponding to the relation chain labels according to the priority order of the relation chain labels in the relation chain label priority list, and the judging strategy is used for determining the association relation of the current user identification and the target user identification;
and the relationship label determining unit is configured to determine a relationship chain label corresponding to the association relationship between the current user identifier and the target user identifier as a target relationship chain label corresponding to the current user identifier and the target user identifier when determining the association relationship between the current user identifier and the target user identifier.
Optionally, the apparatus further includes:
The display document acquisition module is configured to execute the target document primary key corresponding to the target relation chain label, acquire a display document corresponding to the target document primary key, and acquire a target display document with a language type being the current display language from the display document according to the current display language of the display page;
The relation tag sending module includes:
and the display text sending unit is configured to send the target display text to the client, and the client is used for correspondingly displaying the target display text and the target user identifier in the display page.
Optionally, the apparatus is further configured with:
the corresponding relation between the relation chain label and the text main key;
the corresponding relation between the text main key and the display text;
the correspondence of the scene to the relationship chain tag priority list.
Optionally, the apparatus further includes:
The new label configuration module is configured to execute the configuration of the corresponding relation between the new relation chain label and the new document main key and the configuration of the corresponding relation between the new document main key and the new display document when the new relation chain label is received.
Optionally, the apparatus further includes:
And the target scene updating module is configured to execute updating of the relation chain label priority list corresponding to the target scene in response to the relation chain label updating request of the target scene.
Optionally, the target scene update module includes at least one of:
The priority adjustment unit is configured to execute priority adjustment on the relation chain label priority list corresponding to the target scene;
A tag deleting unit configured to perform deletion of a specified relationship chain tag in a relationship chain tag priority list corresponding to the target scene;
And a tag adding unit configured to add the relationship chain tag newly added by the target scene to a designated position of a relationship chain tag priority list corresponding to the target scene.
Optionally, the apparatus further includes:
The new scene configuration module is configured to execute the configuration of the corresponding relation between the new scene and the new relation chain label priority list when the new scene is received.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 5 is a block diagram of an electronic device, according to an example embodiment. For example, electronic device 500 may be provided as a server. Referring to fig. 5, electronic device 500 includes a processing component 522 that further includes one or more processors and memory resources represented by memory 532 for storing instructions, such as applications, executable by processing component 522. The application programs stored in the memory 532 may include one or more modules each corresponding to a set of instructions. Further, the processing component 522 is configured to execute instructions to perform the method of implementing the relationship chain tag described above.
The electronic device 500 may also include a power component 526 configured to perform power management of the electronic device 500, a wired or wireless network interface 550 configured to connect the electronic device 500 to a network, and an input output (I/O) interface 558. The electronic device 500 may operate based on an operating system stored in the memory 532, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
In an exemplary embodiment, a computer-readable storage medium is also provided, such as memory 532, comprising instructions executable by processing component 522 of electronic device 500 to perform a method of implementing the relationship chain tag described above. Alternatively, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program or computer instructions which, when executed by a processor, implement the method of implementing a relationship chain label as described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (17)

1. The method for realizing the relation chain label is characterized by comprising the following steps:
Responding to a display request of a client for a display page of a current scene, and acquiring a target user identifier to be displayed in the display page, wherein the display request comprises a current user identifier logged in the client;
Acquiring a relation chain label priority list corresponding to the current scene, wherein the relation chain label is used for representing the association relation between the current user identifier and the target user identifier;
Determining a target relationship chain label corresponding to the current user identifier and the target user identifier according to the relationship chain label in the relationship chain label priority list;
The target relation chain label is sent to the client, and the client is used for correspondingly displaying the target relation chain label and the target user identifier in the display page;
The determining, according to the relationship chain label in the relationship chain label priority list, a target relationship chain label corresponding to the current user identifier and the target user identifier includes:
Sequentially calling a judging strategy corresponding to the relationship chain labels according to the priority order of the relationship chain labels in the relationship chain label priority list, wherein the judging strategy is used for determining the association relationship of the current user identification and the target user identification;
When the association relation between the current user identification and the target user identification is determined, determining a relation chain label corresponding to the association relation between the current user identification and the target user identification as a target relation chain label corresponding to the current user identification and the target user identification.
2. The method of claim 1, further comprising, prior to sending the target relationship chain label to the client:
Determining a target document primary key corresponding to the target relation chain label, acquiring a display document corresponding to the target document primary key, and acquiring a target display document with a language type being the current display language from the display document according to the current display language of the display page;
sending the target relationship chain label to the client, comprising:
and sending the target display text to the client, wherein the client is used for correspondingly displaying the target display text and the target user identifier in the display page.
3. The method of claim 2, further comprising, prior to obtaining the list of relationship chain label priorities corresponding to the current scene:
the corresponding relation between the relation chain label and the text main key;
the corresponding relation between the text main key and the display text;
the correspondence of the scene to the relationship chain tag priority list.
4. A method according to claim 3, further comprising:
When the new relation chain label is received, the corresponding relation between the new relation chain label and the new document main key is configured, and the corresponding relation between the new document main key and the new display document is configured.
5. A method according to claim 3, further comprising:
and responding to a relation chain label updating request of a target scene, and updating a relation chain label priority list corresponding to the target scene.
6. The method of claim 5, wherein updating the list of relationship chain tag priorities corresponding to the target scene comprises at least one of:
carrying out priority adjustment on a relation chain label priority list corresponding to the target scene;
deleting a designated relationship chain label in a relationship chain label priority list corresponding to the target scene;
and adding the relationship chain label newly added to the target scene to the appointed position of the relationship chain label priority list corresponding to the target scene.
7. A method according to claim 3, further comprising:
when the new scene is received, the corresponding relation between the new scene and the new relation chain label priority list is configured.
8. An apparatus for implementing a relationship chain label, comprising:
The user identification acquisition module is configured to execute a display request of responding to a display page of a current scene of a client to acquire a target user identification to be displayed in the display page, wherein the display request comprises a current user identification logged in the client;
The scene tag acquisition module is configured to acquire a relationship chain tag priority list corresponding to the current scene, wherein the relationship chain tag is used for representing the association relationship between the current user identifier and the target user identifier;
the relation label determining module is configured to determine a target relation chain label corresponding to the current user identifier and the target user identifier according to the relation chain labels in the relation chain label priority list;
the relation tag sending module is configured to send the target relation tag to the client, and the client is used for correspondingly displaying the target relation tag and the target user identifier in the display page;
the relationship tag determination module includes:
The relation judging unit is configured to execute a judging strategy corresponding to the relation chain labels according to the priority order of the relation chain labels in the relation chain label priority list, and the judging strategy is used for determining the association relation of the current user identification and the target user identification;
and the relationship label determining unit is configured to determine a relationship chain label corresponding to the association relationship between the current user identifier and the target user identifier as a target relationship chain label corresponding to the current user identifier and the target user identifier when determining the association relationship between the current user identifier and the target user identifier.
9. The apparatus of claim 8, wherein the apparatus further comprises:
The display document acquisition module is configured to execute the target document primary key corresponding to the target relation chain label, acquire a display document corresponding to the target document primary key, and acquire a target display document with a language type being the current display language from the display document according to the current display language of the display page;
The relation tag sending module includes:
and the display text sending unit is configured to send the target display text to the client, and the client is used for correspondingly displaying the target display text and the target user identifier in the display page.
10. The apparatus according to claim 9, characterized in that the apparatus is further configured with:
the corresponding relation between the relation chain label and the text main key;
the corresponding relation between the text main key and the display text;
the correspondence of the scene to the relationship chain tag priority list.
11. The apparatus of claim 10, wherein the apparatus further comprises:
The new label configuration module is configured to execute the configuration of the corresponding relation between the new relation chain label and the new document main key and the configuration of the corresponding relation between the new document main key and the new display document when the new relation chain label is received.
12. The apparatus of claim 10, wherein the apparatus further comprises:
And the target scene updating module is configured to execute updating of the relation chain label priority list corresponding to the target scene in response to the relation chain label updating request of the target scene.
13. The apparatus of claim 12, wherein the target scene update module comprises at least one of:
The priority adjustment unit is configured to execute priority adjustment on the relation chain label priority list corresponding to the target scene;
A tag deleting unit configured to perform deletion of a specified relationship chain tag in a relationship chain tag priority list corresponding to the target scene;
And a tag adding unit configured to add the relationship chain tag newly added by the target scene to a designated position of a relationship chain tag priority list corresponding to the target scene.
14. The apparatus of claim 10, wherein the apparatus further comprises:
The new scene configuration module is configured to execute the configuration of the corresponding relation between the new scene and the new relation chain label priority list when the new scene is received.
15. An electronic device, comprising:
A processor;
A memory for storing the processor-executable instructions;
Wherein the processor is configured to execute the instructions to implement the method of implementing a relationship chain tag of any of claims 1 to 7.
16. A computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the method of implementing a relationship chain tag as claimed in any one of claims 1 to 7.
17. A computer program product comprising a computer program or computer instructions which, when executed by a processor, implement a method of implementing a relationship chain label as claimed in any one of claims 1 to 7.
CN202110970876.9A 2021-08-23 Method and device for realizing relationship chain label, electronic equipment and storage medium Active CN113779422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110970876.9A CN113779422B (en) 2021-08-23 Method and device for realizing relationship chain label, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110970876.9A CN113779422B (en) 2021-08-23 Method and device for realizing relationship chain label, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113779422A CN113779422A (en) 2021-12-10
CN113779422B true CN113779422B (en) 2024-06-21

Family

ID=

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330657A (en) * 2015-06-19 2017-01-11 阿里巴巴集团控股有限公司 Friend processing method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330657A (en) * 2015-06-19 2017-01-11 阿里巴巴集团控股有限公司 Friend processing method and device

Similar Documents

Publication Publication Date Title
CN110310034B (en) Service arrangement and business flow processing method and device applied to SaaS
CN111970198A (en) Service routing method, device, electronic equipment and medium
CN110659206B (en) Simulation architecture establishment method and device based on micro-service, medium and electronic equipment
US11244153B2 (en) Method and apparatus for processing information
EP4141797A1 (en) Method and apparatus of processing information, method and apparatus of rendering image, and electronic device
CN114416075A (en) Service processing method and device
CN113779422B (en) Method and device for realizing relationship chain label, electronic equipment and storage medium
CN111582996B (en) Service information display method and device
CN114969603A (en) 5G message-based picture acquisition and picture generation method and system
CN113779422A (en) Method and device for realizing relation chain label, electronic equipment and storage medium
CN112947918A (en) Data display method and device
CN113760581A (en) MQTT-based method and system for synchronizing attribute information of intelligent terminal
CN111131354B (en) Method and apparatus for generating information
CN112000313A (en) Request response method, device, equipment and storage medium
CN111078215A (en) Software product application method and device, storage medium and electronic equipment
CN106844502B (en) Data consistency processing method and equipment
CN111414566A (en) Method and device for pushing information
CN113821750B (en) Page data processing method and system, electronic equipment and readable storage medium
CN115577200B (en) Page loading method, device, equipment and storage medium
CN117883789B (en) Data acquisition method, apparatus, device, readable storage medium, and program product
CN114741124B (en) Style information determining method, style information determining device, electronic equipment and storage medium
CN112437479B (en) Hotspot connection method and device
CN113472631B (en) Reminding information processing method and device, electronic equipment and storage medium
CN113761039A (en) Method and device for processing information
CN116738077A (en) Information acquisition method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant