CN111552460A - Function configuration method, server, terminal device and storage medium - Google Patents

Function configuration method, server, terminal device and storage medium Download PDF

Info

Publication number
CN111552460A
CN111552460A CN202010313077.XA CN202010313077A CN111552460A CN 111552460 A CN111552460 A CN 111552460A CN 202010313077 A CN202010313077 A CN 202010313077A CN 111552460 A CN111552460 A CN 111552460A
Authority
CN
China
Prior art keywords
function
service
component
functional
service request
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
CN202010313077.XA
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.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN202010313077.XA priority Critical patent/CN111552460A/en
Publication of CN111552460A publication Critical patent/CN111552460A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a function configuration method, a server, terminal equipment and a storage medium, and relates to the field of data processing. The function configuration method is applied to a server, wherein the server stores a function component library, the function component library comprises at least one function component, and each function component corresponds to one function; the method comprises the following steps: receiving a service request sent by terminal equipment, wherein the service request is used for requesting a functional component corresponding to a function contained in a target service, and the target service is a service supported by the terminal equipment; calling a functional component corresponding to a function contained in the target service in the functional component library to generate a service request response message, wherein the service request response message comprises the called functional component corresponding to the function contained in the target service; and sending a service request response message to the terminal equipment. By the technical scheme, the universality of different services in the terminal equipment can be improved.

Description

Function configuration method, server, terminal device and storage medium
Technical Field
The present application belongs to the field of data processing, and in particular, relates to a function configuration method, a server, a terminal device, and a storage medium.
Background
With the continuous development of information technology, the application functions of the terminal devices are also more and more powerful. At present, a set of application programs closely related to application scenarios or service requirements are written for a terminal according to the specific application scenarios or service requirements of the terminal device. Under the conditions of application scene updating, service requirement updating and superposition of a plurality of application scenes or a plurality of service requirements superposition, the application program of the terminal equipment needs to be rewritten. Different sets of applications may also be developed for different services. The application program cannot be multiplexed in each terminal device, and the universality of different services in the terminal device is poor.
Disclosure of Invention
The embodiment of the application provides a function configuration method, a server, a terminal device and a storage medium, which can improve the universality of different services in the terminal device.
In a first aspect, an embodiment of the present application provides a function configuration method, which is applied to a server, where the server stores a function component library, the function component library includes at least one function component, and each function component corresponds to a function; the method comprises the following steps: receiving a service request sent by terminal equipment, wherein the service request is used for requesting a functional component corresponding to a function contained in a target service, and the target service is a service supported by the terminal equipment; calling a functional component corresponding to a function contained in the target service in the functional component library to generate a service request response message, wherein the service request response message comprises the called functional component corresponding to the function contained in the target service; and sending a service request response message to the terminal equipment.
In a second aspect, an embodiment of the present application provides a function configuration method, which is applied to a terminal device, and the method includes: determining functions contained in the target service based on the target service, wherein the target service is a service supported by the terminal equipment; generating a service request according to functions contained in the target service and sending the service request to a server, wherein the service request is used for requesting functional components corresponding to the functions contained in the target service, and each functional component corresponds to one function; receiving a service request response message sent by a server, wherein the service request response message comprises a functional component corresponding to a function contained in a target service; and loading the functional components corresponding to the functions contained in the target service in the service request response message.
In a third aspect, an embodiment of the present application provides a server, including: the storage module is used for storing a function component library, the function component library comprises at least one function component, and each function component corresponds to one function; the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a service request sent by terminal equipment, the service request is used for requesting a functional component corresponding to a function contained in a target service, and the target service is a service supported by the terminal equipment; the processing module is used for calling the functional components corresponding to the functions contained in the target service in the functional component library and generating a service request response message, wherein the service request response message comprises the called functional components corresponding to the functions contained in the target service; and the sending module is used for sending the service request response message to the terminal equipment.
In a fourth aspect, an embodiment of the present application provides a terminal device, including: the function determining module is used for determining functions contained in the target service based on the target service, wherein the target service is a service supported by the terminal equipment; the generating module is used for generating a service request according to the functions contained in the target service, wherein the service request is used for requesting functional components corresponding to the functions contained in the target service, and each functional component corresponds to one function; the sending module is used for sending a service request to the server; the receiving module is used for receiving a service request response message sent by the server, wherein the service request response message comprises a functional component corresponding to a function contained in the target service; and the loading module is used for loading the functional components corresponding to the functions contained in the target service in the service request response message.
In a fifth aspect, an embodiment of the present application provides a server, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the method for configuring functions in the technical solution of the first aspect is implemented.
In a sixth aspect, an embodiment of the present application provides a terminal device, which is characterized by including a processor, a memory, and a computer program that is stored on the memory and is executable on the processor, and when the computer program is executed by the processor, the method for configuring functions in the technical solution of the second aspect is implemented.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program, when executed by a processor, implements the function configuration method in the technical solution of the first aspect or the function configuration method in the technical solution of the second aspect.
The embodiment of the application provides a function configuration method, a server, a terminal device and a storage medium, wherein the terminal device generates a service request according to functions contained in a service supported by the terminal device and sends the service request to the server. The server stores a function component library, the function component library comprises function components, and each function component corresponds to one function. And the server calls the functional component of the service request in the functional component library according to the service request sent by the terminal equipment. And generating a service request response message according to the functional component, and sending the functional component of the service request to the terminal equipment through the service request response message. The terminal equipment obtains the requested functional component from the service request response message sent by the server and loads the functional component, so that the terminal equipment can execute the service by utilizing the function corresponding to the functional component. Since a service can be disassembled into at least one function, different services can be performed through various combinations of functional components corresponding to the functions. Aiming at different services, different whole sets of application programs do not need to be developed, and the application programs are realized through the combination of the functional components, so that the universality of the different services in the terminal equipment is improved.
Drawings
The present application will be better understood from the following description of specific embodiments of the invention taken in conjunction with the accompanying drawings. Wherein like or similar reference numerals refer to like or similar features.
Fig. 1 is a schematic view of an application scenario of a function configuration method according to an embodiment of the present application;
fig. 2 is a flowchart of a function configuration method applied to a server according to an embodiment of the present application;
fig. 3 is a flowchart of a function configuration method applied to a server according to another embodiment of the present application;
fig. 4 is a flowchart of a function configuration method applied to a server according to another embodiment of the present application;
fig. 5 is a flowchart of a function configuration method applied to a terminal device according to an embodiment of the present application;
fig. 6 is a flowchart of a function configuration method applied to a terminal device according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device in an embodiment of the present application;
fig. 9 is a schematic hardware structure diagram of a server according to an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application will be described in detail below. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by illustrating examples thereof. The present application is in no way limited to any specific configuration and algorithm set forth below, but rather covers any modification, replacement or improvement of elements, components or algorithms without departing from the spirit of the present application. In the drawings and the following description, well-known structures and techniques are not shown in order to avoid unnecessarily obscuring the present application.
The application provides a function configuration method, a server, a terminal device and a storage medium, which can be applied to the scene of carrying out function configuration on the terminal device and providing an application program. The terminal device may be a mobile phone, a computer, a tablet computer, or other independent terminal, and is not limited herein.
Fig. 1 is a schematic view of an application scenario of a function configuration method according to an embodiment of the present application. As shown in fig. 1, the terminal device 100 and the server 200 can communicate. The server 200 and the terminal device 100 may invoke a functional component corresponding to a service supported by the terminal device 100 in the server 200 through interaction, and perform function configuration for the terminal device 100, so as to implement a function of the terminal device.
The server 200 may store a function component library, where the function component library includes at least one function component, and each function component corresponds to one function. A service is composed of a plurality of functions, where a function refers to an operable atomic function as compared to a service. The function corresponding to the functional component can be obtained by disassembling the whole function or the service function and the like of the terminal equipment. For example, the overall flow of payment traffic involves security management, which may be implemented by one or more functional components, and payment capabilities, which may be implemented by one or more functional components. It should be noted that different functional components may be combined, but are independent of each other. In a specific implementation, the functional component may be an Application Programming Interface (API), a Software Development Kit (SDK), or the like, and is not limited herein.
In some examples, the functional components may be classified for storage management according to the type of service, as well as more detailed types of functions. For example, traffic type A1 includes function classes A11 through A14, one for each function component. Also for example, the service type a2 includes function classes a21 to a25, where function classes a21, a22, a23, and a25 each correspond to one function component, and function class a24 corresponds to two function components.
The classified storage management of the functional components is explained below using a transaction payment scenario as an example. Table one shows the functional components of the sorted storage management:
watch 1
Figure BDA0002458581750000051
As shown in table one, each service type corresponds to a plurality of function types, and one function type corresponds to one or more than two function components.
In other examples, the functional components may also sort storage management by functional hierarchy. In particular, the functional components may include one or more of business function class components, management function class components, and security function class components. The service function component is used for realizing service functions, such as functions of payment service, loan service, agricultural and agricultural services and the like. The management function type component is used for realizing management functions, such as parameter management, data acquisition, terminal safety positioning management, terminal geographic position management, operating system updating management and the like. The safety function type component is used for realizing safety functions, such as self-destruction during starting up, certificate protection, safety protection of a trusted execution environment and the like. The business function class component may implement upper layer functions in the function hierarchy. The management function class component may implement middle level functions in the function hierarchy. The secure function class component may implement underlying functions in a function hierarchy.
The application provides a function configuration method which can be specifically executed by a server. Fig. 2 is a flowchart of a function configuration method applied to a server in an embodiment of the present application. As shown in fig. 2, the function configuration method may include steps S301 to S303.
In step S301, a service request sent by the terminal device is received.
The service request is used for requesting a functional component corresponding to a function contained in the target service. The target service is a service supported by the terminal equipment. Implementing a service requires implementing the functionality that the service contains. And the terminal equipment requests the server for the functional components required by realizing the target service through the service request. The terminal equipment can realize the target service by operating or calling the functional components corresponding to the functions contained in the target service.
In some examples, the service request may include a component identification of a functional component corresponding to a function included in the target service. The component identification is used to identify the functional component. In other examples, the service request may include a functional description of the functionality included in the target service. The server can call the functional component corresponding to the function contained in the target service in the functional component library according to the function description.
In step S302, a function component corresponding to a function included in the target service in the function component library is called, and a service request response message is generated.
The server stores the function components in the function component library. And calling the functional components corresponding to the functions contained in the target service in the functional component library, and generating a service request response message by using the called functional components. And the service request response message comprises the called functional components corresponding to the functions contained in the target service.
In some examples, the service request response information includes respective functional components in the called functional component library corresponding to the functions included in the target service. And the terminal equipment receives the service request response message, can utilize the functional components in the service request response message to form an application program, and runs the application program to execute the target service.
In other examples, the service request response message includes an application. The application program is composed by the server by using the functional components corresponding to the functions contained in the target service in the called functional component library. And the terminal equipment receives the service request response message and runs the application program in the service request response message to execute the target service.
In step S303, a service request response message is sent to the terminal device
In the embodiment of the application, the server stores a function component library, and the function component library comprises function components. Each functional component corresponds to a function. And the server calls the functional component of the service request in the functional component library according to the service request sent by the terminal equipment. And generating a service request response message according to the functional component, and sending the functional component of the service request to the terminal equipment through the service request response message, so that the terminal equipment can execute the service by utilizing the function corresponding to the functional component. Since a service can be disassembled into at least one function, different services can be performed through various combinations of functional components corresponding to the functions. Aiming at different services, different whole sets of application programs do not need to be developed, and the application programs are realized through the combination of the functional components, so that the universality of different services in the terminal equipment is improved, and the difficulty in function development of the terminal equipment is also reduced.
Under the condition that the functions of the terminal equipment are updated or upgraded, the terminal equipment only needs to send a service request of a functional component corresponding to the newly added functions required by updating or upgrading to the server so as to call the functional component corresponding to the newly added functions required by loading updating or upgrading, and therefore updating or upgrading of the terminal equipment is achieved. The whole application program of the terminal equipment does not need to be rewritten, so that the efficiency of updating or upgrading the functions of the terminal equipment is improved, and the cost required by upgrading or updating is saved.
Fig. 3 is a flowchart of a function configuration method applied to a server according to another embodiment of the present application. Fig. 3 differs from fig. 2 in that step S302 shown in fig. 2 can be subdivided into steps S3021 to S3023 shown in fig. 3.
In step S3021, a function component corresponding to a function included in the target service in the function component library is called.
In step S3022, the function components corresponding to the functions included in the target service, which are called in the function component library, are combined into the target application program in the execution order of the functions included in the target service.
Wherein the service request may comprise an execution order of functions included in the target service. The functions included in the target service can be executed according to the execution sequence of the functions. The server may combine the function components corresponding to the functions included in the target service, which are called in the function component library, into the target application program according to the execution order of the functions included in the target service.
For example, if the execution sequence of the functions in the consumption payment service is data acquisition, security protection of Trusted Execution Environment (TEE), biological identification, and consumption, the functional components with serial numbers 15, 2, 9, and 19 need to be combined into the target application program according to the execution sequence corresponding to the table one in the above embodiment.
In step S3023, a service request response message is generated based on the target application.
Wherein, the generated service request response message includes the target application program. It should be noted that the target application is a set in which the functional components are arranged according to the execution order of the functions included in the target service, and the functional components in the target application can still be disassembled into independent individual operations.
In other examples, the functional components may not be arranged in the execution order of the functions included in the target service, and are not limited herein.
In some examples, a functional component library in the server may be configured with a component management information table. The component management information table may be used to record the related information of the functional component currently existing in the functional component library and the related data of the functional component once existing in the functional component library. The server can be used as an open platform to be opened outwards and provide the components in the functional component library. The component management information table can be used for related data management of the functional component library of the open platform.
Specifically, the component management information table may include one or more of functional component name data, functional component number data, functional component function data, functional component state data, and functional component invoked data of functional components that exist and exist in the functional component library, which is not limited herein. Each functional component may correspond to a series of the above data. For example, the component management information table includes functional component name data, functional component number data, functional component function data, functional component state data, and functional component called data; the functional component library currently stores a functional component 1, and the functional component library stores a functional component 2; the data corresponding to the function component 1 includes function component name data B1, function component number data C1, function component function data D1, function component state data E1, and function component called data F1; the data corresponding to the function component 2 includes function component name data B2, function component number data C2, function component function data D2, function component state data E2, and function component called data F2.
The above data corresponding to each functional component may be stored in the form of fields. Each data may occupy a field, multiple fields, or portions of a field. The data may be distinguished by field names, and the field attribute of each data may be a character, a boolean value, a numeric value, or the like, but is not limited thereto. The following description is given by way of example. Table two shows sequence numbers, field names, field attributes, and field descriptions related to the above data corresponding to the functional components in the component management information table:
watch two
Figure BDA0002458581750000091
Wherein, the called condition of the functional component can be used in the subsequent related analysis of the functional component.
It should be noted that functions such as addition, deletion, modification, and query may be performed on the functional components in the functional component library in the server, which is not limited herein. Specifically, the server can be directly operated, and functions of adding, deleting, changing, inquiring and the like of the functional components in the functional component library are realized. And functions of adding, deleting, changing, inquiring and the like of the functional components in the functional component library can be realized through interaction between the terminal equipment and the server.
Fig. 4 is a flowchart of a function configuration method applied to a server according to another embodiment of the present application. Fig. 4 is different from fig. 2 in that the function configuration method shown in fig. 4 may further include step S304.
In step S304, when the functional component indicated by the service request does not exist in the functional component library, component prompt information is issued.
The component prompt information is used for indicating that the function component library does not have the function of the function component indicated by the service request. Through the component prompt information, the functional components which are lacked in the functional component library but are required by the terminal equipment can be prompted to the operator or developer, so that the functional components which need to be added to the functional component library are determined according to the component prompt information.
In some examples, the server receives the service request, and directly sends out the component prompt information in the case that the functional component indicated by the service request cannot be found in the functional component library. In other examples, the server receives the service request, and in a case that the functional component indicated by the service request is not found in the functional component library, the server may feed back a call failure message to the terminal device. And the terminal server receives the calling failure message and sends a functional component adding request to the server. The server receives the component addition request and sends out component prompt information.
In some examples, the functional component library is configured with a component functional requirement information table. The component function requirement information table can be used for recording relevant data of the function indicated by the component prompt information. The data related to the function recorded in the component function requirement information table may include data related to the function of the functional component that is currently absent from the functional component library, or may include data related to the function of the functional component that is once absent from the functional component library but currently exists.
Specifically, the component function requirement information table includes one or more of function name data, function number data, function requirement data, and function status data of the function indicated by the component prompt information, which is not limited herein. Each function indicated by the component alert information may correspond to a series of the above data. For example, the component function requirement information table includes function name data, function number data, function requirement data, and function status data; the functions of the functional components indicated by the component prompt information comprise a function 1 and a function 2; the data corresponding to the function 1 comprises function name data G1, function number data H1, function data J1, function requirement data K1 and function state data L1; the data corresponding to the functional component 2 includes function name data G2, function number data H2, function data J2, function requirement data K2, and function state data L2.
The above data corresponding to each functional component may be stored in the form of fields. Each data may occupy a field, multiple fields, or portions of a field. The data may be distinguished by field names, and the field attribute of each data may be a character, a boolean value, a numeric value, or the like, but is not limited thereto. The following description is given by way of example. Table three shows sequence numbers, field names, field attributes and field descriptions related to the above data corresponding to the functional components in the component function requirement information table:
watch III
Figure BDA0002458581750000101
Figure BDA0002458581750000111
The server can set the priority of the function indicated by the component prompt information according to the function demand condition data. In some examples, the function demand situation data characterizes a number of demanded times of the function. The more times a function is required, the higher the priority of the function. The server preferentially generates the functional components corresponding to the higher-priority functions.
The application also provides a function configuration method which can be applied to the terminal equipment. Fig. 5 is a flowchart of a function configuration method applied to a terminal device according to an embodiment of the present application. As shown in fig. 5, the function configuration method may include steps S401 to S404.
In step S401, based on the target service, the function included in the target service is determined.
The target service is a service supported by the terminal equipment. The target service may be set according to a working scenario and a working requirement of the terminal device, which is not limited herein. Specifically, the target service may be split into a plurality of functions, and the split plurality of functions are functions included in the target service.
In step S402, a service request is generated and sent to the server according to the function included in the target service.
The service request is used for requesting a functional component corresponding to a function contained in the target service. Each functional component corresponds to a function.
In some examples, the service request may include a component identification of the functional component of the request. In other examples, the service request may include a functional description of a function included in the target service, such that the server may invoke a functional component corresponding to the functional description.
In step S403, a service request response message sent by the server is received.
Wherein, the service request response message comprises a functional component corresponding to the function contained in the target service. The content of the service request response message can refer to the relevant description in the above embodiments, and is not described herein again.
In step S404, a functional component corresponding to a function included in the target service in the service request response message is loaded.
The terminal equipment loads the functional components in the service request response message and can run the loaded functional components so as to execute the target service.
In the embodiment of the application, the terminal device generates the service request according to the functions contained in the service supported by the terminal device and sends the service request to the server. The service request is used for requesting a server for a functional component of a function included in a service supported by the terminal device. The terminal equipment obtains the requested functional component from the service request response message sent by the server and loads the functional component. Since a service can be disassembled into at least one function, different services can be performed through various combinations of functional components corresponding to the functions. Aiming at different services, different whole sets of application programs do not need to be developed, and the application programs are realized through the combination of the functional components, so that the universality of different services in the terminal equipment is improved, and the difficulty in function development of the terminal equipment is also reduced.
Under the condition that the functions of the terminal equipment are updated or upgraded, the terminal equipment only needs to send a service request of a functional component corresponding to the newly added functions required by updating or upgrading to the server so as to call the functional component corresponding to the newly added functions required by loading updating or upgrading, and updating or upgrading of the terminal equipment is achieved. The whole application program of the terminal equipment does not need to be rewritten, so that the efficiency of updating or upgrading the functions of the terminal equipment is improved, and the cost required by upgrading or updating is saved. For example, if a new face payment function is required in the agriculture-supporting service, a functional component of the face payment function may be requested from the server through a service request. And receiving and loading the functional components in the service request response message sent by the server, thereby completing the update of the agricultural and agricultural services without rewriting the agricultural and agricultural service application programs.
Moreover, the terminal equipment executes the service by operating the functional components. Under the condition that different services have a certain or some same functions, the terminal equipment can call the functional components corresponding to the same functions when executing different services, thereby realizing the multiplexing of the functional components and further improving the universality of the execution of different services in different terminal equipment.
Fig. 6 is a flowchart of a function configuration method applied to a terminal device according to another embodiment of the present application. Fig. 6 differs from fig. 5 in that step S402 shown in fig. 5 may include steps S4021 to S4023.
In step S4021, a key function node in the executed process of the target service is acquired.
The target service may contain one or more functions. In the case where the target service contains multiple functions, the process of executing the target service includes multiple key function nodes. And obtaining the key function node in the target executed process according to the target service. And executing corresponding functions at each key function node, thereby realizing the target service.
In step S4022, the execution order of the functions included in the target service is determined based on the key function node in the process of being executed.
According to the sequence of the key function nodes in the process of executing the target service, the execution sequence of the functions contained in the target service can be determined.
In step S4023, a service request is generated and sent to the server according to the functions included in the target service and the execution order of the functions included in the target service.
Wherein, the generated service request can comprise the execution sequence of the functions contained in the target service.
Correspondingly, the service request response message in the above embodiment includes a target application program formed by combining functional components corresponding to functions included in the target service according to the execution sequence of the functions included in the target service. The content of the target application program can refer to the relevant description in the above embodiments, and is not described herein again.
In some examples, the terminal device may receive a function specification operation or a service formulation operation of a user, and determine a target service.
The application also provides a server. Fig. 7 is a schematic structural diagram of a server according to an embodiment of the present application. As shown in fig. 7, the server 200 may include a storage module 201, a receiving module 202, a processing module 203, and a transmitting module 204.
The storage module 201 may be used to store a library of functional components.
Wherein the functional component library comprises at least one functional component. Each functional component corresponds to a function. Specifically, the functional component includes an API or an SDK.
In some examples, the functional components include one or more of a business function class component, a management function class component, a security function class component.
The receiving module 202 may be configured to receive a service request sent by a terminal device.
The service request is used for requesting a functional component corresponding to a function contained in the target service. The target service is a service supported by the terminal equipment.
The processing module 203 may be configured to invoke a functional component in the functional component library corresponding to a function included in the target service, and generate a service request response message.
And the service request response message comprises the called functional components corresponding to the functions contained in the target service.
The sending module 204 may be configured to send a service request response message to the terminal device.
In the embodiment of the application, the server stores a function component library, and the function component library comprises function components. Each functional component corresponds to a function. And the server calls the functional component of the service request in the functional component library according to the service request sent by the terminal equipment. And generating a service request response message according to the functional component, and sending the functional component of the service request to the terminal equipment through the service request response message, so that the terminal equipment can execute the service by utilizing the function corresponding to the functional component. Since a service can be disassembled into at least one function, different services can be performed through various combinations of functional components corresponding to the functions. Aiming at different services, different whole sets of application programs do not need to be developed, and the functions are realized through the combination of the functional components, so that the universality of different services in different terminal devices is improved, and the difficulty in function development of the terminal devices is also reduced.
In some examples, the service request includes an execution order of functions included by the target service. The processing module 203 may be specifically configured to invoke a functional component corresponding to a function included in the target service in the functional component library; combining the functional components called in the functional component library and corresponding to the functions contained in the target service into a target application program according to the execution sequence of the functions contained in the target service; a service request response message is generated based on the target application.
In some examples, the functional component library is configured with a component management information table. The component management information table includes one or more of functional component name data, functional component number data, functional component function data, functional component state data, and functional component called data of functional components existing and existing in the functional component library.
In some examples, the sending module 204 may be further configured to send the component prompt message if the functional component indicated by the service request does not exist in the functional component library.
The component prompt information is used for indicating that the function component library does not have the function of the function component indicated by the service request.
In some examples, the functional component library is configured with a component functional requirement information table. The component function requirement information table comprises one or more items of function name data, function number data, function requirement data and function state data of the function indicated by the component prompt information.
The application also provides a terminal device. Fig. 8 is a schematic structural diagram of a terminal device in an embodiment of the present application. As shown in fig. 8, the terminal device 100 may include a function determining module 101, a generating module 102, a transmitting module 103, a receiving module 104, and a loading module 105.
The function determining module 101 may be configured to determine a function included in the target service based on the target service.
The target service is a service supported by the terminal equipment.
The generating module 102 may be configured to generate the service request according to a function included in the target service.
The service request is used for requesting functional components corresponding to functions included in the target service, and each functional component corresponds to one function. Specifically, the functional component includes an API or an SDK.
In some examples, the functional components include one or more of a business function class component, a management function class component, a security function class component.
The sending module 103 may be configured to send a service request to the server.
The receiving module 104 may be configured to receive a service request response message sent by a server.
Wherein, the service request response message comprises a functional component corresponding to the function contained in the target service.
The loading module 105 may be configured to load a functional component corresponding to a function included in the target service in the service request response message.
In the embodiment of the application, the terminal device generates the service request according to the functions contained in the service supported by the terminal device and sends the service request to the server. The service request is used for requesting a server for a functional component of a function included in a service supported by the terminal device. The terminal equipment obtains the requested functional component from the service request response message sent by the server and loads the functional component. Since a service can be disassembled into at least one function, different services can be performed through various combinations of functional components corresponding to the functions. Aiming at different services, different whole sets of application programs do not need to be developed, and the functions are realized through the combination of the functional components, so that the universality of different services in different terminal devices is improved, and the difficulty in function development of the terminal devices is also reduced.
In some examples, the service request includes an execution order of functions included by the target service. The generating module 102 may also be configured to obtain a key function node of the target service in the executed process; determining the execution sequence of the functions contained in the target service based on the key function nodes in the executed process; and generating the service request according to the functions contained in the target service and the execution sequence of the functions contained in the target service.
Correspondingly, the service request response message comprises a target application program formed by combining functional components corresponding to the functions contained in the target service according to the execution sequence of the functions contained in the target service.
The application also provides a server. Fig. 9 is a schematic hardware structure diagram of a server according to an embodiment of the present application. As shown in fig. 9, the server 500 includes a memory 501, a processor 502, and a computer program stored on the memory 501 and executable on the processor 502.
In one example, the processor 502 described above may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more integrated circuits implementing embodiments of the present application.
Memory 501 may include mass storage for data or instructions. By way of example, and not limitation, memory 501 may include an HDD, floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Memory 501 may include removable or non-removable (or fixed) media, where appropriate. The memory 501 may be internal or external to the terminal hotspot startup server 500, where appropriate. In a particular embodiment, the memory 501 is a non-volatile solid-state memory. In a particular embodiment, the memory 501 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 502 runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory 501 for implementing the function configuration method applied to the server in the above-described embodiments.
In one example, server 500 may also include a communication interface 503 and a bus 504. As shown in fig. 9, the memory 501, the processor 502, and the communication interface 503 are connected to each other via a bus 504 to complete communication therebetween.
The communication interface 503 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present application. Input devices and/or output devices may also be accessed through communication interface 503.
Bus 504 comprises hardware, software, or both coupling the components of server 500 to each other. By way of example, and not limitation, the bus 504 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of these. Bus 504 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
The present application further provides a terminal device, a hardware structure of the terminal device is similar to the server 500 in the foregoing embodiment, and the terminal device may include a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and specific contents may refer to the description of the hardware structure of the server in the foregoing embodiment, and are not described herein again. The processor runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory, for implementing the function configuration method applied to the terminal device in the above-described embodiments.
The terminal device may also include a communication interface and a bus. The memory, the processor, and the communication interface are connected through a bus to complete mutual communication, and specific contents may refer to the description of the hardware structure of the server in the above embodiments, which is not described herein again.
The present application also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, can implement the function configuration method applied to the server or the function configuration method applied to the terminal device in the above-described embodiments.
It should be clear that the embodiments in this specification are described in a progressive manner, and the same or similar parts in the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. For server embodiments, terminal device embodiments and computer-readable storage medium embodiments, reference may be made to the description of the method embodiments for relevant points. The present application is not limited to the particular steps and structures described above and shown in the drawings. Those skilled in the art may make various changes, modifications and additions or change the order between the steps after appreciating the spirit of the present application. Also, a detailed description of known process techniques is omitted herein for the sake of brevity.
It will be appreciated by persons skilled in the art that the above embodiments are illustrative and not restrictive. Different features which are present in different embodiments may be combined to advantage. Other variations to the disclosed embodiments can be understood and effected by those skilled in the art upon studying the drawings, the specification, and the claims. In the claims, the term "comprising" does not exclude other means or steps; the nouns are not necessarily the same quantity, and the number of the nouns can be one or more; the terms "first" and "second" are used to denote a name and not to denote any particular order. Any reference signs in the claims shall not be construed as limiting the scope. The functions of the various parts appearing in the claims may be implemented by a single hardware or software module. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.

Claims (17)

1. The function configuration method is applied to a server, wherein the server stores a function component library, the function component library comprises at least one function component, and each function component corresponds to one function; the method comprises the following steps:
receiving a service request sent by a terminal device, wherein the service request is used for requesting a functional component corresponding to a function contained in a target service, and the target service is a service supported by the terminal device;
calling a functional component corresponding to a function contained in the target service in the functional component library to generate a service request response message, wherein the service request response message comprises the called functional component corresponding to the function contained in the target service;
and sending the service request response message to the terminal equipment.
2. The method of claim 1, wherein the service request comprises an execution order of functions included in the target service;
the calling the functional component corresponding to the function included in the target service in the functional component library to generate a service request response message includes:
calling a functional component corresponding to a function contained in the target service in the functional component library;
combining the functional components called in the functional component library and corresponding to the functions contained in the target service into a target application program according to the execution sequence of the functions contained in the target service;
generating the service request response message based on the target application program.
3. The method of claim 1, wherein the functional component library is configured with a component management information table;
the component management information table includes one or more of functional component name data, functional component number data, functional component function data, functional component state data, and functional component called data of functional components existing and existing in the functional component library.
4. The method of claim 1, further comprising:
and sending component prompt information under the condition that the functional component library does not have the functional component indicated by the service request, wherein the component prompt information is used for indicating that the functional component library does not have the function of the functional component indicated by the service request.
5. The method of claim 4, wherein the functional component library is configured with a component functional requirement information table;
the component function requirement information table comprises one or more items of function name data, function number data, function requirement data and function state data of the function indicated by the component prompt information.
6. The method of claim 1, wherein the functional components comprise one or more of a business functional class component, a management functional class component, and a security functional class component.
7. The method of any one of claims 1 to 6, wherein the functional component comprises an Application Program Interface (API) or a Software Development Kit (SDK).
8. A function configuration method is applied to a terminal device, and comprises the following steps:
determining functions contained in a target service based on the target service, wherein the target service is a service supported by the terminal equipment;
generating a service request according to the functions contained in the target service and sending the service request to a server, wherein the service request is used for requesting functional components corresponding to the functions contained in the target service, and each functional component corresponds to one function;
receiving a service request response message sent by the server, wherein the service request response message comprises a functional component corresponding to a function contained in the target service;
and loading the functional components corresponding to the functions contained in the target service in the service request response message.
9. The method of claim 8, wherein the service request comprises an execution order of functions included in the target service;
the generating a service request and sending the service request to a server according to the function contained in the target service comprises the following steps:
acquiring a key function node of the target service in the executed process;
determining the execution sequence of the functions contained in the target service based on the key function nodes in the executed process;
and generating the service request and sending the service request to the server according to the functions contained in the target service and the execution sequence of the functions contained in the target service.
10. The method according to claim 9, wherein the service request response message includes a target application composed of functional components corresponding to the functions included in the target service according to the execution sequence of the functions included in the target service.
11. The method of claim 8, wherein the functional components comprise one or more of a business functional class component, a management functional class component, and a security functional class component.
12. The method according to any of claims 8 to 11, wherein the functional component comprises an application program interface, API, or a software development kit, SDK.
13. A server, comprising:
the storage module is used for storing a function component library, the function component library comprises at least one function component, and each function component corresponds to one function;
the terminal equipment comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a service request sent by the terminal equipment, the service request is used for requesting a functional component corresponding to a function contained in a target service, and the target service is a service supported by the terminal equipment;
the processing module is used for calling a functional component corresponding to the function contained in the target service in the functional component library and generating a service request response message, wherein the service request response message comprises the called functional component corresponding to the function contained in the target service;
and the sending module is used for sending the service request response message to the terminal equipment.
14. A terminal device, comprising:
the function determining module is used for determining functions contained in a target service based on the target service, wherein the target service is a service supported by the terminal equipment;
the generating module is used for generating a service request according to the functions contained in the target service, wherein the service request is used for requesting functional components corresponding to the functions contained in the target service, and each functional component corresponds to one function;
the sending module is used for sending the service request to a server;
a receiving module, configured to receive a service request response message sent by the server, where the service request response message includes a functional component corresponding to a function included in the target service;
and the loading module is used for loading the functional components corresponding to the functions contained in the target service in the service request response message.
15. A server comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the functional configuration method of any one of claims 1 to 7.
16. A terminal device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the functional configuration method of any one of claims 8 to 12.
17. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the functional configuration method according to any one of claims 1 to 7 or claims 8 to 12.
CN202010313077.XA 2020-04-20 2020-04-20 Function configuration method, server, terminal device and storage medium Pending CN111552460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010313077.XA CN111552460A (en) 2020-04-20 2020-04-20 Function configuration method, server, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010313077.XA CN111552460A (en) 2020-04-20 2020-04-20 Function configuration method, server, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN111552460A true CN111552460A (en) 2020-08-18

Family

ID=72003871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010313077.XA Pending CN111552460A (en) 2020-04-20 2020-04-20 Function configuration method, server, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN111552460A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615928A (en) * 2020-12-24 2021-04-06 上海优扬新媒信息技术有限公司 Data processing method, device and storage medium
CN112905172A (en) * 2021-03-16 2021-06-04 深圳市欢太科技有限公司 Component management method and device of application development framework, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478719A (en) * 2009-01-20 2009-07-08 中兴通讯股份有限公司 Configuration method and apparatus for service management system
US20170161032A1 (en) * 2015-12-02 2017-06-08 Alibaba Group Holding Limited Running applications using pre-generated components
CN109597661A (en) * 2018-10-26 2019-04-09 阿里巴巴集团控股有限公司 A kind of service function configuration method and device
CN109901838A (en) * 2019-01-17 2019-06-18 平安证券股份有限公司 Front end development approach, device, equipment and storage medium based on modularization
CN110851114A (en) * 2019-10-24 2020-02-28 山东中创软件工程股份有限公司 Business system development method and device, electronic equipment and storage medium
CN110908734A (en) * 2019-11-15 2020-03-24 网易(杭州)网络有限公司 Application combination method and device based on plug-in, terminal equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478719A (en) * 2009-01-20 2009-07-08 中兴通讯股份有限公司 Configuration method and apparatus for service management system
US20170161032A1 (en) * 2015-12-02 2017-06-08 Alibaba Group Holding Limited Running applications using pre-generated components
CN109597661A (en) * 2018-10-26 2019-04-09 阿里巴巴集团控股有限公司 A kind of service function configuration method and device
CN109901838A (en) * 2019-01-17 2019-06-18 平安证券股份有限公司 Front end development approach, device, equipment and storage medium based on modularization
CN110851114A (en) * 2019-10-24 2020-02-28 山东中创软件工程股份有限公司 Business system development method and device, electronic equipment and storage medium
CN110908734A (en) * 2019-11-15 2020-03-24 网易(杭州)网络有限公司 Application combination method and device based on plug-in, terminal equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615928A (en) * 2020-12-24 2021-04-06 上海优扬新媒信息技术有限公司 Data processing method, device and storage medium
CN112615928B (en) * 2020-12-24 2023-09-05 度小满科技(北京)有限公司 Data processing method, device and storage medium
CN112905172A (en) * 2021-03-16 2021-06-04 深圳市欢太科技有限公司 Component management method and device of application development framework, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US10531278B1 (en) Embedded subscriber identity module (eSIM) implementation on a wireless communication device using distributed ledger technology (DLT)
US9495543B2 (en) Method and apparatus providing privacy benchmarking for mobile application development
US8990929B2 (en) Auditing application activities
JP2008501173A (en) System and method for implementing a general application program interface
US8064947B2 (en) Portable device and information management method
CN111552460A (en) Function configuration method, server, terminal device and storage medium
US11625382B2 (en) Blockchain as a service method, apparatus, and system
CN114971827A (en) Account checking method and device based on block chain, electronic equipment and storage medium
CN111338716A (en) Data processing method and device based on rule engine and terminal equipment
CN114064712A (en) Data access method and device, electronic equipment and computer readable storage medium
US20210011736A1 (en) Method and apparatus for managing application
CN112148826A (en) Method, device, equipment and storage medium for integrating map service in business
CN111324645B (en) Block chain data processing method and device
CN115098297B (en) Consistent snapshot generation method and system for cloud primary storage data volume
US20060143715A1 (en) Method and apparatus for providing security policy enforcement
CN115269040B (en) Tenant business application expanding method, device and system
CN111275543B (en) Information processing method, device, server and storage medium
CA2595661C (en) Auditing software application activities
CN113850633B (en) Information pushing method and device
CN112650509B (en) Application installation package generation method and device, computer equipment and storage medium
CN115023931B (en) Method and network entity for service API release
US20230393820A1 (en) MVVM Architecture-Based Application Development Method and Terminal
CN115129394A (en) Microservice starting method and device, computer readable medium and electronic equipment
CN116661906A (en) Transaction data processing method and device and electronic equipment
CN116679950A (en) Application upgrading method and device for smart card 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