CN115268854A - Service expansion implementation method, system, electronic equipment and readable storage medium - Google Patents

Service expansion implementation method, system, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115268854A
CN115268854A CN202211186163.4A CN202211186163A CN115268854A CN 115268854 A CN115268854 A CN 115268854A CN 202211186163 A CN202211186163 A CN 202211186163A CN 115268854 A CN115268854 A CN 115268854A
Authority
CN
China
Prior art keywords
target
service
extension
implementation
point
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
CN202211186163.4A
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.)
Shenzhen Mingyuan Cloud Technology Co Ltd
Original Assignee
Shenzhen Mingyuan Cloud Technology 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 Shenzhen Mingyuan Cloud Technology Co Ltd filed Critical Shenzhen Mingyuan Cloud Technology Co Ltd
Priority to CN202211186163.4A priority Critical patent/CN115268854A/en
Publication of CN115268854A publication Critical patent/CN115268854A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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
    • G06F9/4451User profiles; Roaming
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

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

Abstract

The application discloses a service expansion implementation method, a system, electronic equipment and a readable storage medium, which relate to the technical field of computers, and the service expansion implementation method comprises the following steps: defining a target expansion point according to the service requirement of the target service function; reporting the target extension point to a preset integration platform; if a service implementation request of a target service function is received, acquiring a target service identifier carried in the service implementation request; inquiring a preset registration information table according to the target service identifier to obtain a target expansion point corresponding to the target service identifier; and calling each corresponding target extension implementation according to the target extension point, and implementing the service implementation request based on the target extension implementation. The method and the device solve the technical problem that the service function is low in realization efficiency in the prior art.

Description

Service expansion implementation method, system, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, a system, an electronic device, and a readable storage medium for implementing service expansion.
Background
With the development of computer technology, it is common to develop business functions based on a development platform, for example, marketing services are developed through a marketing platform, and the marketing platform has a very diverse marketing modes, and thus, very many service customization demands are involved in each project.
At present, the business customization requirements are usually realized in a project secondary development mode, but the mode not only has certain influence on the original business, but also has higher and higher code complexity in a development platform along with more and more demand of the business customization requirements, the difficulty and the error rate of subsequent developers and system maintenance personnel are improved, and meanwhile, the situations of restarting and operation interruption of the development platform are inevitably brought, so that the realization efficiency of business functions is lower.
Disclosure of Invention
The present application mainly aims to provide a method, a system, an electronic device, and a readable storage medium for implementing service extension, and aims to solve the technical problem in the prior art that the implementation efficiency of service functions is low.
In order to achieve the above object, the present application provides a service extension implementation method, which is applied to an extension point defining end, and the service extension implementation method includes:
defining a target expansion point according to the service requirement of the target service function;
reporting the target extension point to a preset integration platform so that the preset integration platform can establish a corresponding relation between the target extension point and at least one target extension realization, and writing the corresponding relation into preset configuration information;
if a service implementation request of a target service function is received, acquiring a target service identifier carried in the service implementation request;
inquiring a preset registration information table according to the target service identifier to obtain a target expansion point corresponding to the target service identifier;
and calling each corresponding target extension implementation according to the target extension point, and implementing the service implementation request based on the target extension implementation.
Optionally, the step of calling each corresponding target extension implementation according to the target extension point, and executing the service implementation request based on the target extension implementation includes:
inquiring preset configuration information of the target expansion point according to the target expansion point to obtain each target expansion realization corresponding to the target expansion point;
and calling each target extension to realize and executing the service realization request.
Optionally, the step of querying preset configuration information of the target extension point to obtain each target extension implementation corresponding to the target extension point includes:
inquiring the preset configuration information to obtain a unique identifier of the target expansion point;
and determining each target expansion implementation corresponding to the unique identifier according to the unique identifier.
Optionally, the preset configuration information includes an implementation scheme of the target extension point, and after the step of determining, according to the unique identifier, each target extension implementation corresponding to the unique identifier, the method further includes:
according to the implementation scheme, giving calling priority to each target expansion implementation;
and calling each target expansion to be realized according to the calling priority.
Optionally, the step of calling each target extension implementation according to the call priority includes:
determining an execution sequence of each target expansion according to the calling priority;
and sequentially calling each target extension to be realized according to the execution sequence.
Optionally, the step of defining the target extension point according to the service requirement of the target service function includes:
determining common implementation points and difference points of each tenant aiming at the same service according to the service requirements;
and defining the target expansion point according to the common realization point and the difference point.
The application provides a service expansion implementation method, which is applied to a preset integrated platform end, and comprises the following steps:
receiving a target extension point reported by an extension point definition end, wherein the target extension point is obtained by defining the extension point definition end;
establishing a corresponding relation between the target extension point and the target extension realization;
and writing the corresponding relation into preset configuration information of the target extension point so as to be inquired by the extension point definition end.
The present application further provides a service extension implementation system, which includes the extension point defining end and the preset integration platform end, and the service extension implementation system includes:
the extension point defining end is used for defining a target extension point according to the service requirement of the target service function; reporting the target extension point to a preset integration platform so that the preset integration platform establishes a corresponding relation between the target extension point and at least one target extension implementation, and writing the corresponding relation into preset configuration information; if a service implementation request of the target service function is received, acquiring a target service identifier carried in the service implementation request; inquiring a preset registration information table according to the target service identifier to obtain a target expansion point corresponding to the target service identifier; and calling each corresponding target extension implementation according to the target extension point, and implementing the service implementation request based on the target extension implementation.
The preset integration platform end is used for receiving the target extension point reported by the extension point definition end, wherein the target extension point is obtained by the extension point definition end through definition; establishing a corresponding relation between the target expansion point and the target expansion realization; and writing the corresponding relation into preset configuration information of the target extension point so as to be inquired by the extension point definition end.
Optionally, the extension point defining end includes:
the definition module is used for defining a target expansion point according to the service requirement of the target service function;
the reporting module is used for reporting the target extension point to a preset integration platform so that the preset integration platform can establish a corresponding relation between the target extension point and at least one target extension implementation and write the corresponding relation into preset configuration information;
the system comprises an acquisition target service identification module, a service function acquisition module and a service function acquisition module, wherein the acquisition target service identification module is used for acquiring a target service identification carried in a service realization request if the service realization request of a target service function is received;
the query module is used for querying a preset registration information table according to the target service identifier to obtain a target expansion point corresponding to the target service identifier;
and the calling module is used for calling each corresponding target extension implementation according to the target extension point and executing the service implementation request based on the target extension implementation.
Optionally, the invoking module is further configured to:
inquiring preset configuration information of the target expansion point according to the target expansion point to obtain each target expansion realization corresponding to the target expansion point;
and calling each target expansion implementation and executing the service implementation request.
Optionally, the invoking module is further configured to:
inquiring the preset configuration information to obtain a unique identifier of the target expansion point;
and determining each target expansion implementation corresponding to the unique identifier according to the unique identifier.
Optionally, the extension point defining end is further configured to:
according to the implementation scheme, giving calling priority to each target expansion implementation;
and calling each target expansion to be realized according to the calling priority.
Optionally, the extension point defining end is further configured to:
determining an execution sequence of each target expansion according to the calling priority;
and sequentially calling each target expansion to be realized according to the execution sequence.
Optionally, the extension point defining end is further configured to:
determining a common realization point and a difference point of each tenant aiming at the same service according to the service requirement;
and defining the target expansion point according to the common realization point and the difference point.
Optionally, the preset integration platform end includes:
the receiving module is used for receiving the target extension point reported by the extension point defining end, wherein the target extension point is obtained by defining the extension point defining end;
the corresponding relation establishing module is used for establishing the corresponding relation between the target expansion point and the target expansion realization;
and the writing module is used for writing the corresponding relation into preset configuration information of the target extension point so as to be inquired by the extension point definition end.
The present application further provides an electronic device, the electronic device is an entity device, the electronic device includes: the service extension implementation method comprises a memory, a processor and a program of the service extension implementation method stored on the memory and capable of running on the processor, wherein the program of the service extension implementation method can realize the steps of the service extension implementation method when being executed by the processor.
The present application also provides a computer-readable storage medium, in which a program for implementing the service extension implementation method is stored, and when the program of the service extension implementation method is executed by a processor, the steps of the service extension implementation method are implemented.
The present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the service extension implementing method as described above.
Compared with the mode of realizing service customization requirements through project secondary development in the prior art, the method applied to the extension point definition end firstly obtains the target service identifier carried in the service realization request if the service realization request of the target service function is received; inquiring a preset registration information table according to the target service identifier to obtain a target expansion point corresponding to the target service identifier; calling each corresponding target extension implementation according to the target extension point, and implementing the service implementation request based on the target extension implementation; the method applied to the preset integration platform comprises the steps of firstly receiving a target extension point reported by an extension point definition end, wherein the target extension point is obtained by defining the extension point definition end; establishing a corresponding relation between the target expansion point and the target expansion realization; and writing the corresponding relation into preset configuration information of the target extension point so as to be inquired by the extension point definition end. The method and the device for realizing the service extension of the development platform overcome the technical defect that the realization efficiency of the service function is lower due to the fact that the code complexity in the development platform is higher and higher due to the secondary development of the project by defining the target extension point and calling the target extension corresponding to the target extension point, and therefore the realization efficiency of the service function is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a first embodiment of a service expansion implementation method of the present application;
fig. 2 is a flowchart of an extension point operation involved in the service extension implementation method of the present application;
fig. 3 is a flowchart illustrating a second embodiment of a service expansion implementation method according to the present application;
fig. 4 is a schematic device structure diagram of a hardware operating environment related to a service extension implementation method in this embodiment.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments of the present application are described in detail below with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
Example one
At present, the business customization requirements are usually realized in a project secondary development mode, but the mode not only has certain influence on the original business, but also has higher and higher code complexity in a development platform along with more and more demands of the business customization requirements, the difficulty and error rate of subsequent developers and system maintenance personnel are improved, and meanwhile, the situations of restarting and running interruption of the development platform are inevitably brought, so that the realization efficiency of business functions is lower.
In a first embodiment of the service extension implementation method of the present application, referring to fig. 1, the service extension implementation method includes:
step S10, defining a target expansion point according to the service requirement of the target service function;
step S20, reporting the target extension point to a preset integration platform so that the preset integration platform establishes a corresponding relation between the target extension point and at least one target extension realization and writes the corresponding relation into preset configuration information;
step S30, if a service realization request of a target service function is received, a target service identifier carried in the service realization request is obtained;
step S40, inquiring a preset registration information table according to the target service identifier to obtain a target expansion point corresponding to the target service identifier;
and step S50, calling each corresponding target extension implementation according to the target extension point, and executing the service implementation request based on the target extension implementation.
In this embodiment, it should be noted that the service implementation request is a request for data acquisition or transmission of a certain service; the target service identification is an identification corresponding to the service implementation request, the service implementation request can carry the target service identification, the target service identification is uniquely corresponding to the service implementation request, and a target expansion point can be determined according to the target service identification so as to determine the implementation of target expansion; the target extension point refers to multiple implementation interface definitions, a reasonable extension point needs to be abstracted in combination with multiple scenes, and is respectively implemented in different services, for example, commodity information display, activity information display, commodity purchase restriction rules, credit deduction and card voucher, and the like can be defined as extension points, each extension point can be preset with one or more corresponding extension implementations, an extension point can be understood as an upper functional expression for executing a certain function, the functional expression can be a most upper reusable code, the corresponding extension implementation can be a specific lower functional expression corresponding to the upper functional expression, can be an execution rule for executing a specific service request, or a specific program code, and the like, for example, the extension point 1 is released in an advertisement space, and the extension implementations a, B, and C corresponding to the extension point 1 are respectively a segment of text in the advertisement space, a segment of a picture in the advertisement space, a segment of a video in the advertisement space, and the like.
As an example, steps S10 to S50 include: according to the service requirement of the target service function, the service function requirement can be newly increased, or the personalized requirement can be newly increased on the original service function, and according to the service requirement, the implementation logic of the target extension point is defined and can be a specific implementation code; reporting the target extension point to a preset integration platform so that the preset integration platform establishes a corresponding relation between the target extension point and at least one target extension implementation, and writing the corresponding relation into preset configuration information; when the service implementation request is received, the target service identifier corresponding to the service implementation request, which is carried in the service implementation request, may be obtained, as shown in fig. 2, where the target service identifier may be stored in a request link, and in order to avoid that the target service identifier stored in the request link is too much, which may cause low efficiency in extracting the target service identifier, the target service identifier may be cleared within a preset time to store the target service identifier corresponding to another service implementation request; after the target service identifier is obtained, searching in the preset registration information table according to the target service identifier, and determining a target expansion point corresponding to the target service identifier when the target service identifier is found, wherein the preset registration information table stores the corresponding relation between the service implementation request and the target service identifier; and calling each corresponding target extension implementation according to the target extension point, and executing the service implementation request based on the target extension implementation, wherein the target extension implementation corresponding to the target extension point can be determined by querying preset configuration information of the target extension point, a corresponding relationship between the target extension point and the target extension implementation can be stored in the preset configuration information in advance, the corresponding relationship can be established by the preset integration platform, and since at least one target extension implementation corresponds to a specific execution code for implementing the corresponding target extension point, the service function service can be provided according to at least one target extension implementation, so that the complexity of backbone application is reduced, the code is cleaner and tidier, and maintenance is facilitated.
For example, assuming that the preset registration information table stores an extension point a 'corresponding to the service identifier a, an extension point B' corresponding to the service identifier B, and an extension point C corresponding to the service identifier C, if the target service identifier is a, an extension object a 'associated with the service identifier a may be determined in the preset registration information table, and a' is used as a target extension point, so as to further determine the target extension implementation based on the target extension point.
The step of calling each corresponding target extension implementation according to the target extension point and executing the service implementation request based on the target extension implementation includes:
step S51, inquiring preset configuration information of the target expansion point according to the target expansion point to obtain each target expansion realization corresponding to the target expansion point;
and step S52, calling each target expansion to realize, and executing the service realization request.
In this embodiment, it should be noted that the preset configuration information includes an implementation scheme of the target extension point, a correspondence between the target extension point and the target extension implementation, an implementation parameter, and the like.
As an example, steps S51 to S52 include: according to the target expansion point, inquiring preset configuration information of the target expansion point to obtain each target expansion realization corresponding to the target expansion point, and searching the target expansion realization corresponding to the target expansion point by calling an expansion point searching device; calling the target extension implementation can execute the service logic in the target extension point to execute the service implementation request, wherein a result obtained after the service request is executed can be used as a service execution result, and the service execution result can be fed back to the target application corresponding to the target service request to complete the service implementation request.
The step of querying preset configuration information of the target expansion point to obtain each target expansion implementation corresponding to the target expansion point includes:
step S511, inquiring the preset configuration information to obtain the unique identifier of the target expansion point;
and step S512, determining each target expansion implementation corresponding to the unique identifier according to the unique identifier.
As an example, steps S311 to S312 include: and querying the preset configuration information to obtain a unique identifier of the target extension point, where the unique identifier is used to identify a corresponding relationship between the target extension point and the target extension relationship, and the unique identifier may be an identification (Identity) document (ID), and determining, according to the unique identifier, each target extension implementation corresponding to the unique identifier.
Wherein, the preset configuration information includes the implementation scheme of the extension point, and before the step of invoking the implementation of the target extension and completing the function of the target service, the method further includes:
step A10, according to the implementation scheme, giving calling priority to each target expansion implementation;
and step A20, calling each target expansion to be realized according to the calling priority.
In this embodiment, it should be noted that the implementation scheme refers to an implementation policy of the extension point, where the implementation policy includes an automatic routing policy, where the automatic routing policy includes a routing priority, that is, an implementation priority of a target extension implementation.
As an example, steps a10 to a20 include: according to the automatic routing strategy in the implementation scheme, giving each target expansion implementation calling priority, wherein the basis of giving the calling priority can be according to importance degree priority or sequence, if according to the priority, determining which is called first and which is called later according to the routing priority in the automatic routing strategy, and the mode of giving the calling priority can be in a marking mode; and sequentially calling the target expansion to realize according to the calling priority.
For example: if the implementation scheme is that a section of characters are added in the advertisement space and a section of video is added in the advertisement space, the target expansion implementation A is that a section of characters are added in the advertisement space, the target expansion implementation B is that a section of video is added in the advertisement space, firstly, whether calling is carried out according to the priority or calling is carried out according to the sequence is judged, if calling is carried out according to the priority, the emergency degree of the adding characters and the adding video is detected, if the emergency degree of the adding video is P1 and the emergency degree of the adding characters is P2, it can be judged that the emergency degree of the adding video is higher than that of the adding characters, the B is called firstly, then the A is called, and if calling is carried out according to the sequence, the A is called firstly, and then the B is called.
Wherein the step of calling each of the target extension implementations according to the calling priority includes:
step A21, determining the execution sequence of each target expansion according to the calling priority;
step A22, sequentially calling each target expansion to be realized according to the execution sequence.
As an example, steps a21 to a22 include: determining the calling priority, namely determining the calling sequence of each target extension according to the automatic routing strategy, and further determining the execution sequence of each target extension according to the calling sequence; and calling each target extension implementation according to the execution sequence.
Wherein the step of defining the target extension point in the target application according to the service requirement of the target service function comprises:
step S11, determining common implementation points and difference points of each tenant aiming at the same service according to the service requirements;
in this embodiment, it should be noted that the tenant is a logical concept, and means that a certain client or a certain enterprise purchases a part of Software services on a Software platform, and the certain client or the certain enterprise is the tenant, where the Software platform may be a SaaS (Software as a Service) platform, and the client may order, according to actual working requirements, application Software services required by a SaaS platform manufacturer through the internet, pay a fee to the manufacturer according to the amount and time of the ordered services, and obtain services provided by a SaaS platform provider through the internet.
As an example, step S11 includes: the method comprises the steps of finding out a service common implementation point and a service difference point by combing and comparing the same services of different tenants, wherein the same services can be account creation, password modification, identity information verification, account deletion and the like, the common implementation point is the same operation of different tenants for the same service, and the difference point refers to different operations of different tenants for the same service.
For example, for the same query service, a tenant a queries an a table, and a tenant B queries both the a table and the B table, where the query is a common implementation point, the tenant a queries the a table, and the tenant B queries the a table and the B table belonging to different difference points.
And S12, defining the target expansion point according to the common realization point and the difference point.
As an example, step S12 includes: and planning extension points in the configuration system of the target application according to the common implementation points and the difference points, wherein the extension points can be pre-embedded during the carding design of the business process, and the execution steps can be realized by firstly defining the extension points, then matching the extension points and finally calling the extension points.
Compared with the mode of realizing the service customization requirement through project secondary development in the prior art, the method for realizing service expansion firstly defines the target expansion point according to the service requirement of the target service function; reporting the target extension point to a preset integration platform so that the preset integration platform establishes a corresponding relation between the target extension point and at least one target extension implementation, and writing the corresponding relation into preset configuration information; if a service implementation request of a target service function is received, acquiring a target service identifier carried in the service implementation request; inquiring a preset registration information table according to the target service identifier to obtain a target expansion point corresponding to the target service identifier; and calling each corresponding target extension implementation according to the target extension point, and implementing the service implementation request based on the target extension implementation. The technical defect that the realization efficiency of the business function is low due to the fact that the system maintenance difficulty is improved and the realization efficiency of the business function is high because the code complexity in the development platform is higher and higher due to secondary development of a project is overcome.
Example two
Further, referring to fig. 2, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents to the first embodiment described above may be referred to the above description, and are not repeated again in the following. On this basis, a service extension implementation method is provided, which is applied to a preset integration platform end, and with reference to fig. 2, the service extension implementation method further includes:
step B10, receiving a target extension point reported by an extension point definition end, wherein the target extension point is obtained by defining the extension point definition end;
step B20, establishing a corresponding relation between the target expansion point and the target expansion realization;
and B30, writing the corresponding relation into preset configuration information of the target extension point so as to be inquired by the extension point definition end.
As an example, steps B10 to B30 include: receiving a target extension point reported by an extension point definition end, wherein the target extension point is obtained by defining the extension point definition end, and the extension point definition end can determine a reported address according to an environment parameter; the preset integration platform firstly analyzes the target extension point to obtain a definition configuration of the target extension point, wherein the definition configuration comprises an extension point ID, and then an extension implementation module in the preset integration platform is used for realizing the service logic of the target extension point to obtain a target extension implementation, so that the corresponding relation between the target extension point and the target extension implementation is established; and writing the corresponding relation into preset configuration information of the target extension point so as to be inquired by the extension point definition end.
The embodiment of the application provides a service extension implementation method, which is applied to a preset integration platform end, and the embodiment firstly receives a target extension point reported by an extension point definition end, wherein the target extension point is obtained by defining the extension point definition end; establishing a corresponding relation between the target expansion point and the target expansion realization; and writing the corresponding relation into preset configuration information of the target extension point so as to be inquired by the extension point definition end. The technical defect that the realization efficiency of the business function is low due to the fact that the system maintenance difficulty is improved and the realization efficiency of the business function is high because the code complexity in the development platform is higher and higher due to secondary development of a project is overcome.
EXAMPLE III
The present application further provides a service extension implementation system, including the extension point defining end and the preset integration platform end, the service extension implementation system includes:
the extension point defining end is used for defining a target extension point according to the service requirement of the target service function; reporting the target extension point to a preset integration platform so that the preset integration platform can establish a corresponding relation between the target extension point and at least one target extension realization, and writing the corresponding relation into preset configuration information; if a service implementation request of the target service function is received, acquiring a target service identifier carried in the service implementation request; inquiring a preset registration information table according to the target service identifier to obtain a target expansion point corresponding to the target service identifier; and calling each corresponding target extension implementation according to the target extension point, and implementing the service implementation request based on the target extension implementation.
The preset integration platform end is used for receiving the target extension point reported by the extension point definition end, wherein the target extension point is obtained by the extension point definition end through definition; establishing a corresponding relation between the target expansion point and the target expansion realization; and writing the corresponding relation into preset configuration information of the target extension point so as to be inquired by the extension point definition end.
Optionally, the extension point defining end includes:
the definition module is used for defining a target expansion point according to the service requirement of the target service function;
a reporting module, configured to report the target extension point to a preset integration platform, so that the preset integration platform establishes a correspondence between the target extension point and at least one target extension implementation, and writes the correspondence into preset configuration information;
the system comprises an acquisition target service identification module, a service function acquisition module and a service function acquisition module, wherein the acquisition target service identification module is used for acquiring a target service identification carried in a service realization request if the service realization request of a target service function is received;
the query module is used for querying a preset registration information table according to the target service identifier to obtain a target expansion point corresponding to the target service identifier;
and the calling module is used for calling each corresponding target extension implementation according to the target extension point and executing the service implementation request based on the target extension implementation.
Optionally, the invoking module is further configured to:
inquiring preset configuration information of the target expansion point according to the target expansion point to obtain each target expansion realization corresponding to the target expansion point;
and calling each target expansion implementation and executing the service implementation request.
Optionally, the invoking module is further configured to:
inquiring the preset configuration information to obtain a unique identifier of the target expansion point;
and determining each target expansion implementation corresponding to the unique identifier according to the unique identifier.
Optionally, the extension point defining end is further configured to:
according to the implementation scheme, giving calling priority to each target expansion implementation;
and calling each target expansion to be realized according to the calling priority.
Optionally, the extension point defining end is further configured to:
determining an execution sequence of each target expansion according to the calling priority;
and sequentially calling each target expansion to be realized according to the execution sequence.
Optionally, the extension point defining end is further configured to:
determining a common realization point and a difference point of each tenant aiming at the same service according to the service requirement;
and defining the target expansion point according to the common realization point and the difference point.
Optionally, the preset integration platform end includes:
the receiving module is used for receiving the target extension point reported by the extension point defining end, wherein the target extension point is obtained by defining the extension point defining end;
the corresponding relation establishing module is used for establishing the corresponding relation between the target expansion point and the target expansion realization;
and the writing module is used for writing the corresponding relation into preset configuration information of the target extension point so as to be inquired by the extension point definition end.
The service expansion implementation system provided by the application adopts the service expansion implementation method in the embodiment, so that the technical problem of low implementation efficiency of the service function is solved. Compared with the prior art, the beneficial effects of the service extension implementation system provided by the embodiment of the present application are the same as the beneficial effects of the service extension implementation method provided by the above embodiment, and other technical features in the service extension implementation system are the same as the features disclosed by the above embodiment method, which are not described herein again.
Example four
An embodiment of the present application provides an electronic device, and the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the service expansion implementation method in the first embodiment.
Referring now to FIG. 4, shown is a block diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device may include a processing means (e.g., a central processing unit, a graphic processor, etc.) that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage means into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the application adopts the service expansion implementation method in the embodiment, so that the technical problem of low implementation efficiency of the service function is solved. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present application are the same as the beneficial effects of the service expansion implementation method provided by the above embodiment, and other technical features in the electronic device are the same as those disclosed in the embodiment method, which are not described herein again.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
EXAMPLE five
The embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, where the computer-readable program instructions are used to execute the service expansion implementation method in the first embodiment.
The computer readable storage medium provided by the embodiments of the present application may be, for example, a usb disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the above. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: if a service implementation request of a target service function is received, acquiring a target service identifier carried in the service implementation request; inquiring a preset registration information table according to the target service identifier to obtain a target expansion point corresponding to the target service identifier; and calling each corresponding target extension implementation according to the target extension point, and implementing the service implementation request based on the target extension implementation.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the application stores computer-readable program instructions for executing the service expansion implementation method, and solves the technical problem of low implementation efficiency of service functions. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present application are the same as the beneficial effects of the service expansion implementation method provided by the above embodiment, and are not described herein again.
EXAMPLE six
The present application also provides a computer program product comprising a computer program, which when executed by a processor implements the steps of the service extension implementation method as described above.
The computer program product provided by the application solves the technical problem of low realization efficiency of the business function. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the service extension implementation method provided by the above embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A service extension implementation method is applied to an extension point definition end, and comprises the following steps:
defining a target expansion point according to the service requirement of the target service function;
reporting the target extension point to a preset integration platform so that the preset integration platform can establish a corresponding relation between the target extension point and at least one target extension realization, and writing the corresponding relation into preset configuration information;
if a service implementation request of the target service function is received, acquiring a target service identifier carried in the service implementation request;
inquiring a preset registration information table according to the target service identifier to obtain a target expansion point corresponding to the target service identifier;
and calling each corresponding target extension implementation according to the target extension point, and implementing the service implementation request based on the target extension implementation.
2. The service extension implementing method according to claim 1, wherein the step of invoking each corresponding target extension implementation according to the target extension point and executing the service implementation request based on the target extension implementation includes:
inquiring preset configuration information of the target expansion point according to the target expansion point to obtain each target expansion realization corresponding to the target expansion point;
and calling each target extension to realize and executing the service realization request.
3. The service expansion implementation method according to claim 2, wherein the step of querying the preset configuration information of the target expansion point to obtain each target expansion implementation corresponding to the target expansion point includes:
inquiring the preset configuration information to obtain a unique identifier of the target expansion point;
and determining each target expansion implementation corresponding to the unique identifier according to the unique identifier.
4. The service extension implementation method according to claim 3, wherein the preset configuration information includes implementation schemes of the target extension points, and after the step of determining, according to the unique identifier, each implementation scheme of the target extension corresponding to the unique identifier, the method further includes:
according to the implementation scheme, giving calling priority to each target expansion implementation;
and calling each target extension to be realized according to the calling priority.
5. The service extension implementation method of claim 4, wherein the step of invoking each of the target extension implementations according to the invocation priority comprises:
determining an execution sequence of each target expansion according to the calling priority;
and sequentially calling each target extension to be realized according to the execution sequence.
6. The service extension implementing method of claim 1, wherein the step of defining the target extension point according to the service requirement of the target service function comprises:
determining common implementation points and difference points of each tenant aiming at the same service according to the service requirements;
and defining the target expansion point according to the common realization point and the difference point.
7. A service expansion implementation method is characterized in that the method is applied to a preset integrated platform end, and the service expansion implementation method comprises the following steps:
receiving a target extension point reported by an extension point definition end, wherein the target extension point is obtained by defining the extension point definition end;
establishing a corresponding relation between the target extension point and the target extension realization;
and writing the corresponding relation into preset configuration information of the target extension point so as to be inquired by the extension point definition end.
8. A service extension implementation system is characterized by comprising an extension point definition end and a preset integration platform end, and the service extension implementation system comprises:
the extension point defining end is used for defining a target extension point according to the service requirement of the target service function; reporting the target extension point to a preset integration platform so that the preset integration platform can establish a corresponding relation between the target extension point and at least one target extension realization, and writing the corresponding relation into preset configuration information; if a service implementation request of the target service function is received, acquiring a target service identifier carried in the service implementation request; inquiring a preset registration information table according to the target service identifier to obtain a target expansion point corresponding to the target service identifier; calling each corresponding target extension implementation according to the target extension point, and implementing the service implementation request based on the target extension implementation;
the preset integration platform end is used for receiving a target extension point reported by an extension point definition end, wherein the target extension point is obtained by the extension point definition end through definition; establishing a corresponding relation between the target extension point and the target extension realization; and writing the corresponding relation into preset configuration information of the target extension point so as to be inquired by the extension point definition end.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the service extension implementation method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a program for implementing a service extension implementing method is stored, the program being executed by a processor to implement the steps of the service extension implementing method according to any one of claims 1 to 7.
CN202211186163.4A 2022-09-28 2022-09-28 Service expansion implementation method, system, electronic equipment and readable storage medium Pending CN115268854A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211186163.4A CN115268854A (en) 2022-09-28 2022-09-28 Service expansion implementation method, system, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211186163.4A CN115268854A (en) 2022-09-28 2022-09-28 Service expansion implementation method, system, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN115268854A true CN115268854A (en) 2022-11-01

Family

ID=83757270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211186163.4A Pending CN115268854A (en) 2022-09-28 2022-09-28 Service expansion implementation method, system, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115268854A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115562759A (en) * 2022-11-11 2023-01-03 广州嘉为科技有限公司 System function expanding method and device and storage medium
CN115794927A (en) * 2023-01-29 2023-03-14 北京仁科互动网络技术有限公司 Service function expansion method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130018841A1 (en) * 2011-07-15 2013-01-17 International Business Machines Corporation Enabling computational process as a dynamic data source for bi reporting systems
CN112527248A (en) * 2019-09-18 2021-03-19 阿里巴巴集团控股有限公司 Request processing method and device and electronic equipment
CN112559095A (en) * 2020-12-16 2021-03-26 微医云(杭州)控股有限公司 Target service execution method, system, server and storage medium
CN113076203A (en) * 2021-03-18 2021-07-06 北京京东乾石科技有限公司 Application service realization method, realization device and storage medium
CN113220290A (en) * 2021-04-23 2021-08-06 杭州数跑科技有限公司 Method, device, equipment and storage medium for realizing business function of application
CN114647416A (en) * 2022-03-28 2022-06-21 杭州博盾习言科技有限公司 Method and device for realizing service flow based on annotation, storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130018841A1 (en) * 2011-07-15 2013-01-17 International Business Machines Corporation Enabling computational process as a dynamic data source for bi reporting systems
CN112527248A (en) * 2019-09-18 2021-03-19 阿里巴巴集团控股有限公司 Request processing method and device and electronic equipment
CN112559095A (en) * 2020-12-16 2021-03-26 微医云(杭州)控股有限公司 Target service execution method, system, server and storage medium
CN113076203A (en) * 2021-03-18 2021-07-06 北京京东乾石科技有限公司 Application service realization method, realization device and storage medium
CN113220290A (en) * 2021-04-23 2021-08-06 杭州数跑科技有限公司 Method, device, equipment and storage medium for realizing business function of application
CN114647416A (en) * 2022-03-28 2022-06-21 杭州博盾习言科技有限公司 Method and device for realizing service flow based on annotation, storage medium and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115562759A (en) * 2022-11-11 2023-01-03 广州嘉为科技有限公司 System function expanding method and device and storage medium
CN115562759B (en) * 2022-11-11 2023-06-30 广州嘉为科技有限公司 System function expanding method, device and storage medium
CN115794927A (en) * 2023-01-29 2023-03-14 北京仁科互动网络技术有限公司 Service function expansion method and system

Similar Documents

Publication Publication Date Title
CN112036824A (en) Business approval method, system, storage medium and electronic equipment
CN115268854A (en) Service expansion implementation method, system, electronic equipment and readable storage medium
CN108920257B (en) Transaction processing method, device, equipment and storage medium
CN110704833A (en) Data permission configuration method, device, electronic device and storage medium
CN105739758A (en) Display control method and device of Android device
CN115795211A (en) Page display method, device, system, equipment and storage medium
CN109828830B (en) Method and apparatus for managing containers
CN108959102B (en) Method and device for generating test data and testing application to be tested
CN110674050B (en) Memory out-of-range detection method and device, electronic equipment and computer storage medium
CN115860950A (en) Contract transaction execution method and device, electronic equipment and readable storage medium
CN115545639A (en) Financial business processing method and device, electronic equipment and storage medium
CN115147097A (en) House-buying transaction method and device based on block chain, electronic equipment and storage medium
CN112068895B (en) Code configuration method, device, video playing equipment and storage medium
CN109669679B (en) Service detection and processing method and device and electronic equipment
CN109741069B (en) Transaction data processing method and device, electronic equipment and readable storage medium
CN111489139A (en) Order payment method, device, equipment and medium based on big data
CN115170268B (en) Financial product generation method and device, electronic equipment and readable storage medium
CN116016230B (en) Multi-type service processing method and device for Internet of things network card, electronic equipment and medium
CN111897827B (en) Data updating method and system for data warehouse and electronic equipment
CN116993310A (en) Method for synchronizing personnel information among different systems, electronic equipment and readable storage medium
CN112688863B (en) Gateway data processing method and device and electronic equipment
US20240152504A1 (en) Data interaction method, apparatus, and electronic device
CN113055500B (en) Address request method, device and computer readable storage medium
CN115065719A (en) Device interaction access method and device, electronic device and readable storage medium
CN110633099A (en) Application program repairing method, device, equipment and readable 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20221101