CN111666166A - Service providing method, device, equipment and storage medium - Google Patents
Service providing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN111666166A CN111666166A CN202010494572.5A CN202010494572A CN111666166A CN 111666166 A CN111666166 A CN 111666166A CN 202010494572 A CN202010494572 A CN 202010494572A CN 111666166 A CN111666166 A CN 111666166A
- Authority
- CN
- China
- Prior art keywords
- service
- target user
- interface
- version
- version information
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004590 computer program Methods 0.000 claims description 6
- 238000012423 maintenance Methods 0.000 abstract description 18
- 238000011161 development Methods 0.000 abstract description 15
- 238000007726 management method Methods 0.000 description 19
- 230000006978 adaptation Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000003032 molecular docking Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 210000001503 joint Anatomy 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44536—Selecting among different versions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/541—Client-server
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/549—Remote execution
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a service providing method, a service providing device, service providing equipment and a storage medium. The method comprises the following steps: acquiring version information of a service interface corresponding to a target user; calling corresponding service policy data according to the version information of the service interface; and providing corresponding service for the target user according to the service policy data. By the technical scheme of the invention, the interface development, maintenance and management cost can be reduced.
Description
Technical Field
Embodiments of the present invention relate to computer technologies, and in particular, to a service providing method, apparatus, device, and storage medium.
Background
The professional market settlement platform is a system for providing fund management and liquidation services for customers, the customers come from various industries, all have respective operation systems, some are simple and complex, and the attention points of different customers with direct connection interfaces are different, for example: some customers want to reduce the docking, and tend to put the billing rule information and the payment order information into one interface for one-time calling; some customers want to be flexible in billing, tend to separate order payment from billing rule information, and the like. Meanwhile, the change of the demands is generated continuously along with the continuous addition of the customers, so that the demand change aiming at different customers needs the same direct connection interface to present some differences for different customers.
In the prior art, each new customer requirement is added, a direct connection interface of one version needs to be newly developed to meet different service requirements of new and old customers, and therefore, the interface version is in a state of continuous upgrading and changing. Because in the prior art, a set of service codes needs to be rewritten every time a version of the direct connection interface is newly developed, that is, different versions of the direct connection interface respectively correspond to different service codes, when the interfaces of different versions are upgraded each time, multiple sets of service codes corresponding to existing multiple versions of the direct connection interface need to be modified at the same time, so that the development, maintenance and management workload is huge, the cost is high, and a series of problems of difficult popularization of products, difficult butt joint of customers, difficult maintenance of versions, difficult upgrade of products, difficult testing of products and the like occur.
Disclosure of Invention
The embodiment of the invention provides a service providing method, a service providing device, service providing equipment and a storage medium, so as to reduce the cost of interface development, maintenance and management.
In a first aspect, an embodiment of the present invention provides a service providing method, including:
acquiring version information of a service interface corresponding to a target user;
calling corresponding service policy data according to the version information of the service interface;
and providing corresponding service for the target user according to the service policy data.
Further, before obtaining the version information of the service interface corresponding to the target user, the method further includes:
acquiring interface requirement information corresponding to the target user;
recommending at least one matched service interface version to the target user according to the interface requirement information so as to enable the target user to select and confirm;
and taking the interface corresponding to the service interface version selected and confirmed by the target user as the service interface corresponding to the target user.
Further, acquiring interface requirement information corresponding to the target user includes:
providing interface requirement information selectable options to the target user;
and determining interface requirement information corresponding to the target user according to the selection operation of the target user based on the interface requirement information selectable item.
Further, obtaining version information of the service interface corresponding to the target user includes:
receiving a service request sent by a target user, wherein the service request comprises version information of a service interface corresponding to the target user.
Further, providing corresponding services for the target user according to the service policy data includes:
generating a standard request message according to the service strategy data;
and providing corresponding service for the target user based on the standard request message.
Further, obtaining version information of the service interface corresponding to the target user includes:
acquiring an identity of a target user;
and inquiring and acquiring the version information of the service interface corresponding to the target user according to the identity of the target user.
Further, the service policy data includes rule data and/or field data.
In a second aspect, an embodiment of the present invention further provides a service providing apparatus, where the apparatus includes:
the version acquisition module is used for acquiring the version information of the service interface corresponding to the target user;
the strategy calling module is used for calling corresponding service strategy data according to the version information of the service interface;
and the user service module is used for providing corresponding services for the target user according to the service strategy data.
Further, the apparatus further comprises:
the system comprises a demand acquisition module, a service interface management module and a service interface management module, wherein the demand acquisition module is used for acquiring interface demand information corresponding to a target user before acquiring version information of a service interface corresponding to the target user;
the version recommending module is used for recommending at least one matched service interface version to the target user according to the interface requirement information so as to enable the target user to select and confirm;
and the version confirmation module is used for taking the interface corresponding to the service interface version selected and confirmed by the target user as the service interface corresponding to the target user.
Further, the demand acquisition module is specifically configured to:
providing interface requirement information selectable options to the target user;
and determining interface requirement information corresponding to the target user according to the selection operation of the target user based on the interface requirement information selectable item.
Further, the version acquisition module is specifically configured to:
receiving a service request sent by a target user, wherein the service request comprises version information of a service interface corresponding to the target user.
Further, the user service module is specifically configured to:
generating a standard request message according to the service strategy data;
and providing corresponding service for the target user based on the standard request message.
Further, the version obtaining module is specifically further configured to:
acquiring an identity of a target user;
and inquiring and acquiring the version information of the service interface corresponding to the target user according to the identity of the target user.
Further, the service policy data includes rule data and/or field data.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the service providing method according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the service providing method according to any one of the embodiments of the present invention.
The embodiment of the invention obtains the version information of the service interface corresponding to the target user, calls the corresponding service strategy data according to the version information of the service interface, provides corresponding services for the target user according to the service strategy data, and utilizes the advantages of using different service strategy data aiming at the service interfaces of different versions, thereby solving the problem of high cost of development, maintenance and management of the interface caused by that the direct connection interface of each version respectively corresponds to a set of service codes in the prior art, and realizing the effect of reducing the cost of development, maintenance and management of the interface.
Drawings
Fig. 1 is a schematic flow chart of a service providing method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a service providing method according to a second embodiment of the present invention;
fig. 3 is a schematic flow chart of a service providing method according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating a service providing method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a service providing apparatus according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart illustrating a service providing method according to an embodiment of the present invention. The method is applicable to the case of providing services for users using interfaces of different versions, and can be executed by a service providing apparatus, which can be composed of hardware and/or software and can be generally integrated in a computer device such as a server. The method specifically comprises the following steps:
and S110, acquiring the version information of the service interface corresponding to the target user.
In this embodiment, the service interface corresponding to the target user may be a service interface currently used by the target user, where the service interface may be, for example, a direct connection interface for interfacing with a professional market settlement platform. Different users may have different requirements for the same service type, so different versions of service interfaces can be provided for different user requirements to meet different requirements of different users. Specifically, the version information may be information such as a version number that can identify the version of the interface. Illustratively, the manner of acquiring the version information includes, but is not limited to, actively reporting by the target user, or presetting a desired version number on the platform by the target user, storing the version number in the platform server database, querying the database and calling the version number of the target user when necessary, and the like.
In the prior art, because different versions of service interfaces correspond to different service codes, and most of the service codes corresponding to the service interfaces in the same service type are the same, when an interface is upgraded, if updated contents are the same part of codes, multiple sets of service codes corresponding to direct-connected interfaces of multiple versions need to be modified, so that the development, maintenance and management workload is huge, and the cost is high.
In order to solve the above problem, in this embodiment, different service policy data are set for different versions of service interfaces and stored in a preset table, and when a service needs to be provided for a target user, corresponding service policy data are called from the preset table only according to version information of the service interface used by the target user, so that the corresponding service is provided for the target user by using the different service policy data and the same set of service code. Therefore, a large number of white lists and branches are removed for developers, the repeated development workload is reduced, the code structure is simpler, the maintenance and the management are easier, the rejection of the developers to variable requirements is relieved, and the cost required by developing, maintaining and managing multi-version interfaces is reduced.
And S120, calling corresponding service policy data according to the version information of the service interface.
In this embodiment, the service policy data may be rule data and/or field data that needs to be used when providing a service for a target user according to a service requirement of the target user. For example, if the user a wants to query consumption records within a half year through the direct connection interface, the service policy data to be invoked correspondingly may be a field with a time of half year, and the field may be used to obtain corresponding consumption record data from a corresponding table; for another example, if the user B wants to query the consumption records in half a year through the direct connection interface and display the total consumption amount at the same time, the service policy data to be invoked may be a field with a time of half a year and a total amount calculation rule, and the total amount calculation rule is used to sum the consumption amounts in half a year while the corresponding consumption record data is obtained from the corresponding table through the field.
For example, the change of the rule and/or field corresponding to the direct connection interface is associated with the version number of the direct connection interface, and the server may determine which rule and/or field is currently enabled or disabled according to the version number recorded in the version number field. Specifically, for example, an interface data table may be set in the database to record rules and/or fields associated with interfaces of different versions, and after version information of a service interface used by a target user is obtained, corresponding rules and/or fields may be queried and called in the interface data table according to the version information, so as to provide corresponding services for the target user according to the rules and/or fields.
That is, for a new user, only when a new version number corresponding to the new user is obtained, the newly added rule and/or field will take effect; for the old user, because the old version interface is used, the old version number corresponding to the old user can not be influenced by a new field or a new rule in the new version interface as long as the old version number is obtained, and the problem that the use of the historical version interface is influenced by the same direct-connected interface in the continuous upgrading and changing process and a set of service codes needs to be redeveloped can be solved, so that a plurality of version numbers can share one set of service codes, the repeated development workload is reduced, the code structure is simpler, and the upgrading and the maintenance are easier.
And S130, providing corresponding service for the target user according to the service strategy data.
In this embodiment, after determining the version information of the service interface used by the target user and the corresponding service policy data, the server may provide personalized services for the target user by using the service policy data, and further may implement to provide personalized services for users with different requirements by using a set of service codes in the same service type.
According to the technical scheme of the embodiment, by obtaining the version information of the service interface corresponding to the target user, calling the corresponding service policy data according to the version information of the service interface, providing corresponding services for the target user according to the service policy data, and utilizing the advantages of using different service policy data for the service interfaces of different versions, the problem that in the prior art, because a direct connection interface of each version corresponds to a set of service codes respectively, the cost of development, maintenance and management of the interface is high is solved, and the effect of reducing the cost of development, maintenance and management of the interface is realized.
Example two
Fig. 2 is a flowchart illustrating a service providing method according to a second embodiment of the present invention. The present embodiment is optimized based on the above-mentioned embodiment, and provides a preferred service providing method, specifically, before obtaining the version information of the service interface corresponding to the target user, the optimizing further includes: acquiring interface requirement information corresponding to the target user; recommending at least one matched service interface version to the target user according to the interface requirement information so as to enable the target user to select and confirm; and taking the interface corresponding to the service interface version selected and confirmed by the target user as the service interface corresponding to the target user.
The service providing method in this embodiment may specifically include the following steps:
and S210, acquiring interface requirement information corresponding to the target user.
Based on the above embodiments, the server may recommend at least one matched service interface version to the user according to the personalized requirements of the target user, so as to be selected by the target user, and use the interface of the service interface version finally selected and confirmed by the target user as the service interface corresponding to the target user. The method has the advantages that the trouble of manual offline user butt joint can be saved, the user can select the service interface of the corresponding version on line according to the personalized requirements of the user, the service interface is used as the currently used service interface, manpower and material resources are saved, and the service cost is reduced.
Illustratively, the interface requirement information may be text or voice information about personalized requirements input by the user, or information selected by the user from at least one requirement information selectable item provided by the server. The specific acquisition mode includes but is not limited to uploading to the server by the user through the client.
Optionally, the obtaining of the interface requirement information corresponding to the target user includes: providing interface requirement information selectable items to a target user; and determining interface requirement information corresponding to the target user according to the selection operation of the target user based on the interface requirement information selectable item.
The interface requirement information selectable items can comprise one or more selectable items, and each selectable item corresponds to one kind of interface requirement. The method for providing interface requirement information selectable items to the target user includes, but is not limited to, providing the interface requirement information selectable items to the target user in a questionnaire manner, wherein the target user can select from corresponding requirement options in a single-selection and/or multi-selection manner, of course, the interface requirement information can also be recommended to the target user in a to-be-selected label manner, and the target user can select from a plurality of provided to-be-selected labels in a click-selection manner, which is not limited herein.
For example, after the target user performs a corresponding selection operation based on the interface requirement information selectable item, the information corresponding to the interface requirement information selectable item selected by the target user may be determined as the interface requirement information corresponding to the target user, and uploaded to the server.
And S220, recommending at least one matched service interface version to the target user according to the interface requirement information so as to allow the target user to select and confirm.
For example, after acquiring the interface requirement information of the target user, the server may recommend one service interface version that is completely matched with the interface requirement information for the target user, or recommend multiple service interface versions that are most matched with the interface requirement information for the target user, so as to be selected by the target user.
Specifically, the server may send the recommended version number of the at least one matched service interface version and the version function description information corresponding thereto to the target user together, so that the target user may make a selection from the at least one service interface version recommended by the server according to the version function description information. The version function description information may be information describing a function of each service interface version.
And S230, taking the interface corresponding to the service interface version selected and confirmed by the target user as the service interface corresponding to the target user.
For example, after the target user selects at least one service interface version recommended by the server, the server may use an interface corresponding to the service interface version selected and confirmed by the target user as the service interface corresponding to the target user. The target user can use the service interface to initiate a service request to the server, and the server can also push a message to the target user through the service interface to provide personalized service for the target user.
And S240, acquiring the version information of the service interface corresponding to the target user.
And S250, calling corresponding service policy data according to the version information of the service interface.
And S260, providing corresponding service for the target user according to the service strategy data.
According to the technical scheme of the embodiment, at least one matched service interface version is recommended to the target user by acquiring and according to the interface requirement information corresponding to the target user, and the interface corresponding to the service interface version selected and confirmed by the target user is used as the service interface corresponding to the target user. And after the version information of the service interface corresponding to the target user is obtained, the corresponding service strategy data is called according to the version information of the service interface, corresponding services are provided for the target user according to the service strategy data, the personalized demand information of the user is automatically acquired on line, and then the service interface of the corresponding version is selected to serve as the currently used service interface, so that the trouble of manually butting the user off line is avoided, manpower and material resources are saved, and the service cost is reduced.
EXAMPLE III
Fig. 3 is a flowchart illustrating a service providing method according to a third embodiment of the present invention. The present embodiment is optimized based on the above-described embodiments, and provides a preferred service providing method, specifically, the obtaining of the version information of the service interface corresponding to the target user is further optimized to include: receiving a service request sent by a target user, wherein the service request comprises version information of a service interface corresponding to the target user.
The service providing method in this embodiment may specifically include the following steps:
s310, receiving a service request sent by a target user, wherein the service request comprises version information of a service interface corresponding to the target user.
On the basis of the foregoing embodiments, one possible implementation manner is that the user actively initiates the service request, in which case the service requester provides version information of its service interface, that is, the version information is uploaded to the server by the target user sending the service request.
For example, a "version number" field may be added to each direct connection interface providing services, and the field is sent by a caller of the direct connection interface, that is, when a target user sends a service request to a server, the version number of the service interface corresponding to the target user may be carried in the service request, so that the server determines which rules and/or fields are correspondingly enabled or closed through version information in the field, so as to provide services.
And S320, calling corresponding service policy data according to the version information of the service interface.
S330, providing corresponding service for the target user according to the service strategy data.
Optionally, providing a corresponding service for the target user according to the service policy data includes: generating a standard request message according to the service strategy data; and providing corresponding service for the target user based on the standard request message.
In the prior art, different services are presented to the outside for different interface versions, and when some rules need to be uniformly added and the rules do not need to modify an interface, the rules need to be repeatedly added to a plurality of sets of service codes corresponding to different interface versions, which increases complexity for uniform maintenance and testing of the service codes.
In order to solve the problem, the embodiment divides the direct connection transaction service into two parts, namely a request access layer and a background service layer, and an adaptation layer is arranged between the two parts, and the direct connection transaction service is directly connected with the request access layer and the background service layer through the adaptation layer, for the same service type, the same set of codes is maintained in a background service layer, and when different users initiate requests for the same service type through direct connection interfaces of different versions, the access layer verifies the received request according to the established rule and sends the request information to the adaptation layer, the adaptation layer will form a uniform standard request message and send it to the service layer, this allows differences in fields or rules due to different interface versions to be excluded from the true service logic, and then can make different interface editions use the same set of service code, thus does not influence the unified management of the service code, guarantee the uniformity and neatness of the code structure of the backstage supporter's service.
As a specific example, for example, some interface versions correspond to service policy data that does not include some specific fields, when a user sends a service request, when the service policy data is uploaded to an adaptation layer, the fields may be filled in the adaptation layer, and the values of the fields are set as default values, so as to generate a standard request message with unified fields. For the service layer, the fields corresponding to the interfaces of different versions and the processing logic thereof are the same.
According to the technical scheme of the embodiment, the service request sent by the target user is received, wherein the service request comprises the version information of the service interface corresponding to the target user, the corresponding service policy data is called according to the version information of the service interface, the corresponding service is provided for the target user according to the service policy data, the user is used for sending the version information, personalized service is provided by using different service policy data aiming at the service interfaces of different versions, and the development, maintenance and management costs of the service interfaces of different versions are reduced.
Example four
Fig. 4 is a flowchart illustrating a service providing method according to a fourth embodiment of the present invention. The present embodiment is optimized based on the above-described embodiments, and provides a preferred service providing method, specifically, the obtaining of the version information of the service interface corresponding to the target user is further optimized to include: acquiring an identity of a target user; and inquiring and acquiring the version information of the service interface corresponding to the target user according to the identity of the target user.
The service providing method in this embodiment may specifically include the following steps:
s410, acquiring the identity of the target user.
On the basis of the above embodiment, another situation is that in a platform, not all service providing manners are passively triggered, and some services are not actively invoked by the user, but need to be actively initiated by the platform, such as bill pushing, message notification, and the like, which results in that the manner of sending the version number by the user mentioned in the above embodiment cannot be performed.
In view of the above situation, in the present embodiment, the version information of the service interface corresponding to the target user is obtained by storing the version information of the service interface corresponding to each user in the database. Specifically, an identity of the target user may be obtained first, where the identity may be information that uniquely identifies the user identity on the platform, such as a user ID. The method for obtaining the identity of the target user includes, but is not limited to, obtaining the identity of the object to be pushed when the server triggers the active push message, and certainly, the identity of the target user itself that is uploaded when the target user initiates a service request, and the like, which is not limited herein.
And S420, inquiring and acquiring the version information of the service interface corresponding to the target user according to the identity of the target user.
For example, after obtaining the identity of the target user, the version information of the service interface used by the target user may be queried from the database, where the identity of each user in the database and the version information of the service interface corresponding to the identity are stored in association. After the version information of the service interface corresponding to the target user is inquired, the version information can be taken out from the database, so that the corresponding service strategy data can be called in the subsequent steps according to the version information, and further personalized service can be provided for the target user.
And S430, calling corresponding service policy data according to the version information of the service interface.
S440, providing corresponding service for the target user according to the service strategy data.
According to the technical scheme of the embodiment, the service interfaces of different versions are provided with personalized services by using different service strategy data according to the corresponding inquired version information of the user identification, so that the development, maintenance and management costs of the service interfaces of different versions are reduced.
On the basis of the above embodiments, optionally, version information is recorded in the background for service versions with different adaptations for each user, and is displayed in the staff channel and the background management end, so that visual version monitoring is performed, the manual recording burden is reduced, and the docking efficiency is improved.
Through the technical scheme of each embodiment, the manual maintenance burden of the interface version is reduced, and the docking efficiency is improved; a large number of version compatible configurations and branches are reduced, the clear code logic is ensured, and the maintenance cost is reduced; popularization concerns are reduced, and the application of common customers is not influenced by the change of the requirements of a small application range; the background interface is separated from the client interface, so that the background service is not influenced by the change of the interface any more, the design of the background service interface can be considered from the technical aspect, the background service is more flexible, and the development efficiency is improved; has the potential of popularization and application.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a service providing apparatus according to a fifth embodiment of the present invention. Referring to fig. 5, the service providing apparatus includes: a version obtaining module 510, a policy invoking module 520, and a user service module 530, which are described in detail below.
A version obtaining module 510, configured to obtain version information of a service interface corresponding to a target user;
a policy calling module 520, configured to call corresponding service policy data according to the version information of the service interface;
the user service module 530 is configured to provide corresponding services for the target user according to the service policy data.
The service providing device provided by this embodiment obtains the version information of the service interface corresponding to the target user, calls the corresponding service policy data according to the version information of the service interface, and provides the corresponding service for the target user according to the service policy data, and by using the advantages of using different service policy data for the service interfaces of different versions, the problem that in the prior art, the development, maintenance and management costs of the interface are high because each direct connection interface of each version corresponds to one set of service code is solved, and the effects of reducing the development, maintenance and management costs of the interface are achieved.
Optionally, the apparatus may further include:
the system comprises a demand acquisition module, a service interface management module and a service interface management module, wherein the demand acquisition module is used for acquiring interface demand information corresponding to a target user before acquiring version information of a service interface corresponding to the target user;
the version recommending module is used for recommending at least one matched service interface version to the target user according to the interface requirement information so as to enable the target user to select and confirm;
and the version confirmation module is used for taking the interface corresponding to the service interface version selected and confirmed by the target user as the service interface corresponding to the target user.
Optionally, the requirement obtaining module may be specifically configured to:
providing interface requirement information selectable options to the target user;
and determining interface requirement information corresponding to the target user according to the selection operation of the target user based on the interface requirement information selectable item.
Optionally, the version obtaining module 510 may be specifically configured to:
receiving a service request sent by a target user, wherein the service request comprises version information of a service interface corresponding to the target user.
Optionally, the user service module 530 may be specifically configured to:
generating a standard request message according to the service strategy data;
and providing corresponding service for the target user based on the standard request message.
Optionally, the version obtaining module 510 may be further specifically configured to:
acquiring an identity of a target user;
and inquiring and acquiring the version information of the service interface corresponding to the target user according to the identity of the target user.
Optionally, the service policy data may specifically include rule data and/or field data.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 6 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 6, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing a service providing method provided by an embodiment of the present invention: acquiring version information of a service interface corresponding to a target user; calling corresponding service policy data according to the version information of the service interface; and providing corresponding service for the target user according to the service policy data.
EXAMPLE seven
The seventh embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a service providing apparatus, implements a service providing method according to the first embodiment of the present invention, where the method includes: acquiring version information of a service interface corresponding to a target user; calling corresponding service policy data according to the version information of the service interface; and providing corresponding service for the target user according to the service policy data.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: 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 context of this document, 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, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like 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 case of a remote computer, 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).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A service providing method, comprising:
acquiring version information of a service interface corresponding to a target user;
calling corresponding service policy data according to the version information of the service interface;
and providing corresponding service for the target user according to the service policy data.
2. The method of claim 1, before obtaining the version information of the service interface corresponding to the target user, further comprising:
acquiring interface requirement information corresponding to the target user;
recommending at least one matched service interface version to the target user according to the interface requirement information so as to enable the target user to select and confirm;
and taking the interface corresponding to the service interface version selected and confirmed by the target user as the service interface corresponding to the target user.
3. The method of claim 2, wherein obtaining interface requirement information corresponding to the target user comprises:
providing interface requirement information selectable options to the target user;
and determining interface requirement information corresponding to the target user according to the selection operation of the target user based on the interface requirement information selectable item.
4. The method of claim 1, wherein obtaining version information of the service interface corresponding to the target user comprises:
receiving a service request sent by a target user, wherein the service request comprises version information of a service interface corresponding to the target user.
5. The method of claim 4, wherein providing the corresponding service to the target user according to the service policy data comprises:
generating a standard request message according to the service strategy data;
and providing corresponding service for the target user based on the standard request message.
6. The method of claim 1, wherein obtaining version information of the service interface corresponding to the target user comprises:
acquiring an identity of a target user;
and inquiring and acquiring the version information of the service interface corresponding to the target user according to the identity of the target user.
7. A method according to any of claims 1-6, characterized in that said service policy data comprises rule data and/or field data.
8. A service providing apparatus, comprising:
the version acquisition module is used for acquiring the version information of the service interface corresponding to the target user;
the strategy calling module is used for calling corresponding service strategy data according to the version information of the service interface;
and the user service module is used for providing corresponding services for the target user according to the service strategy data.
9. A computer device, the device comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the service providing method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the service providing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010494572.5A CN111666166B (en) | 2020-06-03 | 2020-06-03 | Service providing method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010494572.5A CN111666166B (en) | 2020-06-03 | 2020-06-03 | Service providing method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111666166A true CN111666166A (en) | 2020-09-15 |
CN111666166B CN111666166B (en) | 2023-10-31 |
Family
ID=72385672
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010494572.5A Active CN111666166B (en) | 2020-06-03 | 2020-06-03 | Service providing method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111666166B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112887389A (en) * | 2021-01-20 | 2021-06-01 | 上海商米科技集团股份有限公司 | Version-based equipment interoperation method, system, device and storage medium |
CN115361436A (en) * | 2022-08-18 | 2022-11-18 | 中国工商银行股份有限公司 | Starting method and device of personalized service instance and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108279987A (en) * | 2018-01-19 | 2018-07-13 | 口碑(上海)信息技术有限公司 | The method for edition management and device of application program |
CN109471851A (en) * | 2018-10-17 | 2019-03-15 | 上海达梦数据库有限公司 | Data processing method, device, server and storage medium |
CN110333875A (en) * | 2019-07-02 | 2019-10-15 | 上海企创信息科技有限公司 | A kind of service routine update method, device, server and storage medium |
CN110490747A (en) * | 2019-08-26 | 2019-11-22 | 深圳市盟天科技有限公司 | A kind of trust interconnection method, device, server and storage medium |
-
2020
- 2020-06-03 CN CN202010494572.5A patent/CN111666166B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108279987A (en) * | 2018-01-19 | 2018-07-13 | 口碑(上海)信息技术有限公司 | The method for edition management and device of application program |
CN109471851A (en) * | 2018-10-17 | 2019-03-15 | 上海达梦数据库有限公司 | Data processing method, device, server and storage medium |
CN110333875A (en) * | 2019-07-02 | 2019-10-15 | 上海企创信息科技有限公司 | A kind of service routine update method, device, server and storage medium |
CN110490747A (en) * | 2019-08-26 | 2019-11-22 | 深圳市盟天科技有限公司 | A kind of trust interconnection method, device, server and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112887389A (en) * | 2021-01-20 | 2021-06-01 | 上海商米科技集团股份有限公司 | Version-based equipment interoperation method, system, device and storage medium |
CN112887389B (en) * | 2021-01-20 | 2022-12-23 | 上海商米科技集团股份有限公司 | Version-based equipment interoperation method, system, device and storage medium |
CN115361436A (en) * | 2022-08-18 | 2022-11-18 | 中国工商银行股份有限公司 | Starting method and device of personalized service instance and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111666166B (en) | 2023-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11269823B1 (en) | Migrating data between databases | |
US9667515B1 (en) | Service image notifications | |
US8548442B2 (en) | Syndication of multiple service instances | |
US10817929B1 (en) | Customizable uniform control user interface for hosted service images | |
US20090144837A1 (en) | Systems and methods for software application certification service | |
US10147123B2 (en) | Electronic marketplace for hosted service images | |
CN112308552B (en) | Method and device for ordering medical insurance medicine | |
US9021064B2 (en) | Web service architecture for product configuration | |
CN111881329A (en) | Account balance management method and system | |
CN111125106A (en) | Batch running task execution method, device, server and storage medium | |
CN111666166B (en) | Service providing method, device, equipment and storage medium | |
CN114185941A (en) | Report data query method and device, electronic equipment and storage medium | |
US20200005233A1 (en) | Beverage product acquisition and inventory management system | |
US20140189087A1 (en) | Remote registration of systems | |
US20220222736A1 (en) | Systems and methods for electronic subscription management | |
US8726235B2 (en) | Telecom business-oriented taxonomy for reusable services | |
CN113448578A (en) | Page data processing method, processing system, electronic device and readable storage medium | |
US9978070B1 (en) | Dynamic customer relationship management while maintaining customer privacy | |
CN113296912B (en) | Task processing method, device, system, storage medium and electronic equipment | |
CN113448960A (en) | Method and device for importing form file | |
CN112860464B (en) | Operational relation configuration method, device, computer equipment and storage medium | |
CN111597784A (en) | Information sending method, device, terminal equipment and medium | |
US20230214766A1 (en) | Product management method and related device | |
CN111724244B (en) | Objection error correction method and device | |
US20230195901A1 (en) | Model-based upgrade recommendations using software dependencies |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20220914 Address after: 25 Financial Street, Xicheng District, Beijing 100033 Applicant after: CHINA CONSTRUCTION BANK Corp. Address before: 25 Financial Street, Xicheng District, Beijing 100033 Applicant before: CHINA CONSTRUCTION BANK Corp. Applicant before: Jianxin Financial Science and Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |