CN109783072A - Method for processing business, device, terminal device and computer readable storage medium - Google Patents

Method for processing business, device, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN109783072A
CN109783072A CN201910063983.6A CN201910063983A CN109783072A CN 109783072 A CN109783072 A CN 109783072A CN 201910063983 A CN201910063983 A CN 201910063983A CN 109783072 A CN109783072 A CN 109783072A
Authority
CN
China
Prior art keywords
layer
business
interface
srvice instance
data
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
CN201910063983.6A
Other languages
Chinese (zh)
Inventor
李欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhi Chain Physical Technology Co Ltd
Original Assignee
Shenzhen Zhi Chain Physical Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhi Chain Physical Technology Co Ltd filed Critical Shenzhen Zhi Chain Physical Technology Co Ltd
Priority to CN201910063983.6A priority Critical patent/CN109783072A/en
Publication of CN109783072A publication Critical patent/CN109783072A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the present application is suitable for technical field of mobile terminals, provide a kind of method for processing business, device, terminal device and computer readable storage medium, wherein, method for processing business is applied to the mobile terminal framework including view layer, operation layer interface layer, business realizing layer, data interface tier, tool layer and data model layer;Method for processing business includes: to obtain interface event by view layer;According to interface event, call request is sent to business realizing layer by operation layer interface layer;According to call request, srvice instance is generated by business realizing layer;Data interface tier is called by srvice instance, obtains the corresponding business datum of srvice instance;According to business datum, direction view layer returns to the event data of interface event.The hierarchical logic of mobile terminal framework provided by the embodiments of the present application is more clear, it is possible to reduce business logic codes redundancy.

Description

Method for processing business, device, terminal device and computer readable storage medium
Technical field
The application belongs to technical field of mobile terminals more particularly to a kind of method for processing business, device, terminal device and meter Calculation machine readable storage medium storing program for executing.
Background technique
With the continuous development of mobile terminal technology, the application of mobile terminal is also more and more extensive.
Mobile terminal has various application programs by operation, to realize corresponding function.Currently, mobile terminal is answered It is needed with the exploitation of program based on certain development frame, and present mobile terminal development frame generally only has three layers, business is patrolled It collects layer and does not pull out individually.For current service logic generally in controller, controller can call corresponding business to patrol Volume, to realize corresponding function, controller is generally there are multiple, there may be identical business processing logic in multiple controllers, Inevitably result in service code redundancy.In other words, the view layer of current mobile terminal development frame and logical layer, data Layer do not have Have and separate well, hierarchical logic is unintelligible, leads to business logic codes redundancy.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of method for processing business, device, terminal device and computer-readable deposits Storage media, hierarchical logic to solve the problems, such as existing mobile terminal framework is unintelligible to lead to service code redundancy.
The first aspect of the embodiment of the present application provides a kind of method for processing business, the method for processing business be applied to include View layer, operation layer interface layer, business realizing layer, data interface tier, tool layer and data model layer mobile terminal framework;Institute Stating method for processing business includes:
Interface event is obtained by the view layer;
According to the interface event, call request is sent to the business realizing layer by the operation layer interface layer;
According to the call request, srvice instance is generated by the business realizing layer;
The data interface tier is called by the srvice instance, obtains the corresponding business datum of the srvice instance;
According to the business datum, Xiang Suoshu view layer returns to the event data of the interface event.
With reference to first aspect, described according to the call request in a kind of feasible implementation, pass through business realizing Layer generates srvice instance, comprising:
Example is initialized by the business realizing layer;
According to the version information that the call request carries, the industry of respective version is generated by the business realizing layer Pragmatic example.
With reference to first aspect, in a kind of feasible implementation, described according to the call request, pass through business reality Existing layer generates after srvice instance, further includes:
Judge whether the srvice instance is data interface tier srvice instance by the business realizing layer;
When the srvice instance is the data interface tier srvice instance, execution calls the number by the srvice instance According to interface layer, the step of obtaining the srvice instance corresponding business datum;
When the srvice instance is non-data interface layer srvice instance, returned according to the srvice instance to the view layer Return corresponding event data.
With reference to first aspect, in a kind of feasible implementation, interface event is obtained by the view layer described Before, further includes:
Receive service logic interface information;
According to the service logic interface, service logic interface statement operation is carried out in the operation layer interface layer.
The second aspect of the embodiment of the present application provides a kind of business processing device, connects applied to including view layer, operation layer Mouthful layer, business realizing layer, data interface tier, tool layer and data model layer mobile terminal framework;The business processing device Include:
Interface event obtains module, for obtaining interface event by the view layer;
Sending module, for being sent out to the business realizing layer by the operation layer interface layer according to the interface event Send call request;
Srvice instance generation module, for generating srvice instance by the business realizing layer according to the call request;
Business datum obtains module, for calling the data interface tier by the srvice instance, obtains the business The corresponding business datum of example;
Feedback module, for according to the business datum, Xiang Suoshu view layer to return to the event data of the interface event.
In conjunction with second aspect, in a kind of feasible implementation, the srvice instance generation module includes:
Initialization unit, for initializing example by the business realizing layer;
Generation unit, the version information for being carried according to the call request generate phase by the business realizing layer Answer the srvice instance of version.
In conjunction with second aspect, in a kind of feasible implementation, further includes:
Judgment module, for judging whether the srvice instance is that data-interface layer service is real by the business realizing layer Example;
Execution module, for being the data interface tier srvice instance when the srvice instance, execution passes through the business The step of example calls the data interface tier, obtains the srvice instance corresponding business datum;
Return module is used for when the srvice instance is non-data interface layer srvice instance, according to the srvice instance Corresponding event data is returned to the view layer.
In conjunction with second aspect, in a kind of feasible implementation, further includes:
Receiving module, for receiving service logic interface information;
Declaration module, for carrying out service logic in the operation layer interface layer and connecing according to the service logic interface The bright operation of voice.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in institute The computer program that can be run in memory and on the processor is stated, the processor executes real when the computer program Now as described in above-mentioned any one of first aspect the step of method for processing business.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage medium Matter is stored with computer program, and the industry as described in above-mentioned any one of first aspect is realized when the computer program is executed by processor The step of processing method of being engaged in.
Existing beneficial effect is the embodiment of the present application compared with prior art:
Mobile terminal framework is divided into view layer, operation layer interface layer, business realizing layer, data-interface by the embodiment of the present application Layer, tool layer and data model layer, and view layer can only call business realizing layer, not be capable of calling data interface tier, data connect The calling of mouth layer realizes that is, different levels handle different items by business realizing layer, realizes data, logic and interface Separation, hierarchical logic are more clear, and service logic passes through business realizing layer and realizes, identical business processing logic is not present, To reduce code redundancy.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of mobile terminal framework schematic block diagram provided by the embodiments of the present application;
Fig. 2 is the schematic process flow diagram of method for processing business provided by the embodiments of the present application;
Fig. 3 is another schematic process flow diagram of method for processing business provided by the embodiments of the present application;
Fig. 4 provides a kind of structural schematic block diagram of business processing device for the embodiment of the present application;
Fig. 5 is the schematic diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It referring to Figure 1, is a kind of mobile terminal framework schematic block diagram provided by the embodiments of the present application, the mobile terminal framework 1 packet Include view layer (UI layers) 11, operation layer interface layer (IBLL layers) 12, business realizing layer (BLL layers) 13, data interface tier (DAL layers) 14, tool layer (Utils layers) 15 and data model layer (Model layers) 16.Mobile terminal framework and backstage 2 carry out data interaction.
Wherein, DAL layers mainly for the treatment of application program with required for the interrelated logic that interacts of backstage and application program Prefab data etc..IBLL layers are mainly used for carrying out service logic interface statement, under normal circumstances, patrol handling some business It before volume, needs to state corresponding service logic interfaces at IBLL layer, so that view layer can be by IBLL layers of business Logic interfacing calls BLL layers of srvice instance.BLL layers are mainly used for the request according to interface event, and it is real to generate corresponding business Example calls DAL layers, returns to UI layers after handling the business datum obtained by DAL layers.DAL layers are mainly used for basis BLL layers of example calls backstage to get corresponding data, and the data is returned to BLL layers.UI layers refer to visualization circle Face.Utils layers can provide corresponding function tool by UI layers and IBLL layers, BLL layers of calling.Model layers can be by DAL layers It calls and realizes corresponding function.
As can be seen that mobile terminal framework herein pulls out business realizing layer, the logical process at interface passes through business reality Existing layer is realized, is not in the case where existing simultaneously multiple identical business processing logics, to reduce redundant code.And UI The processing logic of layer is only and BLL layers have relationship, DAL layers cannot be called on interface, DAL layers of calling can only be real by BLL layers Existing, to realize the separation of data, service logic, interface, hierarchical logic is more clear.
Specifically, view layer is used to obtain interface event, and according to interface event, real to business by operation layer interface layer Existing layer sends call request.The call request includes certain interface event information, for example, the data required for time event are Which.In addition, the call request can also include the version information when time business processing logic.The version of the service logic is believed Breath is characterization when the version of secondary service logic used is how many information, for example, version 1.0, version 2 .0.
It should be noted that each service logic may set up different versions, distinguished by version number.Example Such as, event is clicked for interface, the service logic of version 1.0 is to enter lower one page, and the service logic of version 2 .0 is pop-up one A window.
Business realizing layer is used to generate srvice instance according to call request;Data interface tier is called by srvice instance, is obtained Take the corresponding business datum of srvice instance;According to business datum, direction view layer returns to the event data of interface event.
Specifically, the relevant information carried in the BLL layers of call request according to UI layers triggers srvice instance product process, Example is initialized first, and srvice instance is then generated according to relevant information and generates corresponding service if carrying version information Handle the srvice instance of logical versions.After generating srvice instance, BLL layers, by example, are called DAL layers, DAL layers according to the tune With request, corresponding business datum is got from backstage, returns to BLL layers.Possible business datum obtained is not UI layers The data that can be called directly, will treated business for example, format at this point, BLL layers can be handled the data Data return to UI layers, the UI layers of response then executed according to the data to interface event.
Certainly, if interface event is relatively simple, do not need call back-end data, then BLL layer after generating example directly It connects and returns to UI layers, do not have to call DAL layers by example.And under normal circumstances, DAL industry when needing to call DAL layers of example Pragmatic example, therefore after generating srvice instance, judge whether the type of the srvice instance is DAL service implementation example, if it is, DAL layers can be called by example, from obtaining corresponding data from the background., whereas if be not, then can according to srvice instance, Return to UI layers of corresponding result.
Business realizing layer is specifically used for initialization example;According to the version information that call request carries, respective version is generated Srvice instance.Business realizing layer is also used to judge whether srvice instance is data interface tier srvice instance;When srvice instance is Data interface tier srvice instance executes and calls data interface tier by srvice instance, obtains the corresponding business datum of srvice instance The step of;When srvice instance is non-data interface layer srvice instance, corresponding event is returned to according to srvice instance direction view layer Data.Operation layer interface layer is for receiving service logic interface information;According to service logic interface, service logic interface sound is carried out Bright operation.
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
Embodiment one
Fig. 2 is referred to, is the schematic process flow diagram of method for processing business provided by the embodiments of the present application, the business processing side Method is applied to including view layer, operation layer interface layer, business realizing layer, data interface tier, tool layer and data model layer Mobile terminal transaction processing system, the transaction processing system, that is, mobile terminal framework related introduction refer to the phase of above-described embodiment one Content is answered, details are not described herein.The method for processing business may comprise steps of:
Step S201, interface event is obtained by view layer.
It is appreciated that above-mentioned interface event is such as, but not limited to click, upper cunning, downslide etc..
Step S202, according to interface event, call request is sent to business realizing layer by operation layer interface layer.
Step S203, according to call request, srvice instance is generated by business realizing layer.
Step S204, data interface tier is called by srvice instance, obtains the corresponding business datum of srvice instance.
Step S205, according to business datum, direction view layer returns to the event data of interface event.
Specifically, the relevant information carried in the BLL layers of call request according to UI layers triggers srvice instance product process, Example is initialized first, and srvice instance is then generated according to relevant information and generates corresponding service if carrying version information Handle the srvice instance of logical versions.After generating srvice instance, BLL layers, by example, are called DAL layers, DAL layers according to the tune With request, corresponding business datum is got from backstage, returns to BLL layers.Possible business datum obtained is not UI layers The data that can be called directly, will treated business for example, format at this point, BLL layers can be handled the data Data return to UI layers, the UI layers of response then executed according to the data to interface event.
As can be seen that the embodiment of the present application by mobile terminal framework be divided into view layer, operation layer interface layer, business realizing layer, Data interface tier, tool layer and data model layer, and view layer can only call business realizing layer, not be capable of calling data-interface Layer, the calling of data interface tier realize that is, different levels handle different items by business realizing layer, realize data, logic And the separation at interface, hierarchical logic are more clear, service logic passes through business realizing layer and realizes, identical business is not present Logic is handled, to reduce code redundancy.
Embodiment two
Fig. 3 is referred to, is another schematic process flow diagram of method for processing business provided by the embodiments of the present application, this method It may comprise steps of:
Step S301, service logic interface information is received.
Step S302, according to service logic interface, service logic interface statement behaviour is carried out in the operation layer interface layer Make.
Specifically, before realizing corresponding service logic, the interface claim information that can be inputted according to user, in IBLL Layer states the corresponding interface of the service logic, so that UI layers can pass through IBLL layers of BLL layers of calling.
Step S303, interface event is obtained by view layer.
Step S304, according to interface event, call request is sent to business realizing layer by operation layer interface layer.
Step S305, example is initialized by business realizing layer.
Step S306, the version information carried according to call request generates the business of respective version by business realizing layer Example.
It is to be appreciated that above-mentioned version information refers to the information of service logic version, it specifically can in addition now be version number, example Such as, version 1.0, version 2 .0.The business processing logic of different editions same interface event can be arranged.For example, for interface Click event, the business processing logic of version 1.0 are to enter lower one page, and the business processing logic of version 2 .0 is pop-up wicket. According to version information, to generate the srvice instance of different editions according to version.
It is appreciated that the service logic of different editions can coexist, compared to the service logic for there was only a kind of version at present For, the convenience that follow-up maintenance work can be improved coexists in multi version service logic.For example, current service logic is from version After 1.0 are upgraded to version 2 .0, the function of version 1.0 may be remained in version 2 .0, when needing maintenance release 1.0, then by In handling situations such as logic is complicated, maintenance work is very constant.And multi version service logic is when coexisting, then it can be directly to corresponding Version is separately maintained, and convenience is higher.
Step S307, judge whether srvice instance is data interface tier srvice instance by business realizing layer;When business reality Example is data interface tier srvice instance, enters step S309, conversely, when srvice instance is non-data interface layer srvice instance, Enter step S308.
It is to be appreciated that when service logic it is simpler, or be not desired to call back-end data when, business realizing layer then can be uncomfortable With DAL layers, but corresponding result is returned to UI layers.Certainly, if necessary to call back-end data, business realizing layer is then called DAL layers.
Step S308, corresponding event data is returned to according to srvice instance direction view layer by business realizing layer.
Step S309, data interface tier is called by srvice instance, obtains the corresponding business datum of srvice instance.
Step S310, according to business datum, direction view layer returns to the event data of interface event.
It is to be appreciated that the same or similar place of the present embodiment and above-mentioned each embodiment, refers to corresponding contents above, Details are not described herein.
As can be seen that the hierarchical logic of mobile terminal framework can be made to be more clear through this embodiment, reduction business is patrolled Collect code redundancy.In addition, the service logic of multi version can coexist, the business that different editions can be generated according to version information is real Example improves the convenience of follow-up maintenance work.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
Embodiment three
Fig. 4 is referred to, provides a kind of structural schematic block diagram of business processing device for the embodiment of the present application, applied to including View layer, operation layer interface layer, business realizing layer, data interface tier, tool layer and data model layer mobile terminal framework;It should Device specifically includes:
Interface event obtains module 41, for obtaining interface event by view layer;
Sending module 42, for sending call request to business realizing layer by operation layer interface layer according to interface event;
Srvice instance generation module 43, for generating srvice instance by business realizing layer according to call request;
Business datum obtains module 44, and for calling data interface tier by srvice instance, it is corresponding to obtain srvice instance Business datum;
Feedback module 45, for according to business datum, direction view layer to return to the event data of interface event.
In a kind of feasible implementation, srvice instance generation module includes:
Initialization unit, for initializing example by business realizing layer;
Generation unit, the version information for being carried according to call request generate respective version by business realizing layer Srvice instance.
In a kind of feasible implementation, above-mentioned apparatus further include:
Judgment module, for judging whether srvice instance is data interface tier srvice instance by business realizing layer;
Execution module executes for being data interface tier srvice instance when srvice instance and calls data by srvice instance Interface layer, the step of obtaining srvice instance corresponding business datum;
Return module is used for when srvice instance is non-data interface layer srvice instance, according to srvice instance direction view layer Return to corresponding event data.
In a kind of feasible implementation, above-mentioned apparatus further include:
Receiving module, for receiving service logic interface information;
Declaration module, for according to service logic interface, carrying out service logic interface statement behaviour in operation layer interface layer Make.
As can be seen that the hierarchical logic of mobile terminal framework can be made to be more clear through this embodiment, reduction business is patrolled Collect code redundancy.In addition, the service logic of multi version can coexist, the business that different editions can be generated according to version information is real Example improves the convenience of follow-up maintenance work.
Example IV
Fig. 5 is the schematic diagram for the terminal device that one embodiment of the application provides.As shown in figure 5, the terminal of the embodiment is set Standby 5 include: processor 50, memory 51 and are stored in the meter that can be run in the memory 51 and on the processor 50 Calculation machine program 52.The processor 50 is realized when executing the computer program 52 in above-mentioned each method for processing business embodiment The step of, such as step S201 to S205 shown in Fig. 2.Alternatively, reality when the processor 50 executes the computer program 52 Each module or the function of unit in existing above-mentioned each Installation practice, such as the function of module 41 to 45 shown in Fig. 4.
Illustratively, the computer program 52 can be divided into one or more modules or unit, it is one or The multiple modules of person or unit are stored in the memory 51, and are executed by the processor 50, to complete the application.It is described One or more modules or unit can be the series of computation machine program instruction section that can complete specific function, which uses In implementation procedure of the description computer program 52 in the terminal device 5.For example, the computer program 52 can be by It is divided into interface event to obtain module, sending module, srvice instance generation module, business datum and obtains module and feedback mould Block, each module concrete function are as follows:
Interface event obtains module, for obtaining interface event by view layer;Sending module, for according to interface thing Part sends call request to business realizing layer by operation layer interface layer;Srvice instance generation module, for being asked according to calling It asks, srvice instance is generated by business realizing layer;Business datum obtains module, for calling data-interface by srvice instance Layer obtains the corresponding business datum of srvice instance;Feedback module, for according to business datum, direction view layer to return to interface event Event data.
The terminal device 5 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5 The only example of terminal device 5 does not constitute the restriction to terminal device 5, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk or interior of terminal device 5 It deposits.The memory 51 is also possible to the External memory equipment of the terminal device 5, such as be equipped on the terminal device 5 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the terminal device 5 Member also includes External memory equipment.The memory 51 is for storing needed for the computer program and the terminal device Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device, terminal device and method, it can be with It realizes by another way.For example, device described above, terminal device embodiment are only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module or unit are realized in the form of SFU software functional unit and sell as independent product Or it in use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned reality The all or part of the process in a method is applied, relevant hardware can also be instructed to complete by computer program, it is described Computer program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that The step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, the computer program Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie Matter may include: can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, Magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Comprising within the scope of protection of this application.

Claims (10)

1. a kind of method for processing business, which is characterized in that the method for processing business is applied to include view layer, business layer interface The mobile terminal framework of layer, business realizing layer, data interface tier, tool layer and data model layer;The method for processing business packet It includes:
Interface event is obtained by the view layer;
According to the interface event, call request is sent to the business realizing layer by the operation layer interface layer;
According to the call request, srvice instance is generated by the business realizing layer;
The data interface tier is called by the srvice instance, obtains the corresponding business datum of the srvice instance;
According to the business datum, Xiang Suoshu view layer returns to the event data of the interface event.
2. method for processing business according to claim 1, which is characterized in that it is described according to the call request, pass through industry Pragmatic existing layer generates srvice instance, comprising:
Example is initialized by the business realizing layer;
According to the version information that the call request carries, the business for generating respective version by the business realizing layer is real Example.
3. method for processing business according to claim 1 or 2, which is characterized in that described according to the call request, lead to It crosses after business realizing layer generation srvice instance, further includes:
Judge whether the srvice instance is data interface tier srvice instance by the business realizing layer;
When the srvice instance is the data interface tier srvice instance, execution calls the data to connect by the srvice instance Mouthful layer, the step of obtaining the srvice instance corresponding business datum;
When the srvice instance is non-data interface layer srvice instance, phase is returned to the view layer according to the srvice instance The event data answered.
4. method for processing business according to claim 3, which is characterized in that obtain interface by the view layer described Before event, further includes:
Receive service logic interface information;
According to the service logic interface, service logic interface statement operation is carried out in the operation layer interface layer.
5. a kind of business processing device, which is characterized in that be applied to include view layer, operation layer interface layer, business realizing layer, number According to the mobile terminal framework of interface layer, tool layer and data model layer;The business processing device includes:
Interface event obtains module, for obtaining interface event by the view layer;
Sending module, for being sent and being adjusted to the business realizing layer by the operation layer interface layer according to the interface event With request;
Srvice instance generation module, for generating srvice instance by the business realizing layer according to the call request;
Business datum obtains module, for calling the data interface tier by the srvice instance, obtains the srvice instance Corresponding business datum;
Feedback module, for according to the business datum, Xiang Suoshu view layer to return to the event data of the interface event.
6. business processing device according to claim 5, which is characterized in that the srvice instance generation module includes:
Initialization unit, for initializing example by the business realizing layer;
Generation unit, the version information for being carried according to the call request generate corresponding version by the business realizing layer This srvice instance.
7. business processing device according to claim 5 or 6, which is characterized in that further include:
Judgment module, for judging whether the srvice instance is data interface tier srvice instance by the business realizing layer;
Execution module executes for being the data interface tier srvice instance when the srvice instance and passes through the srvice instance The step of calling the data interface tier, obtaining the srvice instance corresponding business datum;
Return module, for when the srvice instance is non-data interface layer srvice instance, according to the srvice instance to institute It states view layer and returns to corresponding event data.
8. business processing device according to claim 7, which is characterized in that further include:
Receiving module, for receiving service logic interface information;
Declaration module, for carrying out service logic interface sound in the operation layer interface layer according to the service logic interface Bright operation.
9. a kind of terminal device, which is characterized in that in the memory and can be in institute including memory, processor and storage The computer program run on processor is stated, the processor realizes that Claims 1-4 such as is appointed when executing the computer program The step of one method for processing business.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence realizes the step of the method for processing business as described in any one of Claims 1-4 when the computer program is executed by processor Suddenly.
CN201910063983.6A 2019-01-23 2019-01-23 Method for processing business, device, terminal device and computer readable storage medium Pending CN109783072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910063983.6A CN109783072A (en) 2019-01-23 2019-01-23 Method for processing business, device, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910063983.6A CN109783072A (en) 2019-01-23 2019-01-23 Method for processing business, device, terminal device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109783072A true CN109783072A (en) 2019-05-21

Family

ID=66502100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910063983.6A Pending CN109783072A (en) 2019-01-23 2019-01-23 Method for processing business, device, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109783072A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552464A (en) * 2020-04-27 2020-08-18 上海鸿翼软件技术股份有限公司 SDK generation method, device, equipment and medium
CN111880775A (en) * 2020-07-29 2020-11-03 携程旅游网络技术(上海)有限公司 Multi-module layered architecture implementation method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187455A (en) * 2015-10-23 2015-12-23 北京农信互联科技有限公司 Web service method and system based on loose architecture
CN105630472A (en) * 2014-11-03 2016-06-01 中国科学院沈阳自动化研究所 Quick client development frame for manufacturing execution system and software development method for frame
CN106060063A (en) * 2016-06-24 2016-10-26 武汉斗鱼网络科技有限公司 Filtering method and device for internet website front end logic entries
CN106790067A (en) * 2016-12-21 2017-05-31 浙江省公众信息产业有限公司 Method for processing business, device and system based on MVC layerings
CN106951288A (en) * 2017-03-20 2017-07-14 腾讯科技(深圳)有限公司 A kind of exploitation, application process and the device of heat more resource
CN107145350A (en) * 2017-04-28 2017-09-08 武汉斗鱼网络科技有限公司 A kind of software development methodology and system
CN107145354A (en) * 2017-05-04 2017-09-08 武汉斗鱼网络科技有限公司 Software frame and its construction method, electric terminal and readable storage medium storing program for executing
AU2017203566A1 (en) * 2016-05-29 2017-12-14 Rahman, Mohammed Ziaur DR Method for Software Development using Automated Model View Framework
CN109240684A (en) * 2017-06-29 2019-01-18 武汉斗鱼网络科技有限公司 A kind of page service logic realization method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630472A (en) * 2014-11-03 2016-06-01 中国科学院沈阳自动化研究所 Quick client development frame for manufacturing execution system and software development method for frame
CN105187455A (en) * 2015-10-23 2015-12-23 北京农信互联科技有限公司 Web service method and system based on loose architecture
AU2017203566A1 (en) * 2016-05-29 2017-12-14 Rahman, Mohammed Ziaur DR Method for Software Development using Automated Model View Framework
CN106060063A (en) * 2016-06-24 2016-10-26 武汉斗鱼网络科技有限公司 Filtering method and device for internet website front end logic entries
CN106790067A (en) * 2016-12-21 2017-05-31 浙江省公众信息产业有限公司 Method for processing business, device and system based on MVC layerings
CN106951288A (en) * 2017-03-20 2017-07-14 腾讯科技(深圳)有限公司 A kind of exploitation, application process and the device of heat more resource
CN107145350A (en) * 2017-04-28 2017-09-08 武汉斗鱼网络科技有限公司 A kind of software development methodology and system
CN107145354A (en) * 2017-05-04 2017-09-08 武汉斗鱼网络科技有限公司 Software frame and its construction method, electric terminal and readable storage medium storing program for executing
CN109240684A (en) * 2017-06-29 2019-01-18 武汉斗鱼网络科技有限公司 A kind of page service logic realization method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552464A (en) * 2020-04-27 2020-08-18 上海鸿翼软件技术股份有限公司 SDK generation method, device, equipment and medium
CN111552464B (en) * 2020-04-27 2024-05-31 上海鸿翼软件技术股份有限公司 SDK generation method, device, equipment and medium
CN111880775A (en) * 2020-07-29 2020-11-03 携程旅游网络技术(上海)有限公司 Multi-module layered architecture implementation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107632825A (en) A kind of business software development approach and device
CN109634728A (en) Job scheduling method, device, terminal device and readable storage medium storing program for executing
CN107515795A (en) Multi-task parallel data processing method, device, medium and equipment based on queue
CN109471626A (en) Page logic structure, page generation method, page data processing method and device
CN107133039A (en) The construction method and device of regulation engine
CN107368272A (en) A kind of double screen is different to touch different aobvious method, apparatus and computer-readable recording medium
CN110515637A (en) A kind of programme upgrade method, system and terminal device
CN110245029A (en) A kind of data processing method, device, storage medium and server
CN109754072A (en) Processing method, artificial intelligence process device and the Related product of internet off-line model
CN109783072A (en) Method for processing business, device, terminal device and computer readable storage medium
CN109542398A (en) A kind of operation system generation method, device and computer readable storage medium
CN108334346A (en) A kind of development approach and device of Service control flow
CN108830590A (en) The acquisition device and terminal device of a kind of acquisition methods of information, information
CN109697090A (en) A kind of method, terminal device and the storage medium of controlling terminal equipment
CN109685641A (en) A kind of information processing method and device
CN108830596A (en) The acquisition device and terminal device of a kind of acquisition methods of information, information
CN108965786A (en) A kind of electronic whiteboard content sharing method and device
CN109828801A (en) Business information processing method, device and server
CN109582320A (en) Write yard method and terminal device
CN110505609A (en) A kind of bluetooth exchange method, bluetooth interactive device and terminal device
CN108806071A (en) Self-service dispenser management method, self-service dispenser managing device and electronic equipment
CN107589965A (en) A kind of software development methodology and device
CN109614186A (en) Application program color switching method, system and terminal device
CN108335434A (en) A kind of finance device wholesale note output abnormality eliminating method, device and finance device
CN110489151A (en) A kind of terminal staging method and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190521