CN113986384A - Processing device, method, equipment and storage medium based on client and cloud - Google Patents

Processing device, method, equipment and storage medium based on client and cloud Download PDF

Info

Publication number
CN113986384A
CN113986384A CN202111263616.4A CN202111263616A CN113986384A CN 113986384 A CN113986384 A CN 113986384A CN 202111263616 A CN202111263616 A CN 202111263616A CN 113986384 A CN113986384 A CN 113986384A
Authority
CN
China
Prior art keywords
client
rule set
module
target service
rule
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
CN202111263616.4A
Other languages
Chinese (zh)
Inventor
崔红保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Digital Heaven Beijing Network Technology Co ltd
Original Assignee
Digital Heaven Beijing Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Digital Heaven Beijing Network Technology Co ltd filed Critical Digital Heaven Beijing Network Technology Co ltd
Priority to CN202111263616.4A priority Critical patent/CN113986384A/en
Publication of CN113986384A publication Critical patent/CN113986384A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a processing device, a method, equipment and a storage medium based on a client and a cloud, wherein the processing device comprises a configuration module and an operation module, the configuration module is used for acquiring a rule set configured according to a target service, the operation module is used for receiving a trigger request aiming at the target service and including target service data, the rule set corresponding to the target service is acquired from the configuration module according to the trigger request, the rule set includes an authority verification rule and a field verification rule required by the target service, and when the target service data passes the verification according to the authority verification rule and the field verification rule, a database is connected; and operating the database according to the acquired database operation instruction. Therefore, the rule set and the database operation instruction are used as the basis for subsequent execution of subsequent business logic, the technical requirements of a server programming language are not required, a client engineer can complete the operation independently, and the labor cost of an enterprise is reduced.

Description

Processing device, method, equipment and storage medium based on client and cloud
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a processing apparatus, a processing method, a processing device, and a storage medium based on a client and a cloud.
Background
In a traditional development mode, development of a service needs a client-side engineer and a server-side engineer to assist in completion. The server-side engineer is responsible for service logic of the server side, the client-side engineer is responsible for content presentation and user interaction of the client side, and client-side data come from the server.
For enterprises, the method needs to recruit a client-side engineer and a server-side engineer at the same time, and the labor cost is high.
Disclosure of Invention
In order to solve the problems, the application provides a processing device, a processing method, a processing device and a storage medium based on a client and a cloud, and the processing device, the processing method, the processing device and the storage medium are used for reducing the labor cost of enterprises.
Based on this, the embodiment of the application discloses the following technical scheme:
in one aspect, an embodiment of the present application provides a processing apparatus based on a client and a cloud, where the processing apparatus includes: a configuration module and an operation module;
the configuration module is used for acquiring a rule set configured according to a target service, wherein the rule set comprises an authority check rule and a field check rule required by the target service;
the running module is used for receiving a trigger request aiming at the target service, and the trigger request comprises target service data; acquiring the rule set from the configuration module according to the trigger request; when the target service data passes the verification determined according to the authority verification rule and the field verification rule, connecting a database; and operating the database according to the acquired database operation instruction.
Optionally, the operation module includes a client operation sub-module located at the client and a server operation sub-module located at the cloud;
the client operation sub-module is used for acquiring a rule set identifier corresponding to the target service according to the trigger request; sending the network request data packet carrying the rule set identifier to the server operation submodule;
the server operation submodule is used for analyzing the rule set identifier from the network request data packet; and acquiring the rule set from the configuration module according to the rule set identification.
Optionally, the configuration module is configured to:
acquiring a first corresponding relation between the trigger request and the rule set identifier; sending the first corresponding relation to the client operation sub-module;
the client side operation submodule is used for:
and acquiring the rule set identifier according to the trigger request and the first corresponding relation.
Optionally, the client runs a sub-module, configured to:
and packaging the rule set identifier, the target service data and the database operation instruction into a network request data packet.
Optionally, the server runs a sub-module, configured to:
sending the operation result of the database to the client operation submodule;
the client side operation submodule is further used for:
and displaying the operation result.
Optionally, the configuration module is further configured to:
acquiring a second corresponding relation between the trigger request and the database operation instruction; sending the second corresponding relation to the client operation sub-module;
the client side operation submodule is used for:
and acquiring the database operation instruction according to the triggering request and the second corresponding relation.
On the other hand, in an embodiment of the present application, a processing method based on a client and a cloud includes:
the method comprises the steps that a running module receives a trigger request aiming at a target service, wherein the trigger request comprises target service data;
the operation module acquires the rule set from the configuration module according to the trigger request, wherein the rule set comprises an authority check rule and a field check rule required by the target service and is acquired through the configuration module;
the operation module is connected with a database when the target service data passes the verification determined according to the authority verification rule and the field verification rule;
and the operation module operates the database according to the acquired database operation instruction.
Optionally, the running module includes a client running submodule located at the client and a server running submodule located at the cloud, and the acquiring the rule set from the configuration module according to the trigger request includes:
the client operation sub-module acquires a rule set identifier corresponding to a target service according to a trigger request;
the client operation submodule sends a network request data packet carrying the rule set identifier to the server operation submodule;
the server operation submodule analyzes the rule set identifier from the network request data packet;
and the server operation sub-module acquires the rule set from the configuration module according to the rule set identifier.
In another aspect, the present application provides a computer device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the method of the above aspect according to instructions in the program code.
In another aspect the present application provides a computer readable storage medium for storing a computer program for performing the method of the above aspect.
Compared with the prior art, the technical scheme of the application has the advantages that:
the embodiment of the application provides a processing device based on a client and a cloud, the processing device comprises a configuration module and an operation module, the configuration module is used for acquiring a rule set configured according to a target service, the operation module is used for receiving a trigger request aiming at the target service and including target service data, the rule set corresponding to the target service is acquired from the configuration module according to the trigger request, the rule set includes an authority verification rule and a field verification rule required by the target service, and when the target service data passes verification according to the authority verification rule and the field verification rule, the processing device is connected with a database; and operating the database according to the acquired database operation instruction. Therefore, a client engineer can store a rule set required by the target service in the configuration module in advance, after the operation module acquires the trigger request aiming at the target service, the rule set required by the target service is acquired from the configuration module, and the rule set and the database operation instruction are used as the basis for subsequently executing the subsequent service logic to process the received target service data. Because the configuration operation is simple, the technical requirements of a server programming language are not required, and a client engineer can finish the configuration operation independently, so that the labor cost of an enterprise is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram of a processing device based on a client and a cloud according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a database table according to an embodiment of the present application;
fig. 3 is a processing method based on a client and a cloud according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a processing device based on a client and a cloud according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a client operating database code according to an embodiment of the present application;
fig. 6 is a schematic diagram of a network request packet code according to an embodiment of the present application;
fig. 7 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In a traditional development mode, a server-side engineer is responsible for service logic of a server side, a client-side engineer is responsible for content presentation and user interaction of a client side, and client-side data come from the server side. For example, developing a service typically requires the following 8 steps: (1) analyzing a user input request; (2) checking user input parameters; (3) sending service data to a server; (4) checking client parameters (i.e., field checking); (5) verifying the user authority; (6) connecting a database and operating the database; (7) returning the operation result to the client; (8) and feeding back a result returned by the server to the user.
Wherein, the server side engineer is responsible for the steps (4), (5), (6) and (7), and the client side engineer is responsible for the steps (1), (2), (3) and (8). It can be seen that the client only sends the service data to the server, and taking the news application publishing news function as an example, the data transmitted from the client to the server is as follows:
1.{
"title": "news headlines",
"content": "news content"
4.}
That is, the client does not send the service logic to the server, and if there is no server engineer, the server does not know what service logic to execute according to the received service data, such as how to check client parameters, how to check user rights, how to operate data, and the like for the current service. Because the client-side engineer and the server-side engineer need different programming languages and different skill requirements, if the corresponding business logic is executed according to the business data, an enterprise needs to recruit the client-side engineer and the server-side engineer at the same time, and a large amount of labor cost is needed.
Based on this, an embodiment of the present application provides a processing apparatus based on a client and a cloud, where the processing apparatus includes a configuration module and an operation module, the configuration module is configured to obtain a rule set configured according to a target service, the operation module is configured to receive a trigger request for the target service and including target service data, and obtain a rule set corresponding to the target service from the configuration module according to the trigger request, the rule set includes an authority check rule and a field check rule required by the target service, and when it is determined that the target service data passes through the check according to the authority check rule and the field check rule, the processing apparatus is connected to a database; and operating the database according to the acquired database operation instruction. Therefore, a client engineer can store a rule set required by the target service in the configuration module in advance, after the operation module acquires the trigger request aiming at the target service, the rule set required by the target service is acquired from the configuration module, the rule set and the database operation instruction are used as the basis for subsequently executing the subsequent service logic, and the received target service data is processed. Because the configuration operation is simple, the technical requirements of a server programming language are not required, and a client engineer can finish the configuration operation independently, so that the labor cost of an enterprise is reduced.
With reference to fig. 1, a processing device based on a client and a cloud according to an embodiment of the present disclosure is described below. Referring to fig. 1, the figure is a schematic diagram of a processing device based on a client and a cloud according to an embodiment of the present disclosure, where the processing device includes a configuration module 110 and an operation module 120, which are respectively described below.
First, the configuration module 110 is described, and the configuration module 110 is configured to obtain a rule set configured according to a target service.
The rule set comprises an authority check rule and a field check rule and is used for determining the execution logic of the business data. For example, the authority check rule may be represented by a Key-Value model, and if the administrator has the authority to view 5 levels of data, the administrator may be regarded as Key1, and the authority to view 5 levels of data may be regarded as Value1, and the two may form (Key1, Value1) a Key-Value pair as one authority check rule. The field check rule can also be expressed by a Key-Value model, such as a news title cannot be null, and the like. As a possible implementation manner, Value may be a common string type, or may be extended to a complex expression type to represent more complex permission check and field check.
The general permission check, field check, database operation and the like of the server side can be highly abstracted, and the permission check rule and the field check rule are configured according to the requirement of the target service, so that the configuration module 110 obtains the rule set configured according to the target service. As a possible implementation manner, the configuration module 110 may be changed into a visual interface, and a client engineer may select at least one Key option and at least one Value option provided through the visual interface to form a rule through the visual interface, so as to quickly implement configuration of the rule set.
It should be noted that the configuration module is located at the cloud end, and is stored at the cloud end according to the rule set configured by the target service, so as to ensure the security of the permission rule.
As a possible implementation manner, the client engineer may also configure other configuration information required by the target service through the configuration module 110, such as rule set identification, other operation authority, and the like. The embodiment of the present application does not specifically limit the form of the rule set, and if the form of the rule set is a database table, the rule set identifier may be a name of the database table. The structure of the database table may be defined, such as the fields that the database table includes, as well as the type of each field, the permission check rules, the field check rules, and so forth.
The following description will be given by taking the target service as the news application for publishing news as an example in conjunction with fig. 2. Referring to fig. 2, the figure is a schematic diagram of a database table provided in the embodiment of the present application. The client engineer configures fields of a news database table (news), read-write permission check rules of the news database table, and permission check rules and field check rules of each field through the configuration module 110.
The operational block 120 is then described in conjunction with fig. 3. Referring to fig. 3, a processing method based on a client and a cloud according to an embodiment of the present disclosure is shown, and the method includes S301 to S304.
S301: a trigger request for a target service is received.
The trigger request includes target service data, which is data required to implement a function for the target service, for example, in the embodiment shown in fig. 2, the target service data is a news headline and news content. The trigger request may be, for example, a user clicking on a publish news control, etc.
S302: and acquiring the rule set from the configuration module according to the trigger request.
The trigger request is specific to the target service, and the target service and the rule set have an association relationship in the configuration module, so that the rule set required by the target service can be acquired from the configuration module based on the target service.
As shown in fig. 4, the figure is a schematic diagram of a processing device based on a client and a cloud according to an embodiment of the present disclosure. The operation module 120 may further include a client-side operation sub-module 121 and a server-side operation sub-module 122. The client side operation submodule 121 is arranged in the client side, and the server side operation submodule 122 is arranged in the cloud side.
The embodiment of the present application does not specifically limit the main body of the client-side obtaining rule set, for example, the client-side running sub-module 121 and the server-side running sub-module 122 may both obtain the rule set from the configuration module. For another example, the server-side only sub-module 122 obtains the rule set from the configuration module, and the client-side only sub-module 121 obtains the rule set identifier. Specifically, the client operation sub-module 121, after receiving a trigger request for a target service, obtains a rule set identifier corresponding to the target service according to the trigger request, and sends a network request data packet carrying the rule set identifier to the server operation sub-module. Therefore, compared with the technical scheme that the client runs the submodule storage rule set to identify, the client runs the submodule storage rule set to store the rule set at the cloud, so that the rule set is not easy to crack, the safety is higher, and the rule set is easier to adjust when being stored at the cloud.
As a possible implementation manner, the client engineer may configure the first corresponding relationship, that is, the corresponding relationship between the trigger request for the target service and the rule set identifier, through the configuration module 110, and issue the first corresponding relationship to the client operation sub-module 121.
For example, the first corresponding relationship may be stored in an Application (APP) file of the client, such as an ipa file of an apple operating system, an apk file of an android operating system, and stored in the client of the user as the user installs the APP at the client.
For example, the client stores a first correspondence of clicking on the publish news control (trigger operation) with a news database table (rule set identification). When a user clicks a news release control through a client, the subsequently executed database table can be definitely a news database table according to the triggering operation and the first corresponding relation.
As a possible implementation manner, not only the first corresponding relationship between the trigger operation and the rule set identifier may be stored in the client, but also the second corresponding relationship between the trigger operation and the database operation instruction may be stored in the client.
For example, when a user clicks a news release control through a news APP installed on a client, not only can it be clarified that a database table to be subsequently executed is a news database table (news) through the trigger operation and the first corresponding relationship, but also a database operation instruction can be obtained according to the second corresponding relationship, that is, the news database table is added (add) to the database, as shown in fig. 5.
The server operation sub-module 122, after receiving the network request data packet, parses a rule set identifier from the network request data packet, and obtains a rule set from the configuration module according to the rule set identifier. When the target service data passes the verification according to the authority verification rule and the field verification rule, connecting the database; and operating the database according to the acquired database operation instruction.
As a possible implementation manner, the rule set identifier, the target service data, and the database operation instruction may be encapsulated into a network data packet, as shown in fig. 6, the server operation sub-module 122 may not only parse the rule set identifier from the network request data packet, but also parse the database operation instruction.
In the related art, the client does not send the service logic to the server, and the server does not know what subsequent logic is executed according to the service data after receiving the service data, so a server engineer is required to write a program of the server and perform subsequent processing on the service data sent by the client; for the definition, rules and permissions of the service data, the client-side engineer and the server-side engineer may have different understandings, so repeated communication tests may exist, the team internal communication cost is high, and the service online time may be long.
By adopting the technical scheme provided by the application, after the triggering operation of the user is received, the rule set identification and the database operation instruction can be determined based on the first corresponding relation and the second corresponding relation, and are encapsulated in the network data packet together with the target service data, namely, the client side does not only send the target service data to the server side any more, but sends the target service data and the service logic identification to the server side. Service logics such as permission check rules and field check rules are configured in the configuration module in advance through a client engineer, and after the server receives target service data, a rule set required by the target service data is called, namely the client engineer can complete the development of the whole process by one person, so that the communication cost is saved, and the time required by the online of enterprise services is shortened.
As a possible implementation manner, the server operation sub-module 122 may, after operating the database according to the obtained database operation instruction, send an operation result of the database to the client operation sub-module 121, and the client operation sub-module 121 displays the operation result.
S303: and when the target service data passes the verification according to the authority verification rule and the field verification rule, connecting the database.
And after the rule set is obtained, determining whether the target service data passes the verification according to the authority verification rule and the field verification rule included in the rule set, and if the target service data passes the verification, connecting the database.
S304: and operating the database according to the acquired database operation instruction.
The embodiment of the present application does not specifically limit the manner of obtaining the database operation instruction, and two manners are described below as examples.
The first method is as follows: the database operation instruction may be carried in the trigger request, and after the execution module obtains the trigger request, the database operation instruction may be obtained according to the trigger request.
The second method comprises the following steps: the second correspondence between the database operation instruction and the trigger request may be stored in the client in advance.
Therefore, the processing device based on the client and the cloud comprises a configuration module and an operation module, wherein the configuration module is used for acquiring a rule set configured according to a target service, the operation module is used for receiving a trigger request aiming at the target service and including target service data, the rule set corresponding to the target service is acquired from the configuration module according to the trigger request, the rule set includes an authority verification rule and a field verification rule required by the target service, and when the target service data passes verification according to the authority verification rule and the field verification rule, the processing device is connected with a database; and operating the database according to the acquired database operation instruction. Therefore, a client engineer can store a rule set required by the target service in the configuration module in advance, after the operation module acquires the trigger request aiming at the target service, the rule set required by the target service is acquired from the configuration module, the rule set and the database operation instruction are used as the basis for subsequently executing the subsequent service logic, and the received target service data is processed. Because the configuration operation is simple, the technical requirements of a server programming language are not required, and a client engineer can finish the configuration operation independently, so that the labor cost of an enterprise is reduced.
In order to make the technical solution provided by the embodiment of the present application clearer, the following user issues news through a news APP as an example to explain an execution principle of the processing apparatus based on the client and the cloud provided by the embodiment of the present application.
The client engineer configures a database table named news as shown in fig. 2 through a configuration module 110 in the processing apparatus based on the client and the cloud as shown in fig. 4, and the database table is only set for a service of publishing news. It should be noted that, the business of obtaining news, releasing news, modifying news, deleting news, and the like can continue to add corresponding rules in the news database table.
And a client engineer clicks a first corresponding relation between a news control and news of a user, clicks a news control and add of the news control, namely adds news service data to a second corresponding relation in news database tables news, compiles and packages the news APP to generate a news APP, and stores the first corresponding relation and the second corresponding relation into a client of the user along with the installation of the news APP into a mobile phone by the user.
As a possible implementation, the client engineer may represent the first corresponding relationship and the second corresponding relationship in the form of database operation codes, and store the first corresponding relationship and the second corresponding relationship in the client of the user, as shown in fig. 5.
And clicking to release the news control after the user writes the news title and the news content. At this time, the client operation sub-module 121 shown in fig. 4 receives the trigger request, automatically associates the database operation code shown in fig. 5, automatically converts the code shown in fig. 5 into the network request data packet shown in fig. 6, and sends the network request data packet to the server operation sub-module 122.
The server operation sub-module 122 parses news from the network request data packet; the permission check rule and the field check rule are obtained from the configuration module 110 according to news, that is, the specific content of the news database table shown in fig. 2 is checked according to the permission check rule and the field check rule, if the news title and the news content pass the check, the database is connected, the server operation submodule performs database insertion operation according to add, and returns the operation result to the client operation submodule 121, and the client operation submodule 121 displays the result to the user.
Therefore, with the processing device provided by the embodiment of the present application, the rule set configuration only needs to be completed based on the configuration module, and specific codes of (4), (5), (6), (7) and 4 steps responsible for the server-side engineer in the conventional development mode as described above do not need to be written, and the manner in which the client-side engineer configures the rule set is much simpler and more efficient than the manner in which codes are written using a programming language. The program of the server can be automatically completed through the processing device provided by the embodiment of the application, and an enterprise only needs to recruit a client engineer with client development skills and does not need to recruit the server engineer, so that the enterprise is helped to save labor. One client engineer can complete the development of the whole process, thereby saving the communication cost and accelerating the online of enterprise business.
The embodiment of the application provides a processing method based on a client and a cloud besides a processing device based on the client and the cloud, and the processing method comprises the following steps:
the method comprises the steps that a running module receives a trigger request aiming at a target service, wherein the trigger request comprises target service data;
the operation module acquires the rule set from the configuration module according to the trigger request, wherein the rule set comprises an authority check rule and a field check rule required by the target service and is acquired through the configuration module;
the operation module is connected with a database when the target service data is determined to pass the verification according to the authority verification rule and the field verification rule;
and the operation module operates the database according to the acquired database operation instruction.
As a possible implementation manner, the running module includes a client running submodule located at the client and a server running submodule located at the cloud, and the acquiring the rule set from the configuration module according to the trigger request includes:
the client operation sub-module acquires a rule set identifier corresponding to the target service according to the trigger request;
the client operation submodule sends a network request data packet carrying the rule set identifier to the server operation submodule;
the server operation submodule analyzes the rule set identifier from the network request data packet;
and the server operation sub-module acquires the rule set from the configuration module according to the rule set identifier.
As a possible implementation, the method further includes:
a configuration module acquires a first corresponding relation between the trigger request and the rule set identifier;
the configuration module sends the first corresponding relation to the client operation sub-module;
and the client operation sub-module acquires the rule set identifier according to the trigger request and the first corresponding relation.
As a possible implementation, the method further includes:
and the client operation sub-module packages the rule set identifier, the target service data and the database operation instruction into a network request data packet.
As a possible implementation, the method further includes:
the server operation sub-module sends the operation result of the database to the client operation sub-module;
and the client side runs the submodule to display the operation result.
As a possible implementation, the method further includes:
the configuration module acquires a second corresponding relation between the trigger request and the database operation instruction;
the configuration module sends the second corresponding relation to the client operation sub-module;
and the client operation sub-module acquires the database operation instruction according to the trigger request and the second corresponding relation.
The embodiment of the application provides a processing method based on a client and a cloud, wherein a configuration module is used for acquiring a rule set configured according to a target service, an operation module is used for receiving a trigger request aiming at the target service and comprising target service data, the rule set corresponding to the target service is acquired from the configuration module according to the trigger request, the rule set comprises an authority check rule and a field check rule required by the target service, and when the target service data passes the check according to the authority check rule and the field check rule, the rule set is connected with a database; and operating the database according to the acquired database operation instruction. Therefore, a client engineer can store a rule set required by the target service in the configuration module in advance, after the operation module acquires the trigger request aiming at the target service, the rule set required by the target service is acquired from the configuration module, the rule set and the database operation instruction are used as the basis for subsequently executing the subsequent service logic, and the received target service data is processed. Because the configuration operation is simple, the technical requirements of a server programming language are not required, and a client engineer can finish the configuration operation independently, so that the labor cost of an enterprise is reduced.
An embodiment of the present application further provides a computer device, referring to fig. 7, which shows a structural diagram of a computer device provided in an embodiment of the present application, and as shown in fig. 7, the device includes a processor 710 and a memory 720:
the memory 710 is used for storing program codes and transmitting the program codes to the processor;
the processor 720 is configured to execute any one of the processing methods based on the client and the cloud provided in the above embodiments according to the instructions in the program code.
The embodiment of the application provides a computer-readable storage medium, which is used for storing a computer program, and the computer program executes any one of the processing methods based on the client and the cloud provided by the embodiments.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, and the units and modules described as separate components may or may not be physically separate. In addition, some or all of the units and modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is directed to embodiments of the present application and it is noted that numerous modifications and adaptations may be made by those skilled in the art without departing from the principles of the present application and are intended to be within the scope of the present application.

Claims (10)

1. A processing device based on a client and a cloud, the processing device comprising: a configuration module and an operation module;
the configuration module is used for acquiring a rule set configured according to a target service, wherein the rule set comprises an authority check rule and a field check rule required by the target service;
the running module is used for receiving a trigger request aiming at the target service, and the trigger request comprises target service data; acquiring the rule set from the configuration module according to the trigger request; when the target service data passes the verification determined according to the authority verification rule and the field verification rule, connecting a database; and operating the database according to the acquired database operation instruction.
2. The processing device according to claim 1, wherein the execution module includes a client execution submodule located at a client and a server execution submodule located at a cloud;
the client operation sub-module is used for acquiring a rule set identifier corresponding to the target service according to the trigger request; sending the network request data packet carrying the rule set identifier to the server operation submodule;
the server operation submodule is used for analyzing the rule set identifier from the network request data packet; and acquiring the rule set from the configuration module according to the rule set identification.
3. The processing apparatus as in claim 2, wherein the configuration module is configured to:
acquiring a first corresponding relation between the trigger request and the rule set identifier; sending the first corresponding relation to the client operation sub-module;
the client side operation submodule is used for:
and acquiring the rule set identifier according to the trigger request and the first corresponding relation.
4. The processing apparatus according to claim 2, wherein the client runs a sub-module configured to:
and packaging the rule set identifier, the target service data and the database operation instruction into a network request data packet.
5. The processing apparatus according to claim 2, wherein the server runs a sub-module configured to:
sending the operation result of the database to the client operation submodule;
the client side operation submodule is further used for:
and displaying the operation result.
6. The processing apparatus as in claim 1, wherein the configuration module is further configured to:
acquiring a second corresponding relation between the trigger request and the database operation instruction; sending the second corresponding relation to the client operation sub-module;
the client side operation submodule is used for:
and acquiring the database operation instruction according to the triggering request and the second corresponding relation.
7. A processing method based on a client and a cloud is characterized by comprising the following steps:
the method comprises the steps that a running module receives a trigger request aiming at a target service, wherein the trigger request comprises target service data;
the operation module acquires the rule set from the configuration module according to the trigger request, wherein the rule set comprises an authority check rule and a field check rule required by the target service and is acquired through the configuration module;
the operation module is connected with a database when the target service data passes the verification determined according to the authority verification rule and the field verification rule;
and the operation module operates the database according to the acquired database operation instruction.
8. The method of claim 7, wherein the run modules comprise a client run sub-module located at a client and a server run sub-module located at a cloud, and wherein obtaining the rule set from the configuration module according to the trigger request comprises:
the client operation sub-module acquires a rule set identifier corresponding to a target service according to a trigger request;
the client operation submodule sends a network request data packet carrying the rule set identifier to the server operation submodule;
the server operation submodule analyzes the rule set identifier from the network request data packet;
and the server operation sub-module acquires the rule set from the configuration module according to the rule set identifier.
9. A computer device, the device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the method of claim 7 or 8 according to instructions in the program code.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program for performing the method of claim 7 or 8.
CN202111263616.4A 2021-10-28 2021-10-28 Processing device, method, equipment and storage medium based on client and cloud Pending CN113986384A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111263616.4A CN113986384A (en) 2021-10-28 2021-10-28 Processing device, method, equipment and storage medium based on client and cloud

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111263616.4A CN113986384A (en) 2021-10-28 2021-10-28 Processing device, method, equipment and storage medium based on client and cloud

Publications (1)

Publication Number Publication Date
CN113986384A true CN113986384A (en) 2022-01-28

Family

ID=79743461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111263616.4A Pending CN113986384A (en) 2021-10-28 2021-10-28 Processing device, method, equipment and storage medium based on client and cloud

Country Status (1)

Country Link
CN (1) CN113986384A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107390983A (en) * 2017-04-28 2017-11-24 阿里巴巴集团控股有限公司 Service order performs method, client and storage medium
CN107645403A (en) * 2016-07-22 2018-01-30 阿里巴巴集团控股有限公司 Terminal rule engine apparatus, terminal rule operation method
CN108090064A (en) * 2016-11-21 2018-05-29 腾讯科技(深圳)有限公司 A kind of data query method, apparatus, data storage server and system
CN108153745A (en) * 2016-12-02 2018-06-12 腾讯科技(深圳)有限公司 A kind of application data calling method and application development system
CN109344642A (en) * 2018-08-31 2019-02-15 平安科技(深圳)有限公司 Interface rules method of calibration, device, computer equipment and storage medium
CN111581291A (en) * 2020-05-09 2020-08-25 北京字节跳动网络技术有限公司 Data processing method and device, electronic equipment and readable medium
CN112380213A (en) * 2020-11-13 2021-02-19 苏宁云计算有限公司 Information acquisition method and device, computer equipment and storage medium
CN112468540A (en) * 2020-11-06 2021-03-09 杭州博联智能科技股份有限公司 Data distribution method, device and medium based on cloud platform
CN112506747A (en) * 2021-02-03 2021-03-16 腾讯科技(深圳)有限公司 Business process monitoring method and device, electronic equipment and storage medium
CN112800095A (en) * 2021-04-13 2021-05-14 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN112905970A (en) * 2021-03-24 2021-06-04 北京房江湖科技有限公司 Authority verification method and device, computer readable storage medium and electronic equipment
CN113076502A (en) * 2021-04-23 2021-07-06 南京始云网络科技有限公司 Parameter control method and system based on request identification
CN113434175A (en) * 2021-06-29 2021-09-24 平安科技(深圳)有限公司 Data processing method, device, storage medium and equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107645403A (en) * 2016-07-22 2018-01-30 阿里巴巴集团控股有限公司 Terminal rule engine apparatus, terminal rule operation method
CN108090064A (en) * 2016-11-21 2018-05-29 腾讯科技(深圳)有限公司 A kind of data query method, apparatus, data storage server and system
CN108153745A (en) * 2016-12-02 2018-06-12 腾讯科技(深圳)有限公司 A kind of application data calling method and application development system
CN107390983A (en) * 2017-04-28 2017-11-24 阿里巴巴集团控股有限公司 Service order performs method, client and storage medium
CN109344642A (en) * 2018-08-31 2019-02-15 平安科技(深圳)有限公司 Interface rules method of calibration, device, computer equipment and storage medium
CN111581291A (en) * 2020-05-09 2020-08-25 北京字节跳动网络技术有限公司 Data processing method and device, electronic equipment and readable medium
CN112468540A (en) * 2020-11-06 2021-03-09 杭州博联智能科技股份有限公司 Data distribution method, device and medium based on cloud platform
CN112380213A (en) * 2020-11-13 2021-02-19 苏宁云计算有限公司 Information acquisition method and device, computer equipment and storage medium
CN112506747A (en) * 2021-02-03 2021-03-16 腾讯科技(深圳)有限公司 Business process monitoring method and device, electronic equipment and storage medium
CN112905970A (en) * 2021-03-24 2021-06-04 北京房江湖科技有限公司 Authority verification method and device, computer readable storage medium and electronic equipment
CN112800095A (en) * 2021-04-13 2021-05-14 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN113076502A (en) * 2021-04-23 2021-07-06 南京始云网络科技有限公司 Parameter control method and system based on request identification
CN113434175A (en) * 2021-06-29 2021-09-24 平安科技(深圳)有限公司 Data processing method, device, storage medium and equipment

Similar Documents

Publication Publication Date Title
US9690822B2 (en) System and method for metadata level validation of custom setup objects
US11550599B2 (en) Method and apparatus for running applet
US9229844B2 (en) System and method for monitoring web service
US10963370B2 (en) Default mock implementations at a server
US11726800B2 (en) Remote component loader
CN104536890A (en) Testing system, method and device
CN108111364B (en) Service system testing method and device
US8572156B2 (en) Enhanced connectivity in distributed computing systems
CN111797020A (en) Mock data method and device based on dynamic bytecode
CN113687858A (en) Configuration file checking method and device, electronic equipment and storage medium
CN112988588B (en) Client software debugging method and device, storage medium and electronic equipment
CN113821254A (en) Interface data processing method, device, storage medium and equipment
CN113485927A (en) Test data generation method, device, equipment and storage medium
CN113986384A (en) Processing device, method, equipment and storage medium based on client and cloud
CN107247661B (en) Method and system for supporting automatic verification of installation package of application
EP2721494B1 (en) System and method to in-line script dependencies
CN113485930A (en) Business process verification method, device, computer system and readable storage medium
CN113190236A (en) HQL script checking method and device
CN114090082B (en) Method and system for calling external interface by integrating rule engine
CN116340684A (en) Software experience method, device, equipment and computer readable storage medium
CN115982257A (en) Interface creation method and related device
US7827480B2 (en) System and method of using a transactional unit comprised of transactional subunits
CN112231109A (en) Buffer resource management system, method and device
CN116467152A (en) Parameter generation method, device, equipment, storage medium and computer program product
CN115525362A (en) Parameter changing method and device based on operating system kernel parameter adjusting platform

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