CN116567100A - Method and device for configuring message segments - Google Patents

Method and device for configuring message segments Download PDF

Info

Publication number
CN116567100A
CN116567100A CN202310657864.XA CN202310657864A CN116567100A CN 116567100 A CN116567100 A CN 116567100A CN 202310657864 A CN202310657864 A CN 202310657864A CN 116567100 A CN116567100 A CN 116567100A
Authority
CN
China
Prior art keywords
configuration
message
field
function
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310657864.XA
Other languages
Chinese (zh)
Inventor
徐栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202310657864.XA priority Critical patent/CN116567100A/en
Publication of CN116567100A publication Critical patent/CN116567100A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The application relates to the technical field of data processing, and provides a message segment configuration method and device. The method comprises the following steps: responding to an input instruction aiming at a target column for assigning a message field in a message configuration interface, acquiring target functions from preset functions and writing the target functions into the target column; generating a configuration expression according to the objective function and field parameters of the message field configured in the objective field; and executing the configuration expression to acquire the configuration information of the message field. The message field configuration method provided by the embodiment of the invention can simplify the architecture of the message configuration interface and improve the configuration efficiency of the message field.

Description

Method and device for configuring message segments
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for configuring a message field.
Background
In the development of gateway applications in the financial field, in order to enable the functions of the gateway to operate in a configurable manner, all functions are generally built into a message configuration interface of the gateway at a message configuration level of a message field related to finance, so that the built-in functions are utilized to configure the message field of a finance related application program, such as a financial APP, and meanwhile, columns are added to the message configuration interface to represent corresponding functions. If the message configuration needs to support the length check of the message field, the length check function of the field is built in, and a column is added on the message configuration interface to indicate, so that the built-in length check function is utilized to check the message field. However, the configuration mode of the message field needs to expand the message configuration interface, which causes expansion of the message configuration interface, complicates the architecture, loads all built-in functions when running the message configuration interface, and affects the configuration efficiency of the message field.
Disclosure of Invention
The present application aims to solve at least one of the technical problems existing in the related art. Therefore, the method for configuring the message field can simplify the architecture of a message configuration interface and improve the configuration efficiency of the message field.
The application also provides a newspaper word segment configuration device.
The application also provides electronic equipment.
The present application also proposes a computer-readable storage medium.
The message segment configuration method according to the embodiment of the first aspect of the application comprises the following steps:
responding to an input instruction aiming at a target column for assigning a message field in a message configuration interface, acquiring target functions from preset functions and writing the target functions into the target column;
generating a configuration expression according to the objective function and field parameters of the message field configured in the objective field;
and executing the configuration expression to acquire the configuration information of the message field.
According to the message segment configuration method, the preset function is expanded, the preset function is combined with the fields for assigning the message in the message configuration interface to form the function expression to configure the message field, so that the message field can be configured only by selecting a proper preset function according to configuration requirements, the message configuration interface is not required to be subjected to framework change and large modification, corresponding configuration information is only required to be obtained according to the function for executing selection, all built-in functions are not required to be loaded when the message configuration interface is started, the framework of the message configuration interface can be simplified, and the configuration flexibility and the configuration efficiency of the message field are improved.
According to one embodiment of the present application, in response to an input instruction for a target field in a message configuration interface, the input instruction being used for assigning a message field, the target field is written by obtaining an objective function from each preset function, including:
responding to the input instruction, and acquiring instruction information of the input instruction in real time;
according to the instruction information, at least one function to be selected corresponding to the instruction information is obtained from each preset function;
writing the target function into the target column according to the received selection instruction of any target function in the functions to be selected.
According to one embodiment of the present application, according to the instruction information, at least one function to be selected corresponding to the instruction information is obtained from each preset function, including:
extracting text information from the instruction information;
and according to the text information, at least one function to be selected, of which annotation information is matched with the text information, is obtained from each preset function.
According to one embodiment of the present application, after obtaining at least one function to be selected corresponding to the instruction information, the method further includes:
generating a selection box in the target field so as to load each function to be selected into the selection box of the target field.
According to one embodiment of the present application, executing the configuration expression to obtain configuration information of the packet field includes:
verifying the configuration expression;
and determining that the configuration expression passes the verification, executing the configuration expression, and obtaining the configuration information of the message field.
According to one embodiment of the present application, further comprising:
and determining that the configuration expression fails to pass the verification, and generating prompt information for prompting the message field configuration error.
According to one embodiment of the present application, verifying the configuration expression includes:
obtaining target grammar rules corresponding to the target function from each preset grammar rule;
and checking the configuration expression according to the target grammar rule.
According to an embodiment of the second aspect of the present application, a message segment configuration device includes:
the target function acquisition module is used for responding to an input instruction aiming at a target field for assigning a message field in the message configuration interface, acquiring target functions from preset functions and writing the target functions into the target field;
the configuration expression generation module is used for generating a configuration expression according to the objective function and field parameters of the message field configured in the objective field;
and the configuration information determining module is used for executing the configuration expression to acquire the configuration information of the message field.
An electronic device according to an embodiment of a third aspect of the present application includes a processor and a memory storing a computer program, where the processor implements the method for configuring a message segment according to any of the above embodiments when executing the computer program.
A computer readable storage medium according to an embodiment of a fourth aspect of the present application, on which a computer program is stored, which when executed by a processor implements the method for configuring a message field according to any one of the embodiments described above.
A computer program product according to an embodiment of the fifth aspect of the present application, comprising: the computer program, when executed by a processor, implements a message segment configuring method as described in any of the embodiments above.
The above technical solutions in the embodiments of the present application have at least one of the following technical effects:
the method comprises the steps of expanding through a preset function, combining the preset function with a field for assigning a message in a message configuration interface to form a function expression to configure the message field, so that the message field can be configured only by selecting a proper preset function according to configuration requirements, the message configuration interface is not required to be subjected to structural change and large modification, corresponding configuration information is only required to be obtained according to the function for executing selection, and all built-in functions are not required to be loaded when the message configuration interface is started, thereby simplifying the structure of the message configuration interface and improving the configuration flexibility and the configuration efficiency of the message field.
Further, instruction information is extracted from an input instruction in real time, at least one function to be selected corresponding to the instruction information is obtained from each preset function by utilizing the instruction information, and then an objective function is determined from each function to be selected by selecting the instruction and is written into an objective column, so that in the process of receiving the input instruction, searching of the function according to partial input is supported to quickly screen out the corresponding function, the user can conveniently select the preset function, and the configuration efficiency of a message field is improved.
Drawings
For a clearer description of the present application or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description below are some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for configuring a message field according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating further refinement of the acquisition of an objective function of the message segment configuration method of FIG. 1 according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of further refining the acquisition of the function to be selected in the embodiment of the present application;
FIG. 4 is a flowchart illustrating further refinement of the acquisition of configuration information of the message segment configuration method of FIG. 1 according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a message segment configuration device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the technical solutions of the present application will be described in detail below with reference to the accompanying drawings. The following examples are only for more clearly illustrating the technical solutions of the present application, and thus are only examples, and are not intended to limit the scope of protection of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having" and any variations thereof in the description and claims of the present application and in the description of the figures above are intended to cover non-exclusive inclusions.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In the description of the embodiments of the present application, the term "plurality" refers to two or more (including two), and similarly, "plurality of sets" refers to two or more (including two).
In the development of gateway application systems in the financial field, how to enable the functions of a gateway to operate in a configurable manner so as to efficiently perform configuration of message fields related to finance, such as message fields sent by a finance financial APP, is an important subject. However, to achieve perfect configuration, it is generally necessary to abstract and clearly define the main core concept of the gateway, and at the same time, to componentize the main functions based on the core concept model and complete component development of the common functions. In addition, the related processing of the financial related message fields can be flexibly performed at the message configuration level.
In the related technology, all functions are built into a message configuration interface for message configuration, for example, the message configuration needs to support field length verification, then the field length verification function is developed on the message configuration interface, and a field is added on the message configuration interface for representation. Similarly, if a judgment of whether a field parameter is empty is to be added, a judgment function of whether the field parameter is empty is developed in the message configuration interface, and a column is added to the message configuration interface to represent the message configuration interface.
Since the message configuration interface is usually an interface of a two-dimensional table, if related functions are added to configure the message field, the column/row of the two-dimensional table needs to be expanded, which leads to the increase of the processing pressure of the control in the column/row of the two-dimensional table, and simultaneously leads to the continuous expansion of the message configuration interface, which complicates the architecture, and all built-in functions need to be loaded when the message configuration interface is operated, so that the configuration efficiency of the message field is affected.
Aiming at the technical problems, the embodiment of the application expands through the preset function, combines the preset function with the field assigned to the message in the message configuration interface to form the function expression to configure the message field, so that the message field configuration can be realized without carrying out architecture change and large modification on the message configuration interface, the architecture of the message configuration interface can be simplified, and the configuration flexibility and the configuration efficiency of the message field are improved.
The message field configuration method and device disclosed by the embodiment of the application can be applied to terminal equipment and are used for realizing flexible configuration of the message field. The terminal device may be a desktop terminal, a portable terminal or a server. The desktop terminal may be a desktop computer, and the portable terminal may be a notebook computer, a mobile phone, or the like. The server can be an independent server or a server cluster formed by a plurality of servers, and can also be a cloud server for providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, big data and artificial intelligent sampling point devices and the like.
According to some embodiments of the present application, a method for configuring a message field is provided, where the method for configuring a message field may be applied to the foregoing terminal device. As shown in fig. 1, the message segment configuration method includes:
s101, responding to an input instruction aiming at a target field for assigning a message field in a message configuration interface, acquiring target functions from preset functions and writing the target functions into the target field;
s102, generating a configuration expression according to the objective function and field parameters of a message field configured in the objective field;
s103, executing the configuration expression to acquire the configuration information of the message field.
In some embodiments, the message configuration interface refers to an interface for performing message field configuration, which may include a two-dimensional configuration table or attribute table. The two-dimensional table has a target field for assigning a message field, and the target field supports inputting parameters for assigning the message field, such as a field type or a field length. Meanwhile, the target column also supports inputting a preset function, and the preset function can be started by "=" and can be followed by a variable, a constant and a specific preset function. The preset function may support the following syntax: function name (parameter 1, parameter 2), wherein parameter 1 and parameter 2 can be parameters input by the target field for assigning to the message field.
In some embodiments, the pre-set function is a pre-written complete function. The terminal device can scan the function pre-written in a certain database through the core engine of the gateway so as to collect all the scanned functions and mark the functions as preset functions.
In some embodiments, the input instruction is configured to select a preset function from the preset functions as the target function. When the target field of the message configuration interface receives the instruction at the head of "=", the target field of the message configuration interface receives the input starting instruction. Under the condition that the target column of the message configuration interface receives the input instruction, the terminal equipment can firstly determine the target function selected by the input instruction according to the input instruction so as to write the target function selected by the input instruction into the target column. The input instruction may be a function input by a user, so that when the input instruction is received, a preset function matched with the input instruction is written into the target column as a target function. For example, assuming that the input instruction is "=function name a (parameter 1, parameter 2)", if the preset function does not exist in the preset functions, returning prompt information for prompting that the input instruction is wrong, if returning prompt information for indicating that the preset function specified by the input instruction does not exist; if the preset function of the function name A (parameter 1, parameter 2) exists in each preset function, the preset function of the function name A (parameter 1, parameter 2) is used as the target function, and the target field is written.
After the objective function is written into the objective field, the field parameters assigned to the message field in the objective field are substituted into the objective function in the objective field to form the configuration expression. When a configuration expression is formed in the target column, the configuration expression is executed when the processing of the message field, such as the sending of the message field, is required, and the calculation of the target function is completed, so that the configuration information of the message field is obtained. If the configuration expression is composed of an objective function for checking the length of the field and an input message field, generating configuration information indicating the checking result of the length of the message field, thereby completing the configuration required by the message field.
According to the method and the device for configuring the message fields, the preset functions are expanded through the preset functions, the preset functions are combined with the fields for assigning the messages in the message configuration interface to form the function expression to configure the message fields, so that the message fields can be configured only by selecting the proper preset functions according to configuration requirements, the message configuration interface is not required to be subjected to framework change and large modification, corresponding configuration information is only required to be obtained according to the functions for executing the selection, all built-in functions are not required to be loaded when the message configuration interface is started, the framework of the message configuration interface can be simplified, and the configuration flexibility and the configuration efficiency of the message fields are improved.
In order to facilitate the selection of the preset functions by the user to improve the configuration efficiency of the message field, in some embodiments, as shown in fig. 2, in response to an input instruction for a target field in the message configuration interface, which is used for assigning a value to the message field, the method for obtaining the target function from each preset function and writing the target field includes:
step 201, responding to the input instruction, and acquiring instruction information of the input instruction in real time;
step 202, according to the instruction information, obtaining at least one function to be selected corresponding to the instruction information from each preset function;
step 203, writing the objective function into the objective field according to the received selection instruction of any objective function in the functions to be selected.
In some embodiments, the terminal device may extract instruction information from an input instruction in real time during the process of the user inputting the input instruction to the target field. Wherein the instruction information may be a character extracted from an input instruction. For example, it is assumed that in the process that a user inputs a certain input instruction to a target field, the instruction information currently extracted from the input instruction is "S", and then, the search is performed in each preset function according to the character "S" to match the preset function with the character "S" in the metadata of each preset function. If each preset function comprises functions including a character S, such as a function SIN, a function SUM, a function SUMIF and the like, all functions with the character S are extracted from the preset functions to serve as functions to be selected, and the functions are pushed to a message configuration interface for a user to select. If the user continues to input the input instruction to the target field, if the user continues to input the character "U" after inputting "=s", the instruction information currently extracted from the input instruction is "SU", and at this time, functions including the character "SU" such as the function "SUM" and the function "SUMIF" in each preset function may be pushed to the message configuration interface as the function to be selected for the user to select. When the function to be selected is selected, the function description of the function to be selected can be pushed to the message configuration interface. If a certain function to be selected is selected by using the upper and lower keys of the keyboard, a description of the currently selected function to be selected, such as a parameter description, and other prompt information, can be given.
If a selection instruction of a user for a certain function to be selected is received, if a double-click operation of the user for the certain function to be selected is received, the function to be selected is used as a target function, the target field is written, and meanwhile, the display of the rest functions to be selected in the message configuration interface is stopped. If the function "SUM" is selected according to the selection instruction, the function "SUM" is written into the target column as the target function, and the function "SUMIF" is stopped to be displayed in the message configuration interface.
The instruction information is extracted from the input instruction in real time, at least one function to be selected corresponding to the instruction information is obtained from each preset function by utilizing the instruction information, and then the target function is determined from each function to be selected by the selection instruction and written into the target column, so that in the process of receiving the input instruction, the search of the function according to partial input is supported to quickly screen out the corresponding function, the user can conveniently select the preset function, and the configuration efficiency of the message field is improved.
In some embodiments, the instruction information may be text information. As shown in fig. 3, according to the instruction information, at least one function to be selected corresponding to the instruction information is obtained from each preset function, including:
step 301, extracting text information from the instruction information;
step 302, according to the text information, at least one function to be selected, of which annotation information is matched with the text information, is obtained from each preset function.
In some embodiments, corresponding annotation information is pre-labeled for any preset function. The annotation information comprises a function name, a Chinese description of the function, a use description of the function parameters and the like. In the process that a user inputs a certain input instruction to a target column, if instruction information extracted from the input instruction in real time by the terminal equipment is text information, the text information extracted at present can be subjected to text matching with annotation information of each preset function, so that a preset function with the annotation information matched with the text information is searched from each preset function and used as a function to be selected. The text information is used for searching the corresponding annotation information, and the corresponding annotation information can be realized through a trained semantic model.
As a possible implementation manner, assuming that the text information currently extracted from the input instruction is "judgment", from the annotation information of each preset function, the annotation information including "judgment" or the same meaning as "judgment" is searched for, so as to determine the preset function corresponding to the annotation information as the function to be selected. If the annotation information of a certain preset function is "empty judgment", the annotation information of the preset function can be determined to be matched with the text information, so that the preset function can be determined to be a candidate function matched with the text information.
When the text information is extracted from the instruction information, the text information is used for matching with the annotation information of each preset function, so that the function to be selected, with which the annotation information is matched with the text information, is obtained from each preset function, and therefore a user can search the function by using the name, the function and other annotation information of the function when selecting the function, the searching efficiency of the function is improved, and the configuration efficiency of the message field is further improved.
In some embodiments, after at least one function to be selected corresponding to the instruction information is obtained, each function to be selected may be loaded into the option box of the target field for the user to select. The option box can be a drop-down option box, so that a user can preview the function to be selected conveniently.
After the user determines the objective function from the functions to be selected, the objective function can be written into the objective field to substitute the field parameters input in the objective field into the objective function to form a configuration expression, so that the configuration information of the message field can be obtained by executing the configuration expression. In order to avoid that the configuration efficiency of the message field is affected due to processing errors caused by configuration expression errors in the subsequent execution of the configuration expression, in some embodiments, as shown in fig. 4, the execution of the configuration expression to obtain configuration information of the message field includes:
step 401, checking the configuration expression;
step 402, determining that the configuration expression passes the verification, executing the configuration expression, and obtaining the configuration information of the message field
In some embodiments, after the configuration expression is generated, the configuration expression may be first validated at the message configuration interface. The validity check may be to check the configuration expression through all preset grammar rules stored in the database in advance, so as to check the grammar accuracy of the configuration expression. Whereas, considering that there may be more preset grammar rules, grammar rules capable of effectively verifying the configuration expression generally account for only a small proportion, because unnecessary verification time costs may be incurred if all of the preset grammar rules are used for performing the grammar verification of the configuration expression. Therefore, the mapping relation between each preset function and each preset grammar rule can be preconfigured, when the configuration expression is obtained, the preset grammar rule corresponding to the objective function forming the configuration expression can be obtained from each preset grammar rule as the objective grammar rule according to the mapping relation, so that the configuration expression can be checked by utilizing the objective grammar rule. When the configuration expression is checked, effective target grammar rules can be screened from all preset grammar rules to check the configuration expression, and the configuration expression is not required to be checked through all the preset grammar rules, so that the checking accuracy of the configuration expression is improved, meanwhile, the checking time of the configuration expression is shortened, and the checking efficiency is improved.
After checking the configuration expression, if the configuration expression is determined to pass the checking, the configuration expression can be normally executed, and the configuration expression can be executed at the moment to obtain the execution result of the configuration expression, so that the execution result is used as the configuration information of the message field.
If the verification of the configuration expression is determined not to pass, the grammar of the configuration expression is wrong, and at the moment, prompt information for prompting the error of the message field configuration is generated so as to prompt a user to modify the configuration expression.
The description of the message field configuration device provided in the present application is provided below, and the message field configuration device described below and the message field configuration method described above may be referred to correspondingly.
In one embodiment, as shown in fig. 5, there is provided a message field configuration apparatus, including:
the objective function obtaining module 210 is configured to obtain objective functions from each preset function and write the objective functions into the objective columns in response to an input instruction for the objective columns for assigning the message field in the message configuration interface;
a configuration expression generating module 220, configured to generate a configuration expression according to the objective function and field parameters of the message field configured in the objective field;
the configuration information determining module 230 is configured to execute the configuration expression to obtain configuration information of the message field.
The method comprises the steps of expanding through a preset function, combining the preset function with a field for assigning a message in a message configuration interface to form a function expression to configure the message field, so that the message field can be configured only by selecting a proper preset function according to configuration requirements, the message configuration interface is not required to be subjected to structural change and large modification, corresponding configuration information is only required to be obtained according to the function for executing selection, and all built-in functions are not required to be loaded when the message configuration interface is started, thereby simplifying the structure of the message configuration interface and improving the configuration flexibility and the configuration efficiency of the message field.
In one embodiment, the objective function obtaining module 210 is specifically configured to:
responding to the input instruction, and acquiring instruction information of the input instruction in real time;
according to the instruction information, at least one function to be selected corresponding to the instruction information is obtained from each preset function;
writing the target function into the target column according to the received selection instruction of any target function in the functions to be selected.
In one embodiment, the objective function obtaining module 210 is specifically configured to:
extracting text information from the instruction information;
and according to the text information, at least one function to be selected, of which annotation information is matched with the text information, is obtained from each preset function.
In an embodiment, the objective function obtaining module 210 is further configured to:
generating a selection box in the target field so as to load each function to be selected into the selection box of the target field.
In one embodiment, the configuration information determining module 230 is specifically configured to:
verifying the configuration expression;
and determining that the configuration expression passes the verification, executing the configuration expression, and obtaining the configuration information of the message field.
In an embodiment, the configuration information determining module 230 is further configured to:
and determining that the configuration expression fails to pass the verification, and generating prompt information for prompting the message field configuration error.
In one embodiment, the configuration information determining module 230 is specifically configured to:
and checking the configuration expression according to each preset grammar.
Fig. 6 illustrates a physical schematic diagram of an electronic device, as shown in fig. 6, which may include: processor 810, communication interface (Communication Interface) 820, memory 830, and communication bus 840, wherein processor 810, communication interface 820, memory 830 accomplish communication with each other through communication bus 840. Processor 810 may invoke a computer program in memory 830 to perform a message field configuration method including, for example:
responding to an input instruction aiming at a target column for assigning a message field in a message configuration interface, acquiring target functions from preset functions and writing the target functions into the target column;
generating a configuration expression according to the objective function and field parameters of the message field configured in the objective field;
and executing the configuration expression to acquire the configuration information of the message field.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, embodiments of the present application further provide a processor-readable storage medium storing a computer program, where the computer program is configured to cause a processor to perform a method provided in the foregoing embodiments, for example, including:
responding to an input instruction aiming at a target column for assigning a message field in a message configuration interface, acquiring target functions from preset functions and writing the target functions into the target column;
generating a configuration expression according to the objective function and field parameters of the message field configured in the objective field;
and executing the configuration expression to acquire the configuration information of the message field.
The processor-readable storage medium may be any available medium or field configuration device that can be accessed by a processor, including, but not limited to, magnetic storage (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc.), optical storage (e.g., CD, DVD, BD, HVD, etc.), semiconductor storage (e.g., ROM, EPROM, EEPROM, nonvolatile storage (NAND FLASH), solid State Disk (SSD)), and the like.
The apparatus embodiments described above are merely illustrative, wherein elements illustrated as separate elements may or may not be physically separate, and elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. A message segment configuration method, comprising:
responding to an input instruction aiming at a target column for assigning a message field in a message configuration interface, acquiring target functions from preset functions and writing the target functions into the target column;
generating a configuration expression according to the objective function and field parameters of the message field configured in the objective field;
and executing the configuration expression to acquire the configuration information of the message field.
2. The message field configuration method according to claim 1, wherein, in response to an input instruction for a target field for assigning a message field in a message configuration interface, obtaining an objective function from each preset function and writing the objective function into the target field includes:
responding to the input instruction, and acquiring instruction information of the input instruction in real time;
according to the instruction information, at least one function to be selected corresponding to the instruction information is obtained from each preset function;
writing the target function into the target column according to the received selection instruction of any target function in the functions to be selected.
3. The message field configuration method according to claim 2, wherein obtaining at least one function to be selected corresponding to the instruction information from each of the preset functions according to the instruction information, comprises:
extracting text information from the instruction information;
and according to the text information, at least one function to be selected, of which annotation information is matched with the text information, is obtained from each preset function.
4. A message field configuration method according to claim 2 or 3, further comprising, after acquiring at least one function to be selected corresponding to the instruction information:
generating a selection box in the target field so as to load each function to be selected into the selection box of the target field.
5. The message field configuration method according to claim 1, wherein executing the configuration expression to obtain configuration information of the message field comprises:
verifying the configuration expression;
and determining that the configuration expression passes the verification, executing the configuration expression, and obtaining the configuration information of the message field.
6. The message field configuration method of claim 5, further comprising:
and determining that the configuration expression fails to pass the verification, and generating prompt information for prompting the message field configuration error.
7. The message field configuration method of claim 5, wherein verifying the configuration expression comprises:
obtaining target grammar rules corresponding to the target function from each preset grammar rule;
and checking the configuration expression according to the target grammar rule.
8. A message segment configuring apparatus, comprising:
the target function acquisition module is used for responding to an input instruction aiming at a target field for assigning a message field in the message configuration interface, acquiring target functions from preset functions and writing the target functions into the target field;
the configuration expression generation module is used for generating a configuration expression according to the objective function and field parameters of the message field configured in the objective field;
and the configuration information determining module is used for executing the configuration expression to acquire the configuration information of the message field.
9. An electronic device comprising a processor and a memory storing a computer program, wherein the processor implements the message field configuration method of any of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the message field configuration method of any of claims 1 to 7.
CN202310657864.XA 2023-06-05 2023-06-05 Method and device for configuring message segments Pending CN116567100A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310657864.XA CN116567100A (en) 2023-06-05 2023-06-05 Method and device for configuring message segments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310657864.XA CN116567100A (en) 2023-06-05 2023-06-05 Method and device for configuring message segments

Publications (1)

Publication Number Publication Date
CN116567100A true CN116567100A (en) 2023-08-08

Family

ID=87494641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310657864.XA Pending CN116567100A (en) 2023-06-05 2023-06-05 Method and device for configuring message segments

Country Status (1)

Country Link
CN (1) CN116567100A (en)

Similar Documents

Publication Publication Date Title
CN109033772B (en) Verification information input method and device
CN108491326B (en) Test behavior a recombination process apparatus and storage medium
US10402474B2 (en) Keyboard input corresponding to multiple languages
KR102274561B1 (en) Transaction system error detection method, apparatus, storage medium and computer device
CN110221959B (en) Application program testing method, device and computer readable medium
CN111176996A (en) Test case generation method and device, computer equipment and storage medium
WO2016176004A1 (en) Confidence estimation and bug prediction for machine translation
US11630825B2 (en) Method and system for enhanced search term suggestion
CN111341315B (en) Voice control method, device, computer equipment and storage medium
KR101446468B1 (en) System and method for prividing automatically completed query
CN111324716A (en) Index data acquisition method and device, computer equipment and storage medium
CN107025393A (en) A kind of method and device of resource transfer
CN116991990A (en) Program development assisting method, storage medium and device based on AIGC
US20220374345A1 (en) Techniques for similarity determination across software testing configuration data entities
CN108228611B (en) Document information copying method and device
JP2019036210A (en) FAQ registration support method using machine learning, and computer system
CN116567100A (en) Method and device for configuring message segments
WO2020093613A1 (en) Page data processing method and apparatus, storage medium, and computer device
US20230027403A1 (en) Techniques for automated testing of application programming interfaces
US20230027880A1 (en) Techniques for automated testing of application programming interfaces
US11556460B2 (en) Test case generation for software development using machine learning
CN113360127B (en) Audio playing method and electronic equipment
CN108848250B (en) Path updating method, device and equipment
CN112559346A (en) Service testing method and device
CN108037839B (en) Character input method and related product

Legal Events

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