CN117215808A - Service processing method and device and server equipment - Google Patents

Service processing method and device and server equipment Download PDF

Info

Publication number
CN117215808A
CN117215808A CN202311198824.XA CN202311198824A CN117215808A CN 117215808 A CN117215808 A CN 117215808A CN 202311198824 A CN202311198824 A CN 202311198824A CN 117215808 A CN117215808 A CN 117215808A
Authority
CN
China
Prior art keywords
service
script
target
name
calling party
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
CN202311198824.XA
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.)
Winning Health Technology Group Co Ltd
Original Assignee
Winning Health Technology Group 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 Winning Health Technology Group Co Ltd filed Critical Winning Health Technology Group Co Ltd
Priority to CN202311198824.XA priority Critical patent/CN117215808A/en
Publication of CN117215808A publication Critical patent/CN117215808A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)

Abstract

The application provides a service processing method, a service processing device and server equipment, and relates to the technical field of computers. Receiving a service request sent by a service calling party; analyzing the service request to obtain request content, wherein the request content comprises: business script information and business parameters; acquiring a target service script according to the service script information; according to the service parameters, executing corresponding service operation by adopting a target service script to obtain a service execution result; and returning a service execution result to the service calling party. Therefore, the service script or plug-in is determined through the service request, and the user does not need to search or edit the script by himself, so that the service processing difficulty is reduced, and the service processing efficiency and processing precision are improved.

Description

Service processing method and device and server equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a service processing method, a device, and a server device.
Background
The software architecture is developed to date, and is subjected to a single structure, a vertical architecture and an SOA architecture, and then is continuously upgraded and iterated to the current micro-service architecture. Wherein the micro-service architecture (Microservice Architecture) is a style of software architecture that splits a large application into a set of small, autonomous and interoperable services. Each service can be independently deployed, independently expanded and independently modified to meet different business requirements. The micro-service architecture provides higher flexibility, expandability and maintainability through decoupling and service modes. But just like Microservices-Not A Free Lunch-! While providing the above advantages, the described in the above is accompanied by unavoidable drawbacks such as significant operational overhead, distributed transaction management and complexity, implicit interface and repetitive effort, complexity of testing and debugging.
In the Internet application environment, the application adopts concentrated deployment and is provided with professional development, operation and maintenance teams, the application requirements, changes and release can be controlled by the application, and the advantages of the micro-service architecture can be effectively exerted by adopting the micro-service architecture. In the enterprise application environment, as the personalized requirements are various and the change and release are required to be adapted to the requirements of external clients, the micro-service architecture is adopted, so that the advantages of the micro-service architecture cannot be enjoyed, the difficulty of application software development and operation and maintenance is improved, and the cost of enterprises is increased.
Disclosure of Invention
The application aims to overcome the defects in the prior art, and provides a service processing method, a device and a server device, so as to solve the problems of high service processing difficulty, low efficiency and the like in the prior art.
In order to achieve the above purpose, the technical scheme adopted by the embodiment of the application is as follows:
in a first aspect, an embodiment of the present application provides a service processing method, applied to a server, where the method includes:
receiving a service request sent by a service calling party;
analyzing the service request to obtain request content, wherein the request content comprises: business script information and business parameters;
acquiring a target service script according to the service script information;
according to the service parameters, executing corresponding service operation by adopting the target service script to obtain a service execution result;
and returning the service execution result to the service calling party.
Optionally, the service script information includes: service processing name, access control information of the service calling party;
the obtaining the target service script according to the service script information includes:
determining whether the service calling party has the access right of the service script corresponding to the service processing name according to the service processing name and the access control information;
and if the service calling party has the access authority of the target service script corresponding to the service processing name, acquiring the target service script according to the service processing name.
Optionally, the access control information includes: the identification of the service calling party and the service script name set corresponding to the service calling party;
the determining whether the service calling party has the access right of the service script corresponding to the service processing name according to the service processing name and the access control information comprises the following steps:
determining whether the business process name is in the business script name set;
if the service processing name is in the service script name set, determining that the service calling party has the access right of the target service script;
and if the service processing name is not in the service script name set, determining that the service calling party does not have the access right of the target service script.
Optionally, the access control information includes: an identification of the service caller;
the determining whether the service calling party has the access right of the service script corresponding to the service processing name according to the service processing name and the access control information comprises the following steps:
determining whether the service processing name is in a preset service script name set corresponding to the identification of the service calling party;
if the service processing name is in the preset service script name set, determining that the service calling party has the access right of the target service script;
and if the service processing name is not in the preset service script name set, determining that the service calling party does not have the access right of the target service script.
Optionally, the service script information further includes: version information;
the obtaining the target service script according to the service processing name includes:
and acquiring the target service script according to the service processing name and the version information.
Optionally, the obtaining the target service script according to the service processing name includes:
and acquiring the target service script according to the service processing name and preset version information corresponding to the identification of the service calling party.
Optionally, the obtaining the target service script according to the service processing name includes:
searching the target service script from a preset script cache according to the service processing name;
if the target service script does not exist in the preset script cache, acquiring the target service script from a preset database according to the service processing name;
and caching the target business script into the preset script cache.
Optionally, the obtaining the target service script according to the service processing name further includes:
if the target service script exists in the preset script cache, the target service script is directly obtained from the preset script cache.
In a second aspect, an embodiment of the present application provides a service processing apparatus, applied to a server, where the apparatus includes:
the receiving module is used for receiving the service request sent by the service calling party;
the analysis module is used for analyzing the service request to obtain request content, wherein the request content comprises: business script information and business parameters;
the acquisition module is used for acquiring a target service script according to the service script information;
the execution module is used for executing corresponding business operation by adopting the target business script according to the business parameters to obtain a business execution result;
and the sending module is used for returning the service execution result to the service calling party.
In a third aspect, an embodiment of the present application provides a server device, including: the system comprises a processor and a storage medium, wherein the processor is in communication connection with the storage medium through a bus, the storage medium stores program instructions executable by the processor, and the processor calls a program stored in the storage medium to execute the steps of the service processing method according to any one of the first aspect.
Compared with the prior art, the application has the following beneficial effects:
the application provides a service processing method, a device and a server device. Receiving a service request sent by a service calling party; analyzing the service request to obtain request content, wherein the request content comprises: business script information and business parameters; acquiring a target service script according to the service script information; according to the service parameters, executing corresponding service operation by adopting a target service script to obtain a service execution result; and returning a service execution result to the service calling party. Therefore, the service script or plug-in is determined through the service request, and the user does not need to search or edit the script by himself, so that the service processing difficulty is reduced, and the service processing efficiency and processing precision are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a service processing method provided by the application;
FIG. 2 is a flowchart of a method for obtaining a target service script according to service script information according to an embodiment of the present application;
fig. 3 is a flowchart of a method for determining whether a service caller has access rights according to an embodiment of the present application;
FIG. 4 is a flowchart of another method for determining whether a service caller has access rights according to an embodiment of the present application;
FIG. 5 is a flowchart of a method for obtaining a target service script according to an embodiment of the present application;
fig. 6 is a schematic diagram of a service processing device according to an embodiment of the present application;
fig. 7 is a schematic diagram of a server device according to an embodiment of the present application.
Icon: 601-receiving module, 602-parsing module, 603-obtaining module, 604-executing module, 605-sending module, 701-processor, 702-storage medium.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
Furthermore, the terms "first," "second," and the like, if any, are used merely for distinguishing between descriptions and not for indicating or implying a relative importance.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
In order to reduce service processing difficulty and improve service processing precision, the application provides a service processing method, a device and a server device.
The service processing method provided by the application is explained by a specific example. Fig. 1 is a schematic flow chart of a service processing method provided by the present application, and an execution subject of the method may be a server device, where the server device may be a device with a computing function, such as a desktop computer, a notebook computer, a background server, etc. As shown in fig. 1, the method includes:
s101, receiving a service request sent by a service calling party.
Where "request" is an identification parameter of the service request. Among the information sent by the service invoker, the information containing the "request" is the service request.
Illustratively, the service caller sends a service request in an http post manner.
S102, analyzing the service request to obtain the request content.
The request content includes: business script information, and business parameters.
The service request is presented in the form of a code, and the preset position of the service request code comprises service script information and service parameters. For example, the content in the "request" node is service script information, and the content in the "input" node is service parameters.
S103, acquiring a target service script according to the service script information.
According to the service script information, a service script corresponding to the service script information (or a service plug-in corresponding to the service script information) can be uniquely determined. And determining the service script as a target service script.
S104, executing corresponding business operation by adopting the target business script according to the business parameters to obtain a business execution result.
And transmitting the service parameters into the target service script, and executing corresponding service operation. The method comprises the steps of defining an execution flow of a target service and plug-in information in a target service script, and defining identification, input parameters and output parameters of a plug-in the plug-in information. Further, a service execution result is obtained.
Illustratively, the service parameters are in an array format, containing name, datatype, value, nullable four attributes.
S105, returning a service execution result to the service calling party.
To sum up, in this embodiment, a service request sent by a service caller is received; analyzing the service request to obtain request content, wherein the request content comprises: business script information and business parameters; acquiring a target service script according to the service script information; according to the service parameters, executing corresponding service operation by adopting a target service script to obtain a service execution result; and returning a service execution result to the service calling party. Therefore, the service script or plug-in is determined through the service request, and the user does not need to search or edit the script by himself, so that the service processing difficulty is reduced, and the service processing efficiency and processing precision are improved.
On the basis of the embodiment corresponding to fig. 1, the embodiment of the application also provides a method for acquiring the target service script according to the service script information. Fig. 2 is a flowchart of a method for acquiring a target service script according to service script information according to an embodiment of the present application.
The service script information includes: service processing name, access control information of service calling party. Illustratively, "name" in the service request is the service process name.
As shown in fig. 2, acquiring a target service script according to service script information in S103 includes:
s201, determining whether the service calling party has the access right of the service script corresponding to the service processing name according to the service processing name and the access control information.
A plurality of service process names may be determined based on the access control information. According to whether the service processing name is among the service processing names corresponding to the access control information, whether the service calling party has the access right of the service script corresponding to the service processing name can be determined.
S202, if the service calling party has the access authority of the target service script corresponding to the service processing name, acquiring the target service script according to the service processing name.
Further, the permission is returned to the calling party, and the appointed business script cannot be acquired.
To sum up, in this embodiment, whether the service caller has the access right of the service script corresponding to the service processing name is determined according to the service processing name and the access control information; and if the service calling party has the access authority of the target service script corresponding to the service processing name, acquiring the target service script according to the service processing name. Thus, the target service script is accurately acquired.
On the basis of the embodiment corresponding to fig. 2, the embodiment of the application also provides a method for determining whether the service calling party has the access right. Fig. 3 is a flowchart of a method for determining whether a service caller has access rights according to an embodiment of the present application. As shown in fig. 3, the access control information includes: the identification of the service calling party and the service script name set corresponding to the service calling party. Illustratively, "caller" in the service request is the identity of the service caller, and "schema" in the service request is the service script name set corresponding to the service caller. There are a plurality of pairs of mapping relations between the "cams" and the "schemas", one "cam" corresponds to a plurality of "schemas", and one "schema" corresponds to a plurality of "cams".
In S201, according to the service processing name and the access control information, determining whether the service caller has an access right of the service script corresponding to the service processing name includes:
s301, determining whether a service processing name is in a service script name set.
The service script name set in the current service request is one of a plurality of service script name sets corresponding to the service calling party.
S302, if the service processing name is in the service script name set, determining that the service caller has the access right of the target service script.
S303, if the service processing name is not in the service script name set, determining that the service calling party does not have the access right of the target service script.
To sum up, in this embodiment, by determining whether the service processing name is in the service script name set; if the service processing name is in the service script name set, determining that the service calling party has the access right of the target service script; if the service processing name is not in the service script name set, determining that the service calling party does not have the access right of the target service script. Thus, the target service script is accurately acquired.
On the basis of the embodiment corresponding to fig. 2, the embodiment of the application also provides another method for determining whether the service calling party has the access right. Fig. 4 is a flowchart of another method for determining whether a service caller has access rights according to an embodiment of the present application. As shown in fig. 4, the access control information includes: an identification of a service calling party; in S201, according to the service processing name and the access control information, determining whether the service caller has an access right of the service script corresponding to the service processing name includes:
s401, determining whether the service processing name is in a preset service script name set corresponding to the identification of the service calling party.
If only the service processing name and the identification of the service calling party are provided in the service request. And acquiring a preset service script name set corresponding to the identifier of the service calling party. The preset service script name set corresponding to the identification of the service calling party is preset by service personnel.
S402, if the service processing name is in the preset service script name set, determining that the service calling party has the access right of the target service script.
S403, if the service processing name is not in the preset service script name set, determining that the service calling party does not have the access right of the target service script.
To sum up, in this embodiment, by determining whether the service processing name is in a preset service script name set corresponding to the identifier of the service caller; if the service processing name is in the preset service script name set, determining that the service calling party has the access right of the target service script; if the service processing name is not in the preset service script name set, determining that the service calling party does not have the access right of the target service script. Thus, the target service script is accurately acquired.
On the basis of the embodiment corresponding to fig. 3, in another embodiment of the present application, the service script information further includes: version information. Illustratively, "version" in the service request is version information.
In S202, according to the service processing name, acquiring a target service script, including:
and acquiring the target service script according to the service processing name and version information.
The service processing names correspond to multiple versions of the service script. Based on the service process name and version information, a version of the service script can be uniquely determined.
To sum up, in this embodiment, the target service script is acquired by according to the service processing name and version information. Thus, the target service script is accurately acquired.
Based on the embodiment corresponding to fig. 4, in another embodiment of the present application, obtaining the target service script according to the service processing name in S202 includes:
and acquiring the target service script according to the service processing name and the preset version information corresponding to the identification of the service calling party.
If only the service processing name and the identification of the service calling party are provided in the service request. And acquiring the target service script according to the service processing name and the preset version information corresponding to the identification of the service calling party.
The service processing names correspond to multiple versions of the service script. Based on the service process name and version information, a version of the service script can be uniquely determined.
To sum up, in this embodiment, the target service script is obtained according to the service processing name and the preset version information corresponding to the identifier of the service caller. Thus, the target service script is accurately acquired.
On the basis of the embodiment corresponding to fig. 1, the embodiment of the application also provides a method for acquiring the target service script. Fig. 5 is a flowchart of a method for obtaining a target service script according to an embodiment of the present application. As shown in fig. 5, acquiring a target service script according to a service processing name in S202 includes:
s501, searching a target service script from a preset script cache according to the service processing name.
The preset script cache is a local cache, and is provided with a common service script, so that the search is convenient.
S502, if the target service script does not exist in the preset script cache, acquiring the target service script from a preset database according to the service processing name.
The preset database can be a local database or a remote database.
Illustratively, in the present application, a core system is built based on a SpringBoot framework; customizing a plug-in loader and a management framework, and pre-constructing plug-ins according to service requirements; and pre-designing a service script (including creating, editing, viewing, enabling, disabling and the like) according to service requirements, and storing the script after debugging into a preset database (including discovering, installing, executing, unloading and monitoring). Business personnel can update, delete and modify the business script in the preset database according to actual demands, thereby realizing a dynamic script database.
Because the framework combining the SpringBoot and the dynamic script database is adopted, the required script can be changed and issued at any time, and the plug-in can be dynamically installed and uninstalled, so that the capability of the application program for meeting personalized requirements is effectively improved, and the code multiplexing rate can be provided through a plug-in system; by formulating various and flexible deployment schemes, the development and operation difficulty of the traditional micro-service architecture and the complexity brought by RPC call are reduced, the service processing process can be completely embodied in the application program, and the efficiency and accuracy of fault detection are improved.
In the whole service function implementation, the universal and stable functions are realized by plug-ins, and the personalized and changeable service functions are realized by service scripts. Along with the development of the service, the functions originally realized by the service script are identified as universal and stable, and can be converted into realized by the plug-in, so that the stability, the universality and the maintenance efficiency of the application system are further enhanced, a great number of client requirements are more favorably met, the delivery efficiency is improved, and the challenges of deploying, managing and maintaining codes are met.
Based on the service script and the plug-in, a specific service script and the plug-in can be selected for deployment, such as a function needing RPC calling under a traditional micro-service architecture, and through the specific deployment, two functions needing RPC calling can be combined and deployed in the same application program, so that development difficulty is effectively reduced, and stability and calling efficiency of the application program are improved.
S503, caching the target business script into a preset script cache.
In order to facilitate the search of the subsequent service processing, the target service script is cached in a preset script cache.
To sum up, in this embodiment, a target service script is searched from a preset script cache according to a service processing name; if the target service script does not exist in the preset script cache, acquiring the target service script from a preset database according to the service processing name; and caching the target business script into a preset script cache. Therefore, the service processing difficulty is reduced, and the service processing efficiency is improved.
Based on the embodiment corresponding to fig. 5, in another embodiment of the present application, the obtaining the target service script according to the service processing name in S202 further includes:
if the target service script exists in the preset script cache, the target service script is directly acquired from the preset script cache.
And the target service script is acquired from the local cache, so that the service processing efficiency is improved.
The following describes a service processing device, a storage medium, etc. provided by the present application for execution, and specific implementation processes and technical effects thereof are referred to above, and are not described in detail below.
Fig. 6 is a schematic diagram of a service processing apparatus according to an embodiment of the present application, which is applied to a server, as shown in fig. 6, and the apparatus includes:
a receiving module 601, configured to receive a service request sent by a service caller.
The parsing module 602 is configured to parse the service request to obtain a request content, where the request content includes: business script information, and business parameters.
The obtaining module 603 is configured to obtain a target service script according to the service script information.
And the execution module 604 is configured to execute the corresponding service operation by using the target service script according to the service parameter, so as to obtain a service execution result.
And the sending module 605 is configured to return a service execution result to the service caller.
Further, the acquiring module 603 is specifically configured to include: service processing name, access control information of service calling party; determining whether the service calling party has the access right of the service script corresponding to the service processing name according to the service processing name and the access control information; and if the service calling party has the access authority of the target service script corresponding to the service processing name, acquiring the target service script according to the service processing name.
Further, the obtaining module 603 is specifically configured to access control information including: the identification of the service calling party and the service script name set corresponding to the service calling party; determining whether the business processing name is in a business script name set; if the service processing name is in the service script name set, determining that the service calling party has the access right of the target service script; if the service processing name is not in the service script name set, determining that the service calling party does not have the access right of the target service script.
Further, the obtaining module 603 is specifically configured to access control information including: an identification of a service calling party; determining whether the service processing name is in a preset service script name set corresponding to the identification of the service calling party; if the service processing name is in the preset service script name set, determining that the service calling party has the access right of the target service script; if the service processing name is not in the preset service script name set, determining that the service calling party does not have the access right of the target service script.
Further, the obtaining module 603, specifically for service script information, further includes: version information; and acquiring the target service script according to the service processing name and version information.
Further, the obtaining module 603 is specifically configured to obtain the target service script according to the service processing name and the preset version information corresponding to the identifier of the service caller.
Further, the obtaining module 603 is specifically configured to search for a target service script from a preset script cache according to the service processing name; if the target service script does not exist in the preset script cache, acquiring the target service script from a preset database according to the service processing name; and caching the target business script into a preset script cache.
Further, the obtaining module 603 is specifically configured to directly obtain the target service script from the preset script buffer if the target service script exists in the preset script buffer.
Fig. 7 is a schematic diagram of a server device according to an embodiment of the present application, where the server device may be a device with a computing function.
The electronic device includes: a processor 701, and a storage medium 702. The processor 701 and the storage medium 702 are connected by a bus.
The storage medium 702 is used to store a program, and the processor 701 calls the program stored in the storage medium 702 to execute the above-described method embodiment. The specific implementation manner and the technical effect are similar, and are not repeated here.
Optionally, the present application further provides a storage medium comprising a program, which when executed by a processor is adapted to carry out the above-described method embodiments. In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform some of the steps of the methods according to the embodiments of the application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.

Claims (10)

1. A service processing method, which is applied to a server, the method comprising:
receiving a service request sent by a service calling party;
analyzing the service request to obtain request content, wherein the request content comprises: business script information and business parameters;
acquiring a target service script according to the service script information;
according to the service parameters, executing corresponding service operation by adopting the target service script to obtain a service execution result;
and returning the service execution result to the service calling party.
2. The method of claim 1, wherein the service script information comprises: service processing name, access control information of the service calling party;
the obtaining the target service script according to the service script information includes:
determining whether the service calling party has the access right of the service script corresponding to the service processing name according to the service processing name and the access control information;
and if the service calling party has the access authority of the target service script corresponding to the service processing name, acquiring the target service script according to the service processing name.
3. The method of claim 2, wherein the access control information comprises: the identification of the service calling party and the service script name set corresponding to the service calling party;
the determining whether the service calling party has the access right of the service script corresponding to the service processing name according to the service processing name and the access control information comprises the following steps:
determining whether the business process name is in the business script name set;
if the service processing name is in the service script name set, determining that the service calling party has the access right of the target service script;
and if the service processing name is not in the service script name set, determining that the service calling party does not have the access right of the target service script.
4. The method of claim 2, wherein the access control information comprises: an identification of the service caller;
the determining whether the service calling party has the access right of the service script corresponding to the service processing name according to the service processing name and the access control information comprises the following steps:
determining whether the service processing name is in a preset service script name set corresponding to the identification of the service calling party;
if the service processing name is in the preset service script name set, determining that the service calling party has the access right of the target service script;
and if the service processing name is not in the preset service script name set, determining that the service calling party does not have the access right of the target service script.
5. The method of claim 3, wherein the business script information further comprises: version information;
the obtaining the target service script according to the service processing name includes:
and acquiring the target service script according to the service processing name and the version information.
6. The method of claim 4, wherein the obtaining the target service script according to the service processing name comprises:
and acquiring the target service script according to the service processing name and preset version information corresponding to the identification of the service calling party.
7. The method of claim 2, wherein the obtaining the target service script according to the service processing name comprises:
searching the target service script from a preset script cache according to the service processing name;
if the target service script does not exist in the preset script cache, acquiring the target service script from a preset database according to the service processing name;
and caching the target business script into the preset script cache.
8. The method of claim 7, wherein the obtaining the target service script according to the service processing name further comprises:
if the target service script exists in the preset script cache, the target service script is directly obtained from the preset script cache.
9. A service processing apparatus, applied to a server, the apparatus comprising:
the receiving module is used for receiving the service request sent by the service calling party;
the analysis module is used for analyzing the service request to obtain request content, wherein the request content comprises: business script information and business parameters;
the acquisition module is used for acquiring a target service script according to the service script information;
the execution module is used for executing corresponding business operation by adopting the target business script according to the business parameters to obtain a business execution result;
and the sending module is used for returning the service execution result to the service calling party.
10. A server device, comprising: the service processing method according to any one of claims 1 to 8, wherein the processor and the storage medium are connected through a bus communication, the storage medium stores program instructions executable by the processor, and the processor calls a program stored in the storage medium to execute the steps of the service processing method according to any one of claims 1 to 8.
CN202311198824.XA 2023-09-15 2023-09-15 Service processing method and device and server equipment Pending CN117215808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311198824.XA CN117215808A (en) 2023-09-15 2023-09-15 Service processing method and device and server equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311198824.XA CN117215808A (en) 2023-09-15 2023-09-15 Service processing method and device and server equipment

Publications (1)

Publication Number Publication Date
CN117215808A true CN117215808A (en) 2023-12-12

Family

ID=89034943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311198824.XA Pending CN117215808A (en) 2023-09-15 2023-09-15 Service processing method and device and server equipment

Country Status (1)

Country Link
CN (1) CN117215808A (en)

Similar Documents

Publication Publication Date Title
US7720931B2 (en) System and method of remotely managing and loading artifacts
US7761559B2 (en) System and method of remotely managing and loading artifacts
CN109445841B (en) Interface document management method, device, server and storage medium
US8856365B2 (en) Computer-implemented method, computer system and computer readable medium
CN111666293A (en) Database access method and device
US20230259358A1 (en) Documentation enforcement during compilation
CN112948498A (en) Method and device for generating global identification of distributed system
CN113760722A (en) Test system and test method
CN111782235A (en) Data upgrading and querying method and device
CN113886485A (en) Data processing method, device, electronic equipment, system and storage medium
US9128886B2 (en) Computer implemented method, computer system, electronic interface, mobile computing device and computer readable medium
WO2019043462A1 (en) Systems and methods for creating automated interface transmission between heterogeneous systems in an enterprise ecosystem
CN109981546B (en) Method and device for acquiring remote call relation between application modules
CN107968798B (en) Network management resource label obtaining method, cache synchronization method, device and system
US20020198908A1 (en) Method and apparatus for delivery of external data from a centralized repository in a network data processing system
US8694596B2 (en) Systems and methods for information brokering in software management
US10067808B2 (en) Nondeterministic operation execution environment utilizing resource registry
CN117215808A (en) Service processing method and device and server equipment
CN118251656A (en) Automatic work or automatic generation code for service worker threads of Progressive Web Application (PWA)
CN111782428B (en) Data calling system and method
CN112783842B (en) Log collection method and device
CN114610509A (en) Calling parameter processing method, system, device, storage medium and product
CN113076343A (en) Data query method, device, equipment and storage medium
CN111488286A (en) Method and device for independently developing Android module
CN113495747B (en) Gray scale release method and device

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