Method for generating 5G message template, 5G message transmission method and electronic equipment
By selecting and editing components from the code editor to generate personalized 5G message templates, the problem of insufficient types of existing 5G message templates is solved, and the diversified needs of B-side users are met.
Patent Information
- Application Number
- CN202411577430.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-03-21
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing 5G message template types are not diverse enough to meet the diversified needs of B-side users for message types.
Generate a personalized 5G message template by determining the target component from the various components provided by the code editor, and performing code editing and visual editing.
It has realized the generation of various personalized 5G message templates, which meets the diverse needs of B-side users and increases users' willingness to use 5G messages.
Smart Images

Figure CN119670709A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of Internet, and specifically relates to a method for generating a 5G message template, a 5G message transmission method and an electronic device. Background Art
[0002] 5G messages have received increasing attention because they support more media formats and have richer forms of expression.
[0003] At present, downlink 5G messages generally only support a few fixed message types (for example, cards, text, etc.). B-side users can only select one message type from these fixed message types as a template on the platform, and can only send 5G messages according to the specific format requirements of the selected template (for example, selecting materials, filling in titles, etc.).
[0004] With the popularization of 5G messages, B-side users' demands for message types will inevitably diversify, and a new method for generating 5G message templates is needed to support more types of 5G messages. Summary of the invention
[0005] The embodiments of the present application provide a method for generating a 5G message template, a 5G message transmission method and an electronic device, which can solve the problem that the types of 5G message templates used for sending related technical messages are not diverse enough.
[0006] In a first aspect, an embodiment of the present application provides a method for generating a 5G message template, including: Determine at least one target component from multiple components provided by the code editor; Performing target processing on the at least one target component to obtain a personalized 5G message template, wherein the target processing includes at least one of code editing processing and visual editing processing; Among them, the personalized 5G message template is used to generate personalized 5G messages.
[0007] In a second aspect, a 5G message delivery method is provided, including: Send a target request to the server; Receiving a 5G message sent by the server in response to the target request; Among them, the 5G message is obtained based on a personalized 5G message template; the personalized 5G message template is a template obtained by performing target processing on the components provided by the code editor, and the target processing includes at least one of code editing processing and visual editing processing.
[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect or the second aspect are implemented.
[0009] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed, the steps of the method described in the first aspect or the second aspect are implemented.
[0010] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the method described in the first aspect or the second aspect.
[0011] In an embodiment of the present application, at least one target component is determined from a plurality of components provided by a code editor; target processing is performed on the at least one target component to obtain a personalized 5G message template, wherein the target processing includes at least one of code editing processing and visual editing processing; wherein the personalized 5G message template is used to generate a personalized 5G message. In this way, by determining the target component from a plurality of components and performing at least one of code editing processing and visual editing processing on the target component, various personalized 5G message templates can be obtained, rather than several fixed 5G message templates, which can solve the problem that the types of 5G message templates used for sending related technical messages are not diverse enough. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0013] Figure 1 It is a flowchart of a method for generating a 5G message template provided in an embodiment of the present application; Figure 2 It is a flowchart of another method for generating a 5G message template provided in an embodiment of the present application; Figure 3 It is a flowchart of another method for generating a 5G message template provided in an embodiment of the present application; Figure 4 It is a flow chart of a 5G message transmission method provided by an embodiment of the present application; Figure 5-1is a schematic diagram of an exemplary solution architecture involved in the embodiments of the present application; Figure 5-2 This is a schematic diagram of an example architecture design of the editing function in an embodiment of the present application; Figure 5-3 is a schematic diagram of an example data structure of a component tree in an embodiment of the present application; Figure 5-4 is a schematic diagram of using a mapping function to perform code editing processing in an embodiment of the present application; Figure 6 is a schematic diagram of compliance verification in an embodiment of the present application; Figure 7-1 It is a structural block diagram of a device for generating a 5G message template provided in an embodiment of the present application; Figure 7-2 It is a structural block diagram of a 5G message transmission device provided in an embodiment of the present application; Figure 8 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0014] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0015] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0016] The method for generating a 5G message template provided in the embodiment of the present application is different from the traditional 5G message template: the traditional message template has only a few fixed forms to choose from when creating (such as pictures, texts, cards, articles), and users must fill in the relevant forms according to the existing requirements. Users cannot customize the 5G message style and interactive functions according to their own needs. In the embodiment of the present application, users can process components according to their own needs to obtain a 5G message template that meets their needs, such as visually editing components, or code editing to obtain a customized 5G message template, which can increase users' willingness to use 5G messages and meet more diverse needs of users (such as B-side users).
[0017] The method for generating a 5G message template provided in an embodiment of the present application can be executed by an electronic device. The electronic device can be a server, such as an independent physical server or a cloud server capable of cloud computing.
[0018] The method for generating a 5G message template provided in an embodiment of the present application can be used to obtain a personalized 5G message template for subsequently pushing personalized 5G messages to users.
[0019] Figure 1 : is a flowchart of a method for generating a 5G message template provided in an embodiment of the present application. Figure 1 , a method for generating a 5G message template provided in an embodiment of the present application may include: Step 110, determining at least one target component from a plurality of components provided by the code editor; Step 120, performing target processing on the at least one target component to obtain a personalized 5G message template, wherein the target processing includes at least one of code editing processing and visual editing processing; Among them, the personalized 5G message template is used to generate personalized 5G messages.
[0020] In an embodiment of the present application, a variety of components can be provided through a component list. The various components can be set as needed. The various components may include: a text component, a container component, an image component, a hot zone component, and a plurality of turntable components. Among them, the hot zone component may be a component containing a hot zone. A hot zone refers to an area that can be clicked in a web page or software interface, and clicking on a hot zone triggers an interactive event. For example, advertising areas, buttons, etc. on a web page are all hot zones.
[0021] In an embodiment of the present application, the target user can access the server through a terminal device, and then operate on the visual user interface provided by the server to obtain a personalized 5G message template.
[0022] The various components provided by the code editor may be various components provided on the visual user interface. In this way, the target user may operate on the visual user interface to select the target component, and then obtain a personalized 5G message template.
[0023] In a specific embodiment of the present application, determining at least one target component from multiple components provided by the code editor in step 110 may include: receiving a first operation instruction from a target user; and determining at least one target component from multiple components provided by the code editor according to the first operation instruction. The first operation instruction may be an operation instruction for the target user to select at least one component from multiple components, and the selected at least one component is the at least one target component.
[0024] The target processing mentioned in step 120 may be a target processing triggered by a target user, that is, the target processing may be executed according to the operation instruction of the target user. Since the target processing executed on the target component may be different, the obtained personalized 5G message template may also be different.
[0025] In another specific embodiment of the present application, the target processing of the at least one target component in step 120 may include: receiving a second operation instruction from the target user; and performing the target processing on the at least one target component according to the second operation instruction. The second operation instruction may be an instruction for performing the target processing on the target component. The target processing in the embodiment of the present application may be various processing for the component, which may involve the editing processing of the component code or may not involve the editing processing of the component code, such as visual editing processing. The visual editing processing in the embodiment of the present application refers to editing processing in a visual interface, and the object of the editing processing may be various components themselves, or may be editing processing for the internal properties of the component. For example, after determining at least one target component, the relevant data of the at least one target component may be added to the component tree. Then, in the component tree presented in the form of a visual interface, the at least one target component is visually edited. The visual editing processing may include component movement processing, component level modification, component deletion, and component copying. In the case of selecting a specified component from multiple target components, the specified component may also be visually edited, including: adjusting the style of the specified component, adjusting the interactive event of the specified component, and adjusting the associated data of the specified component.
[0026] After obtaining the personalized 5G message template, the electronic device (such as a server) can send a personalized 5G message based on the personalized 5G message template. Exemplarily, the method for generating a 5G message template provided in the embodiment of the present application can be executed by a server, and a subscription account platform, a server, and a chat control (such as Chatbot H5) can be deployed in the server. The subscription account platform can be oriented to the target user (i.e., the user who operates the component to obtain a personalized 5G message template), and the target user can perform various target processing through the subscription account platform. The server can be a data storage end, and the chat control can be oriented to the chat user. After the target user obtains the personalized 5G message template through the subscription account platform, it can be stored in the server, and the subsequent chat control can send a personalized 5G message to the chat user based on the personalized 5G message template. In this way, it can be ensured that the 5G messages obtained by the chat user are no longer the traditional fixed 5G messages, but 5G messages after customized processing by the target user, and the 5G messages received by the chat user can change with the change of the customized processing of the target user, which greatly improves the flexibility and can obtain various personalized 5G messages.
[0027] The target user in the embodiment of the present application may be a user for an enterprise, that is, a B-end user. The chat user may be a C-end user.
[0028] In an embodiment of the present application, at least one target component is determined from a plurality of components provided by a code editor; target processing is performed on the at least one target component to obtain a personalized 5G message template, wherein the target processing includes at least one of code editing processing and visual editing processing; wherein the personalized 5G message template is used to generate a personalized 5G message. In this way, by determining the target component from a plurality of components and performing at least one of code editing processing and visual editing processing on the target component, various personalized 5G message templates can be obtained, rather than several fixed 5G message templates, which can solve the problem that the types of 5G message templates used for sending related technical messages are not diverse enough.
[0029] It should be understood that in an embodiment of the present application, in the process of performing target processing on the at least one target component in step 120 to obtain a personalized 5G message template, the at least one target component can be subjected to only code editing processing to obtain a personalized 5G message template, or the at least one target component can be subjected to only visual editing processing to obtain a personalized 5G message template, or the at least one target component can be subjected to visual editing and code editing processing successively to obtain a personalized 5G message template.
[0030] The process of obtaining the 5G message template is further explained below by way of example.
[0031] Figure 2 This is a flowchart of a method for generating a 5G message template provided in an embodiment of the present application. Figure 2 In the step, the at least one target component is subjected to code editing processing to obtain a personalized 5G message template. Figure 2 , a method for generating a 5G message template provided in an embodiment of the present application may include: Step 210, determining at least one target component from a plurality of components provided by the code editor; Step 220, obtaining a default code for the at least one target component and a mapping function code for the at least one target component, wherein the mapping function code is obtained by editing and modifying the default code; Step 230, comparing the mapping function code with the default code; Step 240, when the same field name exists in the default code, overwrite the data of the same field name in the default code with the data of the same field name in the mapping function code to obtain a personalized 5G message template; Among them, the personalized 5G message template is used to generate personalized 5G messages.
[0032] In an embodiment of the present application, the method is executed by a server, which includes a chat control (for example, a Chatbot H5 control, referred to as a CH5 control); after obtaining the personalized 5G message template, the chat control in the server can also send personalized 5G messages based on the personalized 5G message template.
[0033] In the embodiment of the present application, although the components provided by the code editor can achieve diversity through functional iteration, they are still unable to cover the diverse needs of all customers. Through the application of mapping functions, customized functions can be implemented on the platform directly by writing code, which can solve the urgent needs of users for new needs and make users' innovations in their own 5G messages more diversified. Moreover, the new form of 5G message templates no longer requires manpower to be invested in development, testing, and online work on the subscription platform side. Only a small amount of manpower is required to maintain the mapping function. This simplifies the difficulty of maintaining the entire system and greatly speeds up the efficiency of responding to user needs.
[0034] Figure 3 This is a flowchart of a method for generating a 5G message template provided in an embodiment of the present application. Figure 3 In the step, at least one target component is visually edited to obtain a personalized 5G message template. Figure 3 , a method for generating a 5G message template provided in an embodiment of the present application may include: Step 310, determining at least one target component from a plurality of components provided by the code editor; Step 320, adding the relevant data of the at least one target component to a component tree; wherein the component tree can be used to represent the relationship between components; Step 330, selecting a designated component from the at least one target component in the component tree presented in the form of a visual interface; It should be understood that, in the embodiment of the present application, before executing step 330, at least one of the following visual editing processes can be performed in the component tree presented in the form of a visual interface: component movement, component level modification, component deletion, and component copying. These processes are all editing processes at the component level. Step 330 is an editing process for the internal properties of the component.
[0035] Step 340, performing the following visual editing processing on the designated component: adjusting the style of the designated component, adjusting the interaction event of the designated component, and adjusting the associated data of the designated component to obtain a personalized 5G message template; Among them, the personalized 5G message template is used to generate personalized 5G messages.
[0036] In an embodiment of the present application, the method is executed by a server, and the server includes a chat control; after obtaining the personalized 5G message template, the chat control in the server can also send a personalized 5G message based on the personalized 5G message template.
[0037] In an embodiment of the present application, the relationship between components is visualized as a component tree, and various visual editing and processing operations can be implemented through the component tree. Users (such as B-side users) can directly operate related components on the visual interface (such as drag and drop operations) to generate new message templates that meet their own business needs. The data associated with the component tree can be serialized and transferred to the database for storage. There is no need to create additional fields for each component when building a table on the back end. You only need to save the entire component tree. Moreover, various additional functions including interactive functions can be directly configured for each component to solve the limitations of existing message template editing and accelerate the iteration of users' own message template functions. Since the relevant technology can only create blank templates through the developer interface, use interface tools to build and pass parameters, and there is no visualization tool, it is easy to make mistakes during editing, which affects efficiency. The embodiment of the present application uses a visual interface to perform visual editing, which can greatly reduce the probability of errors and improve processing efficiency.
[0038] It should be understood that in the embodiments of the present application, for example Figure 1-Figure 3In the embodiment shown, the personalized 5G message templates can all be 5G message templates verified by the control platform, and the control platform is a platform for verifying illegal content. In this way, by controlling the personalized 5G message templates, non-compliant materials or interactions can be prevented from appearing, and criminals can also be prevented from implanting illegal content into the platform through code editing.
[0039] Figure 4 : is a flow chart of a 5G message transmission method provided by an embodiment of the present application. Figure 4 , a 5G message transmission method provided in an embodiment of the present application may include: Step 410, sending a target request to the server; Step 420, receiving a 5G message sent by the server in response to the target request; Among them, the 5G message is obtained based on a personalized 5G message template; the personalized 5G message template is a template obtained by performing target processing on the components provided by the code editor, and the target processing includes at least one of code editing processing and visual editing processing.
[0040] The target processing in the embodiment of the present application can be various processing for components, which may involve editing processing of component codes or may not involve editing processing of component codes, such as visual editing processing. The visual editing processing in the embodiment of the present application refers to editing processing in a visual interface, and the object of editing processing can be various components themselves, or editing processing can be performed on the properties inside the component. For example, after determining at least one target component, the relevant data of the at least one target component can be added to the component tree. Then, in the component tree presented in the form of a visual interface, the at least one target component is visually edited. The visual editing processing may include component movement processing, component level modification, component deletion, and component copying. In the case of selecting a specified component from multiple target components, the specified component can also be visually edited, including: adjusting the style of the specified component, adjusting the interactive events of the specified component, and adjusting the associated data of the specified component.
[0041] In addition, the personalized 5G message templates in the embodiments of the present application can all be 5G message templates verified by the control platform, and the control platform is a platform for verifying illegal content. In this way, by controlling the personalized 5G message templates, non-compliant materials or interactions can be prevented from appearing, and criminals can also be prevented from implanting illegal content into the platform through code editing.
[0042] In an embodiment of the present application, a target request is sent to a server, and a 5G message sent by the server in response to the target request is received; wherein the 5G message is obtained based on a personalized 5G message template; the personalized 5G message template is a template obtained by performing target processing on components provided by a code editor, and the target processing includes code editing processing. In this way, since the personalized 5G message template is a template obtained by performing target processing on components provided by a code editor, and the target processing includes at least one of code editing processing and visual editing processing, it can solve the problem that the types of 5G message templates used for sending related technical messages are not diverse enough.
[0043] The 5G message transmission method in the embodiment of the present application can be executed by a target device, and the target device can be a terminal device, such as a mobile phone, a tablet, etc.
[0044] In the 5G message transmission method provided in the embodiment of the present application, the detailed process of performing target processing on the components provided by the code editor can be referred to the above description and will not be repeated here.
[0045] Below, taking the example of a 5G message template generated by a server, and a subscription account platform, a server, and a chat control (such as Chatbot H5) deployed in the server, the technical solution of the embodiment of the present application is further explained. It should be understood that the subscription account platform, the server, and the chat control (such as Chatbot H5) can be deployed in the same server or in different servers. In the case where the subscription account platform, the server, and the chat control (such as Chatbot H5) are deployed in different servers, each of the subscription account platform, the server, and the chat control can be deployed on a separate server, and any two of the subscription account platform, the server, and the chat control can also be deployed on the same server, and the remaining one is deployed on another server. The embodiment of the present application does not limit the specific deployment of these three parties.
[0046] The following is a further explanation using the chat control Chatbot H5 (CH5 for short) as an example. In the embodiment of the present application, a new 5G message template editing mechanism is provided, which integrates the code editor (such as a low-code editor) with the subscription account platform and the CH5 end. The B-end user can directly drag and drop the relevant components in the visual interface to generate a new message template that meets their own business needs. By directly configuring each component to generate the interactive function of the template, the limitations of the existing message template editing are solved, and the iteration of the B-end user's own message template function is accelerated.
[0047] Figure 5-1 Schematic diagram of an exemplary solution architecture involved in the embodiments of the present application. Figure 5-1In this embodiment of the present application, based on the subscription account platform, a function of editing 5G messages with low code is added. When users create and edit 5G message templates, they can select low-code components that meet their needs and drag and edit them to combine them into the 5G message content they need, and set interactive events on related components (such as jumping pages, launching apps, making phone calls, etc.). After the user completes the editing, the subscription account platform submits the component information edited by the user to the background server for storage. When the message template is sent down, the relevant component information can be sent down to the CH5 end together through the Message Queuing Telemetry Transport (MQTT). The CH5 end reorganizes the 5G message to be displayed to the B-end user based on the component information.
[0048] The following further discusses the subscription account platform and CH5 end respectively.
[0049] Subscription account platform: Provides the function of editing 5G messages with low code. When users create / edit 5G messages, they can choose the low code mode, select components that meet business needs for arrangement and combination, and then configure the interaction logic of the components (you can choose the configured interaction logic or make a small amount of code editing). When submitting the message template for review, the components and related interaction configurations will be serialized into specific text and saved in the database, which can be located on the backend server. The editing function can include three modules: component list, component tree configuration, and component editing.
[0050] An example architecture design for editing functionality is as follows Figure 5-2 See Figure 5-2 The component list may include multiple types of text components, container components, image components, hotspot components, and turntable components. Among them, the hotspot component may be a component that contains a hotspot. A hotspot is a clickable area in a web page or software interface. Clicking on a hotspot triggers an interactive event. For example, advertising areas and buttons on a web page are all hotspots.
[0051] Each time a user selects a component in the component list, data related to the component will be generated and added to the component tree. The component tree is displayed in the form of a visual interface. Users can edit the component tree data directly in the component tree or the visual preview interface, such as changing the position of a component in the component tree, changing the component hierarchy, deleting components, etc. For example, after adding the relevant data of the image component to the component tree, you can choose to move the image component, delete the image component, or copy the image component in the component tree displayed in the visual interface. After further selecting the image component in the component tree, you can also further modify the internal properties of the component, such as editing the component style, editing the interaction events, such as editing the associated data of the component. The associated data of a component can be data associated with various parts of the displayed component, such as various display objects in the picture.
[0052] The data structure of the component tree is similar to the DOM tree structure in HTML. An example of the component tree data structure is Figure 5-3 As shown. Each component can contain component type, component ID, parent component ID, style, interaction events and associated data. The parent component ID refers to the ID of the parent component of the current component, which can be represented by pid.
[0053] Reference Figure 5-3 , each component is associated with each other through pid (i.e., parent component id). If the component pid is null, it means that the component is the root component. When the level to which the component belongs is changed, the pid will change accordingly. After selecting a component in the component tree, you can edit its style, interactive events, and associated data. After editing, the edited data will be displayed in the preview interface.
[0054] The styles, interactive events, and associated data edits mentioned above are all fixed-function modifications, which are limited by the page length and the professional understanding of non-software practitioners. For example, styles can only edit length, width, and height, and interactive events can only select specific events. In order to expand the capabilities of the platform, the embodiment of the present application can add a code editing function similar to the software background, allowing users with programming knowledge to modify the component tree data and interactive events. The modified content is integrated in the form of a mapping function when submitting the edited data.
[0055] Reference Figure 5-4 , the mapping function code for at least one target component (i.e. Figure 5-4 ) with the default code for at least one target component (i.e. Figure 5-4In the case where the same field name exists in the default code, the data with the same field name in the mapping function code is used to overwrite the data with the same field name in the default code.
[0056] CH5: To ensure that the 5G message styles seen by users on the preview page and CH5 are consistent, the CH5 and subscription account platforms can share the low-code component library. When the CH5 receives a message packet from the Message Queuing Telemetry Transport (MQTT) queue that contains fields related to low-code messages, the 5G message is rendered according to the data in the component tree and the interaction events corresponding to each component are initialized.
[0057] As mentioned above, the 5G message template in the embodiment of the present application may be a 5G message template verified by a control platform, where the control platform is a platform for verifying illegal content.
[0058] Since users can write a small amount of code on the low-code editor to change the interaction and style of components, if criminals modify the code to release illegal content, it will cause adverse consequences. This solution verifies the content that may violate the law (pornography, terrorism). The specific verification process is as follows: Figure 6 See Figure 6 After the user clicks submit, the server can analyze the generated component tree data and extract the HTML nodes, multimedia links and all interactive events of the message display. The display information is simulated and rendered using tools such as puppeteer and then converted into images, multimedia links are converted into file streams, and interactive events are simulated and executed to obtain the final link or app external link to jump to, etc., and uploaded to the management and control platform for review. If there is any non-compliant content, it will be rejected and the user will be prompted to modify it. In this way, the security of the content can be greatly ensured.
[0059] The embodiment of the present application can integrate the CH5 terminal, the subscription account platform and the low-code editor, which is different from the traditional 5G message template: First, the traditional message template has only a few fixed forms to choose from when creating (such as pictures, texts, cards, articles), and users must fill in the relevant forms according to the existing requirements. Users cannot customize the 5G message style and interactive functions according to their own needs. In the embodiment of the present application, when users create 5G messages, they can select components according to their own needs to combine to form a 5G message that meets their needs. Interactive functions or styles that are not within the selection range can also be customized by writing code, which can increase users' willingness to use 5G messages and meet the more diverse needs of B-side users; second, after integrating the low-code editor, the new form of 5G messages no longer requires the subscription account platform to invest manpower for development, testing, and online work, and only a small amount of manpower is required to maintain the mapping function. That is, it simplifies the difficulty of maintaining the entire system and greatly speeds up the efficiency of responding to user needs.
[0060] In the embodiments of the present application, 5G messages are no longer limited to being created in a few fixed ways through the subscription account platform. After integrating the low-code editor, users can customize 5G messages that meet their own needs, breaking through the limitations of the 5G message display form, which is conducive to stimulating users' innovation ability, improving users' willingness to use, and broadening the application boundaries of 5G messages. In addition, it is not limited to selecting existing component styles and interactive function selections. Users can customize interactions and style functions through a small amount of code, which greatly improves the freedom of 5G message creation.
[0061] Figure 7-1 : is a structural block diagram of a device for generating a 5G message template provided in an embodiment of the present application. Figure 7-1 , the device 700 for generating a 5G message template provided in the embodiment of the present application may include: a determination module 710 and a processing module 720. Among them: A determination module 710, configured to determine at least one target component from a plurality of components provided by the code editor; The processing module 720 is used to perform target processing on the at least one target component to obtain a personalized 5G message template, wherein the target processing includes at least one of code editing processing and visual editing processing; Among them, the personalized 5G message template is used to generate personalized 5G messages.
[0062] In the device for generating a 5G message template provided in an embodiment of the present application, at least one target component is determined from a plurality of components provided by a code editor; target processing is performed on the at least one target component to obtain a personalized 5G message template, and the target processing includes at least one of code editing processing and visual editing processing; wherein the personalized 5G message template is used to generate a personalized 5G message. In this way, by determining the target component from a plurality of components and performing at least one of code editing processing and visual editing processing on the target component, various personalized 5G message templates can be obtained, rather than several fixed 5G message templates, which can solve the problem that the types of 5G message templates used for sending related technical messages are not diverse enough.
[0063] In a specific embodiment, the target processing includes code editing processing. In the process of performing target processing on the at least one target component, the processing module 720 is specifically used to: obtain the default code for the at least one target component and the mapping function code for the at least one target component, the mapping function code is obtained by editing and modifying the default code; compare the mapping function code with the default code; and when there are identical field names in the default code, overwrite the data of the identical field names in the default code with the data of the identical field names in the mapping function code.
[0064] In a specific embodiment, the target processing includes visual editing processing. In the process of performing target processing on the at least one target component, the processing module 720 is specifically used to: add relevant data of the at least one target component to the component tree; and perform visual editing processing on the at least one target component in the component tree displayed in the form of a visual interface.
[0065] The visual editing process includes at least one of component movement, component level modification, component deletion and component copying.
[0066] In the component tree presented in the form of a visual interface, during the process of visually editing the at least one target component, the processing module 720 is specifically used to: select a specified component from the at least one target component in the component tree; perform the following visual editing on the specified component: adjust the style of the specified component, adjust the interactive events of the specified component, and adjust the associated data of the specified component.
[0067] Among them, the personalized 5G message template is a 5G message template verified by the management and control platform, and the management and control platform is a platform for verifying illegal content.
[0068] In a specific embodiment, in the process of determining at least one target component from multiple components provided by the code editor, the determination module 710 is specifically used to: receive a first operation instruction from a target user; and determine at least one target component from multiple components provided by the code editor based on the first operation instruction.
[0069] In a specific embodiment, during the process of performing target processing on the at least one target component, the processing module 720 is specifically used to: receive a second operation instruction from a target user; and perform target processing on the at least one target component according to the second operation instruction.
[0070] The method is executed by a server, and the server includes a chat control; after storing the personalized 5G message template, the method further includes: The chat control in the server sends a personalized 5G message based on the personalized 5G message template.
[0071] The various modules in the device for generating a 5G message template provided in the embodiment of the present application can implement the various processes implemented in the above method embodiment. The specific contents implemented by each module can be referred to the previous description, and will not be repeated here to avoid repetition.
[0072] Figure 7-2 5G message transmission device provided by the embodiment of the present application. Figure 7-2 , the 5G message transmission device 750 provided in the embodiment of the present application may include: a sending module 752 and a receiving module 754. Among them: The sending module 752 is used to send a target request to the server; The receiving module 754 is used to receive a 5G message sent by the server in response to the target request; Among them, the 5G message is obtained based on a personalized 5G message template; the personalized 5G message template is a template obtained by performing target processing on the components provided by the code editor, and the target processing includes at least one of code editing processing and visual editing processing.
[0073] In an embodiment of the present application, by determining a target component from a plurality of components and performing at least one of code editing and visual editing on the target component, various personalized 5G message templates can be obtained rather than several fixed 5G message templates, thereby solving the problem that the types of 5G message templates used for sending related technical messages are not diverse enough.
[0074] Each module in the 5G message transmission device provided in the embodiment of the present application can implement each process implemented by the above method embodiment. The specific content implemented by each module can refer to the previous description, and will not be repeated here to avoid repetition.
[0075] like Figure 8 As shown, an embodiment of the present application also provides an electronic device 800. The electronic device 800 includes: a processor 810 and a memory 820, and the memory 820 stores a program or instruction, and the program or instruction is executed by the processor 810 to implement the steps of any of the methods described above (such as a method for generating a 5G message template or a 5G message transmission method). For example, when the program is executed by the processor 810, the following process is implemented: determining at least one target component from a variety of components provided by a code editor; performing target processing on the at least one target component to obtain a personalized 5G message template, and the target processing includes at least one of code editing processing and visual editing processing; wherein the personalized 5G message template is used to generate a personalized 5G message. In this way, by determining the target component from a variety of components and performing at least one of code editing processing and visual editing processing on the target component, various personalized 5G message templates can be obtained, rather than several fixed 5G message templates, which can solve the problem that the types of 5G message templates used for sending related technical messages are not diverse enough.
[0076] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the method for generating a 5G message template or the steps of each embodiment of the 5G message transmission method are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0077] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0078] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0079] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0080] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0081] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0082] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for generating a 5G message template, characterized in that: include: Determine at least one target component from multiple components provided by the code editor; Performing target processing on the at least one target component to obtain a personalized 5G message template, wherein the target processing includes at least one of code editing processing and visual editing processing; Among them, the personalized 5G message template is used to generate personalized 5G messages.
2. The method according to claim 1, characterized in that The target processing includes code editing processing; the target processing of the at least one target component includes: Acquire a default code for the at least one target component and a mapping function code for the at least one target component, wherein the mapping function code is obtained by editing and modifying the default code; Comparing the mapping function code with the default code; When the same field name exists in the default code, the data of the same field name in the mapping function code is used to overwrite the data of the same field name in the default code.
3. The method according to claim 1, characterized in that The target processing includes visual editing processing; the target processing of the at least one target component includes: Adding relevant data of the at least one target component to the component tree; In the component tree presented in the form of a visual interface, visual editing is performed on the at least one target component.
4. The method according to claim 3, characterized in that The visual editing process includes at least one of component movement, component level modification, component deletion and component copying.
5. The method according to claim 3, characterized in that: The step of performing visual editing processing on the at least one target component in the component tree presented in the form of a visual interface includes: Selecting a designated component from the at least one target component in the component tree; The designated component is subjected to the following visual editing processing: adjusting the style of the designated component, adjusting the interactive event of the designated component, and adjusting the associated data of the designated component.
6. The method according to any one of claims 1 to 5, characterized in that: The personalized 5G message template is a 5G message template verified by a management and control platform, and the management and control platform is a platform for verifying illegal content.
7. The method according to claim 1, characterized in that Identify at least one target component from the various components provided by the code editor, including: receiving a first operation instruction from a target user; According to the first operation instruction, at least one target component is determined from a plurality of components provided by the code editor.
8. The method according to claim 1, characterized in that Performing target processing on the at least one target component includes: receiving a second operation instruction from a target user; According to the second operation instruction, target processing is performed on the at least one target component.
9. The method according to claim 1, characterized in that: The method is executed by a server, and the server includes a chat control; after obtaining a personalized 5G message template, the method further includes: The chat control in the server sends a personalized 5G message based on the personalized 5G message template.
10. A 5G message transmission method, characterized in that: include: Send a target request to the server; Receiving a 5G message sent by the server in response to the target request; Among them, the 5G message is obtained based on a personalized 5G message template; the personalized 5G message template is a template obtained by performing target processing on the components provided by the code editor, and the target processing includes at least one of code editing processing and visual editing processing.
11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 10 are implemented.
12. A computer-readable storage medium, characterized in that: The medium stores a program or an instruction, and when the program or the instruction is executed, the steps of the method according to any one of claims 1 to 10 are implemented.
13. A computer program product, characterized in that The method comprises a computer program, which implements the method according to any one of claims 1 to 10 when being executed.
Citation Information
Patent Citations
Low-code page development method and device, equipment and storage medium
CN113918151A
Message configuration method and related device
CN116069308A
5G message processing method, electronic equipment and readable storage medium
CN116233769A
System and method for realizing configurable template on visual interface
CN117369792A
Message template generation method and device, electronic equipment and storage medium
CN117829118A