CN114356333A - Service function configuration method, equipment, storage medium and service system thereof - Google Patents

Service function configuration method, equipment, storage medium and service system thereof Download PDF

Info

Publication number
CN114356333A
CN114356333A CN202210032818.6A CN202210032818A CN114356333A CN 114356333 A CN114356333 A CN 114356333A CN 202210032818 A CN202210032818 A CN 202210032818A CN 114356333 A CN114356333 A CN 114356333A
Authority
CN
China
Prior art keywords
data
configuration
configuration item
function configuration
function
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
CN202210032818.6A
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 Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202210032818.6A priority Critical patent/CN114356333A/en
Publication of CN114356333A publication Critical patent/CN114356333A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The application is applicable to the technical field of artificial intelligence and intelligent decision making, and provides a service function configuration method, equipment, a storage medium and a service system thereof, wherein the method comprises the following steps: acquiring interactive data between a front-end display page and a back-end processor of a service system, performing configuration type analysis on the interactive data by adopting a preset data analysis model so as to generate a function configuration item for the service system based on the interactive data, and storing the function configuration item and configuration item data corresponding to the function configuration item in a configuration manager; based on the access request of the user, calling a target function configuration item matched with the access request from the configuration manager, dynamically changing configuration item data corresponding to the target function configuration item according to the content of the access request, and synthesizing a service function matched with the access request and applied to the front-end display page. The method solves the problems that the service system has high maintenance cost and low efficiency when configuring the service function, and the original service logic is easy to interfere due to strong perception.

Description

Service function configuration method, equipment, storage medium and service system thereof
Technical Field
The present application relates to the technical field of artificial intelligence and intelligent decision, and in particular, to a method, device, storage medium, and service system for configuring service functions.
Background
Most of the development of the service system is to make a basic function first, and then to add a new service function to the service system according to the actual service requirement. When a service function is added to a service system, the uncertainty of the service function is considered, and the newly added service function is often added to the service system by adopting a mode of developing a configuration switch. The configuration switch is specifically configured to determine the usage of the service function, such as determining whether and how the service function is available. Current approaches to developing configuration switches include the following two: the first is a CMS-based purely static file, controlled by modifying the fields of a static JSON file, supporting online editing configuration. The second is realized by dynamically calculating and combining rules based on a rule engine. However, on the one hand, when the new service function is added to the service system by using the above method for developing the configuration switch, a large amount of development and test labor cost and time cost are required to be consumed, and the developed configuration switch also needs to be continuously maintained, so that the maintenance cost is high. On the other hand, when the new service function is added to the service system by adopting the above method of developing the configuration switch, the perceptibility of the service system is strong, the logic of the existing service system is easily interfered, and once the associated influence risk assessment generated by development is not in place, the problem of production line is caused, and the normal use of the service system is influenced.
Disclosure of Invention
In view of this, embodiments of the present application provide a service function configuration method, a device, a storage medium, and a service system thereof, which can solve the problems of high maintenance cost and low efficiency when the service system configures a service function, or/and reduce the perceptibility of the service system to the service function configuration process, avoid interfering with the logic of the existing service system, and ensure the normal use of the service system.
A first aspect of an embodiment of the present application provides a method for configuring a service function, including:
acquiring interactive data between a front-end display page and a back-end processor of a service system, wherein the interactive data comprises request data transmitted to the back-end processor by the front-end display page for processing and/or response data fed back to the front-end display page by the back-end processor after processing;
performing configuration type analysis on the interactive data by adopting a preset data analysis model, generating a function configuration item for the service system based on the interactive data, and storing the function configuration item and configuration item data corresponding to the function configuration item in a configuration manager;
based on the access request of the user, calling a target function configuration item matched with the access request from the configuration manager, and dynamically changing configuration item data corresponding to the target function configuration item according to the content of the access request to synthesize a service function matched with the access request and applied to a front-end display page.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the step of performing configuration category analysis on the interaction data by using a preset data analysis model to generate a function configuration item of the business system based on the interaction data includes:
and adopting a naive Bayes classification algorithm and a syntax analysis algorithm to perform field analysis on the character string fields contained in the interactive data, judging whether the character string fields have configurable attributes, and if so, generating a function configuration item for representing the character string fields as the function configuration item of the service system.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the step of performing field analysis on the character string field included in the interaction data by using a naive bayes classification algorithm and a syntax analysis algorithm, and determining whether the character string field has a configurable attribute includes:
and counting frequency information, numerical value information and rule information of the character string field in the interactive data, and judging whether the character string field has configurable attributes or not according to the frequency information, the numerical value information and the rule information.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the performing field analysis on the character string field included in the interaction data by using a naive bayes classification algorithm and a syntax analysis algorithm, and determining whether the character string field has a configurable attribute includes:
judging whether parameters represented in the character string field can be enumerated or can be set as fixed values or not according to the frequency information, the numerical value information and the rule information, and if so, judging that the character string field has configurable attributes; and/or
Judging whether the character string field has a time attribute or not according to the frequency information, the numerical value information and the rule information, and if so, judging that the character string field has a configurable attribute; and/or
Judging whether the character string field is associated with a user ID or associated with user information according to the frequency information, the numerical value information and the rule information, and if so, judging that the character string field has a configurable attribute; and/or
Judging whether the character string field is associated with a geographical position or not according to the frequency information, the numerical value information and the rule information, and if so, judging that the character string field has a configurable attribute; and/or
And judging whether the character string field is associated with service data or not according to the frequency information, the numerical value information and the rule information, and if so, judging that the character string field has a configurable attribute.
With reference to the first aspect or the first, second, or third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the step of performing configuration category analysis on the interaction data by using a preset data analysis model to generate a function configuration item of the business system based on the interaction data, and storing the function configuration item and configuration item data corresponding to the function configuration item in a configuration manager further includes:
acquiring source interface information of the interactive data, wherein the source interface information comprises a target interface name corresponding to an interface for accessing the interactive data;
inquiring an association relation table between a preset interface name and a configuration category analysis dimension according to the target interface name, and determining a target configuration category analysis dimension for performing configuration category analysis on the interactive data from the association relation table between the interface name and the configuration category analysis dimension;
and inputting the target configuration category analysis dimension into the preset data analysis model, so that the data analysis model performs configuration category analysis on the interactive data according to the target configuration category analysis dimension.
With reference to the first aspect, in a fifth possible implementation manner of the first aspect, the step of, based on an access request of a user, invoking a target function configuration item matched with the access request from the configuration manager, and dynamically changing configuration item data corresponding to the target function configuration item according to content of the access request to generate a service function, which is matched with the access request and applied to a front-end presentation page, further includes:
if the target function configuration items are multiple, performing aggregation processing on the multiple target function configuration items to synthesize the multiple target function configuration items into a service function and apply the service function to a front-end display page.
A second aspect of the embodiments of the present application provides a service system, where the service system is configured to implement the service function configuration method according to the first aspect, and the service system includes a front-end display page, a front-end interception plug-in, a configuration manager, and a back-end processor, where:
the front-end display page is used for receiving an access request input by a user and executing page rendering operation according to the service function synthesized by the front-end interception plug-in;
the front interception plug-in is used for intercepting the request data before the front-end display page transmits the request data to the back-end processor for processing and/or intercepting the response data before the back-end processor feeds back the response data obtained after processing to the front-end display page, and calling the preset data analysis model to perform configuration type analysis on the request data and/or the response data so as to obtain a function configuration item used by the business system;
the configuration manager is used for storing and managing the function configuration items obtained by the preposed interception plug-in and the function configuration item data corresponding to the function configuration items;
and the back-end processor is used for performing service logic processing according to the access request of the user and feeding back response data corresponding to the access request to the front-end display page.
With reference to the second aspect, in a first possible implementation manner of the second aspect, in the business system, the configuration manager is provided with a configuration item validation module, where:
the configuration item validation module is used for presetting a preset parameter of the function configuration item according to a preset logic, so as to determine the validation mode of the function configuration item according to the preset parameter, wherein the preset logic comprises one or more of 'OR', 'AND' and 'NOT'.
A third aspect of embodiments of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the electronic device, where the processor implements the steps of the service function configuration method provided in the first aspect when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the service function configuration method provided in the first aspect.
The service function configuration method, the service function configuration device, the storage medium and the service system thereof provided by the embodiment of the application have the following beneficial effects:
on one hand, the method and the system automatically generate the configuration items for the business system to carry out business function configuration by analyzing the configuration types of the interactive data between the front-end display page and the back-end processor of the business system, fully utilize the existing data of the business system, synchronize the process of automatically generating the configuration items with the use of the business system in real time, do not need any development cost, and solve the problems of high maintenance cost and low efficiency of the business system when the business function is configured.
On the other hand, the service function matched with the access request and applied to the front-end display page is generated by calling the target function configuration item matched with the access request from the configuration manager and dynamically changing the configuration item data corresponding to the target function configuration item according to the content of the access request, so that service codes in the service system can be prevented from being invaded, the perceptibility of the service system to the service function configuration process is reduced, the coupling is reduced, the interference of the original service logic of the service system is avoided, and the normal use of the service system is ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an implementation of a service function configuration method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for performing configuration type analysis on interactive data in a service function configuration method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a service system to which a service function configuration method is applied according to an embodiment of the present application;
fig. 4 is a basic structure block diagram of a service function configuration apparatus according to an embodiment of the present application.
Fig. 5 is a block diagram of a basic structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a service function configuration method according to an embodiment of the present application. The details are as follows:
s11: the method comprises the steps of obtaining interactive data between a front-end display page and a back-end processor of a business system, wherein the interactive data comprises request data which are transmitted to the back-end processor by the front-end display page for processing and/or response data which are fed back to the front-end display page after being processed by the back-end processor.
In the business system, the front-end display page interacts with the back-end processor by calling the back-end interface. In this embodiment, a front interception plug-in is respectively set up at the service system access layer and at the service system background service layer, and the front interception plug-in intercepts and acquires the interactive data between the front-end display page and the back-end processor. The method comprises the steps that through a front-end interception plug-in unit built at an access layer of a business system, data interception is carried out before a front-end display page transmits request data input by a user to a back-end processor for processing, and the request data are obtained. And by a front interception plug-in built at a background service layer of the business system, the back-end processor intercepts data before feeding back the processed response data to the front-end display page to obtain the response data.
S12: and performing configuration type analysis on the interactive data by adopting a preset data analysis model so as to generate a function configuration item of the service system based on the interactive data, and storing the function configuration item and configuration item data corresponding to the function configuration item in a configuration manager.
The interactive data is characterized as a json (JavaScript Object Notation) format file in which the format of the interactive data is serialized into a string field by Object. In this embodiment, the preset data analysis model uses a naive bayes classification algorithm, where the naive bayes classification algorithm is used to solve, for a given item to be classified, the probability of occurrence of each class under the condition that the item to be classified occurs, and the class with the highest occurrence probability is taken as the class to which the item to be classified belongs. In a preset data analysis model, specifically, a character string field contained in interactive data is used as an item to be classified, a naive Bayesian classification algorithm is adopted to calculate the probability of occurrence of each configuration class in the data analysis model under the condition of occurrence of the character string field, so as to obtain the configuration class to which the character string field belongs, and a function configuration item for representing the character string field is generated according to the configuration class. And performing library falling processing on the generated function configuration items, so that the function configuration items and configuration item data corresponding to the function configuration items are stored in a configuration manager built in the business system, and the purpose of intelligently generating the configuration items for the business system to perform function configuration according to the interactive data is achieved.
In some embodiments of the application, when the preset data analysis model is used for performing configuration category analysis on the interactive data, the interactive data may be specifically analyzed through a syntax analysis algorithm in combination with a naive bayes classification algorithm and a syntax analysis algorithm of natural language processing to obtain one or more character string fields included in the interactive data, and then, each character string field is respectively subjected to field analysis through the naive bayes classification algorithm to judge whether each character string field has a configurable attribute.
Illustratively, the field analysis can be performed by counting the frequency, value and regularity of the occurrence of the character string field. According to the frequency information, the numerical value information and the rule information which are obtained through statistics, any one or more of the following preset analysis items are adopted to judge whether the character string field has the configurable attribute:
first, whether parameters represented in a string field can be enumerated or can be set to be fixed values is judged according to frequency information, numerical value information and rule information, and if yes, the string field is judged to have configurable attributes.
And secondly, judging whether the character string field has a time attribute or not according to the frequency information, the numerical value information and the rule information, and if so, judging that the character string field has a configurable attribute.
Thirdly, whether the character string field is associated with the user ID or the user information or not is judged according to the frequency information, the numerical value information and the rule information, and if yes, the character string field is judged to have the configurable attribute.
And fourthly, judging whether the character string field is associated with the geographic position or not according to the frequency information, the numerical value information and the rule information, and if so, judging that the character string field has the configurable attribute.
And fifthly, judging whether the character string field is associated with the service data according to the frequency information, the numerical value information and the rule information, and if so, judging that the character string field has a configurable attribute.
If the character string field is judged to have the configurable attribute based on the judgment of the analysis item, the character string field can be set as the configuration item. At this time, the configurable attribute of the character string field is automatically extracted, and the function configuration item for representing the character string field is generated according to the configurable attribute obtained by the automatic extraction.
S13: based on the access request of the user, calling a target function configuration item matched with the access request from the configuration manager, and dynamically changing configuration item data corresponding to the target function configuration item according to the content of the access request to generate a service function matched with the access request and applied to a front-end display page.
In this embodiment, the user performs a relevant operation on the front-end display page to generate an access request of the user, so as to access the service system through the access request of the user. The access request carries the header/body data corresponding to the relevant operation executed by the user, and the header/body data is the request data which needs to be transmitted to the back-end processor for processing by the front-end display page. In this embodiment, when the service system generates an access request of a user, the service system is triggered to execute a service function configuration operation.
Before executing the service function configuration operation, the service system intercepts and obtains request data carried in the access request through a front interception plug-in at an access layer of the service system, and performs configuration type analysis on the request data carried in the access request in advance, so as to generate a function configuration item matched with the access request in advance based on the request data and store the function configuration item in the configuration manager for later use. And intercepting response data which is obtained after the back-end processor performs service processing on the access request and is used for feeding back to the front-end display page through a front interception plug-in at a background service layer of the service system, and performing configuration type analysis on the response data in advance so as to generate a function configuration item matched with the access request in advance based on the response data and store the function configuration item in the configuration manager for later use. At this time, in the configuration manager, there is a mapping relationship between the function configuration items generated in advance and the content of the access request. When the business function configuration operation is executed, based on the access request of the user, the function configuration item matched with the access request of the user is called from the configuration manager through the mapping relation and is used as a target function configuration item, and the configuration item data corresponding to the called system function configuration item is dynamically changed according to the content of the access request of the user, so that the business function matched with the access request of the user and applied to the front-end display page is generated.
As can be seen from the above, in the service function configuration method provided in this embodiment, the configuration type analysis is performed on the interactive data between the front-end display page and the back-end processor of the service system, so as to automatically generate the function configuration item for the service system to perform service function configuration, where the configuration item has no development cost, and data can be dynamically changed at any time. Because the configuration type analysis process is based on the analysis of json format files according to fields, under the condition that each field can be dynamically changed, the field combination can be easily realized, a large amount of manpower support is not required to be consumed, and the maintenance cost is greatly reduced. In addition, in the embodiment, the target function configuration item matched with the access request is called from the configuration manager through the front-end interception plug-in, in the front-end interception plug-in, the configuration item data corresponding to the target function configuration item is dynamically changed according to the content of the access request, and the service function matched with the access request and applied to the front-end display page is generated, so that service codes in the service system can be prevented from being invaded, the perceptibility of the service system to the service function configuration process is reduced, the coupling is reduced, the original service logic of the service system is prevented from being interfered, and the normal use of the service system is ensured.
In some embodiments of the present application, please refer to fig. 2, and fig. 2 is a schematic flow chart illustrating a method for performing configuration type analysis on interactive data in a service function configuration method provided in the embodiments of the present application. The details are as follows:
s21: acquiring source interface information of the interactive data, wherein the source interface information comprises a target interface name corresponding to an interface for accessing the interactive data;
s22: inquiring an association relation table between a preset interface name and a configuration category analysis dimension according to the target interface name, and determining a target configuration category analysis dimension for performing configuration category analysis on the interactive data from the association relation table between the interface name and the configuration category analysis dimension;
s23: and inputting the target configuration category analysis dimension into the preset data analysis model, so that the data analysis model performs configuration category analysis on the interactive data according to the target configuration category analysis dimension.
In this embodiment, a table is built according to interface names for interfaces used for transmitting data and set corresponding configuration category analysis dimensions for different interface names in a business system, and an association table between one interface name and the configuration category analysis dimensions is obtained, so that the configuration category analysis of interactive data based on the interfaces is realized. Illustratively, the service system accesses the interactive data through the interface for transmitting data, that is, when accessing the interactive data, it is able to obtain source interface information of the interactive data by monitoring which interface of the service system the interactive data is accessed from, and then obtain a target interface name corresponding to the interface accessing the interactive data from the source interface information. After the target interface name is obtained, a preset association relationship table between the interface name and the configuration category analysis dimension can be queried according to the target interface name, and the configuration category analysis dimension having an association relationship with the target interface name is found from the association relationship table between the interface name and the configuration category analysis dimension to serve as the target configuration category analysis dimension. And then, the obtained target configuration category analysis dimension is input into a preset data analysis model, so that the data analysis model performs configuration category analysis on the interactive data according to the target configuration category analysis dimension, the configuration category analysis on the interactive data based on the interface dimension is realized, and the efficiency and the accuracy of generating the functional configuration items for the service system are improved.
In some embodiments of the application, if there are a plurality of target function configuration items, aggregation processing is performed on the plurality of target function configuration items, so that the plurality of target function configuration items are synthesized into one service function and applied to a front-end presentation page. In this embodiment, through aggregation processing, based on an access request of a user, if there are multiple target function configuration items matching the access request, an interaction request between the front-end interception plug-in and the back-end is triggered multiple times at the front-end interception plug-in, and each interaction can obtain one corresponding target function configuration item, and after all the target function configuration items matching the access request are obtained, the front-end interception plug-in synthesizes the multiple target function configuration items into one service function and returns the service function to the front-end presentation page, so that the front-end presentation page is unaware, and the perceptibility of the service system is reduced.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In some embodiments of the present application, please refer to fig. 3, and fig. 3 is a schematic structural diagram of a service system to which a service function configuration method is applied according to an embodiment of the present application. As shown in fig. 3, the business system includes a front-end presentation page 31, a front-end interception plug-in 32, a configuration manager 33, and a back-end processor 34.
The front-end display page 31 is used for receiving an access request input by a user and executing a page rendering operation according to a service function synthesized by the front-end interception plug-in 32. In this embodiment, the user may perform a relevant operation on the front-end presentation page 31 to generate an access request, where the access request carries a header/body parameter corresponding to the operation. The header/body parameter is characterized as the request data. In this embodiment, the front end presentation page may include, but is not limited to, an APP page, a PC end page, an H5 page, and the like.
The front interception plug-in 32 is configured to intercept request data before the front-end display page 31 transmits the request data to the back-end processor 34 for processing, and/or intercept response data before the back-end processor 34 feeds back the response data obtained after processing to the front-end display page 31, and call a preset data analysis model to perform configuration type analysis on the request data and/or the response data, so as to obtain a related function configuration item for use by the service system. After obtaining the relevant function configuration items for the service system, the obtained function configuration items and the function configuration item data thereof are stored in the configuration manager 33 built in the service system for standby. When the business system executes the business function configuration operation, the front-end interception plug-in 32 synthesizes the business functions applied to the front-end presentation page 31 according to the obtained function configuration items. In this embodiment, there are two front-end interception plug-ins 32, where one front-end interception plug-in is disposed at a data access layer interface of the front-end display page 31 of the business system, where the data access layer interface is used for acquiring request data, and the other front-end interception plug-in is disposed at a background service layer interface of the back-end processor 34 of the business system, where the data access layer interface is used for returning data.
A configuration manager 33 for storing and managing the function configuration items and their function configuration item data obtained at the front interception plug-in 32. In this embodiment, a data transmission channel is provided between the configuration manager 33 and the front interception plug-in 32, after the front interception plug-in 32 calls a preset data analysis model to perform configuration type analysis on the request data and/or the response data, and generates a related function configuration item, the obtained function configuration item and configuration item data thereof are stored in the configuration manager 33 for standby through the data transmission channel provided between the configuration manager 33 and the front interception plug-in 32. In this embodiment, when the service system applies the function configuration item to the front-end display page 31, the pre-interception plug-in 32 may read the function configuration item data corresponding to the function configuration item from the configuration manager 33 based on the access request of the user, and further dynamically change the configuration item data corresponding to the called system function configuration item according to the content of the access request of the user, so as to synthesize the service function applied to the front-end display page and matched with the access request of the user. The service function is characterized in the front end presentation page 31 as a switch option. The configuration manager 33 may also perform a merge process on the configuration items with a high degree of similarity stored in the configuration manager 33.
And the back-end processor 34 is used for performing service logic processing according to the access request of the user and feeding back response data corresponding to the access request to the front-end display page 31. In this embodiment, a front interception plug-in is disposed at the backend service layer interface of the backend processor 34 for returning data, and the front interception plug-in intercepts response data that is processed by the backend processor 34 and then fed back to the front-end presentation page 31.
In some embodiments of the present application, a configuration item validation module is disposed in the configuration manager 33 of the business system, so as to support validation of the functional configuration items for configuration processing. In this embodiment, logic such as 'or', 'and', 'not' is provided in the configuration item validation module for selecting the pre-set parameters, and the configuration item validation module may set the pre-set parameters of the function configuration items by using one or more of the logic such as 'or', 'and', 'not', so as to determine the validation manner of each function configuration item according to the pre-set parameters. For example, when the logic between two pre-parameters in a functional configuration item is "or", the functional configuration item may take effect when one of the two pre-parameters is true. When the logic between two pre-parameters in the function configuration item is AND, and the two pre-parameters are true, the function configuration item is effective. If the logic between two pre-parameters in the function configuration item is "not", the function configuration item is not valid when one of the two pre-parameters is true. Based on the configuration item validation module, whether a certain configuration item is validated can be determined by selecting a pre-parameter by the user himself.
In some embodiments of the present application, a configuration item deleting module and a configuration item querying module may be further disposed in the configuration manager 33 of the business system. Wherein. The configuration item deleting module can delete the function configuration item stored in the configuration manager 33 and the configuration item data corresponding to the function configuration item. Through the configuration item query module, according to a configuration item query request input by a user, a function configuration item corresponding to the configuration item query request and configuration item data corresponding to the function configuration item can be searched from the configuration manager 33.
In some embodiments of the present application, please refer to fig. 4, and fig. 4 is a block diagram of an infrastructure of a service function configuration apparatus according to an embodiment of the present application. The apparatus in this embodiment comprises means for performing the steps of the method embodiments described above. The following description refers to the embodiments of the method. For convenience of explanation, only the portions related to the present embodiment are shown. As shown in fig. 4, the service function configuration apparatus includes: an interactive data acquisition module 41, a configuration item generation module 42 and a business function synthesis module 43. Wherein: the interactive data obtaining module 41 is configured to obtain interactive data between a front-end display page and a back-end processor of a business system, where the interactive data includes request data that the front-end display page transmits to the back-end processor for processing and/or response data that the back-end processor processes and then feeds back to the front-end display page. The configuration item generating module 42 is configured to perform configuration category analysis on the interaction data by using a preset data analysis model, so as to generate a function configuration item for the service system based on the interaction data, and store the function configuration item and configuration item data corresponding to the function configuration item in a configuration manager. The service function synthesizing module 43 is configured to, based on an access request of a user, invoke a target function configuration item matched with the access request from the configuration manager, and dynamically change configuration item data corresponding to the target function configuration item according to the content of the access request, so as to synthesize a service function, which is matched with the access request and applied to a front-end display page.
In some embodiments of the present application, please refer to fig. 5, and fig. 5 is a block diagram illustrating a basic structure of an electronic device according to an embodiment of the present application. As shown in fig. 5, the electronic apparatus 5 of this embodiment includes: a processor 51, a memory 52 and a computer program 53, such as a program of a service function configuration method, stored in said memory 52 and executable on said processor 51. The processor 51 implements the steps in the various embodiments of the service function configuration method described above when executing the computer program 53. Alternatively, the processor 51 implements the functions of the modules in the embodiment corresponding to the service function configuration apparatus when executing the computer program 53. Please refer to the description related to the embodiment, which is not repeated herein.
Illustratively, the computer program 53 may be divided into one or more modules (units) that are stored in the memory 52 and executed by the processor 51 to accomplish the present application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 53 in the electronic device 5. For example, the computer program 53 may be divided into an interaction data acquisition module, a configuration item generation module, and a business function synthesis module, and the specific functions of the modules are as described above.
The electronic device may include, but is not limited to, a processor 51, a memory 52. Those skilled in the art will appreciate that fig. 5 is merely an example of an electronic device 5 and does not constitute a limitation of the electronic device 5 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.
The Processor 51 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 52 may be an internal storage unit of the electronic device 5, such as a hard disk or a memory of the electronic device 5. The memory 52 may also be an external storage device of the electronic device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 5. Further, the memory 52 may also include both an internal storage unit and an external storage device of the electronic device 5. The memory 52 is used for storing the computer programs and other programs and data required by the electronic device. The memory 52 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments. In this embodiment, the computer-readable storage medium may be nonvolatile or volatile.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for configuring service functions, comprising:
acquiring interactive data between a front-end display page and a back-end processor of a service system, wherein the interactive data comprises request data transmitted to the back-end processor by the front-end display page for processing and/or response data fed back to the front-end display page by the back-end processor after processing;
performing configuration type analysis on the interactive data by adopting a preset data analysis model, generating a function configuration item for the service system based on the interactive data, and storing the function configuration item and configuration item data corresponding to the function configuration item in a configuration manager;
based on the access request of the user, calling a target function configuration item matched with the access request from the configuration manager, and dynamically changing configuration item data corresponding to the target function configuration item according to the content of the access request to synthesize a service function matched with the access request and applied to a front-end display page.
2. The business function configuration method of claim 1, wherein the step of performing configuration category analysis on the interaction data by using a preset data analysis model to generate the function configuration item of the business system based on the interaction data comprises:
and adopting a naive Bayes classification algorithm and a syntax analysis algorithm to perform field analysis on the character string fields contained in the interactive data, judging whether the character string fields have configurable attributes, and if so, generating a function configuration item for representing the character string fields as the function configuration item of the service system.
3. The business function configuration method of claim 2, wherein the step of performing field analysis on the string fields contained in the interactive data by using a naive bayes classification algorithm and a syntax analysis algorithm to determine whether the string fields have configurable attributes comprises:
and counting frequency information, numerical value information and rule information of the character string field in the interactive data, and judging whether the character string field has configurable attributes or not according to the frequency information, the numerical value information and the rule information.
4. The business function configuration method of claim 3, wherein the step of performing field analysis on the character string fields contained in the interactive data by using a naive Bayesian classification algorithm and a syntax analysis algorithm and judging whether the character string fields have configurable attributes comprises:
judging whether parameters represented in the character string field can be enumerated or can be set as fixed values or not according to the frequency information, the numerical value information and the rule information, and if so, judging that the character string field has configurable attributes; and/or
Judging whether the character string field has a time attribute or not according to the frequency information, the numerical value information and the rule information, and if so, judging that the character string field has a configurable attribute; and/or
Judging whether the character string field is associated with a user ID or associated with user information according to the frequency information, the numerical value information and the rule information, and if so, judging that the character string field has a configurable attribute; and/or
Judging whether the character string field is associated with a geographical position or not according to the frequency information, the numerical value information and the rule information, and if so, judging that the character string field has a configurable attribute; and/or
And judging whether the character string field is associated with service data or not according to the frequency information, the numerical value information and the rule information, and if so, judging that the character string field has a configurable attribute.
5. The business function configuration method according to any one of claims 1 to 4, wherein the step of performing configuration category analysis on the interaction data by using a preset data analysis model to generate a function configuration item of the business system based on the interaction data, and storing the function configuration item and configuration item data corresponding to the function configuration item in a configuration manager further comprises:
acquiring source interface information of the interactive data, wherein the source interface information comprises a target interface name corresponding to an interface for accessing the interactive data;
inquiring an association relation table between a preset interface name and a configuration category analysis dimension according to the target interface name, and determining a target configuration category analysis dimension for performing configuration category analysis on the interactive data from the association relation table between the interface name and the configuration category analysis dimension;
and inputting the target configuration category analysis dimension into the preset data analysis model, so that the data analysis model performs configuration category analysis on the interactive data according to the target configuration category analysis dimension.
6. The business function configuration method according to claim 1, wherein the step of invoking a target function configuration item matched with the access request from the configuration manager based on the access request of the user, and dynamically changing configuration item data corresponding to the target function configuration item according to the content of the access request to generate the business function matched with the access request and applied to the front-end presentation page further comprises:
if the target function configuration items are multiple, performing aggregation processing on the multiple target function configuration items to synthesize the multiple target function configuration items into a service function and apply the service function to a front-end display page.
7. A business system, wherein the business system is configured to implement the business function configuration method according to any one of claims 1 to 6, and the business system comprises a front-end presentation page, a front-end interception plug-in, a configuration manager, and a back-end processor, wherein:
the front-end display page is used for receiving an access request input by a user and executing page rendering operation according to the service function synthesized by the front-end interception plug-in;
the front interception plug-in is used for intercepting the request data before the front-end display page transmits the request data to the back-end processor for processing and/or intercepting the response data before the back-end processor feeds back the response data obtained after processing to the front-end display page, and calling the preset data analysis model to perform configuration type analysis on the request data and/or the response data so as to obtain a function configuration item used by the business system;
the configuration manager is used for storing and managing the function configuration items obtained by the preposed interception plug-in and the function configuration item data corresponding to the function configuration items;
and the back-end processor is used for performing service logic processing according to the access request of the user and feeding back response data corresponding to the access request to the front-end display page.
8. The business system of claim 7, wherein the configuration manager is provided with a configuration item validation module in the business system, wherein:
the configuration item validation module is used for presetting a preset parameter of the function configuration item according to a preset logic, so as to determine the validation mode of the function configuration item according to the preset parameter, wherein the preset logic comprises one or more of 'OR', 'AND' and 'NOT'.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 6 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202210032818.6A 2022-01-12 2022-01-12 Service function configuration method, equipment, storage medium and service system thereof Pending CN114356333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210032818.6A CN114356333A (en) 2022-01-12 2022-01-12 Service function configuration method, equipment, storage medium and service system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210032818.6A CN114356333A (en) 2022-01-12 2022-01-12 Service function configuration method, equipment, storage medium and service system thereof

Publications (1)

Publication Number Publication Date
CN114356333A true CN114356333A (en) 2022-04-15

Family

ID=81109219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210032818.6A Pending CN114356333A (en) 2022-01-12 2022-01-12 Service function configuration method, equipment, storage medium and service system thereof

Country Status (1)

Country Link
CN (1) CN114356333A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291877A (en) * 2022-10-10 2022-11-04 深圳市明源云客电子商务有限公司 Service development method, device, terminal equipment and computer readable storage medium
CN116340405A (en) * 2023-03-29 2023-06-27 北京科乐园网络科技有限公司 Enterprise data processing method, device, equipment and storage medium based on big data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291877A (en) * 2022-10-10 2022-11-04 深圳市明源云客电子商务有限公司 Service development method, device, terminal equipment and computer readable storage medium
CN116340405A (en) * 2023-03-29 2023-06-27 北京科乐园网络科技有限公司 Enterprise data processing method, device, equipment and storage medium based on big data
CN116340405B (en) * 2023-03-29 2023-10-13 北京科乐园网络科技有限公司 Enterprise data processing method, device, equipment and storage medium based on big data

Similar Documents

Publication Publication Date Title
CN108363602B (en) Intelligent UI (user interface) layout method and device, terminal equipment and storage medium
CN114356333A (en) Service function configuration method, equipment, storage medium and service system thereof
CN108347532B (en) Function access method, device, terminal equipment and storage medium
CN109597974B (en) Report generation method and device
CN108920543B (en) Query and interaction method and device, computer device and storage medium
CN111259643A (en) Method and equipment for generating graphical report
CN111475694A (en) Data processing method, device, terminal and storage medium
CN111382182A (en) Data processing method and device, electronic equipment and storage medium
CN108255967B (en) Method and device for calling storage process, storage medium and terminal
CN113704307A (en) Data query method, device, server and computer readable storage medium
CN112667716A (en) Data processing method and device, electronic equipment and storage medium
CN107748772B (en) Trademark identification method and device
CN111047434B (en) Operation record generation method and device, computer equipment and storage medium
CN110941634A (en) Data processing method and device, storage medium and electronic device
CN114461705A (en) Data visualization generation method and device, electronic equipment and storage medium
CN112487018A (en) List generation method, apparatus electronic device and computer readable storage medium
CN108959294A (en) A kind of method and apparatus accessing search engine
CN111695077A (en) Asset information pushing method, terminal equipment and readable storage medium
EP4216076A1 (en) Method and apparatus of processing an observation information, electronic device and storage medium
CN111159207A (en) Information processing method and device
CN115114321A (en) Dynamic query method and system
CN112486796B (en) Method and device for collecting information of vehicle-mounted intelligent terminal
CN110471708B (en) Method and device for acquiring configuration items based on reusable components
CN111078736A (en) Data aggregation processing method and device, terminal and storage medium
CN112579428A (en) Interface testing method and device, electronic equipment and storage medium

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