CN111338604A - Service generation method, device, equipment and computer readable storage medium - Google Patents

Service generation method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111338604A
CN111338604A CN202010129299.6A CN202010129299A CN111338604A CN 111338604 A CN111338604 A CN 111338604A CN 202010129299 A CN202010129299 A CN 202010129299A CN 111338604 A CN111338604 A CN 111338604A
Authority
CN
China
Prior art keywords
service
component
standard
configuration information
standard component
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
CN202010129299.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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN202010129299.6A priority Critical patent/CN111338604A/en
Publication of CN111338604A publication Critical patent/CN111338604A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the field of financial science and technology and discloses a service generation method, a device, equipment and a computer readable storage medium. The method comprises the following steps: when a service access request is received, acquiring an initial service file corresponding to the service access request; analyzing the initial service file through a preset abstract service model to obtain basic components and configuration information in the initial service file; and calling a service generation framework, determining a standard component corresponding to the basic component, combining the standard components according to the configuration information to form a standard component sequence, and providing a service corresponding to the service access request by calling the standard component sequence. The invention improves the efficiency of service generation and reduces the waste of human resources in the service generation process.

Description

Service generation method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of financial technology (Fintech), and in particular, to a service generation method, apparatus, device, and computer-readable storage medium.
Background
In recent years, with the rapid development of internet financial technology (Fintech), more and more technologies (big data, distributed, Blockchain, artificial intelligence, etc.) are applied in the financial field.
The financial business types are more and more, services corresponding to the businesses are different, in order to integrate the multiple types of businesses and the services corresponding to the businesses, a service generation platform is arranged, different types of services are provided for different users through the service generation platform, in order to provide corresponding services for each user, the service generation platform needs to develop different services, and the current service development modes are two, one is manual development, the service development mode needs a large amount of repeated development, so that the waste of manpower and material resources is caused, and the service development efficiency is low; the other is to develop a set of fixed process steps, and customize the steps therein, so that the service development process is very fixed, and the service personalization degree is very limited.
Disclosure of Invention
The invention mainly aims to provide a service generation method, a service generation device, service generation equipment and a computer readable storage medium, and aims to solve the technical problems that the current service generation efficiency is low, the waste of manpower and material resources is serious, and the generated service is poor in flexibility.
In order to achieve the above object, the present invention provides a service generation method, including the following steps:
when a service access request is received, acquiring an initial service file corresponding to the service access request;
analyzing the initial service file through a preset abstract service model to obtain basic components and configuration information in the initial service file;
calling a service generation framework, determining a standard component corresponding to the basic component, combining the standard components according to the configuration information to form a standard component sequence, and taking the standard component sequence as a service corresponding to the service access request;
and when an operation request is received, acquiring the service data in the operation request, and loading the standard component to process the service data to provide service.
Optionally, before the step of analyzing the initial service file through a preset abstract service model and acquiring the basic components and the configuration information in the initial service file, the method includes:
when a model building request is received, obtaining a sample service file, wherein a basic component is marked in the sample service file;
extracting sample service files with a preset proportion to construct a component recognition model for recognizing the basic component, iteratively extracting the sample service files with the preset proportion to train the component recognition model, and acquiring the recognition accuracy of the trained component recognition model;
and when the identification accuracy is greater than the preset accuracy, acquiring the trained component identification model as a preset abstract service model.
Optionally, before the step of calling the service generation framework, determining the standard component corresponding to the base component, and combining the standard components according to the configuration information to form a standard component sequence, the method further includes:
when a framework building request is received, acquiring a predefined standard component, and associating the standard component with a component calling interface to form a core layer;
acquiring a predefined configuration rule, and associating the configuration rule with a component configuration interface to form a configuration layer;
acquiring a predefined adaptation rule, associating the adaptation rule with a component adaptation interface to form an adaptation layer, and integrating the core layer, the configuration layer and the adaptation layer to form a service generation framework.
Optionally, the step of calling the service generation framework, determining a standard component corresponding to the base component, and combining the standard components according to the configuration information to form a standard component sequence includes:
calling a service generation framework to obtain a standard component corresponding to the basic component in a core layer of the service generation framework;
inputting the configuration information into a configuration layer of the service generation framework to acquire the connection relation of the standard component;
and packaging the standard components according to the connection relation to form a standard component sequence through an adaptation layer in the service generation framework.
Optionally, the step of acquiring the service data in the operation request and loading the standard component to process the service data providing service when the operation request is received includes:
when an operation request is received, acquiring a service identifier and service data corresponding to the operation request;
and loading the standard component sequence corresponding to the service identification, processing the service data by running the standard component sequence to provide service, and obtaining an execution result of the operation request.
Optionally, after the step of determining a standard component corresponding to the base component by the calling service generation framework, and combining the standard components according to the configuration information to form a standard component sequence, the method further includes:
when a service shelf-off request is received, acquiring a service identifier corresponding to the service shelf-off request;
and acquiring configuration information and a standard component sequence corresponding to the service identifier, deleting the configuration information and splitting the standard component sequence, and completing the shelf release of the service corresponding to the service identifier.
Optionally, after the step of determining a standard component corresponding to the base component by the calling service generation framework, and combining the standard components according to the configuration information to form a standard component sequence, the method further includes:
when a service updating request is received, acquiring a service updating file;
analyzing the service update file through a preset abstract service model to obtain basic components and configuration information in the service update file;
comparing the basic components and the configuration information in the service update file with the basic components and the configuration information corresponding to the standard component sequence;
and if the basic component and the configuration information in the service updating file are different from the basic component and the configuration information corresponding to the standard component sequence, updating the standard component sequence according to the basic component and the configuration information in the service updating file, and taking the updated standard component sequence as the updating service corresponding to the service updating request.
In addition, to achieve the above object, the present invention also provides a service generation apparatus, including:
the information acquisition module is used for acquiring an initial service file corresponding to a service access request when the service access request is received;
the component abstraction module is used for analyzing the initial service file through a preset abstraction service model to obtain basic components and configuration information in the initial service file;
the service generation module is used for calling a service generation framework and determining a standard component corresponding to the basic component;
and the service generation module is used for combining the standard components according to the configuration information to form a standard component sequence and providing the service corresponding to the service access request by calling the standard component sequence.
In addition, to achieve the above object, the present invention also provides a service generation apparatus, including: memory, a processor and a service generation corresponding computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the service generation method as described above.
Further, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a computer program corresponding to service generation, which when executed by a processor, implements the steps of the service generation method as described above.
The invention provides a service generation method, a device, equipment and a computer readable storage medium, the service generation method in the embodiment of the invention reduces the complicated configuration operation, analysis operation and code development operation of developers, reduces the waste of human resources in the service generation process, realizes the dynamic generation of the service, improves the service generation efficiency, and can effectively ensure the flexibility of the service generation.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a service generation method according to the present invention;
fig. 3 is a schematic diagram of a specific scenario of a second embodiment of the service generation method according to the present invention;
FIG. 4 is a flowchart illustrating a fourth embodiment of a service generation method according to the present invention;
fig. 5 is a functional block diagram of an embodiment of a service generation apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The service generation device according to the embodiment of the present invention may be a PC or a server device, and as shown in fig. 1, the service generation device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein computer programs for operating the network communication module, the user interface module, and the service generation.
In the device shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the service stored in the memory 1005 to generate a corresponding computer program and perform operations in the service generation method described below.
Based on the above hardware structure, an embodiment of the service generation method of the present invention is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a service generation method according to the present invention, where the service generation method in this embodiment includes:
when a service access request is received, acquiring an initial service file corresponding to the service access request;
analyzing the initial service file through a preset abstract service model to obtain basic components and configuration information in the initial service file;
calling a service generation framework, determining a standard component corresponding to the basic component, combining the standard components according to the configuration information to form a standard component sequence, and taking the standard component sequence as a service corresponding to the service access request;
and when an operation request is received, acquiring the service data in the operation request, and loading the standard component to process the service data to provide service.
The service generation method in the embodiment is applied to service generation equipment in financial institutions (banking institutions, insurance institutions, security institutions, and the like) in the financial industry. The service generation device is a hardware platform loaded with a service generation computer program, a JVM (Java Virtual Machine) is run on the service generation device, and the service generation device is used for realizing dynamic service generation.
For example, a financial institution integrates financial services of different third parties, and the current service integration method is as follows: the third party provides the initial service file, and because the initial service file does not accord with the code writing rule of the financial institution, the developer of the financial institution writes the code according to the initial service file to provide the third party service on the financial institution.
In this embodiment, an abstract service model is pre-established in the service generation device, where the abstract service model refers to an algorithm for abstracting an initial service file of a third party into components, that is, the abstract service model can obtain a service logic of the third party by analyzing the initial service file; the abstract service model is obtained through machine learning, and the construction steps of the abstract service model comprise:
a1, when a model building request is received, obtaining a sample service file, wherein a basic component is marked in the sample service file;
a2, extracting sample service files with a preset proportion to construct a component recognition model for recognizing the basic component, iteratively extracting the sample service files with the preset proportion to train the component recognition model, and acquiring the recognition accuracy of the trained component recognition model;
step a3, when the recognition accuracy is greater than the preset accuracy, acquiring the trained component recognition model as a preset abstract service model.
The service generation equipment receives the model construction request, the triggering mode of the model construction request is not specifically limited, the service generation equipment acquires a historical service file provided by a third party, and the service generation equipment constructs an abstract service model according to the historical service file. Specifically, the service generation device takes a historical service file as a sample service file, a user for model construction marks a basic component in the sample service file, the service generation device extracts sample service files with a preset proportion (the preset proportion can be flexibly set according to a specific scene, for example, the preset proportion is set to be 5%) to construct a component recognition model for recognizing the basic component, then, the service generation device iteratively extracts a sample service file training component recognition model with the preset proportion, and the service generation device obtains the recognition accuracy of the trained component recognition model; the service generation device compares the recognition accuracy with a preset accuracy (the preset accuracy refers to the accuracy of a preset component recognition model when the model converges, for example, the preset accuracy is set to 98%), if the recognition accuracy is less than or equal to the preset accuracy, the service generation device continues to extract the sample service file for iterative training, and when the recognition accuracy is greater than the preset accuracy, the service generation device obtains the trained component recognition model as a preset abstract service model.
For example, a user marks a basic component in a historical service file provided by a third party, a service generation device obtains marking information of the user, the service generation device obtains the historical service file in a preset time period (the preset time period is flexibly set according to a specific scene, for example, the preset time period can be set to be 1 month or 1 week), the service generation device extracts a part of sample service files from the historical service files, the service generation device performs initialization modeling according to the sample service files and the marking information of the user through a Lambda algorithm, and after an initial model is obtained, the service generation device performs iterative training to generate an abstract service model for identifying the basic component.
In this embodiment, the service generation device constructs the abstract service model according to the historical service file, and thus the abstract service model is automatically constructed based on machine learning, so that the abstract service model is used to perform recognition analysis on the initial service file provided by the third party, determine the service logic of the initial service file, reduce the analysis operation of developers, and reduce the waste of human resources in the service generation process.
In this embodiment, after the abstract service model is constructed, a service generation framework needs to be built, the identified basic components are converted through the service generation framework, standard components (which can be understood as service logics) corresponding to the basic components (which can be understood as standard general service logics) are spliced, and then the standard components are spliced by the service generation equipment to form corresponding services. The service generation framework in the embodiment comprises the following building steps:
step b1, when a framework construction request is received, acquiring a predefined standard component, and associating the standard component with a component calling interface to form a core layer;
step b2, obtaining predefined configuration rules, associating the configuration rules with the component configuration interface to form a configuration layer;
step b3, obtaining predefined adaptation rules, associating the adaptation rules with component adaptation interfaces to form adaptation layers, and integrating the core layer, the configuration layer and the adaptation layers to form a service generation framework.
When the service generation equipment receives the framework construction request, the service generation equipment acquires a predefined standard component, and the service generation equipment associates the standard component with the component calling interface to form a core layer; the core layer provides basic realization of a preset defined standard component, the standard component can be an Action (execution component), a Filter (Filter component) and a Processor (processing component), the core layer is a refined and perfect kernel and has strong expression capability, and the setting of the core layer can meet various requirements; in addition, the core layer can provide two modes of asynchronous and synchronous execution for the execution of the standard components, and provides two modes of parallel execution and serial execution for a plurality of standard components, and the upper layer can switch between the operation modes only by modifying the mode type parameters; meanwhile, the characteristics of the core layer are transparent to the upper layer and do not invade any matter.
The service generation equipment acquires a predefined configuration rule (the configuration rule can be a component calling rule, a data source query rule and the like), and associates the configuration rule with a component configuration interface to form a configuration layer; the configuration layer is a place for defining services, and in the embodiment, the service generation device can form a service structure and a service processing flow through configuration by configuring the isomorphism of the content and the content of the service; in addition, the configuration layer provides support for a variety of configuration data sources, such as underlying databases and local files.
The service generation equipment acquires a predefined adaptation rule (the adaptation rule can be understood as a framework access rule), the service generation equipment associates the adaptation rule with the component adaptation interface to form an adaptation layer, and the adaptation layer is used for supporting various types of services and interfacing other frameworks; the adaptation layer comprises an extension of the core layer and supports an Akka framework and a Spring framework. For example, the adaptation layer encapsulates recommended services and advertisement service components, the extended Filter supports the Abstest, the extended Processor supports performance monitoring and logs, and the adaptation layer can be extended according to the requirements of service scenes, so that the framework is more friendly to specific services and easier to use.
The service generation device integrates the core layer, the configuration layer and the adaptation layer to form a service generation framework. The service generation frame in this embodiment has solved the inconvenient pain point of access third party's business, and the service generation frame possesses very strong flexibility and commonality, realizes the high multiplexing of subassembly, the code volume that has significantly reduced improves development efficiency and uses manpower sparingly, and the service generation frame can insert the third party's business fast simultaneously, has greatly promoted platform type system access new customer's speed.
In addition, in the embodiment, the service codes and the framework codes are decoupled, so that algorithm personnel can concentrate on algorithm components, and service developers concentrate on service logic, thereby improving the code quality and maintainability. The framework processes the bottom level details, optimizes uniformly and ensures the service performance and stability.
After the abstract service model is built and the service generation framework is built, the service generation equipment utilizes the abstract service model and the service generation framework to perform rapid service access, and specifically:
step S10, when receiving the service access request, obtaining an initial service file corresponding to the service access request.
The service generation device receives the service access request, and the triggering mode of the service access request is not specifically limited, that is, the service access request may be actively triggered by the user, for example, the user clicks a "service generation" key on the service generation device to trigger the service access request; or the service access request may also be automatically triggered by the service generation device, for example, when a preset service file in the service generation device is updated, the service access request is automatically triggered, and when the service generation device detects that a preset service generation condition is met, the service access request is automatically triggered.
When the service generation device receives the service access request, the service generation device obtains an initial service file corresponding to the service access request, where the initial service file is a service file provided by a third party, and under a normal condition, a service file code provided by the third party does not conform to the service generation device, and the service generation device needs to identify the initial service file to provide an access third party service on the service generation device and provide a service for a user, specifically:
step S20, parsing the initial service file through a preset abstract service model, and obtaining basic components and configuration information in the initial service file.
The service generation equipment inputs the initial service file into a preset abstract service model, analyzes the initial service file through the preset abstract service model, and acquires a basic component in the initial service file and configuration information related to the basic component. Specifically, the method comprises the following steps:
the implementation mode is as follows: the service generation equipment inputs an initial service file into the abstract service model, the abstract service model cleans the initial service file to remove invalid service information, the abstract service model extracts the characteristics of the rest service information to obtain the description information of the component, the abstract service model takes the description information of the component as a basic component, and further the abstract service model obtains the configuration information corresponding to the basic component.
The implementation mode two is as follows: the service generation equipment inputs the initial service file into an abstract service model, and the abstract service model selects an abstract service sub-model according to the file type of the initial service file; the service generation equipment extracts the characteristics of the initial service file through the abstract service sub-model to obtain the description information of the component, the abstract service model takes the description information of the component as a basic component, and further the abstract service model obtains the configuration information corresponding to the basic component. In this embodiment, the abstract service model includes a plurality of abstract service submodels, which not only can ensure the minimum training amount of the abstract service model, but also can ensure the accuracy of component identification.
After the service generation device obtains the standard component and the configuration information, the service generation device calls a service generation framework to generate a service, specifically:
step S30, calling a service generation framework, determining a standard component corresponding to the basic component, combining the standard components according to the configuration information to form a standard component sequence, and providing a service corresponding to the service access request by calling the standard component sequence.
The service generation equipment calls a service generation framework, determines a standard component corresponding to the basic component, combines the standard components according to the configuration information to form a standard component sequence, and takes the standard component sequence as a service corresponding to the service access request, specifically:
step c1, calling a service generation framework to obtain a standard component corresponding to the basic component in a core layer of the service generation framework;
step c2, inputting the configuration information into the configuration layer of the service generation framework, and acquiring the connection relation of the standard component;
and c3, packaging the standard components into a standard component sequence according to the connection relation through an adaptation layer in the service generation framework.
The service generation equipment calls the service generation framework to acquire a standard component corresponding to a basic component in a core layer of the service generation framework, namely the core layer determines the function of the basic component, the core layer acquires a predefined standard component with the same function as the basic component and takes the standard component as the standard component corresponding to the basic component; the service generation equipment inputs the configuration information to a configuration layer of a service generation framework to obtain the connection relation of the standard components; and the service generation device encapsulates the standard components according to the connection relation to form a standard component sequence through an adaptation layer in the service generation framework.
For example, the service generation framework is realized by using Scala and Java languages, supports languages such as Java, Scala and kotlin based on JVM, is used by introducing jar packages, supports package management tools such as maven, gradle and sbt, is deeply integrated with frameworks such as Spring and Akka, is convenient and easy to use, and can be used by a third-party new service access only through the following three steps: 1. and introducing a framework jar package into the service generation equipment. 2. And defining the service according to the configuration information identified by the jar packet. 3. The service is loaded in the project.
The service generation method in the embodiment reduces tedious configuration operation, analysis operation and code development operation of developers, reduces waste of human resources in the service generation process, realizes dynamic generation of services, improves service generation efficiency, and can effectively ensure flexibility of service generation.
Further, based on the first embodiment of the service generation method of the present invention, a second embodiment of the service generation method of the present invention is proposed.
This embodiment is a step after step S30 in the first embodiment, and is different from the above-described embodiments in that:
when an operation request is received, acquiring a service identifier and service data corresponding to the operation request;
and loading the standard component sequence corresponding to the service identification, processing the service data by running the standard component sequence to provide service, and obtaining an execution result of the operation request.
Specifically, in this embodiment, when the service generation device receives the operation request, the service generation device obtains a service identifier and service data corresponding to the operation request; the service generation equipment inquires a preset data table, wherein the preset data table is a mapping relation table of the service identification and the service; the service generation equipment acquires a standard component and configuration information corresponding to the service identifier; and the service generation equipment loads a standard component sequence corresponding to the service identifier according to the standard component and the configuration information, and the service generation equipment processes service data by operating the standard component sequence to obtain an execution result of the operation request.
For example, referring to fig. 3, the service generation device may pay a service response, that is, when the application layer receives the user operation request, the service generation device makes a service call to the service generation framework, and the service generation framework generates a corresponding service according to the configuration information assembly standard data.
In the embodiment, the service generation device provides corresponding services through the standard component sequence, when receiving the operation request, the service generation device obtains the service data in the operation request, loads the standard component to process the service data, and provides the services.
By adopting the service generation mode in financial institutions such as banking institutions, service access can be more efficiently carried out when financial businesses are frequently changed.
Further, based on the foregoing embodiment of the service generation method of the present invention, a third embodiment of the service generation method of the present invention is provided.
This embodiment is a step after step S30 in the first embodiment, and is different from the above-described embodiments in that:
when a service shelf-off request is received, acquiring a service identifier corresponding to the service shelf-off request;
and acquiring configuration information and a standard component sequence corresponding to the service identifier, deleting the configuration information and splitting the standard component sequence, and completing the shelf release of the service corresponding to the service identifier.
In this embodiment, when the service generation device receives a service shelf request, the service generation device obtains a service identifier corresponding to the service shelf request; and the service generation equipment acquires the configuration information and the standard component sequence corresponding to the service identifier, deletes the configuration information and splits the standard component sequence, and completes the shelf release of the service corresponding to the service identifier. When the business is off-shelf in the embodiment, the operation is convenient, and the workload of developers is reduced.
Further, referring to fig. 4, a fourth embodiment of the service generation method of the present invention is proposed based on the above-mentioned embodiment of the service generation method of the present invention.
This embodiment is a step after step S30 in the first embodiment, and is different from the above-described embodiments in that:
step S40, when receiving the service update request, obtains the service update file.
The service generation device receives the service update request, the triggering mode of the service update request is not specifically limited, and when the service generation device receives the service update request, the service generation device acquires the service update file.
Step S50, parsing the service update file through a preset abstract service model, and acquiring basic components and configuration information in the service update file.
The service generation device parses the service update file through the preset abstract service model to obtain the basic components and the configuration information in the service update file, where the implementation manner of parsing the service update file through the preset abstract service model by the service generation device refers to the first embodiment, and details are not repeated in this embodiment.
Step S60, comparing the basic components and configuration information in the service update file with the basic components and configuration information corresponding to the standard component sequence;
and the service generation equipment compares the basic component and the configuration information in the service update file with the basic component and the configuration information corresponding to the existing standard component sequence, and if the basic component and the configuration information in the service update file are the same as the basic component and the configuration information corresponding to the standard component sequence, the service generation equipment does not process the basic component and the configuration information.
Step S70, if the basic component and the configuration information in the service update file are different from the basic component and the configuration information corresponding to the standard component sequence, updating the standard component sequence according to the basic component and the configuration information in the service update file, and using the updated standard component sequence as the update service corresponding to the service update request.
If the basic component and the configuration information in the service update file are different from the basic component and the configuration information corresponding to the standard component sequence, the service generation equipment updates the standard component sequence according to the basic component and the configuration information in the service update file, namely, the service generation equipment analyzes the service update file through a preset abstract service model to obtain the basic component and the configuration information in the service update file; and the service generation equipment calls the service generation framework to determine the standard component corresponding to the basic component, the service generation equipment combines the standard components according to the configuration information to form a standard component sequence, and the service generation equipment takes the standard component sequence as the corresponding service after the service is updated. And when the operation request is received, the service generation equipment acquires the service data in the operation request, and loads and updates the standard component to process the service data to provide service.
In the embodiment, the automatic service updating can be realized by only modifying the configuration, the existing service is modified, the restarting and the version sending are not needed, and the service updating operation is more convenient.
Referring to fig. 5, the present invention also provides a service generation apparatus, including:
the information obtaining module 10 is configured to obtain an initial service file corresponding to a service access request when the service access request is received;
the component abstraction module 20 is configured to analyze the initial service file through a preset abstraction service model, and obtain a basic component and configuration information in the initial service file;
and the service generation module 30 is configured to invoke a service generation framework, determine a standard component corresponding to the basic component, combine the standard components according to the configuration information to form a standard component sequence, and provide a service corresponding to the service access request by invoking the standard component sequence.
Optionally, the service generation apparatus includes:
the system comprises a sample acquisition module, a model construction module and a model generation module, wherein the sample acquisition module is used for acquiring a sample service file when a model construction request is received, and basic components are marked in the sample service file;
the construction training module is used for extracting sample business files with a preset proportion, constructing a component recognition model for recognizing the basic component, iteratively extracting the sample business files with the preset proportion, training the component recognition model, and acquiring the recognition accuracy of the trained component recognition model;
and the model acquisition module is used for acquiring the trained component identification model as a preset abstract service model when the identification accuracy is greater than the preset accuracy.
Optionally, the service generation apparatus includes:
the framework building module is used for acquiring a predefined standard component when a framework building request is received, and associating the standard component with a component calling interface to form a core layer;
the association generation module is used for acquiring a predefined configuration rule and associating the configuration rule with the component configuration interface to form a configuration layer;
and the framework generation module is used for acquiring a predefined adaptation rule, associating the adaptation rule with a component adaptation interface to form an adaptation layer, and integrating the core layer, the configuration layer and the adaptation layer to form a service generation framework.
Optionally, the service generation module 30 includes:
calling a service generation framework to obtain a standard component corresponding to the basic component in a core layer of the service generation framework;
inputting the configuration information into a configuration layer of the service generation framework to acquire the connection relation of the standard component;
and packaging the standard components according to the connection relation to form a standard component sequence through an adaptation layer in the service generation framework.
Optionally, the service generation apparatus includes:
the operation acquisition module is used for acquiring a service identifier and service data corresponding to an operation request when the operation request is received;
and the loading service module is used for loading the standard component sequence corresponding to the service identifier, processing the service data by operating the standard component sequence providing service and obtaining the execution result of the operation request.
Optionally, the service generation apparatus includes:
the request receiving module is used for acquiring a service identifier corresponding to a service off-shelf request when the service off-shelf request is received;
and the service off-shelf module is used for acquiring the configuration information and the standard component sequence corresponding to the service identifier by the user, deleting the configuration information and splitting the standard component sequence to finish off-shelf of the service corresponding to the service identifier.
Optionally, the service generation apparatus includes:
the acquisition updating module is used for acquiring a service updating file when receiving a service updating request;
the information analysis module is used for analyzing the service update file through a preset abstract service model to acquire basic components and configuration information in the service update file;
the information comparison module is used for comparing the basic components and the configuration information in the service update file with the basic components and the configuration information corresponding to the standard component sequence;
and the service updating module is used for updating the standard component sequence according to the basic component and the configuration information in the service updating file and taking the updated standard component sequence as the updating service corresponding to the service updating request if the basic component and the configuration information in the service updating file are different from the basic component and the configuration information corresponding to the standard component sequence.
The method implemented when the service generation apparatus is executed may refer to each embodiment of the service generation method of the present invention, and details are not described herein.
The service generation device in the embodiment implements dynamic service generation by executing the steps, reduces complex configuration operation, analysis operation and code development operation of developers, reduces waste of human resources in the service generation process, implements dynamic service generation, improves service generation efficiency, and can effectively ensure flexibility of service generation.
The invention also provides a computer readable storage medium.
The computer-readable storage medium of the present invention has stored thereon a computer program corresponding to service generation, which when executed by a processor implements the steps of the service generation method as described above.
The method implemented when the computer program corresponding to the service generation executed on the processor is executed may refer to each embodiment of the service generation method of the present invention, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A service generation method, characterized by comprising the steps of:
when a service access request is received, acquiring an initial service file corresponding to the service access request;
analyzing the initial service file through a preset abstract service model to obtain basic components and configuration information in the initial service file;
and calling a service generation framework, determining a standard component corresponding to the basic component, combining the standard components according to the configuration information to form a standard component sequence, and providing a service corresponding to the service access request by calling the standard component sequence.
2. The service generation method of claim 1, wherein before the step of parsing the initial service file through a preset abstract service model to obtain the basic components and configuration information in the initial service file, the method further comprises:
when a model building request is received, obtaining a sample service file, wherein a basic component is marked in the sample service file;
extracting sample service files with a preset proportion to construct a component recognition model for recognizing the basic component, iteratively extracting the sample service files with the preset proportion to train the component recognition model, and acquiring the recognition accuracy of the trained component recognition model;
and when the identification accuracy is greater than the preset accuracy, acquiring the trained component identification model as a preset abstract service model.
3. The service generation method of claim 1, wherein before the step of invoking the service generation framework, determining a standard component corresponding to the base component, and combining the standard components according to the configuration information to form a standard component sequence, the method further comprises:
when a framework building request is received, acquiring a predefined standard component, and associating the standard component with a component calling interface to form a core layer;
acquiring a predefined configuration rule, and associating the configuration rule with a component configuration interface to form a configuration layer;
acquiring a predefined adaptation rule, associating the adaptation rule with a component adaptation interface to form an adaptation layer, and integrating the core layer, the configuration layer and the adaptation layer to form a service generation framework.
4. The service generation method of claim 1, wherein the step of calling the service generation framework, determining a standard component corresponding to the base component, and combining the standard components according to the configuration information to form a standard component sequence comprises:
calling a service generation framework to obtain a standard component corresponding to the basic component in a core layer of the service generation framework;
inputting the configuration information into a configuration layer of the service generation framework to acquire the connection relation of the standard component;
and packaging the standard components according to the connection relation to form a standard component sequence through an adaptation layer in the service generation framework.
5. The service generation method according to claim 1, wherein after the step of combining the standard components according to the configuration information to form a standard component sequence and providing the service corresponding to the service access request by calling the standard component sequence, the method comprises:
when an operation request is received, acquiring a service identifier and service data corresponding to the operation request;
and loading the standard component sequence corresponding to the service identification, processing the service data by running the standard component sequence to provide service, and obtaining an execution result of the operation request.
6. The service generation method of claim 1, wherein after the step of invoking the service generation framework, determining the standard components corresponding to the base components, and combining the standard components according to the configuration information to form a standard component sequence, the method further comprises:
when a service shelf-off request is received, acquiring a service identifier corresponding to the service shelf-off request;
and acquiring configuration information and a standard component sequence corresponding to the service identifier, deleting the configuration information and splitting the standard component sequence, and completing the shelf release of the service corresponding to the service identifier.
7. The service generation method of any one of claims 1 to 6, wherein after the step of invoking the service generation framework, determining a standard component corresponding to the base component, and combining the standard components according to the configuration information to form a standard component sequence, the method further comprises:
when a service updating request is received, acquiring a service updating file;
analyzing the service update file through a preset abstract service model to obtain basic components and configuration information in the service update file;
comparing the basic components and the configuration information in the service update file with the basic components and the configuration information corresponding to the standard component sequence;
and if the basic component and the configuration information in the service updating file are different from the basic component and the configuration information corresponding to the standard component sequence, updating the standard component sequence according to the basic component and the configuration information in the service updating file, and taking the updated standard component sequence as the updating service corresponding to the service updating request.
8. A service generation apparatus, characterized in that the service generation apparatus comprises:
the information acquisition module is used for acquiring an initial service file corresponding to a service access request when the service access request is received;
the component abstraction module is used for analyzing the initial service file through a preset abstraction service model to obtain basic components and configuration information in the initial service file;
and the service generation module is used for calling a service generation framework, determining the standard component corresponding to the basic component, combining the standard components according to the configuration information to form a standard component sequence, and providing the service corresponding to the service access request by calling the standard component sequence.
9. A service generation device, characterized in that the service generation device comprises: memory, processor and service generation corresponding computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the service generation method according to any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program for service generation correspondence, which, when executed by a processor, implements the steps of the service generation method according to any one of claims 1 to 7.
CN202010129299.6A 2020-02-28 2020-02-28 Service generation method, device, equipment and computer readable storage medium Pending CN111338604A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010129299.6A CN111338604A (en) 2020-02-28 2020-02-28 Service generation method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010129299.6A CN111338604A (en) 2020-02-28 2020-02-28 Service generation method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111338604A true CN111338604A (en) 2020-06-26

Family

ID=71181992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010129299.6A Pending CN111338604A (en) 2020-02-28 2020-02-28 Service generation method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111338604A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112054998A (en) * 2020-08-10 2020-12-08 中粮招商局(深圳)粮食电子交易中心有限公司 Proxy service method, device, equipment and computer readable storage medium
CN112328219A (en) * 2020-11-04 2021-02-05 数字广东网络建设有限公司 Service access processing method, device and system and computer equipment
CN113110921A (en) * 2021-06-11 2021-07-13 北京百度网讯科技有限公司 Operation method, device, equipment and storage medium of block chain system
CN113268230A (en) * 2021-05-18 2021-08-17 深圳希施玛数据科技有限公司 Feedback information generation method, device, terminal and storage medium
CN115829034A (en) * 2023-01-09 2023-03-21 白杨时代(北京)科技有限公司 Method and device for constructing knowledge rule execution framework

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112054998A (en) * 2020-08-10 2020-12-08 中粮招商局(深圳)粮食电子交易中心有限公司 Proxy service method, device, equipment and computer readable storage medium
CN112328219A (en) * 2020-11-04 2021-02-05 数字广东网络建设有限公司 Service access processing method, device and system and computer equipment
CN113268230A (en) * 2021-05-18 2021-08-17 深圳希施玛数据科技有限公司 Feedback information generation method, device, terminal and storage medium
CN113268230B (en) * 2021-05-18 2023-09-08 深圳希施玛数据科技有限公司 Feedback information generation method and device, terminal and storage medium
CN113110921A (en) * 2021-06-11 2021-07-13 北京百度网讯科技有限公司 Operation method, device, equipment and storage medium of block chain system
CN113110921B (en) * 2021-06-11 2021-10-22 北京百度网讯科技有限公司 Operation method, device, equipment and storage medium of block chain system
US11682014B2 (en) 2021-06-11 2023-06-20 Beijing Baidu Netcom Science Technology Co., Ltd. Method and apparatus for operating blockchain system, device and storage medium
CN115829034A (en) * 2023-01-09 2023-03-21 白杨时代(北京)科技有限公司 Method and device for constructing knowledge rule execution framework
CN115829034B (en) * 2023-01-09 2023-05-30 白杨时代(北京)科技有限公司 Method and device for constructing knowledge rule execution framework

Similar Documents

Publication Publication Date Title
CN111338604A (en) Service generation method, device, equipment and computer readable storage medium
CN111596965B (en) Project engineering initialization method, device, computer equipment and storage medium
US10789241B2 (en) Generation of service specification of a solution
CN109710220B (en) Relational database query method, relational database query device, relational database query equipment and storage medium
CA2598317C (en) Mobile device having extensible software for presenting server-side applications, software and methods
CN101162428A (en) Method for acquiring and converting the state of component in the time of operation during software dynamic evolvement
US20070204216A1 (en) System and method for creating layouts using a layout editor
CN106778351A (en) Data desensitization method and device
CN110825430A (en) API document generation method, device, equipment and storage medium
CN111068328A (en) Game advertisement configuration table generation method, terminal device and medium
US20140282380A1 (en) Method and apparatus for enabling agile development of services in cloud computing and traditional environments
CN111414350A (en) Service generation method and device
CN110069248A (en) Call method, device, equipment and the computer readable storage medium of interface data
CN114416075A (en) Service processing method and device
CN112799659A (en) Method, device and terminal for automatically generating data interface without programming
CN113987337A (en) Search method, system, equipment and storage medium based on componentized dynamic arrangement
CN115794214B (en) Application module metadata management method, device, storage medium and apparatus
CN111259039A (en) Database operation method, device, equipment and computer readable storage medium
CN111124386B (en) Animation event processing method, device, equipment and storage medium based on Unity
WO2022099913A1 (en) Interface configuration method and apparatus, and device and medium
CN114490673A (en) Data information processing method and device, electronic equipment and storage medium
CN102148755A (en) Mainframe injection component and method for manipulating data packets communicated between emulators and mainframes
CN111309319A (en) Inheritable office data dynamic page configuration method and device
CN115052035B (en) Message pushing method, device and storage medium
CN116974653B (en) Class loading method and system

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