CN115826942A - Application method, device, terminal and storage medium of service component - Google Patents

Application method, device, terminal and storage medium of service component Download PDF

Info

Publication number
CN115826942A
CN115826942A CN202211428215.4A CN202211428215A CN115826942A CN 115826942 A CN115826942 A CN 115826942A CN 202211428215 A CN202211428215 A CN 202211428215A CN 115826942 A CN115826942 A CN 115826942A
Authority
CN
China
Prior art keywords
component
service
information
source
source component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211428215.4A
Other languages
Chinese (zh)
Inventor
沈庆玲
万齐帅
卢锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202211428215.4A priority Critical patent/CN115826942A/en
Publication of CN115826942A publication Critical patent/CN115826942A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses an application method, an application device, a terminal and a storage medium of a service component. The scheme determines the service information of the service project to be developed; determining a source component matched with the service information from a source component platform based on the service information to obtain a service component required by the service project to be developed, wherein the source component is generated based on a preset component template; and acquiring the service component from the source component platform, and executing the development task of the service project to be developed based on the service component, so that the service component can be quickly reused in the development of the service project.

Description

Application method, device, terminal and storage medium of service component
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for applying a service component.
Background
During the development process, some components are usually extracted, which facilitates the understanding and subsequent reuse of the code. Current assembly approaches may include: intra-project components and micro-components, etc. The in-project components refer to extracting some common components in the same project, and the use range is the current project where the components are located; the micro-component is a plug-in which the components are packaged to be independently usable and also provides information such as a preview image and a readme.
However, the manner of the intra-project components is limited to the current project, the components cannot be provided externally, and a detailed component readme is not provided, so that it takes much time for a developer to learn the components; another type of micro-assembly is a built product, which cannot be developed secondarily by the user.
Disclosure of Invention
The embodiment of the application provides an application method, an application device, a terminal and a storage medium of a business component, and the search efficiency of a difference method before and after code change can be improved.
The embodiment of the application provides an application method of a business component, which comprises the following steps:
determining the service information of a service project to be developed;
determining a source component matched with the service information from a source component platform based on the service information to obtain a service component required by the service project to be developed, wherein the source component is generated based on a preset component template;
and acquiring the service component from the source component platform, and executing the development task of the service project to be developed based on the service component.
Correspondingly, an embodiment of the present application further provides an application apparatus of a service component, including:
the first determining unit is used for determining the service information of the service project to be developed;
a second determining unit, configured to determine, based on the service information, a source component matched with the service information from a source component platform, to obtain a service component required by the service project to be developed, where the source component is a component generated based on a preset component template;
and the execution unit is used for acquiring the service component from the source component platform and executing the development task of the service project to be developed based on the service component.
In some embodiments, the second determination unit comprises:
the acquisition subunit is used for acquiring component information of each source component in the source component platform;
the matching subunit is used for matching the service information with the component information of each source component and determining target component information successfully matched with the service information;
and the first determining subunit is used for obtaining the service component based on the source component corresponding to the target component information.
In some embodiments, the second determining unit further comprises:
a second determining subunit, configured to determine, if the service information fails to match with the component information of each source component, component information with a highest matching degree with the service information from the component information of each source component;
and a third determining subunit, configured to determine the service component based on the source component corresponding to the component information with the highest matching degree with the service information.
In some embodiments, the third determining subunit is specifically configured to:
acquiring the source code of the source component;
and developing the source code again based on the service information to obtain the service component.
In some embodiments, the apparatus further comprises:
and the first publishing unit is used for publishing the service components to the source component platform so as to enable other service projects to acquire the service components for development.
In some embodiments, the apparatus may further comprise:
the acquisition unit is used for acquiring the scaffold template;
the development unit is used for developing components based on the scaffold template to obtain a source component;
a second publishing unit to publish the source component to the source component platform.
In some embodiments, the apparatus further comprises:
an adaptation unit for adapting the source component to a specified type of component by a component adapter.
In some embodiments, the second publication unit includes:
and the issuing subunit is used for issuing the components of the specified type to the source component platform.
Correspondingly, the embodiment of the present application further provides a terminal, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the application method of the service component provided in any one of the embodiments of the present application.
Correspondingly, the embodiment of the present application further provides a storage medium, where multiple instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute the application method of the service component.
The method and the device for the business project development determine the business information of the business project to be developed; determining a source component matched with the service information from a source component platform based on the service information to obtain a service component required by the service project to be developed, wherein the source component is generated based on a preset component template; and acquiring the service component from the source component platform, and executing the development task of the service project to be developed based on the service component, so that the service component can be quickly reused in the development of the service project.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating an application method of a service component according to an embodiment of the present application.
Fig. 2 is a schematic view of an application scenario of a service component according to an embodiment of the present application.
Fig. 3 is a block diagram of an application apparatus of a service component according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an application method, an application device, a storage medium and a terminal of a service component. Specifically, the application method of the service component in the embodiment of the present application may be executed by a terminal, where the terminal may be a device such as a server. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and a big data and artificial intelligence platform.
For example, the terminal may be a server, and the server may determine service information of a service project to be developed; determining a source component matched with the service information from a source component platform based on the service information to obtain a service component required by a service project to be developed, wherein the source component is a component generated based on a preset component template; and acquiring the service component from the source component platform, and executing the development task of the service project to be developed based on the service component.
Based on the above problems, embodiments of the present application provide a method, an apparatus, a terminal, and a storage medium for applying a service component, which can implement quick multiplexing of the service component in service project development.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The embodiment of the present application provides an application method of a service component, which may be executed by a terminal or a server.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an application method of a business module according to an embodiment of the present disclosure. The specific flow of the application method of the service component may be as follows:
101. and determining the service information of the service project to be developed.
The service project to be developed refers to an engineering project of a target service which needs to be developed, and the engineering project can be used for realizing the function of the target service.
In the embodiment of the present application, the business item to be developed may be a banking business item, for example, the business item to be developed may be a credit card business item, a financial management business item, an account management business item, and the like.
The service information may refer to information such as a service type and a service function of a service project to be developed.
102. And determining a source component matched with the service information from a source component platform based on the service information to obtain the service component required by the service project to be developed.
In an embodiment of the present application, the source component may be a component generated based on a preset component template. Among them, a Component (Component) is a simple encapsulation of data and methods. The components may have their own properties and methods. Attributes are simple visitors of component data. The method is some simple and visible function of the component. The use of components can enable drag-and-drop programming, fast property handling, and true object-oriented design.
In some embodiments, in order to enable the component developer to develop the source component according to the specification, a component scaffold is provided, that is, the preset component template may be a scaffold template, and before the step "determining the source component matching the business information from the source component platform based on the business information", the method may further include the following steps:
acquiring a scaffold template;
developing components based on the scaffold template to obtain a source component;
publishing the source component to the source component platform.
In the embodiment of the application, the scaffold template can be created in advance for scaffold maintenance personnel, and the created scaffold template is stored to the scaffold platform, so that the development of subsequent components is facilitated. The acquiring scaffold template may be downloading the scaffold template from the scaffold platform.
The scaffold in project development can be used for building a development environment. Because in the early stage of project development, the work required by developers includes: and (4) building a complete project directory structure, creating necessary files and configuring tools and environments required by development, and then starting to develop the project. And the scaffold can help developers to configure development environment before project development, so that the developers can directly develop the projects, development is quicker, much time is not needed to be configured in the early period, and programmers are more concentrated on business logic development.
Specifically, the scaffold template can be used for configuring a component development environment, and the scaffold template is built with a complete component directory structure, necessary files required by component development, tools required by component development and the like.
Further, based on the obtained scaffold templates, component developers can directly use the scaffold templates to develop components to obtain a source component. Namely, the component development environment is created by the component developer based on the scaffold template, and the component development environment is used for rapidly completing the development of the component assembly.
In order to realize component multiplexing, a source component platform is provided in the embodiment of the application. The source component platform can be a component sharing platform, the source component platform is provided with component checking and downloading functions, and service project developers can search components required by service project development from the source component platform and can also download the components.
In some embodiments, the source component platform includes multiple source components, where the multiple source components may be components of the same business project, or the multiple source components may be components of different business projects, so that business project developers of different business projects can use components of other business projects conveniently, and component sharing between different business projects can be achieved.
Specifically, after the component developer completes development of the source component, the source component can be released on the source component platform, so that the service project developer can acquire the source component from the source component platform to develop the service project.
In some embodiments, in order to facilitate the business project developer to view more information of the source component while viewing the source component from the source component platform, before the step "publish the source component to the source component platform", the following steps may be further included:
the source component is adapted to the specified type of component by the component adapter.
In embodiments of the present application, the specified type of component may be a micro-component. Specifically, the micro component is to pack the components into an independently usable plug-in, and the micro component may include information such as a preview, readme, and the like of the components. Where Readme refers to a self-describing file of some application programs, including relevant installation and use instructions of the program. Through the component preview image and Readme information provided by the micro-component, a development clerk of the business project can know the detailed information of the component so as to call the appropriate component for developing the business project.
In some embodiments, the component adapters may include a variety, such as the component adapters may be micro-component adapters, fast-stop component adapters, and the like. The source component may be adapted as a micro component by a micro component adapter or may be adapted as a fast station component by a fast station component adapter.
In some embodiments, in order to facilitate a developer of a business project to download a component of a specified type, the step "publish the source component to the source component platform" may include the following operations:
and releasing the components of the specified type to the specified component platform.
For example, if the specified type of component can be a micro-component, then the specified component platform can be a micro-component platform, which can be used to manage the micro-component. The micro-component may be published to the micro-component platform.
For another example, if a component of a specified type can be a fast-stop component, then the specified component platform can be a fast-stop component platform, which can be used to manage fast-stop components. The fast-station component may be published to the fast-station component platform.
In some embodiments, in order to obtain the required components for the business project to be developed from the source component platform, the step "determining a source component matched with the business information from the source component platform based on the business information, and obtaining the business components required for the business project to be developed" may include the following operations:
acquiring component information of each source component in a source component platform;
matching the service information with the component information of each source component, and determining target component information successfully matched with the service information;
and obtaining the service component based on the source component corresponding to the target component information.
First, a component list of the source component platform is obtained, and all source components published to the source component platform are determined from the component list.
In the embodiment of the present application, the component information may include names, implementation functions, and the like of components. The service information is matched with the component information of each source component, the service function in the service information can be matched with the component realization function in the component information, and the component function of the component information corresponding to the service function in the service information is determined, so that the component information matched with the service information, namely the target component information, is obtained. And further obtaining a business component corresponding to the business project to be developed according to the source component corresponding to the target component information.
For example, acquiring a source component in a source component platform may include: the device comprises a first source component, a second source component, a third source component and a fourth source component. Then, component information of each source component is acquired, and first component information of the first source component, second component information of the second source component, third component information of the third source component, and fourth component information of the fourth source component are obtained.
Further, matching the service information of the service project to be developed with the first component information, the second component information, the third component information, and the fourth component information, respectively, and determining the component information matched with the service information may be: the first component information may further determine that the first source component corresponding to the first component information is a component required by the service project to be developed, that is, a service component.
In some embodiments, when the source component in the source component platform does not satisfy the components required by the service project to be developed, after the step "matching the service information with the component information of each source component", the following operations may be further included:
if the service information fails to be matched with the component information of each source component, determining the component information with the highest matching degree with the service information from the component information of each source component;
and determining the business components based on the source components corresponding to the component information with the highest matching degree with the business information.
For example, matching the service information of the service project to be developed with the first component information, the second component information, the third component information, and the fourth component information, respectively, and obtaining a matching result as follows: and if the service information is failed to be matched with the first component information, the second component information, the third component information and the fourth component information, determining that a source component in a source component platform does not meet the components required by the service project to be developed.
Further, component information with a high matching degree with the service information can be screened from a source component in a source component platform. That is, the screening component implements component information having a function similar to or close to the business function. For example, if it is determined that the matching degree between the second component information and the service information is the highest, the second source component may be screened from the source component of the source component platform, and the service component of the service project to be developed is generated according to the second source component.
In some embodiments, the step "determining a service component based on a source component corresponding to component information with the highest matching degree with service information" may include the following procedures:
acquiring a source code of a source component;
and developing the source code again based on the service information to obtain a service component.
Specifically, a source component corresponding to component information with the highest service information matching degree may be downloaded from a source component platform, so as to obtain a component source code of the source component.
Furthermore, according to the service information of the service of the project to be developed, namely the service function, the source code of the source component is partially modified, so that the secondary development of the original source component can be completed, a new source component is rapidly generated, and the service component required by the service project to be developed is obtained.
In some embodiments, in order to facilitate the calling of the secondarily developed component, after the step "developing the source code again based on the service information to obtain the service component", the following steps may be further included:
and releasing the service components to a source component platform so as to enable other service projects to acquire the service components for development.
Specifically, for the source component after the redevelopment, the source component after the redevelopment can be released to the source component platform, and the source component after the redevelopment is uploaded to the source component platform, so that developers of other business projects can view and download the source component, and reuse of the source component after the secondary development can be realized.
103. And acquiring the service component from the source component platform, and executing the development task of the service project to be developed based on the service component.
Specifically, after a source component required by the service project to be developed is found from the source component platform, the source component can be downloaded from the source component platform to serve as a service component of the service project to be developed. Then, the business component is introduced into the business project to be developed, so that the business developer completes the development of the business project to be developed.
In some embodiments, please refer to fig. 2, where fig. 2 is a schematic view of an application scenario of a service component according to an embodiment of the present application. Fig. 2 is a low code implemented by the service component processing method according to the present embodiment. Specifically, the low code is a visual application development method, which delivers the application program with less code and faster speed, and automates the code which the programmer does not want to develop, and is called as the low code. The low code is a set of digital technology tool platforms, and based on more efficient modes such as graphical dragging and parametric configuration, rapid construction, data arrangement, connection ecology and middle platform service are realized. And scene application innovation in digital transformation is realized by little code or no code.
In the low-code implementation structure of fig. 2, low code can be implemented by designing a source component layer and a service orchestration layer.
Wherein, the micro-service is a structural style, and a large-scale complex software application is composed of one or more micro-services. Each microservice in the system can be deployed independently, with loose coupling between each microservice. Each microservice is only concerned with completing one task and well completing the task. In all cases, each task represents a small business capability.
Among them, the orchestrator layer, i.e., the BFF (Backend For Frontend) layer, is also called the back end of the front end. When the orchestrator layer includes aggregation, computation, and some combination of data, it is not just a simple API (Application Program Interface) gateway.
Firstly, this scheme provides subassembly scaffold template for the subassembly developer can develop the source subassembly according to the standard, and the subassembly developer can directly use scaffold template to carry out component development. The component developer can then publish the developed source component on the source component platform. If the component developer and the service developer are the same person, the component developer can directly develop a source component in a service project and use the source component; if the component developer and the service development are respectively different personnel, the service developer can download the components uploaded by the component developer from the source component platform, and then introduce the downloaded components into the project for use.
For the case that the source component does not satisfy the service project, the service developer may perform secondary development on the downloaded source component (may perform secondary development through the source code of the source component), and then may release the new version on the source component platform again for the source component after the secondary development.
Specifically, the scheme also provides a micro-component adapter and a fast station adapter, and the micro-component platform and the fast station platform in the row can be supported by one key through the two adapters.
The embodiment of the application discloses an application method of a service component, which comprises the following steps: determining the service information of a service project to be developed; determining a source component matched with the service information from a source component platform based on the service information to obtain a service component required by a service project to be developed, wherein the source component is a component generated based on a preset component template; and acquiring the service component from the source component platform, and executing the development task of the service project to be developed based on the service component, so that the service component can be quickly reused in the development of the service project.
In order to better implement the application method of the service component provided in the embodiments of the present application, an embodiment of the present application further provides an application apparatus of the service component based on the application method of the service component. The terms are the same as those in the application method of the service component, and the specific implementation details can refer to the description in the method embodiment.
Referring to fig. 3, fig. 3 is a block diagram of an application device of a service component according to an embodiment of the present application, where the application device includes:
a first determining unit 301, configured to determine service information of a service project to be developed;
a second determining unit 302, configured to determine, from a source component platform, a source component matched with the service information based on the service information, to obtain a service component required by the service project to be developed, where the source component is a component generated based on a preset component template;
and the execution unit 303 is configured to acquire the service component from the source component platform, and execute a development task of the service project to be developed based on the service component.
In some embodiments, the second determining unit 302 may include:
an acquiring subunit, configured to acquire component information of each source component in the source component platform;
the matching subunit is used for matching the service information with the component information of each source component and determining target component information successfully matched with the service information;
and the first determining subunit is used for obtaining the service component based on the source component corresponding to the target component information.
In some embodiments, the second determining unit 302 may further include:
a second determining subunit, configured to determine, if the service information fails to match with the component information of each source component, component information with a highest matching degree with the service information from the component information of each source component;
and a third determining subunit, configured to determine the service component based on the source component corresponding to the component information with the highest matching degree with the service information.
In some embodiments, the third determining subunit may be specifically configured to:
acquiring the source code of the source component;
and developing the source code again based on the service information to obtain the service component.
In some embodiments, the apparatus may further comprise:
and the first publishing unit is used for publishing the service component to the source component platform so as to enable other service projects to acquire the service component for development.
In some embodiments, the apparatus may further comprise:
the acquisition unit is used for acquiring the scaffold template;
the development unit is used for developing components based on the scaffold template to obtain a source component;
a second publishing unit to publish the source component to the source component platform.
In some embodiments, the apparatus may further comprise:
an adaptation unit for adapting the source component to a specified type of component by a component adapter.
In some embodiments, the second publication unit may include:
and the issuing subunit is used for issuing the components of the specified type to the source component platform.
The embodiment of the application discloses an application device of a business component, which determines business information of a business project to be developed through a first determination unit 301; the second determining unit 302 determines, based on the service information, a source component matched with the service information from a source component platform to obtain a service component required by the service project to be developed, where the source component is a component generated based on a preset component template; the execution unit 303 obtains the service component from the source component platform, and executes a development task of the service project to be developed based on the service component. Therefore, the service components can be quickly reused in the development of the service project.
Correspondingly, the embodiment of the application further provides a terminal, and the terminal can be a server. As shown in fig. 4, fig. 4 is a schematic structural diagram of a terminal provided in the embodiment of the present application. The terminal 400 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer-readable storage media, and a computer program stored on the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. Those skilled in the art will appreciate that the terminal structures shown in the figures are not intended to be limiting of the terminal, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The processor 401 is a control center of the terminal 400, connects various parts of the entire terminal 400 using various interfaces and lines, performs various functions of the terminal 400 and processes data by running or loading software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the entire terminal 400.
In this embodiment, the processor 401 in the terminal 400 loads instructions corresponding to processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions:
determining the service information of a service project to be developed;
determining a source component matched with the service information from a source component platform based on the service information to obtain a service component required by a service project to be developed, wherein the source component is a component generated based on a preset component template;
and acquiring the business components from the source component platform, and executing development tasks of the business project to be developed based on the business components.
In some embodiments, determining a source component matched with the service information from a source component platform based on the service information, and obtaining the service components required by the service project to be developed, includes:
acquiring component information of each source component in a source component platform;
matching the service information with the component information of each source component, and determining target component information successfully matched with the service information;
and obtaining the service component based on the source component corresponding to the target component information.
In some embodiments, after matching the service information with the component information of each source component, the method further includes:
if the service information fails to be matched with the component information of each source component, determining the component information with the highest matching degree with the service information from the component information of each source component;
and determining the business components based on the source components corresponding to the component information with the highest matching degree with the business information.
In some embodiments, determining the service component based on the source component corresponding to the component information with the highest matching degree with the service information includes:
acquiring a source code of a source component;
and developing the source code again based on the service information to obtain a service component.
In some embodiments, after the source code is developed again based on the business information to obtain the business component, the method further includes:
and releasing the service components to a source component platform so as to enable other service projects to acquire the service components for development.
In some embodiments, the preset assembly template is a scaffold template;
before determining a source component matching the service information from the source component platform based on the service information, the method further comprises:
acquiring a scaffold template;
developing the components based on the scaffold template to obtain a source component;
publishing the source component to the source component platform.
In some embodiments, prior to publishing the source component to the source component platform, further comprising:
adapting, by a component adapter, a source component to a specified type of component;
publishing a source component to a source component platform, comprising:
and releasing the components of the specified type to the specified component platform.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Optionally, as shown in fig. 4, the terminal 400 further includes: touch-sensitive display screen 403, radio frequency circuit 404, audio circuit 405, input unit 406 and power 407. The processor 401 is electrically connected to the touch display screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power source 407. Those skilled in the art will appreciate that the terminal structure shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The touch display screen 403 may be used for displaying a graphical user interface and receiving operation instructions generated by a user acting on the graphical user interface. The touch display screen 403 may include a display panel and a touch panel. Among other things, the display panel may be used to display messages input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. Alternatively, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel using any suitable object or accessory such as a finger, a stylus pen, and the like), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives a touch message from the touch sensing device, converts the touch message into touch point coordinates, sends the touch point coordinates to the processor 401, and can receive and execute a command sent by the processor 401. The touch panel may overlay the display panel, and when the touch panel detects a touch operation thereon or nearby, the touch panel may transmit the touch operation to the processor 401 to determine the type of the touch event, and then the processor 401 may provide a corresponding visual output on the display panel according to the type of the touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 403 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be implemented as two separate components to perform the input and output functions. That is, the touch display screen 403 may also be used as a part of the input unit 406 to implement an input function.
In the embodiment of the present application, a game application is executed by the processor 401 to generate a graphical user interface on the touch display screen 403, where a virtual scene on the graphical user interface includes at least one skill control area, and the skill control area includes at least one skill control. The touch display screen 403 is used for presenting a graphical user interface and receiving an operation instruction generated by a user acting on the graphical user interface.
The rf circuit 404 may be configured to transmit and receive rf signals to establish wireless communication with a network device or other terminals through wireless communication, and to transmit and receive signals with the network device or other terminals.
The audio circuit 405 may be used to provide an audio interface between the user and the terminal through a speaker, a microphone. The audio circuit 405 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 405 and converted into audio data, which is then processed by the audio data output processor 401 and then transmitted to, for example, another terminal via the radio frequency circuit 404, or the audio data is output to the memory 402 for further processing. The audio circuit 405 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
The input unit 406 may be used to receive input numbers, character messages, or user characteristic messages (e.g., fingerprints, irises, facial messages, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The power supply 407 is used to power the various components of the terminal 400. Optionally, the power source 407 may be logically connected to the processor 401 through a power management system, so as to implement functions of managing charging, discharging, power consumption management, and the like through the power management system. The power supply 407 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, or any other component.
Although not shown in fig. 4, the terminal 400 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which are not described in detail herein.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
As can be seen from the above, the terminal provided in this embodiment can determine the service information of the service project to be developed; determining a source component matched with the business information from a source component platform based on the business information to obtain a business component required by a business project to be developed, wherein the source component is generated based on a preset component template; and acquiring the service component from the source component platform, and executing the development task of the service project to be developed based on the service component.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer readable storage medium, in which a plurality of computer programs are stored, and the computer programs can be loaded by a processor to execute the steps in the application method of any service component provided in the present application. For example, the computer program may perform the steps of:
determining the service information of a service project to be developed;
determining a source component matched with the service information from a source component platform based on the service information to obtain a service component required by a service project to be developed, wherein the source component is a component generated based on a preset component template;
and acquiring the business components from the source component platform, and executing development tasks of the business project to be developed based on the business components.
In some embodiments, determining a source component matched with the service information from a source component platform based on the service information, and obtaining the service components required by the service project to be developed, includes:
acquiring component information of each source component in a source component platform;
matching the service information with the component information of each source component, and determining target component information successfully matched with the service information;
and obtaining the service component based on the source component corresponding to the target component information.
In some embodiments, after matching the service information with the component information of each source component, the method further includes:
if the service information fails to be matched with the component information of each source component, determining the component information with the highest matching degree with the service information from the component information of each source component;
and determining the business components based on the source components corresponding to the component information with the highest matching degree with the business information.
In some embodiments, determining the service component based on the source component corresponding to the component information with the highest matching degree with the service information includes:
acquiring a source code of a source component;
and developing the source code again based on the service information to obtain a service component.
In some embodiments, after the source code is developed again based on the business information and the business component is obtained, the method further includes:
and releasing the service components to a source component platform so as to enable other service projects to acquire the service components for development.
In some embodiments, the preset assembly template is a scaffold template;
before determining a source component matching the service information from the source component platform based on the service information, the method further comprises:
acquiring a scaffold template;
developing components based on the scaffold template to obtain a source component;
publishing the source component to the source component platform.
In some embodiments, prior to publishing the source component to the source component platform, further comprising:
adapting, by a component adapter, a source component to a specified type of component;
publishing a source component to a source component platform, comprising:
and releasing the components of the specified type to the specified component platform.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in the application method of any service component provided in the embodiment of the present application, beneficial effects that can be achieved by the application method of any service component provided in the embodiment of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The application method, the application device, the storage medium, and the terminal of the service component provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for applying a business component, the method comprising:
determining the service information of a service project to be developed;
determining a source component matched with the service information from a source component platform based on the service information to obtain a service component required by the service project to be developed, wherein the source component is generated based on a preset component template;
and acquiring the service component from the source component platform, and executing the development task of the service project to be developed based on the service component.
2. The method of claim 1, wherein the determining, from a source component platform based on the service information, a source component matching the service information to obtain a service component required by the service project to be developed comprises:
acquiring component information of each source component in the source component platform;
matching the service information with component information of each source component, and determining target component information successfully matched with the service information;
and obtaining the service component based on the source component corresponding to the target component information.
3. The method of claim 2, further comprising, after matching the traffic information with component information for each source component:
if the service information is unsuccessfully matched with the component information of each source component, determining the component information with the highest matching degree with the service information from the component information of each source component;
and determining the business components based on the source components corresponding to the component information with the highest matching degree of the business information.
4. The method of claim 3, wherein the determining the service component based on the source component corresponding to the component information with the highest matching degree with the service information comprises:
acquiring the source code of the source component;
and developing the source code again based on the service information to obtain the service component.
5. The method of claim 4, wherein after the re-developing the source code based on the business information to obtain the business component, further comprising:
and issuing the service component to the source component platform so as to enable other service projects to acquire the service component for development.
6. The method of claim 1, wherein the pre-set assembly template is a scaffold template;
before the determining, from a source component platform based on the service information, a source component matching the service information, the method further includes:
acquiring the scaffold template;
developing components based on the scaffold template to obtain a source component;
publishing the source component to the source component platform.
7. The method of claim 6, further comprising, prior to the publishing the source component to the source component platform:
adapting the source component to a specified type of component by a component adapter;
the publishing the source component to the source component platform, comprising:
publishing the specified type of component to the source component platform.
8. An apparatus for applying a business component, the apparatus comprising:
the first determining unit is used for determining the service information of the service project to be developed;
a second determining unit, configured to determine, based on the service information, a source component matched with the service information from a source component platform, to obtain a service component required by the service project to be developed, where the source component is a component generated based on a preset component template;
and the execution unit is used for acquiring the service component from the source component platform and executing the development task of the service project to be developed based on the service component.
9. A terminal comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor when executing the program implements a method of applying a service component as claimed in any one of claims 1 to 7.
10. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform a method of applying a business component according to any one of claims 1 to 7.
CN202211428215.4A 2022-11-15 2022-11-15 Application method, device, terminal and storage medium of service component Pending CN115826942A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211428215.4A CN115826942A (en) 2022-11-15 2022-11-15 Application method, device, terminal and storage medium of service component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211428215.4A CN115826942A (en) 2022-11-15 2022-11-15 Application method, device, terminal and storage medium of service component

Publications (1)

Publication Number Publication Date
CN115826942A true CN115826942A (en) 2023-03-21

Family

ID=85528238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211428215.4A Pending CN115826942A (en) 2022-11-15 2022-11-15 Application method, device, terminal and storage medium of service component

Country Status (1)

Country Link
CN (1) CN115826942A (en)

Similar Documents

Publication Publication Date Title
US7409690B2 (en) Application module for managing interactions of distributed modality components
US20240192939A1 (en) Application porting method and apparatus, device, and medium
CN112148499A (en) Data reporting method and device, computer equipment and medium
CN113489637A (en) Method and device for adding reminding object, storage medium and computer equipment
CN114691231A (en) Data flow arrangement method and device, readable storage medium and terminal equipment
CN117389647A (en) Plug-in generation method, application development method, device, equipment and medium
WO2023169193A1 (en) Method and device for generating smart contract
CN115099819A (en) Data pushing method and device, storage medium and electronic equipment
CN115826942A (en) Application method, device, terminal and storage medium of service component
CN113110883B (en) Starting method, device, equipment and storage medium of block chain system
CN114880020A (en) Software development kit management method, related device and computer program product
CN114490134A (en) Event processing method, system, device, computer equipment and storage medium
CN112138397A (en) Trigger management method and device, computer equipment and storage medium
CN114416234B (en) Page switching method and device, computer equipment and storage medium
CN113253995B (en) Method, device, equipment and storage medium for developing block chain system
CN113360883B (en) Intelligent contract processing method and device, computer equipment and storage medium
CN115098077B (en) Method and platform for IT application access platform
CN109561146A (en) Document down loading method, device, terminal device
JP7106778B1 (en) BLOCKCHAIN SYSTEM EXECUTION METHOD, APPARATUS, DEVICE, AND STORAGE MEDIUM
CN116860353B (en) Data processing method, device, electronic equipment and storage medium
CN112463212B (en) Environment building method and device supporting cross-system platform
CN114116095B (en) Input method, input device, electronic equipment, medium and product
CN115888073A (en) Channel access method and device for cloud game, computer equipment and storage medium
CN114661804A (en) Data processing method and device, computer equipment and storage medium
CN113806801A (en) Transaction information chaining method, device, computer equipment and storage medium

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