CN117950746A - Service processing method, device and equipment - Google Patents

Service processing method, device and equipment Download PDF

Info

Publication number
CN117950746A
CN117950746A CN202311377309.8A CN202311377309A CN117950746A CN 117950746 A CN117950746 A CN 117950746A CN 202311377309 A CN202311377309 A CN 202311377309A CN 117950746 A CN117950746 A CN 117950746A
Authority
CN
China
Prior art keywords
data
processing
target
service
layer
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
CN202311377309.8A
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.)
Mashang Consumer Finance Co Ltd
Original Assignee
Mashang Consumer Finance 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 Mashang Consumer Finance Co Ltd filed Critical Mashang Consumer Finance Co Ltd
Priority to CN202311377309.8A priority Critical patent/CN117950746A/en
Publication of CN117950746A publication Critical patent/CN117950746A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a service processing method, a device and equipment, wherein the method comprises the following steps: if the view layer determines that the acquired data to be processed meets the preset condition, sending a service processing request of the target service to the middle layer according to the data to be processed; the middle layer determines a target data processing object corresponding to a target service in a plurality of data processing objects included in the data processing layer according to the received service processing request, and determines a target service processing object corresponding to the target service in a plurality of service processing objects included in the service processing layer; and processing the target service based on the data to be processed through the target data processing object and the target service processing object to obtain a service processing result. By the embodiment of the application, the transmission link of the data in the application program is shortened, and the definition of the data transmission link is improved.

Description

Service processing method, device and equipment
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a service processing method, device, and equipment.
Background
Today in the internet age, more and more applications are being developed and used. Currently, in the data processing process of an application program, when data relates to multiple views of different levels, the data needs to be transferred layer by layer between the views of the different levels, the transfer link of the data is long and not clear enough, and the transfer link of the data is often different for different data. The data transmission link is longer, so that the data processing rate is reduced; the data transmission link is not clear enough, so that the change of the data is inconvenient to track, and the data management difficulty is high.
Disclosure of Invention
The application provides a service processing method, a device and equipment, which are used for shortening a transmission link of data in an application program and improving the definition of the data transmission link so as to further improve the processing rate of the data and the convenience of data management.
In a first aspect, an embodiment of the present application provides a service processing method, applied to an electronic device, where the electronic device includes an application program for providing a target service, where the application program includes a view layer, an intermediate layer, a data processing layer, and a service processing layer, and the method includes:
If the view layer determines that the acquired data to be processed meets the preset condition, sending a service processing request of the target service to the middle layer according to the data to be processed;
The middle layer determines a target data processing object corresponding to the target service in a plurality of data processing objects included in the data processing layer according to the received service processing request, and determines a target service processing object corresponding to the target service in a plurality of service processing objects included in the service processing layer;
And processing the target service based on the data to be processed through the target data processing object and the target service processing object to obtain a service processing result.
It can be seen that in the embodiment of the present application, an application program including a view layer, an intermediate layer, a data processing layer, and a service processing layer is provided, and when the view layer determines that acquired data to be processed meets a preset condition, a service processing request of a target service is sent to the intermediate layer according to the data to be processed; the middle layer determines a target data processing object corresponding to a target service in a plurality of data processing objects included in the data processing layer according to the received service processing request, and determines a target service processing object corresponding to the target service in a plurality of service processing objects included in the service processing layer; and processing the target service based on the data to be processed through the target data object and the target service processing object to obtain a service processing result. Because the view layer directly sends the service processing request to the middle layer according to the data to be processed when the acquired data to be processed meets the preset condition, even if the data to be processed relates to a plurality of views of different levels, the views of different levels do not need to be transferred layer by layer, but are directly sent to the middle layer, and the target data processing object and the target service processing object determined by the middle layer are processed. That is, the transmission path of the data to be processed is a view layer, an intermediate layer, a service processing layer and a data processing layer, and the transmission path of the data is short and clear, so that the data processing efficiency is improved, the change of the data is tracked conveniently, and the convenience of data management is improved.
In a second aspect, an embodiment of the present application provides a service processing apparatus, which is applied to an electronic device, where the electronic device includes an application program for providing a target service, and the application program includes a view layer, an intermediate layer, a data processing layer, and a service processing layer, and the apparatus includes:
The sending module is used for sending a service processing request of the target service to the middle layer according to the data to be processed if the view layer determines that the acquired data to be processed meets the preset condition;
The determining module is used for determining a target data processing object corresponding to the target service in a plurality of data processing objects included in the data processing layer according to the received service processing request, and determining a target service processing object corresponding to the target service in a plurality of service processing objects included in the service processing layer;
And the processing module is used for processing the target service based on the data to be processed through the target data processing object and the target service processing object to obtain a service processing result.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a processor; and a memory arranged to store computer executable instructions configured to be executed by the processor, the executable instructions comprising steps for performing the business processing method provided in the first aspect above.
In a fourth aspect, an embodiment of the present application provides a storage medium storing computer executable instructions that cause a computer to perform the service processing method provided in the first aspect.
Drawings
In order to more clearly illustrate one or more embodiments of the present application or the prior art solutions, the drawings that are required in the embodiments or the prior art descriptions will be briefly described below, it being obvious that the drawings in the following description are only some embodiments described in the present application, and that other drawings may be obtained according to these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a schematic flow chart of a first service processing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an application program according to an embodiment of the present application;
fig. 3 is a schematic diagram of a second flow of a service processing method according to an embodiment of the present application;
Fig. 4 is a schematic flow chart of a third service processing method according to an embodiment of the present application;
Fig. 5 is a fourth flowchart of a service processing method according to an embodiment of the present application
Fig. 6 is a schematic diagram of module composition of a service processing device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the technical solutions of one or more embodiments of the present application, the technical solutions of one or more embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in one or more embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from one or more embodiments of the application, are intended to be within the scope of this document.
Currently, a wide range of architectural design patterns are used in developing applications, such as MVC (Model-View-Controller), MVP (Model-View-PRESENTER ), and MVVM (Model-View-ViewMode, model-View Model). In the MVC mode, the application is divided into a model layer, a view layer, and a controller layer, all of which control the processing logic. And data needs to be transferred to the corresponding sub-views through views, namely, layer-by-layer transfer is needed, and a transfer link of the data is long and not clear enough. In addition, as the project is iterated continuously, the code quantity is increased, and the later maintenance difficulty is increased. In MVP mode, the application is divided into a model layer, a view layer, and a presenter layer, and the view is rendered by PRESENTER, so the view may interact with PRESENTER too frequently. When PRESENTER renders a view too much, it tends to tie PRESENTER too closely to that view. Once the view needs to be changed, PRESENTER also needs to be changed. Therefore, as the project iterates, the difficulty of maintenance of PRESENTER increases. And for multi-level view data, layer-by-layer transfer is also required, and the transfer link of the data tends to be long and not clear enough. In MVVM mode, the application is divided into a model layer, a view layer, and a view model layer, which employ two-way binding (data-binding), i.e., changes in view are automatically reflected in viewModel, and vice versa. But with bidirectional binding, not only is the complexity of code design increased, but data transfer still requires layer-by-layer transfer between different levels, and the transfer link of data is long and not clear enough. Therefore, the architecture design modes of the application program all have the problems that the data transmission link is long and is not clear enough, and the data transmission link is long, so that the data processing rate is reduced; the data transmission link is not clear enough, so that the change of the data is inconvenient to track, and the data management difficulty is high. Based on this, the embodiment of the application provides a service processing method, which can be applied to electronic equipment, wherein the electronic equipment comprises an application program for providing a target service, and the structural design of the application program is divided into a view layer, an intermediate layer, a data processing layer, a service processing layer and the like.
Wherein the View layer (View layer) comprises at least one View, and when the View has at least one sub-View (subview) having a hierarchical relationship, the View layer further comprises the sub-View and the hierarchical relationship. The view layer corresponds to a display interface of the application program, each view corresponds to one page element in a display page, each sub-view also corresponds to one page element in the display page, and when a user operates the page element in the display page, the view layer can acquire operation information of the page element.
The middle layer (Context layer) is a bridge connecting the view layer with the data processing layer and the service processing layer, when a user operates page elements in the display page and generates data to be processed, if the view layer determines that the acquired data to be processed meets the preset condition, the view layer directly sends the acquired data to be processed to the middle layer, and the middle layer sends the data to be processed to the data processing layer and the service processing layer.
A data processing layer (DATAHANDLE layers), including at least one data processing protocol (or referred to as a data processing specification), is an implementation layer of the data processing protocol; the data processing layer also comprises at least one data processing object, and the data processing object performs data processing on the data to be processed sent by the intermediate layer according to the corresponding data processing protocol to obtain a first processing result.
A service processing layer (BuinessHandle layers), including at least one service processing protocol (or referred to as a service processing specification), is an implementation layer of the service processing protocol; the service processing layer also comprises at least one service processing object, and the service processing object performs service processing according to the data to be processed sent by the intermediate layer and/or the first processing result obtained by the data processing layer according to the corresponding service processing protocol.
That is, when the view layer determines that the acquired data to be processed meets a preset condition, a service processing request of a target service is sent to the middle layer according to the data to be processed; the middle layer determines a target data processing object corresponding to a target service in a plurality of data processing objects included in the data processing layer according to the received service processing request, and determines a target service processing object corresponding to the target service in a plurality of service processing objects included in the service processing layer; and processing the target service based on the data to be processed through the target data object and the target service processing object to obtain a service processing result. Because the view layer directly sends the service processing request to the middle layer according to the data to be processed when the acquired data to be processed meets the preset condition, even if the data to be processed relates to a plurality of views of different levels, the views of different levels do not need to be transferred layer by layer, but are directly sent to the middle layer, and the target data processing object and the target service processing object determined by the middle layer are processed. That is, the transmission path of the data to be processed is a view layer, an intermediate layer, a service processing layer and a data processing layer, and the transmission path of the data is short and clear, so that the data processing efficiency is improved, the change of the data is tracked conveniently, and the convenience of data management is improved.
Based on the structural design of the application program, one or more embodiments of the present application provide a service processing method. Fig. 1 is a flow chart of a service processing method according to one or more embodiments of the present application, where the method in fig. 1 can be executed by an electronic device, and the electronic device includes an application program for providing a target service, where the application program includes the foregoing view layer, middle layer, data processing layer, and service processing layer. The electronic device may be a terminal device, a server, or the like. The terminal equipment can be a mobile phone, a tablet computer, a desktop computer, a portable notebook computer and the like; the server may be an independent server or a server cluster composed of a plurality of servers. As shown in fig. 1, the method comprises the steps of:
Step S102, if the view layer determines that the acquired data to be processed meets the preset condition, sending a service processing request of a target service to the middle layer according to the data to be processed;
Specifically, when the user wants to transact the target service, the application program for providing the target service is opened, and the display page corresponding to the target service is operated to provide data required by transacting the target service. The view layer responds to the operation of the user on the display page, acquires the data to be processed provided by the user through the display page, determines whether the data to be processed is the data to be sent to the middle layer, if so, determines that the preset condition is met, and sends a service processing request of a target service to the middle layer according to the data to be processed; if not, determining that the preset condition is not met, and processing the data to be processed according to a preset processing mode.
It will be appreciated that in practical applications, some of the data to be processed may be processed only by the view layer, and some of the data to be processed may be processed by the data processing layer and the service processing layer after being processed by the view layer. As an example, the number of data required for transacting the target service is multiple, and when the user edits one of the data required for transacting the target service in the display page, the view layer can acquire the data and perform display processing in the display page as the data to be processed; and the view layer determines that each piece of data to be processed provided by the user is the data to be sent to the middle layer when the user edits all the data required by handling the target service and operates the submitting control in the display page, and sends a service processing request of the target service to the middle layer according to each piece of data to be processed.
Wherein, the application program can comprise at least one display page, each display page can correspond to at least one target service, namely, the application program can provide at least one target service, and the view layer can correspond to at least one display page. The target service may be any one or more of a registration service, a login service, a shopping service, a transaction service, a resource transfer service, and the like. It will be appreciated that the data to be processed varies with the target traffic. For example, the target service is a registration service, and the data to be processed includes registration information (user name, user mobile phone number, etc.); for another example, the target service is a resource transfer service, and the data to be processed includes a resource transfer account, a resource transfer quantity, and the like. For the specific contents of the target service and the corresponding to-be-processed processing, the embodiment of the application is not illustrated one by one, and the target service can be set according to the needs in the practical application
Step S104, the middle layer determines a target data processing object corresponding to a target service in a plurality of data processing objects included in the data processing layer according to the received service processing request, and determines a target service processing object corresponding to the target service in a plurality of service processing objects included in the service processing layer;
Specifically, as shown in fig. 2, the application program may further include a control layer (view controller layer) for performing an initialization operation and controlling the view layer, the middle layer, the data processing layer, the service processing layer, and the like (indicated by a dotted line in fig. 2). Specifically, for each display page to be displayed of an application program, when a control layer acquires a display request of the display page, initializing each view corresponding to the display page, determining a target service corresponding to the display page, creating a data processing object corresponding to the target service in a data processing layer, creating a service processing object corresponding to the target service in a service processing layer, and binding a first view, the data processing object and the service processing object corresponding to the target service. Correspondingly, when the middle layer acquires the service processing request, determining a target data processing object bound with a first view corresponding to the target service in a plurality of data processing objects included in the data processing layer, and determining a target service processing object bound with the first view corresponding to the target service in a plurality of service processing objects included in the service processing layer.
And step S106, processing the target business based on the data to be processed through the target data processing object and the target business processing object to obtain a business processing result.
Specifically, the middle layer sends the data to be processed to the target data processing object and the target service processing object, the data processing is carried out through the target data object, the service processing is carried out through the service processing object, and the service processing result is obtained.
In one or more embodiments of the present application, when the view layer determines that the acquired data to be processed satisfies a preset condition, a service processing request of a target service is sent to the middle layer according to the data to be processed; the middle layer determines a target data processing object corresponding to a target service in a plurality of data processing objects included in the data processing layer according to the received service processing request, and determines a target service processing object corresponding to the target service in a plurality of service processing objects included in the service processing layer; and processing the target service based on the data to be processed through the target data object and the target service processing object to obtain a service processing result. Because the view layer directly sends the service processing request to the middle layer according to the data to be processed when the acquired data to be processed meets the preset condition, even if the data to be processed relates to a plurality of views of different levels, the views of different levels do not need to be transferred layer by layer, but are directly sent to the middle layer, and the target data processing object and the target service processing object determined by the middle layer are processed. That is, the transmission path of the data to be processed is a view layer, an intermediate layer, a service processing layer and a data processing layer, and the transmission path of the data is short and clear, so that the data processing efficiency is improved, the change of the data is tracked conveniently, and the convenience of data management is improved.
In order to enable the view layer to quickly and accurately determine whether the data to be processed meets preset conditions when the data to be processed is acquired, in one or more embodiments of the present application, the view layer includes a plurality of second views corresponding to the target service, where the second views include views corresponding to page elements (e.g., input boxes, selection boxes, etc.) for editing the data to be processed by a user, and views corresponding to page elements (e.g., submit controls, etc.) for submitting a service request by the user. The view corresponding to the page element for submitting the service request by the user may also be referred to as a first view corresponding to the target service, where the first view binds with the middle layer, and determines whether the data to be processed meets a preset condition based on a binding attribute representing a binding relationship.
Specifically, as shown in fig. 3, step S102 may include the following steps S102-2 and S102-4:
Step S102-2, the view layer determines whether a binding attribute exists in a second view corresponding to the acquired data to be processed;
Considering that in practical application, the view layer often includes a plurality of views to be bound which need to be bound with the middle layer, if binding operation is performed on each view to be bound in sequence, time and labor are wasted, and the code amount is increased. Based on the above, in the embodiment of the application, at least one parent class is created in advance, the inheritance relation between the views to be bound and the parent class is established, and the binding attribute is created in the parent class, so that all views to be bound inheriting the parent class have the binding attribute. For a specific implementation of creating the parent class and the inheritance relationship, reference is made to the related art, and details thereof will not be described herein. In some embodiments, the views to be bound may inherit from the same parent class; in other embodiments, the views to be bound may be classified and a parent class created for each type, with the views to be bound of the same type inheriting from the same parent class. That is, before step S102, the method may further include: determining whether a first target parent class inherited by each view to be bound in the view layer contains binding attributes or not; if not, creating a binding attribute in the target parent class. Correspondingly, determining whether the binding attribute exists in the second view corresponding to the acquired data to be processed in step S102-2 may include: determining whether a second target parent class inherited by a second view corresponding to the acquired data to be processed contains binding attributes or not; if yes, determining that binding attributes exist in a second view corresponding to the acquired data to be processed; if not, determining that the binding attribute does not exist in the second view corresponding to the acquired data to be processed. Wherein the binding attribute characterizes a binding relationship of the second view and the middle layer, and in some embodiments, the binding attribute may be a context attribute.
Step S102-4, if the binding attribute exists in the second view, determining that the acquired data to be processed meets the preset condition, and sending a service processing request of the target service to the middle layer according to the data to be processed.
When binding attributes exist in the second view corresponding to the data to be processed, the page element corresponding to the data to be processed is characterized as a page element for submitting a service request by a user, namely, the second view corresponding to the data to be processed is the first view corresponding to the target service, and each submitted data to be processed needs to be sent to the middle layer and is processed by the data processing layer and the service processing layer, so that when the data to be processed meets preset conditions, the service processing request of the target service is sent to the middle layer according to the data to be processed.
Further, when the binding attribute exists in the view corresponding to the data to be processed, the view layer determines that the acquired data to be processed does not meet the preset condition, and executes corresponding operation on the acquired data to be processed according to the operation type of the user operation corresponding to the data to be processed. For example, if the operation type of the user operation is input data, performing display processing on the acquired data set to be processed; for another example, if the operation type of the user operation is a deletion operation, deleting the acquired data to be processed.
Therefore, the binding attribute is created in the parent class, so that each view to be bound inheriting the parent class has the binding attribute, binding processing is not required to be carried out on each view to be bound one by one, the binding efficiency is improved, and the code quantity can be reduced.
In order to facilitate the middle layer to determine the target data processing object and the target service processing object, in one or more embodiments of the present application, the service processing request includes a view identifier of a first view corresponding to the target service. Accordingly, as shown in fig. 4, step S104 may include the following steps S104-2 to S104-8:
Step S104-2, the middle layer obtains the view identification of the first view corresponding to the target service from the received service processing request;
Specifically, when the view layer acquires preset data to be processed, determining that a user operates a submitting control in a display page, determining a view corresponding to the submitting control as a first view, and sending a service processing request of a target service to the middle layer according to a view identifier of the first view and the acquired data to be processed. Correspondingly, the middle layer acquires the view identifier of the first view corresponding to the target service from the received service processing request.
Step S104-4, the middle layer determines a first data processing object bound with the view identifier in a plurality of data processing objects included in the data processing layer;
In order to facilitate distinguishing between each data processing object and each business processing object, the control layer also generates object identifications of the data processing objects and the business processing objects when creating the data processing objects and the business processing objects. In order to facilitate distinguishing between the object identifications, in one or more embodiments of the present application, the object identification of the data processing object is denoted as a first object identification, and the object identification of the business processing object is denoted as a second object identification. Accordingly, step S104-4 may include: querying a target first object identifier bound with the view identifier in a first binding relationship, and determining a data processing object corresponding to the target first object identifier as a first data processing object bound with the view identifier.
In some implementations, the first binding relationship can include a binding relationship between the view identifier and the first object identifier; correspondingly, the middle layer queries a target first object identifier bound in a binding relation between the view identifier and the first object identifier according to the view identifier of the first view, and determines a data processing object corresponding to the target first object identifier as a first data processing object bound with the view identifier.
In other embodiments, the first binding relationship may include a binding relationship between the view identifier and the binding attribute, and a binding relationship between the binding attribute and the first object identifier. Correspondingly, the middle layer can query the related first binding attribute in the binding relation between the view identifier and the binding attribute according to the view identifier of the first view; and according to the first binding attribute, inquiring the associated target first object identifier in the binding relation between the binding attribute and the first object identifier, and determining the data processing object corresponding to the target first object identifier as a first data processing object bound with the view identifier.
Step S104-6, the middle layer determines a first business processing object bound with a first graph identifier in a plurality of business processing objects included in the business processing layer;
Specifically, querying a target second object identifier bound with the view identifier in a second binding relationship, and determining a service processing object corresponding to the target second object identifier as a first service processing object bound with the view identifier.
In some implementations, the second binding relationship can include a binding relationship between the view identifier and a second object identifier of the business process object; correspondingly, the middle layer queries a bound target second object identifier in a binding relation between the view identifier and the second object identifier according to the view identifier of the target view, and determines a service processing object corresponding to the target second object identifier as a first service processing object bound with the view identifier.
In other embodiments, the second binding relationship may include a binding relationship between the view identifier and the binding attribute, and a binding relationship between the binding attribute and the second object identifier. Correspondingly, the middle layer queries the associated second binding attribute in the binding relation between the view identifier and the binding attribute according to the view identifier of the target view; and according to the second binding attribute, inquiring the associated target second object identifier in the binding relation between the binding attribute and the second object identifier, and determining the service processing object corresponding to the target second object identifier as the first service processing object bound with the view identifier.
In step S104-8, the middle layer determines the first data object as a target data processing object corresponding to the target service, and determines the first service processing object as a target data processing object corresponding to the target service.
Therefore, the target data processing object and the target service processing object corresponding to the target service can be rapidly and accurately determined based on the binding relation by binding the view identifier of the first view with the first object identifier of the data processing object and binding the view identifier of the first view with the second object identifier of the service processing object.
In order to ensure accuracy of data processing to be processed, and thus ensure accuracy of service processing, in one or more embodiments of the present application, as shown in fig. 2, the application program further includes a data model layer (model layer), where the data model layer includes at least one data model, and static features, a data structure, data operations, data constraint conditions, and the like of data are defined in the data model, and the control layer is further configured to control the data model layer. As can be seen in conjunction with fig. 2 and the related description above, the data processing layer includes at least one data processing protocol, and the traffic processing layer includes at least one traffic processing protocol. Accordingly, as shown in fig. 5, step S106 may include the following steps S106-2 to S106-6:
step S106-2, determining a target data processing protocol matched with the target service in at least one data processing protocol included in the data processing layer through the target data object; and determining a target data model matched with the target service in at least one data model included in the data model layer through the target data object; according to a target data processing protocol and a target data model, performing data processing on data to be processed to obtain a first processing result;
In some embodiments, a first association between a first object identification of the data processing object and a first protocol identification of the data processing protocol may be pre-established, and a second association between the first object identification of the data processing object and a model identification of the data model may be pre-established. Accordingly, step S06-4 may include: inquiring the associated target first protocol identification in the first association relation through the target data processing object according to the first object identification of the target data processing object, and determining the data processing protocol corresponding to the target first protocol identification as a target data processing protocol matched with the target service; inquiring the associated target model identification in the second association relation according to the first object identification of the target data processing object, and determining a data model corresponding to the target model identification as a target data model matched with the target service; and carrying out data processing on the data to be processed according to the target data processing protocol and the target data model to obtain a first processing result. For example, according to a target data format specified in the target data model, the data to be processed is converted into the target data format, and according to an encryption algorithm included in the target data processing protocol, the data to be processed in the target data format is encrypted, so as to obtain a first processing result.
Step S106-4, determining a target service processing protocol matched with the target service in at least one service processing protocol included in the service processing layer through the target service processing object; performing service processing on the target service based on the target data according to the target service processing protocol to obtain a second processing result; the target data comprise a first processing result and/or data to be processed;
In some embodiments, a third association between the second object identifier of the service processing object and the second protocol identifier of the service processing protocol may be pre-established. Accordingly, step S106-4 may include: and according to the second object identification of the target service processing object, acquiring the associated target second protocol identification in the third association relation, and determining the service processing protocol corresponding to the target second protocol identification as a target service processing protocol matched with the target service. And carrying out service processing on the target service based on the target data according to the target service processing protocol to obtain a second processing result.
It may be appreciated that, in some embodiments, the service processing of the target service may be performed directly based on the data to be processed, for example, the target service processing protocol specifies that the data to be processed is sent to the server, and then the target service processing object sends the acquired data to be processed to the server; in another example, the target service processing protocol specifies that the target service processing object uploads the data to be processed to a specified location (e.g., a cloud end, etc.), and then the target service processing object uploads the acquired data to be processed to the specified location. In other embodiments, the service processing of the target service may be performed based on the first processing result, for example, the target service processing protocol specifies that when the target data processing object checks the data to be processed successfully, the data to be processed is sent to the server, and when the first processing result indicates that the check is successful, the target data processing object sends the acquired data to be processed to the server. In still other embodiments, the service processing of the target service is performed based on the first processing result and the data to be processed, for example, the target service processing protocol specifies that the data to be processed and the signature data of the data to be processed obtained by the target data processing object are sent to the server, then the target data processing object performs signature processing on the data to be processed according to the target data processing protocol and the target data model, and after the signature data (i.e. the first processing result) is obtained, the target service processing object sends the data to be processed and the signature data to the server. It should be noted that, when the target service processing object directly performs service processing of the target service based on the data to be processed, the content of the target data processing protocol and the content of the target data model queried by the target data processing object may be null, that is, the target data processing object is characterized not to need to process the data to be processed.
Step S106-6, if the target data comprises the first processing result, determining a service processing result of the target service according to the second processing result, or determining the service processing result of the target service according to the first processing result and the second processing result; and if the target data does not comprise the first processing result, determining a service processing result of the target service according to the first processing result and the second processing result.
In some embodiments, when the target data includes the first processing result, the service processing result of the target service may be determined directly based on the second processing result, that is, when the second processing result represents that the processing is successful, the service processing result of the target service is determined to be successful, and when the second processing result represents that the processing is failed, the service processing result of the target service is determined to be failed. Or acquiring a service processing result of the target service from the target device (such as a server end and the like) according to the second processing result, for example, the target service processing object sends the second processing result to the target device and receives the first feedback information sent by the target device; and when the first feedback information representation processing is successful, determining that the service processing result of the target service is successful, and when the first feedback information representation processing is failed, determining that the service processing result of the target service is failed.
In other embodiments, the service processing result of the target service may be determined according to the first processing result and the second processing result, that is, when the first processing result represents that the processing is successful and the second processing result represents that the processing is successful, the service processing result of the target service is determined to be successful, otherwise, the service processing result of the target service is determined to be failed. Or acquiring a service processing result of the target service from the target device (such as a server) according to the first processing result and the second processing result, for example, the target service processing object sends the first processing result and the second processing result to the target device and receives second feedback information sent by the target device; and when the second feedback information representation processing is successful, determining that the service processing result of the target service is successful, and when the second feedback information representation processing is failed, determining that the service processing result of the target service is failed.
Therefore, the data processing is carried out through the target data processing object, and the service processing is carried out through the target service processing object, so that decoupling of the data processing and the service processing is realized, and when one of the processing processes is changed, only the codes of the corresponding parts are changed, and the whole change is not needed, so that the maintenance difficulty of the codes is greatly reduced.
In order to make the user aware of the business handling result, in one or more embodiments of the present application, the business handling result is further sent to the view layer through the middle layer, so that the display processing of the business handling result is performed through the view layer. That is, step S106 may further include the following step S108:
Step S108, the business processing object sends the business processing result to the middle layer, the middle layer sends the received business processing result to the view layer, and the view layer displays the received business processing result in the result display page.
In one or more embodiments of the present application, when the data to be processed satisfies the preset condition, the transmission path of the data to be processed is opposite to the transmission path of the service processing result, that is, the transmission path of the data to be processed is a view layer-middle layer-data processing layer and a service processing layer, and the transmission path of the service processing result is a service processing layer-middle layer-view layer. It can be seen that even if a plurality of views with hierarchical relationship exist, the service processing results are directly sent to the view layer for display through the middle layer without layer-by-layer transmission, so that the transmission efficiency of the service processing results is improved.
In order to implement the above-mentioned business process, in one or more embodiments of the present application, before step S102, the following steps S100-2 and S100-4 are further included:
Step S100-2, creating a view layer, an intermediate layer, a data processing layer and a service processing layer corresponding to the target service;
and step S100-4, generating an application program for providing the target service according to the view layer, the middle layer, the data processing layer and the service processing layer.
In order to achieve efficient control of the layers and efficient processing of the data, in one or more embodiments of the present application, a control layer and a data model layer are also created in step S100-2. Accordingly, in step S100-4, an application program for providing the target service is generated according to the view layer, the middle layer, the data processing layer, the service processing layer, the control layer and the data model layer.
In consideration of the existing application development mode, different business modules or different functional modules are usually developed by different teams. Because of no unified specification, each team can flexibly select development modes suitable for the team, and codes corresponding to different business modules or different functional modules are dispersed in different files. With the continuous iteration and updating of the project, the code quantity is more and more, the scattered files are more and more, the later maintenance difficulty is also increased, and the project readability is poor. Based on this, in one or more embodiments of the present application, after the service processing layer is created successfully, the code of the service processing layer is saved to the first file; and after the data processing layer is successfully created, saving the code of the data processing layer into a second file. Wherein the first file may be XXXBusinessObject files and the second file may be XXXDataHandler files. Therefore, even if the application program is continuously iterated and updated, only the first file and the second file are maintained, and excessive scattered files are not existed, so that the maintenance difficulty is reduced, the updating of the business processing logic can be checked in the first file, the updating of the data processing logic can be checked in the second file, and the convenience of checking the updated content is improved.
In one or more embodiments of the present application, when the view layer determines that the acquired data to be processed satisfies a preset condition, a service processing request of a target service is sent to the middle layer according to the data to be processed; the middle layer determines a target data processing object corresponding to a target service in a plurality of data processing objects included in the data processing layer according to the received service processing request, and determines a target service processing object corresponding to the target service in a plurality of service processing objects included in the service processing layer; and processing the target service based on the data to be processed through the target data object and the target service processing object to obtain a service processing result. Because the view layer directly sends the service processing request to the middle layer according to the data to be processed when the acquired data to be processed meets the preset condition, even if the data to be processed relates to a plurality of views of different levels, the views of different levels do not need to be transferred layer by layer, but are directly sent to the middle layer, and the target data processing object and the target service processing object determined by the middle layer are processed. That is, the transmission path of the data to be processed is a view layer, an intermediate layer, a service processing layer and a data processing layer, and the transmission path of the data is short and clear, so that the data processing efficiency is improved, the change of the data is tracked conveniently, and the convenience of data management is improved.
In accordance with the above-described service processing method, one or more embodiments of the present application further provide a service processing apparatus, which is applied to an electronic device including an application program for providing a target service, the application program including a view layer, an intermediate layer, a data processing layer, and a service processing layer diagram, based on the same technical concept. Fig. 6 is a schematic block diagram of a service processing apparatus according to one or more embodiments of the present application, as shown in fig. 6, where the apparatus includes:
A sending module 201, configured to send, by the view layer, a service processing request of the target service to the middle layer according to the data to be processed if it is determined that the acquired data to be processed meets a preset condition;
A determining module 202, configured to determine, according to the received service processing request, a target data processing object corresponding to the target service from among a plurality of data processing objects included in the data processing layer, and determine a target service processing object corresponding to the target service from among a plurality of service processing objects included in the service processing layer;
And the processing module 203 is configured to process, through the target data object and the target service processing object, the target service based on the data to be processed, to obtain a service processing result.
According to the service processing device provided by the embodiment of the application, when the view layer determines that the acquired data to be processed meets the preset condition, a service processing request of a target service is sent to the middle layer according to the data to be processed; the middle layer determines a target data processing object corresponding to a target service in a plurality of data processing objects included in the data processing layer according to the received service processing request, and determines a target service processing object corresponding to the target service in a plurality of service processing objects included in the service processing layer; and processing the target service based on the data to be processed through the target data object and the target service processing object to obtain a service processing result. Because the view layer directly sends the service processing request to the middle layer according to the data to be processed when the acquired data to be processed meets the preset condition, even if the data to be processed relates to a plurality of views of different levels, the views of different levels do not need to be transferred layer by layer, but are directly sent to the middle layer, and the target data processing object and the target service processing object determined by the middle layer are processed. That is, the transmission path of the data to be processed is a view layer, an intermediate layer, a service processing layer and a data processing layer, and the transmission path of the data is short and clear, so that the data processing efficiency is improved, the change of the data is tracked conveniently, and the convenience of data management is improved.
It should be noted that, the embodiments of the service processing apparatus in the present application and the embodiments of the service processing method in the present application are based on the same inventive concept, so the specific implementation of this embodiment may refer to the implementation of the corresponding service processing method, and the repetition is not repeated.
The respective modules in the above-described service processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or independent of a processor in the terminal device or a processor in the server, or may be stored in software in a memory in the terminal device or a memory in the server, so that the processor may call and execute operations corresponding to the above modules.
Further, according to the above-described service processing method, based on the same technical concept, one or more embodiments of the present application further provide an electronic device, where the electronic device includes an application program for providing a target service, and the application program includes a view layer, an intermediate layer, a data processing layer, and a service processing layer, and the electronic device is configured to execute the above-described service processing method, and fig. 7 is a schematic structural diagram of an electronic device provided by one or more embodiments of the present application.
As shown in fig. 7, the electronic device may have a relatively large difference due to different configurations or performances, and may include one or more processors 301 and a memory 302, where the memory 302 may store one or more storage applications or data. Wherein the memory 302 may be transient storage or persistent storage. The application programs stored in memory 302 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in the electronic device. Still further, the processor 301 may be arranged to communicate with the memory 302 and execute a series of computer executable instructions in the memory 302 on an electronic device. The electronic device may also include one or more power supplies 303, one or more wired or wireless network interfaces 304, one or more input/output interfaces 305, one or more keyboards 306, and the like.
In one particular embodiment, an electronic device includes a memory, and one or more programs, where the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the electronic device, and execution of the one or more programs by one or more processors includes instructions for:
if the view layer determines that the acquired data to be processed meets the preset condition, sending a service processing request of the target service to the middle layer according to the data to be processed;
The middle layer determines a target data processing object corresponding to the target service in a plurality of data processing objects included in a data processing layer according to the received service processing request, and determines a target service processing object corresponding to the target service in a plurality of service processing objects included in a service processing layer;
And processing the target service based on the data to be processed through the target data processing object and the target service processing object to obtain a service processing result.
According to the electronic equipment provided by one or more embodiments of the application, when the view layer determines that the acquired data to be processed meets the preset condition, a service processing request of a target service is sent to the middle layer according to the data to be processed; the middle layer determines a target data processing object corresponding to a target service in a plurality of data processing objects included in the data processing layer according to the received service processing request, and determines a target service processing object corresponding to the target service in a plurality of service processing objects included in the service processing layer; and processing the target service based on the data to be processed through the target data object and the target service processing object to obtain a service processing result. Because the view layer directly sends the service processing request to the middle layer according to the data to be processed when the acquired data to be processed meets the preset condition, even if the data to be processed relates to a plurality of views of different levels, the views of different levels do not need to be transferred layer by layer, but are directly sent to the middle layer, and the target data processing object and the target service processing object determined by the middle layer are processed. That is, the transmission path of the data to be processed is a view layer, an intermediate layer, a service processing layer and a data processing layer, and the transmission path of the data is short and clear, so that the data processing efficiency is improved, the change of the data is tracked conveniently, and the convenience of data management is improved.
It should be noted that, the embodiment of the present application related to the electronic device and the embodiment of the present application related to the service processing method and the image denoising method are based on the same inventive concept, so the specific implementation of this embodiment may refer to the implementation of the corresponding service processing method and image denoising method, and the repetition is not repeated.
Further, in correspondence to the above-described service processing method, based on the same technical concept, one or more embodiments of the present application further provide a storage medium, which is used to store computer executable instructions, and in a specific embodiment, the storage medium may be a U disc, an optical disc, a hard disk, etc., where the computer executable instructions stored in the storage medium can implement the following flow when executed by a processor:
if the view layer determines that the acquired data to be processed meets the preset condition, sending a service processing request of the target service to the middle layer according to the data to be processed;
The middle layer determines a target data processing object corresponding to the target service in a plurality of data processing objects included in a data processing layer according to the received service processing request, and determines a target service processing object corresponding to the target service in a plurality of service processing objects included in a service processing layer;
And processing the target service based on the data to be processed through the target data processing object and the target service processing object to obtain a service processing result.
When the view layer determines that the acquired data to be processed meets the preset condition, sending a service processing request of a target service to the middle layer according to the data to be processed; the middle layer determines a target data processing object corresponding to a target service in a plurality of data processing objects included in the data processing layer according to the received service processing request, and determines a target service processing object corresponding to the target service in a plurality of service processing objects included in the service processing layer; and processing the target service based on the data to be processed through the target data object and the target service processing object to obtain a service processing result. Because the view layer directly sends the service processing request to the middle layer according to the data to be processed when the acquired data to be processed meets the preset condition, even if the data to be processed relates to a plurality of views of different levels, the views of different levels do not need to be transferred layer by layer, but are directly sent to the middle layer, and the target data processing object and the target service processing object determined by the middle layer are processed. That is, the transmission path of the data to be processed is a view layer, an intermediate layer, a service processing layer and a data processing layer, and the transmission path of the data is short and clear, so that the data processing efficiency is improved, the change of the data is tracked conveniently, and the convenience of data management is improved.
It should be noted that, the embodiment of the present application related to the storage medium and the embodiment of the present application related to the service processing method and the image denoising method are based on the same inventive concept, so the specific implementation of this embodiment may refer to the implementation of the corresponding service processing method and image denoising method, and the repetition is omitted.
The foregoing describes certain embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable GATE ARRAY, FPGA)) is an integrated circuit whose logic functions are determined by user programming of the device. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented with "logic compiler (logic compiler)" software, which is similar to the software compiler used in program development and writing, and the original code before being compiled is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but HDL is not just one, but a plurality of kinds, such as ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language), and VHDL (Very-High-SPEED INTEGRATED Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application SPECIFIC INTEGRATED Circuits (ASICs), programmable logic controllers, and embedded microcontrollers, examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each unit may be implemented in the same piece or pieces of software and/or hardware when implementing the embodiments of the present application.
It will be appreciated by those skilled in the art that one or more embodiments of the application may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
One or more embodiments of the application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments of the present application are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is by way of example only and is not intended to limit the present disclosure. Various modifications and changes may occur to those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. that fall within the spirit and principles of the present document are intended to be included within the scope of the claims of the present document.

Claims (10)

1. A service processing method, applied to an electronic device, the electronic device including an application program for providing a target service, the application program including a view layer, a middle layer, a data processing layer, and a service processing layer, the method comprising:
If the view layer determines that the acquired data to be processed meets the preset condition, sending a service processing request of the target service to the middle layer according to the data to be processed;
The middle layer determines a target data processing object corresponding to the target service in a plurality of data processing objects included in the data processing layer according to the received service processing request, and determines a target service processing object corresponding to the target service in a plurality of service processing objects included in the service processing layer;
And processing the target service based on the data to be processed through the target data processing object and the target service processing object to obtain a service processing result.
2. The method of claim 1, wherein the determining a target data processing object corresponding to the target service from among the plurality of data processing objects included in the data processing layer, and determining a target service processing object corresponding to the target service from among the plurality of service processing objects included in the service processing layer, comprises:
acquiring a view identifier of a first view corresponding to the target service from the service processing request;
Determining a first data processing object bound with the view identifier in a plurality of data processing objects included in the data processing layer;
Determining a first business processing object bound with the view identifier in a plurality of business processing objects included in the business processing layer;
And determining the first data object as a target data processing object corresponding to the target service, and determining the first service processing object as a target data processing object corresponding to the target service.
3. The method of claim 2, wherein the determining a first data processing object bound to the view identification among a plurality of data processing objects included in the data processing layer comprises: querying a target first object identifier bound with the view identifier in a first binding relationship, and determining a data processing object corresponding to the target first object identifier as a first data processing object bound with the view identifier;
the determining, among a plurality of service processing objects included in the service processing layer, a first service processing object bound with the view identifier includes: querying a target second object identifier bound with the view identifier in a second binding relationship, and determining a service processing object corresponding to the target second object identifier as a first service processing object bound with the view identifier.
4. A method according to claim 3, wherein the application further comprises a control layer, and the view layer further comprises, if it is determined that the acquired data to be processed satisfies the preset condition:
And binding processing is carried out through the control layer, so that the first binding relation and the second binding relation are obtained.
5. The method according to claim 1, wherein the determining that the acquired data to be processed satisfies a preset condition includes:
determining whether a binding attribute exists in a second view corresponding to the acquired data to be processed; the binding attribute characterizes the binding relation between the second view and the middle layer;
If the binding attribute exists in the second view, determining that the acquired data to be processed meets the preset condition.
6. The method according to claim 5, wherein the view layer further comprises, if it is determined that the acquired data to be processed satisfies the preset condition: determining whether a first target parent class inherited by each view to be bound in the view layer contains the binding attribute or not; if not, creating the binding attribute in the target parent class;
The determining whether the binding attribute exists in the second view corresponding to the data to be processed includes: determining whether the binding attribute is contained in a second target parent class inherited by the second view; if yes, determining that binding attributes exist in a second view corresponding to the data to be processed; if not, determining that the binding attribute does not exist in the second view corresponding to the data to be processed.
7. The method of claim 1, wherein the application further comprises a data model layer; the processing the target service based on the data to be processed through the target data processing object and the target service processing object to obtain a service processing result, including:
Determining a target data processing protocol matched with the target service in at least one data processing protocol included in the data processing layer through the target data processing object; and determining a target data model matched with the target service in at least one data model included in the data model layer through the target data object; according to the target data processing protocol and the target data model, carrying out data processing on the data to be processed to obtain a first processing result;
Determining a target service processing protocol matched with the target service in at least one service processing protocol included in the service processing layer through the target service processing object; performing service processing on the target service based on target data according to the target service processing protocol to obtain a second processing result; the target data comprise the first processing result and/or the data to be processed;
If the target data comprises the first processing result, determining a service processing result of the target service according to the second processing result; or determining a service processing result of the target service according to the first processing result and the second processing result;
and if the target data does not comprise the first processing result, determining a service processing result of the target service according to the first processing result and the second processing result.
8. A service processing apparatus, applied to an electronic device, the electronic device including an application program for providing a target service, the application program including a view layer, a middle layer, a data processing layer, and a service processing layer, the apparatus comprising:
The sending module is used for sending a service processing request of the target service to the middle layer according to the data to be processed if the view layer determines that the acquired data to be processed meets the preset condition;
The determining module is used for determining a target data processing object corresponding to the target service in a plurality of data processing objects included in the data processing layer according to the received service processing request, and determining a target service processing object corresponding to the target service in a plurality of service processing objects included in the service processing layer;
and the processing module is used for processing the target service based on the data to be processed through the target data object and the target service processing object to obtain a service processing result.
9. An electronic device, comprising:
A processor; and
A memory arranged to store computer executable instructions configured to be executed by the processor, the executable instructions comprising steps for performing the business processing method of any of claims 1-7.
10. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the business processing method of any one of claims 1-7.
CN202311377309.8A 2023-10-23 2023-10-23 Service processing method, device and equipment Pending CN117950746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311377309.8A CN117950746A (en) 2023-10-23 2023-10-23 Service processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311377309.8A CN117950746A (en) 2023-10-23 2023-10-23 Service processing method, device and equipment

Publications (1)

Publication Number Publication Date
CN117950746A true CN117950746A (en) 2024-04-30

Family

ID=90800272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311377309.8A Pending CN117950746A (en) 2023-10-23 2023-10-23 Service processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN117950746A (en)

Similar Documents

Publication Publication Date Title
US11281846B2 (en) Inheritance of rules across hierarchical levels
CN109522751B (en) Access right control method and device, electronic equipment and computer readable medium
CN116126365B (en) Model deployment method, system, storage medium and electronic equipment
WO2016004814A1 (en) Service visualization method and system
CN111400681B (en) Data authority processing method, device and equipment
US10372812B2 (en) Combining aspects of a template into multiple web pages
US20190005228A1 (en) Trusted and untrusted code execution in a workflow
CN102591710B (en) Shared object represents
CN115344688B (en) Business data display method and device, electronic equipment and computer readable medium
CN113495797A (en) Message queue and consumer dynamic creation method and system
US20230385363A1 (en) Web site preview generation based on web site type
US11604894B2 (en) Data processing methods, apparatuses, devices, and media
CN106156050B (en) Data processing method and device
US20130127863A1 (en) Determining an optimal sequence of status transitions for business objects
US11900269B2 (en) Method and apparatus for managing knowledge base, device and medium
US20220229858A1 (en) Multi-cloud object store access
US9411836B2 (en) Facilitating consistency between a glossary and a repository
CN117950746A (en) Service processing method, device and equipment
US7512790B2 (en) Method, system and article of manufacture for management of co-requisite files in a data processing system using extended file attributes
US10114864B1 (en) List element query support and processing
CN112256991B (en) Method and equipment for native rendering of information flow fusing multiple link addresses
CN109002984B (en) Management method, device, medium and computing equipment of digital assets
US10956436B2 (en) Refining search results generated from a combination of multiple types of searches
Kiesel et al. The block interface: accessing digital product memories
CN110955653A (en) Data page processing method, device, equipment and computer system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination