CN109343846A - The construction method of business scenario and the building system of business scenario - Google Patents

The construction method of business scenario and the building system of business scenario Download PDF

Info

Publication number
CN109343846A
CN109343846A CN201810983022.2A CN201810983022A CN109343846A CN 109343846 A CN109343846 A CN 109343846A CN 201810983022 A CN201810983022 A CN 201810983022A CN 109343846 A CN109343846 A CN 109343846A
Authority
CN
China
Prior art keywords
business
client
business scenario
logic
logic codes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810983022.2A
Other languages
Chinese (zh)
Other versions
CN109343846B (en
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.)
Beijing CHJ Automotive Information Technology Co Ltd
Original Assignee
Beijing CHJ Automotive Information 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 Beijing CHJ Automotive Information Technology Co Ltd filed Critical Beijing CHJ Automotive Information Technology Co Ltd
Priority to CN201810983022.2A priority Critical patent/CN109343846B/en
Publication of CN109343846A publication Critical patent/CN109343846A/en
Application granted granted Critical
Publication of CN109343846B publication Critical patent/CN109343846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code

Abstract

The present invention provides a kind of construction method of business scenario, system and a kind of computer readable storage mediums.Method includes: the service logic parsed in target service scene, uses universal code building service logic and to generate business logic codes, is packaged to business logic codes;Business logic codes after calling encapsulation, by the UI analyzing component business logic codes of client, to show target service scene in client.By by the encapsulation and calling of business logic codes, the building process of the business logic codes of existing a variety of client traffic scenes is merged into once, and then reduce business scenario building needs under a variety of clients time and manpower, meanwhile, improve building speed.

Description

The construction method of business scenario and the building system of business scenario
Technical field
The present invention relates to business scenarios to construct field, construction method, Yi Zhongye in particular to a kind of business scenario The building system for scene of being engaged in and a kind of computer readable storage medium.
Background technique
Business scenario building process is usually the stand-alone development under client, such as constructs business scenario under the end PC, for A variety of clients need the case where constructing business scenario (such as end PC and mobile terminal while needing to construct business scenario) simultaneously, usually Building process be business scenario to be constructed under the end PC, then the end PC building process is repeated under mobile terminal, and then complete a variety of visitors The business scenario at family end constructs.When business scenario at the end PC and mobile terminal business scenario having the same, traditional building side Formula needs the respectively end PC and mobile terminal constructs duplicate service logic respectively, and duplicate construction work will cause manpower money The waste in source and time cost.Meanwhile a variety of clients built need to safeguard one by one in the maintenance process in later period, maintenance Higher cost.
Aiming at the problem that client overlapping development a variety of in existing scheme and problem that maintenance cost is high, a kind of industry is needed Business scenario building method, to solve existing scheme problems faced.
Summary of the invention
The present invention is directed to solve at least one of the technical problems existing in the prior art or related technologies.
For this purpose, the first aspect of the invention is, a kind of construction method of business scenario is proposed.
The second aspect of the invention is, proposes a kind of building system of business scenario.
The third aspect of the invention is, proposes a kind of computer readable storage medium.
In view of this, according to the first aspect of the invention, providing a kind of construction method of business scenario, comprising: solution The service logic in target service scene is analysed, universal code building service logic and to generate business logic codes is used, to industry Business logical code is packaged;Business logic codes after calling encapsulation, pass through the UI analyzing component service logic generation of client Code, to show target service scene in client.
The construction method for the business scenario that the embodiment of the present invention provides parses the service logic of target service scene, and Using universal code building service logic and then business logic codes are generated, and business logic codes are packaged, by business Logical code is surrounded, and the access of data is realized by defined interface, and then business logic codes are hidden and protected Shield is got up, and in the business scenario building for carrying out multiple terminal, packaged business logic codes can be called directly, using not With the UI analyzing component business logic codes of terminal, the building of the business scenario of a variety of clients can be realized, by by business The building process of the business logic codes of existing a variety of client traffic scenes is merged into one by the encapsulation and calling of logical code It is secondary, and then reduce business scenario building needs under a variety of clients time and manpower, meanwhile, improve building speed.
In addition, the construction method of the business scenario in the above-mentioned technical proposal provided according to the present invention, can also have as Lower additional technical feature:
In the above-mentioned technical solutions, further, before the step of parsing the service logic in target service scene, also It include: to receive the multiple of a variety of clients to establish business scenario request, analysis is multiple to establish business scenario in business scenario request Service logic;Using the business scenario with identical services logic as target service scene.
In any of the above-described technical solution, further, method further include: receive needle modification of business logic code and refer to It enables;Under any client in a variety of clients, according to modification instruction modification business logic codes;Modify a variety of clients In any client UI component UI script, to adapt to show modified business logic codes.
In any of the above-described technical solution, further, the business logic codes after calling encapsulation pass through the UI of client Component shows the step of business logic codes, specifically includes: the business logic codes after encapsulation being called under MVVM frame and are run, Under MVVM frame, the UI analyzing component business logic codes of client are used.
In any of the above-described technical solution, further, the business logic codes after encapsulation is called under MVVM frame and are transported Capable step, specifically includes: formatting to the business logic codes after encapsulation.
In any of the above-described technical solution, further, MVVM frame includes with any one in lower frame: vue frame, React frame, angular frame.
In any of the above-described technical solution, further, further includes: receive client and establish business scenario request, analysis Establish the service logic of business scenario in business scenario request;Judge the target that identical services logic whether is stored in database Business scenario, if judging result is yes, calling business logic codes corresponding with target service scene;Pass through the UI of client Analyzing component business logic codes show target service scene in client.
The second aspect of the invention is, proposes a kind of building system of business scenario.The building system of business scenario Include: encapsulation unit, for parsing the service logic in target service scene, uses universal code building service logic and with life At business logic codes, business logic codes are packaged;Call unit, the business logic codes after calling encapsulation, passes through The UI analyzing component business logic codes of client, to show target service scene in client.
The embodiment provides a kind of building systems of business scenario, wherein the building system packet of business scenario Include: encapsulation unit and call unit, encapsulation unit parses the service logic of target service scene, and constructs industry using universal code Business logic generates business logic codes in turn, and is packaged to business logic codes, and business logic codes are surrounded, and leads to The access of data is realized after defined interface, and then business logic codes are hidden and protected, and is carrying out a variety of ends When the business scenario building at end, call unit can call directly packaged business logic codes, utilize the UI of different terminals The building of the business scenario of a variety of clients can be realized in analyzing component business logic codes, by by business logic codes Encapsulation and calling, the building process of the business logic codes of existing a variety of client traffic scenes is merged into once, and then subtracts Lack the time and manpower that business scenario building needs under a variety of clients, meanwhile, improve building speed.
In addition, the building system of the business scenario in the above-mentioned technical proposal provided according to the present invention, can also have as Lower additional technical feature:
In the above-mentioned technical solutions, further, system further include: the first receiving unit, for receiving a variety of clients It is multiple establish business scenarios request, analyze it is multiple establish business scenario request in business scenario service logics;Setup unit, Using the business scenario with identical services logic as target service scene.
In any of the above-described technical solution, further, further includes: the second receiving unit is patrolled for receiving for business Collect the modification instruction of code;Unit is modified, under any client in a variety of clients, according to modification instruction modification Business logic codes;The UI script of the UI component of any client in a variety of clients is modified, to adapt to after showing modification Business logic codes.
In any of the above-described technical solution, further, call unit is specifically used for the business logic codes after encapsulating It calls under MVVM frame and runs, under MVVM frame, show business logic codes using the UI component of client.
In any of the above-described technical solution, further, call unit be also used to the business logic codes after encapsulation into Row format conversion.
In any of the above-described technical solution, further, MVVM frame includes with any one in lower frame: vue frame, React frame, angular frame.
In any of the above-described technical solution, further, further includes: third receiving unit is established for receiving client The service logic of business scenario in business scenario request is established in business scenario request, analysis;Judging unit, for judging database In whether be stored with the target service scene of identical services logic, as judging result be it is yes, call opposite with target service scene The business logic codes answered;Display unit shows target in client by the UI analyzing component business logic codes of client Business scenario.
According to the third aspect of the present invention, a kind of computer readable storage medium is proposed, computer is stored thereon with Program, when computer program is executed by processor the step of the realization such as construction method of the business scenario of any of the above-described.
According to the present invention in terms of the third of disclosed embodiment, a kind of computer readable storage medium is provided, is calculated The step of construction method such as the business scenario of any of the above-described technical solution is realized when machine program is executed by processor, therefore the meter Calculation machine readable storage medium storing program for executing includes whole beneficial effects of the construction method of the business scenario of any of the above-described technical solution.
Additional aspect and advantage of the invention will become obviously in following description section, or practice through the invention Recognize.
Detailed description of the invention
Above-mentioned and/or additional aspect of the invention and advantage will become from the description of the embodiment in conjunction with the following figures Obviously and it is readily appreciated that, in which:
Fig. 1 shows the flow diagram of the construction method of the business scenario of one embodiment of the present of invention;
Fig. 2 shows the flow diagrams of the construction method of the business scenario of another embodiment of the invention;
Fig. 3 shows the flow diagram of the construction method of the business scenario of yet another embodiment of the present invention;
Fig. 4 shows the flow diagram of the construction method of the business scenario of another embodiment of the invention;
Fig. 5 shows the schematic block diagram of the building system of the business scenario of one embodiment of the present of invention;
Fig. 6 shows the schematic block diagram of the building system of the business scenario of another embodiment of the invention;
Fig. 7 shows a variety of client traffic scenario building flow stages schematic diagrames at this stage;
Fig. 8 shows a variety of client traffic scenario building flow stages schematic diagrames of the present invention;
Fig. 9 shows the flow diagram of a variety of client traffic scenario buildings of the present invention.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying mode, the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application Feature in example and embodiment can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, still, the present invention may be used also To be implemented using other than the one described here other modes, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
The embodiment of first aspect present invention provides a kind of construction method of business scenario.Fig. 1 shows of the invention The flow diagram of the construction method of the business scenario of one embodiment.Wherein, the construction method of business scenario includes:
S102 parses the service logic in target service scene, uses universal code building service logic and to generate industry Business logical code, is packaged business logic codes;
S104, the business logic codes after calling encapsulation, by the UI analyzing component business logic codes of client, with Client shows target service scene.
In this embodiment, parse target service scene service logic, and using universal code construct service logic into And business logic codes are generated, and be packaged to business logic codes, business logic codes are surrounded, by having determined The interface of justice realizes the access of data, and then business logic codes are hidden and protected, in the business for carrying out multiple terminal When scenario building, packaged business logic codes can be called directly, wherein business logic codes are javascript script, Javascript, i.e. Java script are a kind of literal translation formula scripting languages, are a kind of regime type, weak type, the language based on prototype Speech.Using the UI analyzing component business logic codes of different terminals, the building of the business scenario of a variety of clients can be realized, lead to It crosses the encapsulation and calling of business logic codes, by the building process of the business logic codes of existing a variety of client traffic scenes It merges into once, and then reduces business scenario building needs under a variety of clients time and manpower, while improving building Speed.
Fig. 2 shows the flow diagrams of the construction method of the business scenario of another embodiment of the invention.Wherein, industry Business scene construction method include:
S202 receives the multiple of a variety of clients and establishes business scenario request, analyzes multiple establish in business scenario request The service logic of business scenario;
S204, using the business scenario with identical services logic as target service scene;
S206 parses the service logic in target service scene, uses universal code building service logic and to generate industry Business logical code, is packaged business logic codes;
S208, the business logic codes after calling encapsulation, by the UI analyzing component business logic codes of client, with Client shows target service scene.
In this embodiment, receive a variety of clients it is multiple establish business scenario request when, to multiple foundation request It is analyzed, determining has the business scenario of identical services logic, and using one or more business scenarios as target service field Scape, so as to can be realized multiplexing in a variety of clients, such as in different visitors according to the business logic codes of target service scenario building When identical application scenarios are established at family end, the service logic of identical business scenario encapsulation need to be only called, a variety of visitors can be realized The building of application scenarios under the end of family, without for each of identical services logic establish application scenarios request individually construct it is corresponding Business logic codes, and then the construction work amount of business scenario under a variety of clients is reduced, improve the building of a variety of clients Speed reduces manpower and time cost in building process.
Fig. 3 shows the flow diagram of the construction method of the business scenario of yet another embodiment of the present invention.Wherein, industry Business scene construction method include:
S302 receives the multiple of a variety of clients and establishes business scenario request, analyzes multiple establish in business scenario request The service logic of business scenario;
S304, using the business scenario with identical services logic as target service scene;
S306 parses the service logic in target service scene, uses universal code building service logic and to generate industry Business logical code, is packaged business logic codes;
S308, the business logic codes after calling encapsulation, by the UI analyzing component business logic codes of client, with Client shows target service scene;
S310 receives the instruction of needle modification of business logic code;
S312, under any client in a variety of clients, according to modification instruction modification business logic codes;
S314 modifies the UI script of the UI component of any client in a variety of clients, to adapt to after showing modification Business logic codes.
In this embodiment, it when needing the content to the business scenario of a variety of clients to modify, receives and is directed to When the modification instruction of business logic codes, patrolled under any client in a variety of clients according to modification instruction modification business Code is collected, while adjusting UI component, so that modified business logic codes are correctly shown, without to every in a variety of clients A kind of business logic codes of client are modified one by one, are improved the simplicity of later maintenance, are improved the efficiency of later maintenance.
In one embodiment of the invention, it is preferable that the business logic codes after calling encapsulation pass through the UI of client Component shows the step of business logic codes, specifically includes: the business logic codes after encapsulation being called under MVVM frame and are run, Under MVVM frame, the UI analyzing component business logic codes of client are used.
In this embodiment, MVVM (Model-View-ViewModel) frame is MVP (Model-View- Presenter) (basis is presented in Windows Presentation Foundation Windows to mode, is under the jurisdiction of micro- with WPF Soft graphics system) combine application mode when a kind of novel framework frame for coming of development evolvement, by will separate view and Model realizes reusability, so that multiple views reuse a service logic.I.e. in the business scenario for constructing a variety of clients When, using one business logic codes of UI component reuse of a variety of clients, and then by service logic multiple under a variety of clients The time and human cost for once reducing that the business scenario building of a variety of clients needs are merged into the building of code, are promoted The building speed of business scenario.
In one embodiment of the invention, it is preferable that the business logic codes after encapsulation are called under MVVM frame and are transported Row, further includes: the business logic codes after encapsulation are formatted.
In this embodiment, Format adjusting is carried out to the business logic codes after encapsulation, the service logic after format conversion Code can be adapted to MVVM frame, and combine with the UI component under MVVM frame, show business logic codes using UI component, into And meeting business scenario demand, the format of the business logic codes after avoiding the occurrence of encapsulation is not adapted to MVVM frame, is caused Business logic codes are unable to satisfy the case where business scenario demand after combining with UI component.
In one embodiment of the invention, it is preferable that MVVM frame includes with any one in lower frame: vue frame, React frame, angular frame.
In this embodiment, MVVM frame is including but not limited to vue frame, react frame, angular frame, can be with It is reasonably selected according to user demand.
Fig. 4 shows the flow diagram of the construction method of the business scenario of another embodiment of the invention.Wherein, industry Business scene construction method include:
S402 parses the service logic in target service scene, uses universal code building service logic and to generate industry Business logical code, is packaged business logic codes;
S404 receives client and establishes business scenario request, and the business of business scenario in business scenario request is established in analysis Logic;
S406 judges the target service scene that identical services logic whether is stored in database;
S408 passes through the UI analyzing component industry of client if judging result is yes, after calling encapsulation business logic codes Business logical code, to show target service scene in client.
In this embodiment, receive client establish business scenario request when, to business scenario request analyze, It determines the service logic in business scenario request, and searches the target service field that whether there is identical services logic in database Scape, if it is judged that calling the business logic codes after encapsulating for when being, passing through the UI analyzing component service logic of client Code, to show target service scene in client, after the completion of realizing the building of the business scenario under a certain client with this, Without reusing universal code building service logic generation when needing to again pull up identical services scene under another client The process of code improves business to realize " graft procedure " of business scenario, and then the repetition for reducing business logic codes is write The speed of scenario building.
The embodiment of second aspect of the present invention provides a kind of building system of business scenario.Fig. 5 shows of the invention The schematic block diagram of the building system 500 of the business scenario of one embodiment.Wherein, the building system 500 of business scenario includes: envelope Unit 502 is filled, for parsing the service logic in target service scene, uses universal code building service logic and to generate industry Business logical code, is packaged business logic codes;Call unit 504, the business logic codes after calling encapsulation, passes through visitor The UI analyzing component business logic codes at family end, to show target service scene in client.
In this embodiment, the building system 500 of business scenario includes: encapsulation unit 502 and call unit 504, encapsulation Unit 502 parses the service logic of target service scene, and using universal code building service logic and then generates service logic Code, and business logic codes are packaged, business logic codes are surrounded, number is realized by defined interface According to access, and then by business logic codes hide and protect, carry out multiple terminal business scenario building when, call Unit 504 can call directly packaged business logic codes, using the UI analyzing component business logic codes of different terminals, The building that the business scenario of a variety of clients can be realized will be existing a variety of by by the encapsulation and calling of business logic codes The building process of the business logic codes of client traffic scene is merged into once, and then reduces business field under a variety of clients The time and manpower that scape building needs, meanwhile, improve building speed.
Fig. 6 shows the schematic block diagram of the building system 600 of the business scenario of another embodiment of the invention.Wherein, The building system 600 of business scenario includes: encapsulation unit 602, for parsing the service logic in target service scene, using logical With code construction service logic and to generate business logic codes, business logic codes are packaged;Call unit 604 is adjusted With the business logic codes after encapsulation, by the UI analyzing component business logic codes of client, to show target in client Business scenario;First receiving unit 606 establishes business scenario request for receiving the multiple of a variety of clients, analyzes multiple build It sets up one's own business the service logic of business scenario in scene request of being engaged in;Setup unit 608 will be made with the business scenario of identical services logic For target service scene.
In this embodiment, the first receiving unit 606 receive a variety of clients it is multiple establish business scenario request when, Multiple foundation request is analyzed, setup unit 608 determines the business scenario with identical services logic, and by one or more A business scenario is as target service scene, so as to can be realized multiplexing according to the business logic codes of target service scenario building In a variety of clients, such as when different clients establish identical application scenarios, identical business scenario encapsulation need to be only called The building of application scenarios under a variety of clients can be realized in service logic, without answering for each foundation of identical services logic Corresponding business logic codes are individually constructed with scene request, and then reduce the construction work of business scenario under a variety of clients Amount, improves the building speed of a variety of clients, reduces manpower and time cost in building process.
In one embodiment of the invention, the building system 600 of business scenario further include: the second receiving unit 610 is used It is instructed in receiving needle modification of business logic code;Unit 612 is modified, for any client in a variety of clients Under, according to modification instruction modification business logic codes;Modify the UI foot of the UI component of any client in a variety of clients This, to adapt to show modified business logic codes.
In this embodiment, when needing the content to the business scenario of a variety of clients to modify, second receives list When member 610 receives the instruction of needle modification of business logic code, control modification unit 612 is in any one of a variety of clients According to modification instruction modification business logic codes under client, while UI component is adjusted, so that modified service logic generation Code is correct to be shown, is modified one by one without the business logic codes to each client in a variety of clients, and later period dimension is improved The simplicity of shield improves the efficiency of later maintenance.
In one embodiment of the invention, call unit 604 is specifically used for calling in the business logic codes after encapsulation It is run under MVVM frame, under MVVM frame, shows business logic codes using the UI component of client.
In this embodiment, MVVM (Model-View-ViewModel) frame is MVP (Model-View- Presenter) (basis is presented in Windows Presentation Foundation Windows to mode, is under the jurisdiction of micro- with WPF Soft graphics system) combine application mode when a kind of novel framework frame for coming of development evolvement, by will separate view and Model realizes reusability, so that multiple views reuse a service logic.I.e. in the business scenario for constructing a variety of clients When, using one business logic codes of UI component reuse of a variety of clients, and then by service logic multiple under a variety of clients The time and human cost for once reducing that the business scenario building of a variety of clients needs are merged into the building of code, are promoted The building speed of business scenario.
In one embodiment of the invention, call unit 604 is also used to carry out lattice to the business logic codes after encapsulation Formula conversion.
In this embodiment, call unit 604 is also used to carry out Format adjusting, format to the business logic codes after encapsulation Business logic codes after conversion can be adapted to MVVM frame, and combine with the UI component under MVVM frame, utilize UI component exhibition Show business logic codes, and then meets business scenario demand, the format and MVVM of the business logic codes after avoiding the occurrence of encapsulation The case where frame is not adapted to, and the business logic codes caused are unable to satisfy business scenario demand after combining with UI component.
In one embodiment of the invention, MVVM frame includes with any one in lower frame: vue frame, react frame Frame, angular frame.
In this embodiment, MVVM frame is including but not limited to vue frame, react frame, angular frame, can be with It is reasonably selected according to user demand.
In one embodiment of the invention, the building system 600 of business scenario further include: third receiving unit 614 is used Business scenario request is established in receiving client, the service logic of business scenario in business scenario request is established in analysis;Judgement is single Member 616, the target service scene for judging whether to be stored with identical services logic in database, if judging result is yes, tune With business logic codes corresponding with target service scene;Display unit 618 is patrolled by the UI analyzing component business of client Code is collected, shows target service scene in client.
In this embodiment, third receiving unit 614 receive client establish business scenario request when, to business field Scape request is analyzed, and determines the service logic in business scenario request, and judging unit 616, which is searched, whether there is phase in database With the target service scene of service logic, if it is judged that calling the business logic codes after encapsulating for when being, control is shown Unit 618 passes through the UI analyzing component business logic codes of client, to show target service scene in client, is realized with this After the completion of business scenario under a certain client constructs, need to again pull up identical services scene under another client Shi Wuxu reuses the process of universal code building business logic codes, thus realize " graft procedure " of business scenario, into And the repetition for reducing business logic codes is write, and the speed of business scenario building is improved.
The embodiment of third aspect present invention provides a kind of computer readable storage medium, is stored thereon with computer journey Sequence, the step of method provided in any of the above-described embodiment is realized when computer program is executed by processor.
Computer readable storage medium provided by the invention, can be real when the computer program stored thereon is executed by processor The step of construction method of the business scenario of existing any of the above-described embodiment, thus the construction method with above-mentioned business scenario is complete Portion's advantageous effects, details are not described herein.
As shown in fig. 7, operating system needs to construct the end PC business scenario and mobile terminal business scenario, specifically, at the end PC Construct business logic codes and corresponding UI component respectively with mobile terminal, as shown in figure 8, apply the technical scheme of the present invention Operating system building then needs to construct the business that a service logic based on object-oriented encapsulates for the end PC and mobile terminal Logical code, and corresponding UI component is constructed respectively for the end PC and mobile terminal, reduce identical business logic codes Building process, specific building process are as shown in Figure 9, the specific steps are as follows:
S902 analyzes business scenario service logic;
S904, universal code are write;
The end S906, PC business scenario completes function using universal code;
S908, adjustment universal code adapt to business demand;
S910, finishing service scene demand;
S912 develops the universal code that the business scenario mobile terminal can continue to use.
Wherein, after adjustment universal code adapts to business demand, corresponding function is completed by adjusting universal code until full Sufficient business scenario demand.Such as need to add an attribute A in business scenario, after modifying encapsulated business logic codes, The UI component of the end PC and mobile terminal is respectively modified to increase the displaying of attribute A, and then realizes the dimension of a variety of client traffic scenes Shield.
These are only the preferred embodiment of the present invention, is not intended to restrict the invention, for those skilled in the art For member, the invention may be variously modified and varied.All within the spirits and principles of the present invention, it is made it is any modification, Equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (15)

1. a kind of construction method of business scenario, which is characterized in that the construction method includes:
The service logic in target service scene is parsed, universal code is used to construct the service logic and to generate service logic Code is packaged the business logic codes;
The business logic codes after calling encapsulation, business logic codes described in the UI analyzing component by client, with The client shows the target service scene.
2. the construction method of business scenario according to claim 1, which is characterized in that in the parsing target service scene In service logic the step of before, further includes:
It receives the multiple of a variety of clients and establishes business scenario request, analysis is the multiple to establish business field in business scenario request The service logic of scape;
Using the business scenario with identical services logic as the target service scene.
3. the construction method of business scenario according to claim 2, which is characterized in that the method also includes:
The modification received for the business logic codes instructs;
Under any client in a variety of clients, according to business logic codes described in the modification instruction modification;
The UI script of the UI component of any client in a variety of clients is modified, it is modified described to adapt to show Business logic codes.
4. the construction method of business scenario according to any one of claim 1 to 3, which is characterized in that the calling envelope Business logic codes after dress, specifically include the step of showing the business logic codes by the UI component of client:
The business logic codes after encapsulation are called under MVVM frame and are run, under the MVVM frame, use the visitor Business logic codes described in the UI analyzing component at family end.
5. the construction method of business scenario according to claim 4, which is characterized in that the business by after encapsulation Logical code calls under MVVM frame the step of running, and specifically includes:
The business logic codes after encapsulation are formatted.
6. the construction method of business scenario according to claim 5, which is characterized in that
The MVVM frame includes with any one in lower frame: vue frame, react frame, angular frame.
7. the construction method of business scenario according to any one of claim 1 to 3, which is characterized in that the method is also Include:
It receives client and establishes business scenario request, analyze the service logic for establishing business scenario in business scenario request;
The target service scene that identical services logic whether is stored in database is judged, if judging result is yes, calling The business logic codes corresponding with the target service scene;
Business logic codes described in UI analyzing component by the client show the target service field in the client Scape.
8. a kind of building system of business scenario, which is characterized in that the system comprises:
Encapsulation unit constructs the service logic simultaneously using universal code for parsing the service logic in target service scene To generate business logic codes, the business logic codes are packaged;
Call unit calls the business logic codes after encapsulating, service logic described in the UI analyzing component by client Code, to show the target service scene in the client.
9. the building system of business scenario according to claim 8, which is characterized in that the system also includes:
First receiving unit establishes business scenario request for receiving the multiple of a variety of clients, and analysis is the multiple to establish industry The service logic of business scenario in business scene request;
Setup unit, using the business scenario with identical services logic as the target service scene.
10. the building system of business scenario according to claim 9, which is characterized in that further include: the second receiving unit, For receiving the modification instruction for being directed to the business logic codes;
Unit is modified, under any client in a variety of clients, according to the modification instruction modification Business logic codes;
The UI script of the UI component of any client in a variety of clients is modified, it is modified described to adapt to show Business logic codes.
11. the construction method of the business scenario according to any one of claim 8 to 10, which is characterized in that
The call unit, which is specifically used for calling in the business logic codes after encapsulation under MVVM frame, to be run, described Under MVVM frame, business logic codes described in the UI analyzing component using the client.
12. the building system of business scenario according to claim 11, which is characterized in that
The call unit is also used to format the business logic codes after encapsulation.
13. the building system of business scenario according to claim 11, which is characterized in that
The MVVM frame includes with any one in lower frame: vue frame, react frame, angular frame.
14. the building system of the business scenario according to any one of claim 8 to 10, which is characterized in that the system Further include:
Third receiving unit establishes business scenario request for receiving client, and analysis is described to establish industry in business scenario request The service logic for scene of being engaged in;
Judging unit, the target service scene for judging whether to be stored with identical services logic in database such as judge It as a result is yes, the calling business logic codes corresponding with the target service scene;
Display unit, business logic codes described in the UI analyzing component by the client, shown in the client described in Target service scene.
15. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of construction method of the business scenario as described in any one of claims 1 to 7 is realized when being executed by processor.
CN201810983022.2A 2018-08-27 2018-08-27 Construction method and construction system of business scene Active CN109343846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810983022.2A CN109343846B (en) 2018-08-27 2018-08-27 Construction method and construction system of business scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810983022.2A CN109343846B (en) 2018-08-27 2018-08-27 Construction method and construction system of business scene

Publications (2)

Publication Number Publication Date
CN109343846A true CN109343846A (en) 2019-02-15
CN109343846B CN109343846B (en) 2023-04-11

Family

ID=65297033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810983022.2A Active CN109343846B (en) 2018-08-27 2018-08-27 Construction method and construction system of business scene

Country Status (1)

Country Link
CN (1) CN109343846B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764779A (en) * 2019-10-21 2020-02-07 百度在线网络技术(北京)有限公司 Packaging method, registration method, device and rendering equipment
CN113157425A (en) * 2021-05-20 2021-07-23 深圳马六甲网络科技有限公司 Service access processing method, device, equipment and storage medium
CN113220336A (en) * 2020-01-21 2021-08-06 腾讯科技(深圳)有限公司 Code processing method, device, medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727324A (en) * 2009-12-17 2010-06-09 中国电力科学研究院 Code generation method and device
CN102682357A (en) * 2011-02-14 2012-09-19 微软公司 Automatically creating business applications from description of business processes
CN104111826A (en) * 2013-04-19 2014-10-22 杭州新世纪电子科技有限公司 Software project development method and device
US20150091917A1 (en) * 2013-09-27 2015-04-02 Lenovo (Beijing) Limited Information processing methods and electronic devices
CN107948231A (en) * 2016-10-13 2018-04-20 阿里巴巴集团控股有限公司 Service providing method, system and operating system based on scene

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727324A (en) * 2009-12-17 2010-06-09 中国电力科学研究院 Code generation method and device
CN102682357A (en) * 2011-02-14 2012-09-19 微软公司 Automatically creating business applications from description of business processes
CN104111826A (en) * 2013-04-19 2014-10-22 杭州新世纪电子科技有限公司 Software project development method and device
US20150091917A1 (en) * 2013-09-27 2015-04-02 Lenovo (Beijing) Limited Information processing methods and electronic devices
CN107948231A (en) * 2016-10-13 2018-04-20 阿里巴巴集团控股有限公司 Service providing method, system and operating system based on scene

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764779A (en) * 2019-10-21 2020-02-07 百度在线网络技术(北京)有限公司 Packaging method, registration method, device and rendering equipment
CN110764779B (en) * 2019-10-21 2023-09-15 百度在线网络技术(北京)有限公司 Encapsulation method, registration method, device and rendering equipment
CN113220336A (en) * 2020-01-21 2021-08-06 腾讯科技(深圳)有限公司 Code processing method, device, medium and electronic equipment
CN113157425A (en) * 2021-05-20 2021-07-23 深圳马六甲网络科技有限公司 Service access processing method, device, equipment and storage medium
CN113157425B (en) * 2021-05-20 2024-05-03 深圳马六甲网络科技有限公司 Service access processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN109343846B (en) 2023-04-11

Similar Documents

Publication Publication Date Title
CN109343846A (en) The construction method of business scenario and the building system of business scenario
US6356950B1 (en) Method for encoding and decoding data according to a protocol specification
CN104660308A (en) File transfer method and file transfer system based on Bluetooth low power consumption technology
CN104407863A (en) Abstract control model programming device and method
CN109874048A (en) The translucent display methods of video window component, device and computer equipment
CN111144878B (en) Instruction generation method and instruction generation device
CN107015841A (en) The preprocess method and program compiling equipment of a kind of program compiling
CN102104894A (en) Mobile service protocol testing device and method
CN107301067B (en) Beidou subscriber machine remote update system and its upgrade method based on IAP technology
CN111324467A (en) Business service calling method, device, equipment and storage medium
CN106815037A (en) The execution method and device of application function
CN111176628B (en) Front-end access method under modular architecture and storage medium
CN105142159B (en) The test system of L2 in a kind of LTE base station
CN110286943B (en) Multi-platform operation method and device for H5 page
CN115291933A (en) Method, device and equipment for constructing small program data packet and storage medium
CN108519964A (en) The method that XML Schema documents are converted into Java code
CN114637531A (en) Method and device for dynamically generating application program interface
CN106997291B (en) Control method, master node and slave node
CN111309319B (en) Inheritable office data dynamic page configuration method and device
CN108052590B (en) A kind of the dynamic application method and system of structural data
CN107231347B (en) A kind of method and system of data streaming services
CN112995191A (en) Generic-derivation-based universal satellite remote control instruction generation method and system
CN102547627A (en) Data timeliness guarantee method based on internet data transmission and short message transmission
CN108156164B (en) Method for increasing PPP service for electric power wireless private network terminal
CN111757119B (en) Method for realizing vp9 prob updating through cooperative work of software and hardware and storage device

Legal Events

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