CN114185618B - Service tool configuration method, device, computer equipment and storage medium - Google Patents

Service tool configuration method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN114185618B
CN114185618B CN202111524999.6A CN202111524999A CN114185618B CN 114185618 B CN114185618 B CN 114185618B CN 202111524999 A CN202111524999 A CN 202111524999A CN 114185618 B CN114185618 B CN 114185618B
Authority
CN
China
Prior art keywords
call
page
service
function
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111524999.6A
Other languages
Chinese (zh)
Other versions
CN114185618A (en
Inventor
朱正刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Pingan Payment Technology Service Co Ltd
Original Assignee
Pingan Payment Technology Service 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 Pingan Payment Technology Service Co Ltd filed Critical Pingan Payment Technology Service Co Ltd
Priority to CN202111524999.6A priority Critical patent/CN114185618B/en
Publication of CN114185618A publication Critical patent/CN114185618A/en
Application granted granted Critical
Publication of CN114185618B publication Critical patent/CN114185618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • G06F9/24Loading of the microprogram
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application is applicable to the technical field of tool development, and provides a service tool configuration method, a device, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring a service tool configuration instruction, constructing a basic page with page function controls laid out in response to the service tool configuration instruction, and determining call chains corresponding to different page function controls in the basic page and all call interfaces required by each call chain based on service function information; parameter configuration is carried out on each call interface according to the call sequence among the call interfaces in the call chain, wherein call relations corresponding to the call chain are arranged among the call interfaces after the configuration is completed; and packaging to obtain the target service tool based on each call interface after parameter configuration and the laid-out basic page. The scheme can reduce repeated labor and improve tool development efficiency.

Description

Service tool configuration method, device, computer equipment and storage medium
Technical Field
The application belongs to the technical field of tool development, and particularly relates to a service tool configuration method, a service tool configuration device, computer equipment and a storage medium.
Background
With the micro-servitization and logic unitization of the service function system, call links between services in the system become long. In the face of the modification of the upstream and downstream systems, multiple parties are required to conduct joint debugging test and communication.
For joint debugging convenience, development business micro tools are extended to solve the problem. Specifically, each business department personnel develop corresponding business tools according to the needs of each business plate, and the business tools are used for assisting in joint debugging test.
In the processing method, in a specific operation process, related personnel of each business plate are required to write corresponding business tools, the development progress of the micro tools cannot keep pace with the iterative updating speed of the business, and when similar business processing flows (such as a shared bicycle and a shared electric bicycle) exist among different business plates, tool developers are required to execute approximately the same coding process respectively, so that repeated labor is caused, and the tool development efficiency is low.
Disclosure of Invention
The embodiment of the application provides a service tool configuration method, a device, computer equipment and a storage medium, which are used for solving the problems that the development progress of a service tool cannot keep pace with the iterative updating speed of a service in the prior art and the development efficiency is low.
A first aspect of an embodiment of the present application provides a service tool configuration method, including:
acquiring a service tool configuration instruction, wherein the service tool configuration instruction comprises service function information of a service tool;
responding to the service tool configuration instruction, constructing a basic page on which page function controls are laid out, and determining call chains corresponding to different page function controls in the basic page and various call interfaces required by each call chain based on the service function information, wherein the call chains are used for realizing chained call among different call interfaces;
parameter configuration is carried out on each calling interface according to the calling sequence among the calling interfaces in the calling chain, wherein the calling interfaces after configuration are provided with calling relations corresponding to the calling chain;
and packaging to obtain a target service tool based on each call interface after parameter configuration and the basic page after layout.
Optionally, the responding to the service tool configuration instruction constructs a basic page with page function controls, including:
responding to the service tool configuration instruction, analyzing the service function information to obtain function description characters corresponding to different service functions;
Based on the function description characters, selecting data input controls and instruction triggering controls corresponding to each service function from a function control pool;
and based on the data input control and the instruction trigger control corresponding to each service function, performing control layout according to a page template to obtain the basic page.
Optionally, the step of performing control layout according to a page template based on the data input control and the instruction trigger control corresponding to each service function to obtain the base page includes:
determining an application scene corresponding to the service function information based on the function description character;
selecting a page rendering style adapted to the service tool configuration instruction and page rendering data required by the page rendering style based on the application scene;
and performing control layout according to the page template based on the data input control and the instruction trigger control corresponding to each service function, and performing style rendering on the page template according to the page rendering data to obtain the basic page.
Optionally, the configuring parameters of each calling interface according to the calling sequence between the calling interfaces in the calling chain includes:
Determining a target call chain corresponding to the instruction triggering control of each service function;
taking a received data item of the data input control corresponding to the same service function as an entry of a first call interface in the target call chain according to the call sequence among the call interfaces in the target call chain;
and for each other calling interface except the first calling interface in the target calling chain, selecting a target data item from the outgoing parameters of the previous calling interface of each other calling interface, and taking the target data item as the incoming parameters of the corresponding other calling interface.
Optionally, after the target service tool is obtained by packaging the call interfaces after parameter configuration and the laid-out basic page, the method further includes:
acquiring a business function execution instruction triggered by a user through a first instruction trigger control in the target business tool, wherein the business function execution instruction carries data content input by the user through a target data input control belonging to the same business function with the first instruction trigger control;
and responding to the service function execution instruction, based on a first call chain corresponding to the first instruction triggering control, assigning the data content to the participation of the first call interface in the first call chain, and sequentially executing the call operation of each call interface according to the call sequence among the call interfaces in the first call chain.
Optionally, after determining the call chains corresponding to the page function controls in the base page and the call interfaces required by each call chain based on the service function information, the method further includes:
acquiring the adjustment operation of a user on a second call chain corresponding to a target page function control in the basic page;
and adjusting a call interface in the second call chain based on the adjustment operation, and updating the call chain formed after the adjustment of the call interface into the second call chain corresponding to the first page function control.
Optionally, after the target service tool is obtained by packaging the call interfaces after parameter configuration and the laid-out basic page, the method further includes:
generating a business function label based on the business function of the target business tool;
and storing the target business tool and the business function label in a business tool library in an associated mode.
A second aspect of an embodiment of the present application provides a service tool configuration apparatus, including:
the service tool configuration instruction comprises service function information of a service tool;
The first configuration module is used for responding to the service tool configuration instruction, constructing a basic page with page function controls laid out, and determining a calling chain corresponding to different page function controls in the basic page and each calling interface required by each calling chain based on the service function information, wherein the calling chain is used for realizing chained calling among different calling interfaces;
the second configuration module is used for carrying out parameter configuration on each call interface according to the call sequence among the call interfaces in the call chain, wherein the call interfaces with the configured call relations corresponding to the call chain are arranged among the call interfaces;
and the generating module is used for packaging and obtaining a target service tool based on the call interfaces after parameter configuration and the basic pages after layout.
A third aspect of the embodiments of the present application provides a terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method according to the first aspect.
A fifth aspect of the present application provides a computer program product for causing a terminal to carry out the steps of the method of the first aspect described above when the computer program product is run on the terminal.
From the above, in the embodiment of the present application, based on the obtained service tool configuration instruction, the layout of the basic page of the service tool and the configuration of the call chains corresponding to the function controls in the page and the call interfaces required by each call chain are realized through the service function information carried in the service tool configuration instruction, so that the tool development has higher convenience, the repeated labor is reduced, and the tool development efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a service tool configuration method provided in an embodiment of the present application;
Fig. 2 is a flowchart two of a service tool configuration method provided in an embodiment of the present application;
fig. 3 is a structural diagram of a service tool configuration device provided in an embodiment of the present application;
fig. 4 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In particular implementations, the terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having a touch-sensitive surface (e.g., a touch screen display and/or a touch pad). It should also be appreciated that in some embodiments, the device is not a portable communication device, but a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or a touch pad).
In the following discussion, a terminal including a display and a touch sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal supports various applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk burning applications, spreadsheet applications, gaming applications, telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications, and/or digital video player applications.
Various applications that may be executed on the terminal may use at least one common physical user interface device such as a touch sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed between applications and/or within the corresponding applications. In this way, the common physical architecture (e.g., touch-sensitive surface) of the terminal may support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that the sequence number of each step in this embodiment does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
In order to illustrate the technical solutions described in the present application, the following description is made by specific examples.
Referring to fig. 1, fig. 1 is a flowchart of a service tool configuration method according to an embodiment of the present application. As shown in fig. 1, a service tool configuration method includes the following steps:
step 101, acquiring a service tool configuration instruction.
The service tool configuration instruction comprises service function information of the service tool.
The service function information specifically comprises function description information such as data sources, processing means, processing steps, processing results of at least one service function to be realized, user interaction interface layout corresponding to different service functions and the like.
The service tool configuration instruction is specifically a trigger realized by a service tool configuration page, wherein service function information is derived from configuration parameters input in the service tool configuration page, so that a user can realize quick configuration generation of the service tool, and the operation convenience is improved.
In the implementation process, a service tool configuration page (such as a WEB page, a client page, etc.) can be provided for the user to implement the configuration operation on the service tool through the service tool configuration page.
The user can input the service configuration parameters of the service tool through the service tool configuration page and then click the configuration button to trigger the service tool configuration instruction.
Or, the user can write configuration files corresponding to different service function information, store the configuration files in the designated storage address, and when a service tool configuration instruction is triggered through a service tool configuration page, the service tool configuration instruction indicates an acquisition path of the configuration files corresponding to the service function information.
Step 102, a basic page with page function controls is constructed in response to a service tool configuration instruction, and call chains corresponding to different page function controls in the basic page and various call interfaces required by each call chain are determined based on service function information.
The call chain is used for realizing chain type call among different call interfaces.
At least page function controls are arranged in the basic page, more interactive elements can be set for the basic page according to actual user requirements, and specific limitation is omitted here.
The business function information contained in the business tool configuration instruction is associated with page function controls needing to be laid out in a basic page of the business tool, and based on the business function information, the business tool configuration instruction determines which function controls need to be equipped with.
When the basic page with the page function controls is constructed in response to the service tool configuration instruction, the configuration document formed by configuration personnel after configuration parameters are input through the service tool configuration page is analyzed in response to the service tool configuration instruction, corresponding service function description information is extracted, the page function controls corresponding to the service function description information are matched, and setting of the basic layout of the page is achieved based on the page function controls.
The determination of the page function control can obtain the page function control matched with the service function information by analyzing the form file in the configuration file corresponding to the service function information.
The form file realizes configuration of form elements, and the form elements are used for a user to input contents in a form, such as: text fields, drop down lists, radio boxes, check boxes, function trigger keys, and the like. The form file realizes the configuration of page function controls in the basic page.
For example, a configurator sets the parameter name, the control label name, whether to fill, the control type, whether to select multiple options, the multiple options and other information of the current configuration item through inputting parameters, and forms a relevant form configuration file so as to realize the setting of the function controls in the form file.
After the basic page is constructed, the business function corresponding to the page function control needs to be further realized.
Specifically, based on the service function information, service processing logic corresponding to the page function controls is analyzed to determine a call chain corresponding to each page function control in the basic page, so that chained call among different interfaces is realized.
The call chain comprises different call nodes and call relations among the nodes, and each node corresponds to a call interface.
In one aspect, the determining of the call chain may be determining service logic corresponding to different functional controls based on service function information of the service tool, and determining the call chain corresponding to different functional controls and call interfaces related to the call chain based on the service logic.
The configuration of the call chain can select the target function module as a call node and call parameters among the call nodes according to the configuration requirement of the service tool so as to realize the logic configuration of the service tool.
When logic configuration is carried out, functional modules with different data processing methods can be generated in advance, the different functional modules have corresponding calling interfaces, a target functional module is selected as a calling node according to the functional configuration requirement of a service tool, and the parameter configuration is carried out on the calling interfaces of the functional modules corresponding to the calling nodes to realize the data processing logic configuration of the service function, so that the service tool has flexibility.
The calling relation among different functional modules can be adjusted according to actual needs, and the number of the functional modules is not limited.
On the other hand, the call chains corresponding to the controls with different functions can be formulated in advance, specifically, a series of call chains can be customized in advance based on service logic corresponding to the different functional controls, for example, a query function button is designed to take 3 function modules as call chains of call nodes, then call action links corresponding to the 3 function modules can be configured for the button, and when step 102 is executed, the call chains of the corresponding functions and call interfaces required by each call chain can be obtained by matching the target functional controls arranged in the basic page from the call chains customized in advance.
The process is directly based on the service tool configuration instruction, and the layout of the basic page of the service tool and the configuration of the service function processing logic of the control in the page are realized through the service function information carried in the service tool configuration instruction, so that the tool development has higher convenience, the repeated labor is reduced, and the tool development efficiency is improved.
Further, in an optional implementation manner, before determining the call chains corresponding to different page function controls in the basic page and the call interfaces required by each call chain based on the service function information, a processing procedure for constructing an interface service platform is further included. The method specifically comprises the following steps:
the call interfaces of the function modules which are configured in advance are packaged and stored in a database, the call interfaces are subjected to data cleaning and format standardization processing before being stored in the database, the collected call interfaces are stored, the call interfaces are extracted from the database and pushed to a service tool configuration page based on the corresponding data storage addresses of the call interfaces in the database, and the call interfaces and the call sequence among the call interfaces required by a call chain are determined based on the selection configuration operation of the user on the call interfaces in the service tool configuration page.
Or, the method specifically includes packaging call interfaces of function modules which are configured in advance, storing the packaged call interfaces in a database, selecting an alternative call interface matched with the call interfaces from the database based on service function information, extracting the alternative call interface from the database, pushing the alternative call interface to a service tool configuration page, and determining each call interface required by a call chain and a call sequence among each call interface based on selection configuration operation of a user on the alternative call interface in the service tool configuration page.
The embodiment of the application can acquire and process the related data based on the artificial intelligence technology. Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
Artificial intelligence infrastructure technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and other directions.
And 103, carrying out parameter configuration on each calling interface according to the calling sequence among the calling interfaces in the calling chain.
The call interfaces with the configuration completed have call relations corresponding to the call chains.
Specifically, when parameter configuration is performed on each call interface in the call chain, parameter entering and parameter exiting configuration is required to be performed between each call interface, so that different call interfaces have set call sequences, and corresponding service functions are realized.
And setting the output participation input parameters of all the calling interfaces in the call chain corresponding to the page function control by taking the output parameters of the previous calling interface in each calling interface as the input parameters of the next calling interface and the like. The entry of the first calling interface in the calling chain is derived from the form configuration parameters corresponding to the basic page, so that the calling triggering of the first calling interface is realized by data input by a user or a user-triggered instruction in the basic page.
The process is based on the chained serial connection relation formed between the call interfaces by the page function control, so that the page function control can jointly realize the set business function by utilizing the function modules corresponding to the target interfaces.
And 104, packaging to obtain the target business tool based on each call interface after parameter configuration and the laid-out basic page.
After the layout of the basic page and the parameter configuration of each calling interface in the calling chain corresponding to the functional control of different pages are realized, the configuration of the display page of the service tool and the processing logic configuration of the functional control in the page are realized at the moment, and the data encapsulation processing can be performed based on the two parts of contents, so that the service tool which can be finally used directly is obtained.
In the process, a user can generate a service tool only by executing configuration operation, so that various problems caused by multi-person development are avoided, and the tool development efficiency is greatly improved.
In the embodiment of the application, based on the acquired service tool configuration instruction, the layout of the basic page of the service tool and the configuration of the call chains corresponding to the function controls in the page and the call interfaces required by each call chain are realized through the service function information carried in the service tool configuration instruction, so that the tool development has higher convenience, the repeated labor is reduced, and the tool development efficiency is improved.
Further, further optional embodiments of the different processing steps in the business tool configuration method described above will be described below with reference to a specific layout manner of the base page.
Step 102, in response to the service tool configuration instruction, constructs a basic page with page functionality controls, including:
responding to the service tool configuration instruction, analyzing the service function information to obtain function description characters corresponding to different service functions;
based on the function description characters, selecting a data input control and an instruction trigger control corresponding to each service function from a function control pool;
and triggering the control based on the data input control and the instruction corresponding to each service function, and carrying out control layout according to the page template to obtain a basic page.
The process provides a possible processing mode for the situation that the currently configured business tool needs to have multiple business functions.
Specifically, the data input control and the instruction trigger control corresponding to each service function need to be determined respectively based on each service function. More specifically, one business function corresponds to one instruction triggering control and at least one data input control, and the one instruction triggering control and the at least one data input control form a group of page function controls corresponding to the current business function.
According to the implementation mode, control layout of different service functions can be achieved, so that the service tool has multiple service functions at the same time, the functional diversity of the tool is improved, and the development efficiency and the development convenience of the tool are improved.
Wherein the different service functions correspond to respective function description characters. The function description characters are, for example, data source parameters, processing step parameters, processing result display parameters, user interaction interface layout parameters corresponding to the current service function, and the like.
Based on the function description characters, a data input control and an instruction trigger control can be selected from the function control pool, wherein the data input control is a text input control, a drop-down list control, a single selection or check box and the like, so that a user can select or input corresponding data of different data sources.
The command triggering control is, for example, a single click control, a double click control, a sliding bar control and the like, so that the triggering of the service function execution command is realized.
Further, in a specific embodiment, the triggering control based on the data input control and the instruction corresponding to each service function, performing control layout according to a page template to obtain a basic page, includes:
determining an application scene corresponding to the service function information based on the function description character;
selecting a page rendering style adapted to the service tool configuration instruction and page rendering data required by the page rendering style based on the application scene;
And triggering the control based on the data input control and the instruction corresponding to each service function, performing control layout according to the page template, and performing style rendering on the page template according to page rendering data to obtain a basic page.
Based on the function description character, for example, based on information such as data sources, data processing steps and the like contained in the function description character, a corresponding application scene is determined, and a page rendering style corresponding to the current application scene is selected.
For example, the data source in the function description character is a securities database, the data processing step includes securities trade authenticity verification and the like, the corresponding application scene is judged to be a securities trade scene, at this time, the page rendering style is selected to be a strict dark rendering style, and the page rendering data required by the style is obtained.
And when the corresponding application scene is judged to be a shopping transaction scene based on the function description characters, the bright color system rendering style with the page rendering style being bright can be selected at the moment, and meanwhile, the page rendering data required by the style is acquired.
The page rendering data is, for example, data of a rendered color, a distribution area of the color, a spread pattern of the color, a rendered texture, a distribution area of the texture, and the like. For example, header color, page body color, header texture, page body texture, etc. may be set. The setting may be performed according to actual needs, and is not particularly limited here.
According to the embodiment, based on application scenes of different service functions, the stylized setting of the basic page of the tool is realized, and the display effect and the attractiveness of the tool are improved.
Further, correspondingly, in an embodiment, the parameter configuration is performed on each call interface according to the call sequence among the call interfaces in the call chain, including:
determining a target call chain corresponding to the instruction triggering control of each service function;
according to the calling sequence among the calling interfaces in the target calling chain, taking the received data item of the data input control corresponding to the same service function as the input parameter of the first calling interface in the target calling chain;
for each other calling interface except the first calling interface in the target calling chain, selecting a target data item from the parameter of the previous calling interface of each other calling interface, and taking the target data item as the parameter of the corresponding other calling interface.
The parameter output of each calling interface in the calling chain is set according to the data processing requirement.
Specifically, a part of fields can be selected from the processing results of the data by the functional modules corresponding to the calling interface, and then the field parameters of the part of fields are used as the parameters of the calling interface. When the interface call is executed specifically, the processing result is directly subjected to data extraction according to the value rule to obtain the data content corresponding to the output parameters.
In order to realize the sequential call relationship between different call interfaces, the parameter entering of the downstream call interface needs to be set by using the parameter exiting of the upstream call interface. The method is characterized in that a target data item is selected from the parameter of the previous calling interface to serve as the parameter of the current calling interface, so that continuous transfer of data according to the processing sequence is realized.
Taking online shopping commodity as an example, the online shopping commodity corresponds to an online shopping service function, the data input control corresponding to the service function is, for example, a control for inputting the number of commodities and the specification of the commodities, and the instruction triggering control corresponding to the service function is, for example, a control for submitting orders.
The processing steps corresponding to the business function of the online shopping commodity comprise the steps of amount payment, order warehousing and the like, a data link corresponding to the business function is required to be called through interfaces of a payment function module and an order management function module, when the first calling interface corresponding to the payment function module is subjected to parameter entering configuration, a received data item (commodity number and commodity specification) of a control in a basic page is used as a parameter entering of the first calling interface, a parameter exiting of the first calling interface is set as a transaction result, a parameter exiting value of the transaction result is set as a parameter entering of a second calling interface corresponding to the order management function module, and a parameter exiting of the second calling interface is set as an order warehousing result.
The specific parameter settings need to be specifically set in connection with the implementation of the actual service functions, which are only exemplary.
Further, after the target service tool is obtained by packaging the call interfaces after parameter configuration and the laid-out basic page, the method further comprises the following steps:
acquiring a business function execution instruction triggered by a user through a first instruction trigger control in a target business tool, wherein the business function execution instruction carries data content input by the user through a target data input control belonging to the same business function with the first instruction trigger control;
responding to the business function execution instruction, triggering a first call chain corresponding to the control based on the first instruction, assigning data content into the call of the first call interface in the first call chain, and executing the call operation of each call interface in turn according to the call sequence among the call interfaces in the first call chain.
The foregoing examples of business functions of online shopping are further described.
When a user triggers an online shopping commodity function execution instruction through a control of an order submitting button, the instruction carries commodity quantity and commodity specification, the commodity quantity and commodity specification are assigned to the input parameters of a first calling interface of a payment function module, after the commodity specification and commodity quantity are input, the payment function module calculates payment amount for the user to pay according to unit price and commodity quantity corresponding to the commodity specification, after the user pays successfully, a successful payment result is output through the output parameters, according to the calling sequence among calling interfaces in a calling chain, the second calling interface of the order management function module is continuously executed to call, the successful payment result is transmitted to the input parameters of the second calling interface, the order management function module executes warehousing processing of the current submitted order based on the successful payment result data, and after the warehousing is successful, the successful warehousing result is output through the output parameters, so that the purchase of the commodity by the user is realized.
The process corresponds to the application process of the configured business tool, namely, how to implement the execution of the business functions in the business tool.
According to the implementation mode, after the business tool is configured, the corresponding business function can be realized according to the configured call chain based on the business function execution instruction triggered by the user through the control in the basic page, the convenience of tool development and application is improved, the period from development to application of the tool is shortened, and the business processing efficiency is improved.
Different implementation manners of the service tool configuration method are also provided in the embodiments of the present application.
Referring to fig. 2, fig. 2 is a flowchart second of a service tool configuration method according to an embodiment of the present application. As shown in fig. 2, a service tool configuration method includes the following steps:
step 201, a service tool configuration instruction is obtained.
The service tool configuration instruction comprises service function information of the service tool.
The implementation process of this step is the same as that of step 101 in the foregoing embodiment, and will not be described here again.
Step 202, a basic page with page function controls is constructed in response to a service tool configuration instruction, and call chains corresponding to different page function controls in the basic page and various call interfaces required by each call chain are determined based on service function information.
The call chain is used for realizing chain type call among different call interfaces.
The implementation process of this step is the same as that of step 102 in the foregoing embodiment, and will not be described here again.
In an optional implementation manner, after determining the call chains corresponding to different page function controls in the basic page and the call interfaces required by each call chain based on the service function information, the method further includes:
acquiring adjustment operation of a user on a second call chain corresponding to a target page function control in a basic page;
and adjusting the call interface in the second call chain based on the adjustment operation, and updating the call chain formed after the adjustment of the call interface into the second call chain corresponding to the first page function control.
The adjustment operation is, for example, a delete operation of the call interface, an adjustment operation of the call sequence between call interfaces, an add operation of the call interface, or the like.
Here, after determining call chains corresponding to different page function controls in the base page and each call interface required by each call chain based on the service function information, in order to avoid deviation of the service tool configuration platform in determining the call chains and call interfaces required by the call chains, a user error correction mechanism is provided.
The user can adjust the call interface in the determined call chain according to the actual service function requirement so as to realize the adjustment of the whole call chain.
After the call chains are correspondingly adjusted based on the adjustment operation of the user, updating a second call chain corresponding to the target page function control to be the adjusted call chain, and ensuring the accuracy of the configuration result.
And 203, carrying out parameter configuration on each calling interface according to the calling sequence among the calling interfaces in the calling chain.
The call interfaces with the configuration completed have call relations corresponding to the call chains.
The implementation process of this step is the same as that of step 103 in the foregoing embodiment, and will not be described here again.
And 204, packaging to obtain the target business tool based on each call interface after parameter configuration and the laid-out basic page.
The implementation process of this step is the same as that of step 104 in the foregoing embodiment, and will not be described here again.
Step 205, generating a business function label based on the business function of the target business tool.
The service function label realizes the marking of the service functions which can be realized by the target service tool.
And step 206, storing the target business tool and the business function label in a business tool library in an associated manner.
And carrying out association storage on the configured target service tool and the service function label so that the subsequent service tool can be conveniently searched and managed in the application process.
In the embodiment of the application, based on the acquired service tool configuration instruction, the layout of the basic page of the service tool and the configuration of the call chains corresponding to the function controls in the page and all call interfaces required by each call chain are realized through the service function information carried in the service tool configuration instruction, the user error correction mechanism of the call chains is provided, the configuration accuracy and the performance reliability of the service tool are ensured, the function label of the service tool is finally generated, the convenient searching and management of the service tool are realized, and the tool development efficiency and the user experience are improved.
Referring to fig. 3, fig. 3 is a block diagram of a service tool configuration device provided in an embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
The service tool configuration device 300 includes:
the acquiring module 301 is configured to acquire a service tool configuration instruction, where the service tool configuration instruction includes service function information of a service tool;
The first configuration module 302 is configured to respond to the service tool configuration instruction, construct a basic page with page function controls laid out, and determine a call chain corresponding to different page function controls in the basic page and each call interface required by each call chain based on the service function information, where the call chain is used to implement chained call between different call interfaces;
the second configuration module 303 is configured to perform parameter configuration on each call interface according to a call sequence between the call interfaces in the call chain, where the call interfaces after configuration have a call relationship corresponding to the call chain;
and the generating module 304 is configured to package and obtain a target service tool based on the call interfaces after parameter configuration and the basic page after layout.
The first configuration module 302 is specifically configured to:
responding to the service tool configuration instruction, analyzing the service function information to obtain function description characters corresponding to different service functions;
based on the function description characters, selecting data input controls and instruction triggering controls corresponding to each service function from a function control pool;
And based on the data input control and the instruction trigger control corresponding to each service function, performing control layout according to a page template to obtain the basic page.
Wherein, the first configuration module 302 is more specifically configured to:
determining an application scene corresponding to the service function information based on the function description character;
selecting a page rendering style adapted to the service tool configuration instruction and page rendering data required by the page rendering style based on the application scene;
and performing control layout according to the page template based on the data input control and the instruction trigger control corresponding to each service function, and performing style rendering on the page template according to the page rendering data to obtain the basic page.
The second configuration module 303 is specifically configured to:
determining a target call chain corresponding to the instruction triggering control of each service function;
taking a received data item of the data input control corresponding to the same service function as an entry of a first call interface in the target call chain according to the call sequence among the call interfaces in the target call chain;
And for each other calling interface except the first calling interface in the target calling chain, selecting a target data item from the outgoing parameters of the previous calling interface of each other calling interface, and taking the target data item as the incoming parameters of the corresponding other calling interface.
The apparatus further comprises:
the execution module is used for acquiring a service function execution instruction triggered by a user through a first instruction trigger control in the target service tool, wherein the service function execution instruction carries data content input by the user through a target data input control belonging to the same service function with the first instruction trigger control; and responding to the service function execution instruction, based on a first call chain corresponding to the first instruction triggering control, assigning the data content to the participation of the first call interface in the first call chain, and sequentially executing the call operation of each call interface according to the call sequence among the call interfaces in the first call chain.
The apparatus further comprises:
the adjustment module is used for acquiring adjustment operation of a user on a second call chain corresponding to the target page function control in the basic page; and adjusting a call interface in the second call chain based on the adjustment operation, and updating the call chain formed after the adjustment of the call interface into the second call chain corresponding to the first page function control.
The apparatus further comprises:
the storage module is used for generating a service function label based on the service function of the target service tool; and storing the target business tool and the business function label in a business tool library in an associated mode.
The service tool configuration device provided in the embodiment of the present application can implement each process of the embodiment of the service tool configuration method, and can achieve the same technical effects, so that repetition is avoided, and no further description is provided here.
Fig. 4 is a block diagram of a computer device according to an embodiment of the present application. As shown in the figure, the computer device 4 of this embodiment includes: at least one processor 40 (only one is shown in fig. 4), a memory 41 and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, the processor 40 implementing the steps in any of the various method embodiments described above when executing the computer program 42.
The computer device 4 may be a desktop computer, a notebook computer, a palm computer, a cloud server, or the like. The computer device 4 may include, but is not limited to, a processor 40, a memory 41. It will be appreciated by those skilled in the art that fig. 4 is merely an example of computer device 4 and is not intended to limit computer device 4, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the computer device may also include input and output devices, network access devices, buses, etc.
The processor 40 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the computer device 4, such as a hard disk or a memory of the computer device 4. The memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the computer device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the computer device 4. The memory 41 is used for storing the computer program and other programs and data required by the computer device. The memory 41 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a 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 process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other manners. For example, the apparatus/terminal embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each method embodiment described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The present application may implement all or part of the procedures in the methods of the above embodiments, and may also be implemented by a computer program product, which when run on a terminal causes the terminal to implement steps in the embodiments of the methods described above.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; 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 technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (9)

1. A business tool configuration method, comprising:
acquiring a service tool configuration instruction, wherein the service tool configuration instruction comprises service function information of a service tool; the triggering time of the service tool configuration instruction is later than the input time of the service configuration parameters of the service tool or later than the writing and storing time of configuration files corresponding to different service function information;
Responding to the service tool configuration instruction, constructing a basic page on which page function controls are laid out, and determining call chains corresponding to different page function controls in the basic page and various call interfaces required by each call chain based on the service function information, wherein the call chains are used for realizing chained call among different call interfaces; the responding to the service tool configuration instruction builds a basic page with page function controls, and the method comprises the following steps: responding to the service tool configuration instruction, analyzing the service function information to obtain function description characters corresponding to different service functions; based on the function description characters, selecting data input controls and instruction triggering controls corresponding to each service function from a function control pool; based on the data input control and the instruction trigger control corresponding to each business function, performing control layout according to a page template to obtain the basic page;
parameter configuration is carried out on each calling interface according to the calling sequence among the calling interfaces in the calling chain, wherein the calling interfaces after configuration are provided with calling relations corresponding to the calling chain;
And packaging to obtain a target service tool based on each call interface after parameter configuration and the basic page after layout.
2. The method according to claim 1, wherein the step of performing control layout according to a page template based on the data input control and the instruction trigger control corresponding to each service function to obtain the base page includes:
determining an application scene corresponding to the service function information based on the function description character;
selecting a page rendering style adapted to the service tool configuration instruction and page rendering data required by the page rendering style based on the application scene;
and performing control layout according to the page template based on the data input control and the instruction trigger control corresponding to each service function, and performing style rendering on the page template according to the page rendering data to obtain the basic page.
3. The method of claim 1, wherein said parameter configuration of each of said call interfaces in accordance with a call order between each of said call interfaces in said call chain comprises:
Determining a target call chain corresponding to the instruction triggering control of each service function;
taking a received data item of the data input control corresponding to the same service function as an entry of a first call interface in the target call chain according to the call sequence among the call interfaces in the target call chain;
and for each other calling interface except the first calling interface in the target calling chain, selecting a target data item from the outgoing parameters of the previous calling interface of each other calling interface, and taking the target data item as the incoming parameters of the corresponding other calling interface.
4. The method according to claim 3, wherein after the encapsulating the target service tool based on the parameter configured calling interfaces and the laid-out base page, the method further comprises:
acquiring a business function execution instruction triggered by a user through a first instruction trigger control in the target business tool, wherein the business function execution instruction carries data content input by the user through a target data input control belonging to the same business function with the first instruction trigger control;
And responding to the service function execution instruction, based on a first call chain corresponding to the first instruction triggering control, assigning the data content to the participation of the first call interface in the first call chain, and sequentially executing the call operation of each call interface according to the call sequence among the call interfaces in the first call chain.
5. The method according to claim 1, wherein after determining call chains corresponding to different page functionality controls in the base page and respective call interfaces required by each call chain based on the service functionality information, the method further comprises:
acquiring the adjustment operation of a user on a second call chain corresponding to a target page function control in the basic page;
and adjusting the call interface in the second call chain based on the adjustment operation, and updating the call chain formed after the adjustment of the call interface into the second call chain corresponding to the first page function control.
6. The method according to claim 1, wherein after the encapsulating the target service tool based on the parameter configured calling interfaces and the laid-out base page, the method further comprises:
Generating a business function label based on the business function of the target business tool;
and storing the target business tool and the business function label in a business tool library in an associated mode.
7. A business tool configuration device, comprising:
the service tool configuration instruction comprises service function information of a service tool; the triggering time of the service tool configuration instruction is later than the input time of the service configuration parameters of the service tool or later than the writing and storing time of configuration files corresponding to different service function information;
the first configuration module is used for responding to the service tool configuration instruction, constructing a basic page with page function controls laid out, and determining a calling chain corresponding to different page function controls in the basic page and each calling interface required by each calling chain based on the service function information, wherein the calling chain is used for realizing chained calling among different calling interfaces; wherein, the first configuration mould body is used for: responding to the service tool configuration instruction, analyzing the service function information to obtain function description characters corresponding to different service functions; based on the function description characters, selecting data input controls and instruction triggering controls corresponding to each service function from a function control pool; based on the data input control and the instruction trigger control corresponding to each business function, performing control layout according to a page template to obtain the basic page; the second configuration module is used for carrying out parameter configuration on each call interface according to the call sequence among the call interfaces in the call chain, wherein the call interfaces with the configured call relations corresponding to the call chain are arranged among the call interfaces;
And the generating module is used for packaging and obtaining a target service tool based on the call interfaces after parameter configuration and the basic pages after layout.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 6.
CN202111524999.6A 2021-12-14 2021-12-14 Service tool configuration method, device, computer equipment and storage medium Active CN114185618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111524999.6A CN114185618B (en) 2021-12-14 2021-12-14 Service tool configuration method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111524999.6A CN114185618B (en) 2021-12-14 2021-12-14 Service tool configuration method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114185618A CN114185618A (en) 2022-03-15
CN114185618B true CN114185618B (en) 2024-04-05

Family

ID=80543679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111524999.6A Active CN114185618B (en) 2021-12-14 2021-12-14 Service tool configuration method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114185618B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460279A (en) * 2018-12-14 2019-03-12 平安城市建设科技(深圳)有限公司 Forms pages development approach, device, equipment and storage medium based on small routine
CN110784509A (en) * 2019-09-16 2020-02-11 腾讯科技(深圳)有限公司 Medical information processing method and system and related components
CN112015769A (en) * 2020-09-01 2020-12-01 平安付科技服务有限公司 Data processing method and device, computer equipment and storage medium
CN113076104A (en) * 2021-04-30 2021-07-06 京东方科技集团股份有限公司 Page generation method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460279A (en) * 2018-12-14 2019-03-12 平安城市建设科技(深圳)有限公司 Forms pages development approach, device, equipment and storage medium based on small routine
CN110784509A (en) * 2019-09-16 2020-02-11 腾讯科技(深圳)有限公司 Medical information processing method and system and related components
CN112015769A (en) * 2020-09-01 2020-12-01 平安付科技服务有限公司 Data processing method and device, computer equipment and storage medium
CN113076104A (en) * 2021-04-30 2021-07-06 京东方科技集团股份有限公司 Page generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114185618A (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN109697629B (en) Product data pushing method and device, storage medium and computer equipment
CN108628741A (en) Webpage test method, device, electronic equipment and medium
CN108595583A (en) Dynamic chart class page data crawling method, device, terminal and storage medium
CN110045953A (en) Generate the method and computing device of business rule expression formula
CN108090568A (en) Recognize robot credit parser
CN105706081B (en) Structured message link annotation
CN107679119A (en) The method and apparatus for generating brand derivative words
CN106503224A (en) A kind of method and device for recommending application according to keyword
CN112463154A (en) Page generation method, device and system and electronic equipment
CN108255706A (en) Edit methods, device, terminal device and the storage medium of automatic test script
CN112181386B (en) Code construction method, device and terminal based on software continuous integration
CN114239504A (en) Form configuration method, device, equipment, readable storage medium and program product
CN108334346A (en) A kind of development approach and device of Service control flow
CN110442803A (en) Data processing method, device, medium and the calculating equipment executed by calculating equipment
CN114185618B (en) Service tool configuration method, device, computer equipment and storage medium
JP2022530725A (en) Information push methods, devices, equipment and storage media
CN114629800B (en) Visual generation method, device, terminal and storage medium for industrial control network target range
CN116228391A (en) Risk identification method and device, storage medium and electronic equipment
CN115686495A (en) Application generation method and device and server
CN113822215A (en) Equipment operation guide file generation method and device, electronic equipment and storage medium
CN113515701A (en) Information recommendation method and device
CN113935847A (en) Online process risk processing method, device, server and medium
CN113656690A (en) Product recommendation method and device, electronic equipment and readable storage medium
CN112949824A (en) Neural network-based multi-output multi-task feature evaluation method and device and electronic equipment
CN108510071B (en) Data feature extraction method and device and computer readable 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
GR01 Patent grant
GR01 Patent grant