CN109343846B - Construction method and construction system of business scene - Google Patents

Construction method and construction system of business scene Download PDF

Info

Publication number
CN109343846B
CN109343846B CN201810983022.2A CN201810983022A CN109343846B CN 109343846 B CN109343846 B CN 109343846B CN 201810983022 A CN201810983022 A CN 201810983022A CN 109343846 B CN109343846 B CN 109343846B
Authority
CN
China
Prior art keywords
service
scene
service logic
logic code
code
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.)
Active
Application number
CN201810983022.2A
Other languages
Chinese (zh)
Other versions
CN109343846A (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

Images

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 invention provides a method and a system for constructing a service scene and a computer readable storage medium. The method comprises the following steps: analyzing the service logic in the target service scene, adopting the universal code to construct the service logic and generating a service logic code, and packaging the service logic code; and calling the encapsulated business logic code, and analyzing the business logic code through a UI (user interface) component of the client so as to display the target business scene at the client. By packaging and calling the service logic codes, the construction process of the service logic codes of the existing various client service scenes is combined into one time, so that the time and labor required by construction of the service scenes of various clients are reduced, and the construction speed is increased.

Description

Construction method and construction system of business scene
Technical Field
The present invention relates to the field of service scene construction, and in particular, to a service scene construction method, a service scene construction system, and a computer-readable storage medium.
Background
The service scene construction process is usually independently developed under the client, for example, a service scene is constructed under the PC, and for a situation that a plurality of clients need to construct a service scene at the same time (for example, a PC and a mobile terminal need to construct a service scene at the same time), the common construction process is to construct a service scene under the PC, and then repeat the PC construction process under the mobile terminal, thereby completing the construction of the service scenes of the plurality of clients. When the service scenes of the PC and the mobile terminal have the same service scene, the conventional construction method needs to respectively construct the same service logic for the PC and the mobile terminal, and the repeated construction work causes waste of human resources and time cost. Meanwhile, the constructed various clients need to be maintained one by one in the later maintenance process, and the maintenance cost is high.
Aiming at the problems of repeated development of various clients and high maintenance cost in the existing scheme, a business scene construction method is urgently needed to solve the problems faced by the existing scheme.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art or the related art.
Therefore, a first aspect of the present invention is to provide a method for constructing a service scenario.
A second aspect of the present invention is to provide a system for constructing a service scenario.
A third aspect of the present invention is to provide a computer-readable storage medium.
In view of this, according to a first aspect of the present invention, there is provided a method for constructing a service scenario, including: analyzing the service logic in the target service scene, adopting the universal code to construct the service logic and generating a service logic code, and packaging the service logic code; and calling the encapsulated business logic code, and analyzing the business logic code through a UI (user interface) component of the client so as to display the target business scene at the client.
The construction method of the service scene provided by the embodiment of the invention analyzes the service logic of the target service scene, constructs the service logic by using the universal code to further generate the service logic code, encapsulates the service logic code, surrounds the service logic code, realizes the access of data through the defined interface, further hides and protects the service logic code, can directly call the encapsulated service logic code when constructing the service scenes of various terminals, analyzes the service logic code by using UI components of different terminals, and can realize the construction of the service scenes of various clients.
In addition, the method for constructing the service scenario in the above technical solution provided by the present invention may further have the following additional technical features:
in the above technical solution, further, before the step of analyzing the service logic in the target service scenario, the method further includes: receiving a plurality of service scene establishing requests of various clients, and analyzing service logics of service scenes in the service scene establishing requests; and taking the service scenes with the same service logic as target service scenes.
In any of the above technical solutions, further, the method further includes: receiving a modification instruction aiming at the business logic code; modifying the business logic code according to the modification instruction under any one of the plurality of clients; and modifying the UI script of the UI component of any one of the plurality of clients to adapt to the display of the modified business logic code.
In any of the above technical solutions, further, the step of calling the encapsulated business logic code and displaying the business logic code through a UI component of the client specifically includes: and calling the encapsulated business logic codes into an MVVM (multifunction virtual machine) framework for running, and analyzing the business logic codes by using a UI (user interface) component of the client under the MVVM framework.
In any of the above technical solutions, further, the step of calling the encapsulated service logic code into the MVVM framework for running specifically includes: and carrying out format conversion on the encapsulated service logic code.
In any of the above technical solutions, further, the MVVM framework includes any one of the following frameworks: vue frame, exact frame, angular frame.
In any of the above technical solutions, further, the method further includes: receiving a service scene establishing request of a client, and analyzing the service logic of a service scene in the service scene establishing request; judging whether a target service scene with the same service logic is stored in the database, if so, calling a service logic code corresponding to the target service scene; and analyzing the service logic code through a UI component of the client, and displaying the target service scene at the client.
A second aspect of the present invention is to provide a system for constructing a service scenario. The construction system of the business scene comprises: the packaging unit is used for analyzing the service logic in the target service scene, adopting the universal code to construct the service logic and generating a service logic code, and packaging the service logic code; and the calling unit is used for calling the encapsulated service logic code and analyzing the service logic code through a UI component of the client so as to display the target service scene at the client.
The embodiment of the invention provides a construction system of a service scene, wherein the construction system of the service scene comprises the following components: the system comprises an encapsulation unit and a calling unit, wherein the encapsulation unit analyzes the service logic of a target service scene, constructs the service logic by using a universal code to generate a service logic code, encapsulates the service logic code, surrounds the service logic code, realizes data access through a defined interface, and further hides and protects the service logic code, when the service scenes of various terminals are constructed, the calling unit can directly call the encapsulated service logic code, and analyzes the service logic code by using UI components of different terminals, so that the construction of the service scenes of various clients can be realized.
In addition, the construction system of the service scenario in the above technical solution provided by the present invention may further have the following additional technical features:
in the above technical solution, further, the system further includes: the first receiving unit is used for receiving a plurality of service scene establishing requests of various clients and analyzing service logics of service scenes in the service scene establishing requests; and the setting unit takes the service scenes with the same service logic as target service scenes.
In any of the above technical solutions, further, the method further includes: a second receiving unit, configured to receive a modification instruction for the business logic code; the modification unit is used for modifying the service logic code according to the modification instruction under any one of the various clients; and modifying the UI script of the UI component of any one of the plurality of clients to adapt to the display of the modified business logic code.
In any of the above technical solutions, further, the calling unit is specifically configured to call the encapsulated service logic code into an MVVM framework for running, and in the MVVM framework, the service logic code is displayed by using a UI component of the client.
In any of the above technical solutions, further, the calling unit is further configured to perform format conversion on the encapsulated service logic code.
In any of the above technical solutions, further, the MVVM framework includes any one of the following frameworks: vue frame, exact frame, angular frame.
In any of the above technical solutions, further, the method further includes: a third receiving unit, configured to receive a service scenario establishment request from a client, and analyze a service logic of a service scenario in the service scenario establishment request; the judging unit is used for judging whether a target service scene with the same service logic is stored in the database or not, and if so, calling a service logic code corresponding to the target service scene; and the display unit analyzes the service logic codes through the UI component of the client and displays the target service scene at the client.
According to a third aspect of the present invention, a computer-readable storage medium is proposed, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method of building a business scenario as defined in any one of the above.
According to a third aspect of the embodiments disclosed in the present invention, there is provided a computer-readable storage medium, wherein a computer program is executed by a processor to implement the steps of the method for constructing a service scenario according to any one of the above technical solutions, so that the computer-readable storage medium includes all the beneficial effects of the method for constructing a service scenario according to any one of the above technical solutions.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flow chart illustrating a method for constructing a service scenario according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for constructing a business scenario according to another embodiment of the present invention;
FIG. 3 is a flow chart diagram illustrating a method for constructing a business scenario according to yet another embodiment of the present invention;
FIG. 4 is a flow chart diagram illustrating a method for constructing a business scenario according to yet another embodiment of the present invention;
FIG. 5 shows a schematic block diagram of a construction system of a business scenario of one embodiment of the present invention;
FIG. 6 shows a schematic block diagram of a construction system of a business scenario of another embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating a construction process of various client service scenarios in the present stage;
FIG. 8 is a schematic diagram illustrating a process for building a plurality of client business scenarios in accordance with the present invention;
FIG. 9 is a flow diagram illustrating the construction of various client business scenarios in accordance with the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
The embodiment of the first aspect of the invention provides a method for constructing a service scene. Fig. 1 is a flowchart illustrating a method for constructing a service scenario according to an embodiment of the present invention. The construction method of the service scene comprises the following steps:
s102, analyzing the service logic in the target service scene, adopting the universal code to construct the service logic and generating a service logic code, and packaging the service logic code;
and S104, calling the encapsulated business logic code, and analyzing the business logic code through a UI component of the client so as to display the target business scene at the client.
In the embodiment, the service logic of the target service scene is analyzed, the service logic is constructed by using the general codes to generate the service logic codes, the service logic codes are packaged, the service logic codes are surrounded, the data access is realized through the defined interface, and the service logic codes are further hidden and protected. The method has the advantages that the UI components of different terminals are utilized to analyze the service logic codes, so that the construction of the service scenes of various clients can be realized, the construction process of the service logic codes of the service scenes of the various clients is combined into one time through the encapsulation and the calling of the service logic codes, the time and the labor required by the construction of the service scenes of the various clients are further reduced, and the construction speed is improved.
Fig. 2 is a flowchart illustrating a method for constructing a service scenario according to another embodiment of the present invention. The construction method of the service scene comprises the following steps:
s202, receiving a plurality of service scene establishment requests of various clients, and analyzing service logics of service scenes in the plurality of service scene establishment requests;
s204, taking the service scenes with the same service logic as target service scenes;
s206, analyzing the service logic in the target service scene, adopting the universal code to construct the service logic and generating a service logic code, and packaging the service logic code;
and S208, calling the encapsulated business logic code, and analyzing the business logic code through a UI (user interface) component of the client so as to display the target business scene on the client.
In the embodiment, when a plurality of service scene establishment requests of a plurality of clients are received, the plurality of establishment requests are analyzed to determine service scenes with the same service logic, one or more service scenes are used as target service scenes, so that service logic codes established according to the target service scenes can be multiplexed on the plurality of clients, and if the same application scenes are established at different clients, the application scenes under the plurality of clients can be established only by calling the service logic packaged by the same service scenes, and the corresponding service logic codes do not need to be established for each application scene establishment request of the same service logic, so that the construction workload of the service scenes under the plurality of clients is reduced, the construction speed of the plurality of clients is improved, and the labor and time cost in the construction process are reduced.
Fig. 3 is a flowchart illustrating a method for constructing a service scenario according to still another embodiment of the present invention. The construction method of the service scene comprises the following steps:
s302, receiving a plurality of service scene establishment requests of various clients, and analyzing service logics of service scenes in the service scene establishment requests;
s304, taking the service scenes with the same service logic as target service scenes;
s306, analyzing the service logic in the target service scene, adopting the universal code to construct the service logic and generating a service logic code, and packaging the service logic code;
s308, calling the encapsulated service logic code, and analyzing the service logic code through a UI (user interface) component of the client so as to display a target service scene at the client;
s310, receiving a modification instruction aiming at the business logic code;
s312, modifying the service logic code according to the modification instruction under any one of the plurality of clients;
s314, modifying the UI script of the UI component of any one of the plurality of clients so as to adapt to display the modified business logic code.
In the embodiment, when the content of the service scene of the various clients needs to be modified and the modification instruction for the service logic code is received, the service logic code is modified according to the modification instruction at any one of the various clients, and meanwhile, the UI component is adjusted, so that the modified service logic code is correctly displayed, the service logic code of each of the various clients does not need to be modified one by one, the convenience of later maintenance is improved, and the efficiency of later maintenance is improved.
In an embodiment of the present invention, preferably, the step of calling the encapsulated service logic code and displaying the service logic code through a UI component of the client includes: and calling the encapsulated service logic code into an MVVM (multifunction video virtual machine) frame to run, and analyzing the service logic code by using a UI (user interface) component of the client under the MVVM frame.
In this embodiment, the MVVM (Model-View Model) framework is a novel framework evolved in an application mode combining an MVP (Model-View-Presenter) mode and a WPF (Windows Presentation Foundation, belonging to a microsoft graphic system), and reusability is realized by separating views and models, so that a plurality of views reuse one service logic. When the service scenes of various clients are constructed, one service logic code is reused by using the UI components of the various clients, and then the construction of the service logic codes of the various clients for many times is combined into one time, so that the time and labor cost required by the construction of the service scenes of the various clients are reduced, and the construction speed of the service scenes is increased.
In an embodiment of the present invention, preferably, the encapsulated service logic code is called to run under an MVVM framework, and further includes: and carrying out format conversion on the encapsulated service logic code.
In the embodiment, format adjustment is performed on the encapsulated service logic code, the service logic code after format conversion can be adapted to the MVVM frame and combined with the UI component under the MVVM frame, the service logic code is displayed by using the UI component, and then the service scene requirement is met, so that the condition that the service scene requirement cannot be met after the service logic code and the UI component are combined due to the fact that the format of the encapsulated service logic code is not adapted to the MVVM frame is avoided.
In one embodiment of the present invention, preferably, the MVVM framework includes any one of the following frameworks: vue frame, exact frame, angular frame.
In this embodiment, the MVVM framework includes, but is not limited to, vue framework, exact framework, and angular framework, and may be selected appropriately according to the user's needs.
Fig. 4 is a flowchart illustrating a method for constructing a service scenario according to another embodiment of the present invention. The construction method of the service scene comprises the following steps:
s402, analyzing the service logic in the target service scene, adopting the universal code to construct the service logic and generating a service logic code, and packaging the service logic code;
s404, receiving a service scene establishing request of a client, and analyzing service logic of a service scene in the service scene establishing request;
s406, judging whether a target service scene with the same service logic is stored in the database;
and S408, if the judgment result is yes, calling the encapsulated service logic code, and analyzing the service logic code through the UI component of the client so as to display the target service scene at the client.
In the embodiment, when a service scene establishing request of a client is received, the service scene request is analyzed to determine the service logic in the service scene request, and whether a target service scene with the same service logic exists in a database is searched, if so, the encapsulated service logic code is called, and the service logic code is analyzed through a UI (user interface) component of the client, so that the target service scene is displayed at the client, and therefore, after the construction of the service scene under one client is completed, the process of constructing the service logic code by repeatedly using the universal code is not needed when the same service scene is constructed under another client, the transplanting operation of the service scene is realized, the repeated writing of the service logic code is reduced, and the speed of constructing the service scene is increased.
The embodiment of the second aspect of the invention provides a construction system of a business scenario. FIG. 5 shows a schematic block diagram of a construction system 500 of a business scenario of one embodiment of the invention. The system 500 for constructing a service scenario includes: the encapsulation unit 502 is configured to analyze a service logic in a target service scene, construct the service logic using a general code, generate a service logic code, and encapsulate the service logic code; the calling unit 504 is configured to call the encapsulated service logic code, and parse the service logic code through the UI component of the client, so as to display the target service scene at the client.
In this embodiment, the system 500 for constructing a business scenario includes: the service logic of a target service scene is analyzed by the packaging unit 502, the service logic is constructed by using a universal code to generate a service logic code, the service logic code is packaged, the service logic code is surrounded, data access is realized through a defined interface, and the service logic code is hidden and protected.
Fig. 6 shows a schematic block diagram of a construction system 600 of a service scenario of another embodiment of the present invention. The system 600 for constructing a service scenario includes: an encapsulating unit 602, configured to analyze a service logic in a target service scene, construct the service logic by using a universal code, generate a service logic code, and encapsulate the service logic code; the calling unit 604 is used for calling the encapsulated service logic code, and analyzing the service logic code through a UI component of the client so as to display a target service scene at the client; a first receiving unit 606, configured to receive multiple requests for establishing a service scenario from multiple clients, and analyze service logics of the service scenario in the multiple requests for establishing the service scenario; the setting unit 608 sets the service scenario having the same service logic as the target service scenario.
In this embodiment, when the first receiving unit 606 receives multiple service scenario establishment requests of multiple clients, the multiple service scenario establishment requests are analyzed, the setting unit 608 determines a service scenario with the same service logic, and uses one or multiple service scenarios as a target service scenario, so that service logic codes established according to the target service scenario can be multiplexed on the multiple clients, and if the same application scenario is established at different clients, construction of application scenarios under the multiple clients can be achieved only by calling the service logic encapsulated by the same service scenario, and it is not necessary to individually establish corresponding service logic codes for each application scenario establishment request of the same service logic, thereby reducing construction workload of service scenarios under the multiple clients, increasing construction speed of the multiple clients, and reducing labor and time costs in the construction process.
In an embodiment of the present invention, the system 600 for constructing a service scenario further includes: a second receiving unit 610, configured to receive a modification instruction for the business logic code; a modifying unit 612, configured to modify the service logic code according to the modification instruction at any one of the multiple clients; and modifying the UI script of the UI component of any one of the plurality of clients to adapt to the display of the modified business logic code.
In this embodiment, when the content of the service scene of the multiple clients needs to be modified, and the second receiving unit 610 receives a modification instruction for the service logic code, the modification unit 612 is controlled to modify the service logic code according to the modification instruction at any one of the multiple clients, and the UI component is adjusted at the same time, so that the modified service logic code is correctly displayed, and the service logic code of each of the multiple clients does not need to be modified one by one, thereby improving the convenience of the later maintenance and improving the efficiency of the later maintenance.
In an embodiment of the present invention, the calling unit 604 is specifically configured to call the encapsulated service logic code into an MVVM framework to run, and in the MVVM framework, the service logic code is displayed by using a UI component of a client.
In this embodiment, the MVVM (Model-View Model) framework is a novel framework evolved in an application mode combining an MVP (Model-View-Presenter) mode and a WPF (Windows Presentation Foundation, belonging to a microsoft graphic system), and reusability is realized by separating views and models, so that a plurality of views reuse one service logic. When the service scenes of various clients are constructed, one service logic code is reused by using the UI components of the various clients, and then the construction of the service logic codes of the various clients for many times is combined into one time, so that the time and labor cost required by the construction of the service scenes of the various clients are reduced, and the construction speed of the service scenes is increased.
In an embodiment of the present invention, the calling unit 604 is further configured to perform format conversion on the encapsulated service logic code.
In this embodiment, the calling unit 604 is further configured to perform format adjustment on the encapsulated service logic code, where the service logic code after format conversion can adapt to the MVVM frame and is combined with a UI component under the MVVM frame, and the UI component is used to display the service logic code, so as to meet the service scene requirement, and avoid a situation that the format of the encapsulated service logic code is not adapted to the MVVM frame, so that the service logic code cannot meet the service scene requirement after being combined with the UI component.
In one embodiment of the present invention, the MVVM framework comprises any one of the following frameworks: vue frame, exact frame, angular frame.
In this embodiment, the MVVM framework includes, but is not limited to, a vue framework, a exact framework, and an angular framework, and may be selected reasonably according to the user's needs.
In an embodiment of the present invention, the system 600 for constructing a service scenario further includes: a third receiving unit 614, configured to receive a request for establishing a service scenario from a client, and analyze a service logic of the service scenario in the request for establishing the service scenario; a determining unit 616, configured to determine whether a target service scenario with the same service logic is stored in the database, and if the determination result is yes, call a service logic code corresponding to the target service scenario; the presentation unit 618 parses the service logic code through the UI component of the client, and presents the target service scenario at the client.
In this embodiment, when receiving a service scenario establishment request from a client, the third receiving unit 614 analyzes the service scenario request, determines a service logic in the service scenario request, and the determining unit 616 searches whether a target service scenario with the same service logic exists in the database, and if the result of the determination is yes, calls the encapsulated service logic code, and controls the display unit 618 to analyze the service logic code through the UI component of the client, so as to display the target service scenario at the client, thereby implementing a process of constructing the service logic code without repeatedly using a common code when the same service scenario needs to be constructed again at another client after the service scenario construction at a certain client is completed, thereby implementing a "transplanting operation" of the service scenario, further reducing repeated writing of the service logic code, and increasing a speed of constructing the service scenario.
An embodiment of the third aspect of the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method provided in any of the above embodiments.
In the computer-readable storage medium provided by the present invention, when the computer program stored thereon is executed by the processor, the steps of the service scenario construction method according to any of the above embodiments can be implemented, so that all the beneficial technical effects of the service scenario construction method are achieved, and details are not repeated herein.
As shown in fig. 7, the operating system needs to construct a PC service scenario and a mobile service scenario, specifically, service logic codes and corresponding UI components are respectively constructed at the PC and the mobile, as shown in fig. 8, the construction of the operating system applying the technical solution of the present invention needs to construct a service logic code obtained based on object-oriented service logic encapsulation for the PC and the mobile, and construct corresponding UI components for the PC and the mobile, respectively, which reduces the construction process of the same service logic code, and the specific construction process is shown in fig. 9, and includes the following specific steps:
s902, analyzing the service logic of the service scene;
s904, compiling general codes;
s906, the PC terminal service scene uses the universal code to complete the function;
s908, adjusting the universal code to adapt to the service requirement;
s910, completing the service scene requirement;
s912, developing a universal code that the mobile terminal can continue to use in the service scenario.
After the universal code is adjusted to adapt to the service requirement, the corresponding function is completed by adjusting the universal code until the service scene requirement is met. If an attribute A needs to be added in a service scene, after the packaged service logic code is modified, UI components of the PC end and the mobile end are modified respectively to increase the display of the attribute A, and further the maintenance of various client service scenes is realized.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A construction method of a service scene is characterized in that the construction method comprises the following steps:
receiving a plurality of service scene establishing requests of various clients, and analyzing service logics of service scenes in the service scene establishing requests;
taking the service scenes with the same service logic as target service scenes;
analyzing the service logic in the target service scene, adopting a general code to construct the service logic and generating a service logic code, and packaging the service logic code;
calling the encapsulated business logic codes, and analyzing the business logic codes through UI components of various clients so as to display the target business scene at the various clients;
the method further comprises the following steps:
receiving a modification instruction for the business logic code;
modifying the business logic code according to the modification instruction under any one of the plurality of clients;
and modifying the UI script of the UI component of any one of the plurality of clients to adapt to the display of the modified business logic code.
2. The method for constructing a service scenario according to claim 1, wherein the step of calling the encapsulated service logic code and displaying the service logic code through a UI component of a client specifically comprises:
and calling the encapsulated business logic code into an MVVM (multifunction vehicle virtual machine) frame to run, and analyzing the business logic code by using a UI (user interface) component of the client under the MVVM frame.
3. The method for constructing a service scenario according to claim 2, wherein the step of calling the encapsulated service logic code into the MVVM framework for running specifically comprises:
and carrying out format conversion on the encapsulated service logic code.
4. The method of constructing a service scenario of claim 3,
the MVVM framework comprises any one of the following frameworks: vue frame, exact frame, angular frame.
5. The method for constructing a service scenario according to claim 1, wherein the method further comprises:
receiving a service scene establishing request of a client, and analyzing service logic of a service scene in the service scene establishing request;
judging whether the target service scene with the same service logic is stored in a database, if so, calling the service logic code corresponding to the target service scene;
and analyzing the service logic code through the UI component of the client, and displaying the target service scene at the client.
6. A system for constructing a business scenario, the system comprising:
the packaging unit is used for analyzing the service logic in the target service scene, adopting a general code to construct the service logic and generating a service logic code, and packaging the service logic code;
the calling unit is used for calling the encapsulated business logic codes and analyzing the business logic codes through UI components of various clients so as to display the target business scene on the various clients;
the first receiving unit is used for receiving a plurality of service scene establishing requests of various clients and analyzing service logics of service scenes in the service scene establishing requests;
a setting unit, which takes the service scenes with the same service logic as the target service scenes;
further comprising: a second receiving unit, configured to receive a modification instruction for the business logic code;
the modification unit is used for modifying the business logic code according to the modification instruction under any one of the various clients;
and modifying the UI script of the UI component of any one of the plurality of clients to adapt to the display of the modified business logic code.
7. The method of constructing a service scenario of claim 6,
the calling unit is specifically configured to call the encapsulated service logic code into an MVVM framework for operation, and analyze the service logic code using a UI component of the client in the MVVM framework.
8. The construction system of business scenarios of claim 7,
the calling unit is also used for carrying out format conversion on the encapsulated service logic code.
9. The construction system of business scenarios of claim 7,
the MVVM framework comprises any one of the following frameworks: vue frame, exact frame, angular frame.
10. The system for building a service scenario according to claim 6, wherein the system further comprises:
a third receiving unit, configured to receive a service scene establishment request from a client, and analyze a service logic of a service scene in the service scene establishment request;
the judging unit is used for judging whether the target service scenes with the same service logic are stored in the database or not, and if so, calling the service logic codes corresponding to the target service scenes;
and the display unit analyzes the service logic code through the UI component of the client and displays the target service scene at the client.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of construction of a service scenario according to any one of claims 1 to 5.
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 CN109343846A (en) 2019-02-15
CN109343846B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682357A (en) * 2011-02-14 2012-09-19 微软公司 Automatically creating business applications from description of business processes
CN107948231A (en) * 2016-10-13 2018-04-20 阿里巴巴集团控股有限公司 Service providing method, system and operating system based on scene

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727324B (en) * 2009-12-17 2013-03-27 中国电力科学研究院 Code generation method and device
CN104111826B (en) * 2013-04-19 2017-07-04 杭州新世纪电子科技有限公司 A kind of software project development method and device
US9899002B2 (en) * 2013-09-27 2018-02-20 Lenovo (Bejing) Limited Information processing methods for displaying parts of an object on multiple electronic devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682357A (en) * 2011-02-14 2012-09-19 微软公司 Automatically creating business applications from description of business processes
CN107948231A (en) * 2016-10-13 2018-04-20 阿里巴巴集团控股有限公司 Service providing method, system and operating system based on scene

Also Published As

Publication number Publication date
CN109343846A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN108491275B (en) Program optimization method, device, terminal and storage medium
CN105096373B (en) Media content rendering method, user equipment and system
EP2871560A1 (en) Image processing method and apparatus
CN109376088B (en) Automatic test system and automatic test method
CN109343846B (en) Construction method and construction system of business scene
CN110806945B (en) Interface docking method, device and computer readable medium
CN109725977B (en) Multi-application display method based on Android system and terminal equipment
CN111580988A (en) Method and device for realizing open platform, storage medium and computer equipment
CN108347452A (en) The long-range method and device for obtaining screenshot capture
CN112102437A (en) Canvas-based radar map generation method and device, storage medium and terminal
CN111796885A (en) Display method and device of cloud application program and electronic equipment
CN111144878B (en) Instruction generation method and instruction generation device
CN112307403A (en) Page rendering method, device, storage medium and terminal
CN112947905B (en) Picture loading method and device
CN113867732A (en) Message information processing method, system and storage medium
CN114327712A (en) Cloud application system, window management method and device
CN114138372A (en) Front-end component loading method and device
CN104363325A (en) Terminal calling method and system
CN111462289B (en) Image rendering method, device and system
CN112642145A (en) Cloud game running system and method
CN113900922A (en) Method, device, equipment and medium for testing application program interface of multi-platform application
CN111522536A (en) Method for calling programming language and related equipment thereof
CN107908455B (en) Browser page switching method and system
CN115988265A (en) Rendering method and device of display picture and terminal equipment
CN111611065B (en) Calling method and device of machine learning algorithm, storage medium and electronic equipment

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