CN113687860A - Dynamic configuration method, device, equipment and storage medium - Google Patents

Dynamic configuration method, device, equipment and storage medium Download PDF

Info

Publication number
CN113687860A
CN113687860A CN202110963290.XA CN202110963290A CN113687860A CN 113687860 A CN113687860 A CN 113687860A CN 202110963290 A CN202110963290 A CN 202110963290A CN 113687860 A CN113687860 A CN 113687860A
Authority
CN
China
Prior art keywords
configuration
terminal
dynamic
dynamic configuration
service type
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
CN202110963290.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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110963290.XA priority Critical patent/CN113687860A/en
Publication of CN113687860A publication Critical patent/CN113687860A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/42Data-driven translation
    • G06F40/47Machine-assisted translation, e.g. using translation memory

Abstract

The embodiment of the disclosure provides a dynamic configuration method, a dynamic configuration device, a dynamic configuration equipment and a storage medium, which are used in the technical field of networks. The problems that a large amount of development time is spent and the working efficiency is low in the prior art are solved. The method specifically comprises the following steps: acquiring configuration items in a dynamic configuration domain, wherein the configuration items in the dynamic configuration domain comprise newly added configuration items, the newly added configuration items are configured with processing functions, and the processing functions are used for executing different processing on data to be processed according to different service types of services to obtain different configuration values; acquiring a configuration request aiming at a service from a terminal, wherein the configuration request is used for requesting to acquire a configuration value corresponding to data to be processed; calling a processing function to process data to be processed, and determining a target service type and a configuration value corresponding to the target service type, wherein the target service type corresponds to a terminal; and sending the configuration value to the terminal.

Description

Dynamic configuration method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of network technologies, and in particular, to a dynamic configuration method, apparatus, device, and storage medium.
Background
In the service development process, after the server receives the configuration request of the terminal, the corresponding service configuration needs to be newly added according to the configuration request of the terminal. Specifically, the process of configuring the newly added service is as follows: and developing corresponding service configuration by a developer, then re-online, and finally processing the request of the terminal based on the newly online service configuration. This implementation works too inefficiently while taking up a significant amount of developer time.
Disclosure of Invention
The present disclosure provides a dynamic configuration method, apparatus, device and storage medium, so as to solve the problems of the prior art that a large amount of development time is spent and the work efficiency is low. The technical scheme of the disclosure is as follows:
according to a first aspect of the present disclosure, there is provided a dynamic configuration method, the method comprising: the method comprises the steps that a server acquires configuration items in a dynamic configuration domain, wherein the configuration items in the dynamic configuration domain comprise newly added configuration items, the newly added configuration items are configured with processing functions, the processing functions are used for executing different processing on data to be processed according to different service types of services to obtain different configuration values and configuration requests from terminals for the services, and the configuration requests are used for requesting to acquire the configuration values corresponding to the data to be processed; calling a processing function to process data to be processed, and determining a target service type and a configuration value corresponding to the target service type, wherein the target service type corresponds to a terminal; and sending the configuration value to the terminal.
Optionally, the invoking a processing function to process the data to be processed, and determining the target service type and the configuration value corresponding to the target service type includes: the server acquires the characteristic information of the terminal; and then, calling a processing function, determining a target service type corresponding to the terminal according to the characteristic information, and processing the data to be processed according to the target service type to obtain a configuration value corresponding to the target service type.
Optionally, the processing function includes a pre-configured processing function or an editable processing function.
Optionally, the configuration items of the dynamic configuration domain further include other configuration items, and each other configuration item corresponds to a service type of one service.
Optionally, the service is a multi-language translation service, the processing function is a multi-language translation function, the data to be processed is a text to be translated, the characteristic information of the terminal is the position information of the terminal, and the configuration value is the translated text; calling a processing function to process data to be processed, and determining a target service type and a configuration value corresponding to the target service type, wherein the method comprises the following steps: the server acquires the position information of the terminal; and then, calling a multi-language translation function, determining a target language translation type corresponding to the terminal according to the position information of the terminal, and processing the text to be translated according to the target language translation type to obtain the translated text corresponding to the translation type.
Optionally, obtaining the configuration item in the dynamic configuration domain includes: determining a dynamic configuration domain according to a pre-stored mapping relation and a dynamic configuration object; the mapping relation comprises a corresponding relation between the dynamic configuration object and the dynamic configuration domain; from the dynamic configuration field, the configuration item is read.
According to a second aspect of the present disclosure, a dynamic configuration apparatus is provided, which includes an obtaining module, a processing module, and a sending module. The acquisition module is configured to acquire configuration items in a dynamic configuration domain, the configuration items in the dynamic configuration domain include newly added configuration items, the newly added configuration items are configured with processing functions, and the processing functions are used for executing different processes on data to be processed according to different service types of services to obtain different configuration values; the acquisition module is also configured to acquire a configuration request for the service from the terminal, wherein the configuration request is used for requesting to acquire a configuration value corresponding to the data to be processed; the processing module is configured to call a processing function to process data to be processed, and determine a target service type and a configuration value corresponding to the target service type, wherein the target service type corresponds to the terminal; a transmitting module configured to transmit the configuration value to the terminal.
Optionally, the obtaining module is further configured to obtain feature information of the terminal; and the processing module is also configured to call a processing function, determine a target service type corresponding to the terminal according to the characteristic information, and process the data to be processed according to the target service type to obtain a configuration value corresponding to the target service type.
Optionally, the processing function includes a pre-configured processing function or an editable processing function.
Optionally, the configuration items of the dynamic configuration domain further include other configuration items, and each other configuration item corresponds to a service type of one service.
Optionally, the service is a multi-language translation service, the processing function is a multi-language translation function, the data to be processed is a text to be translated, the characteristic information of the terminal is the position information of the terminal, and the configuration value is the translated text; the acquisition module is also configured to acquire the position information of the terminal; the processing module is also configured to call a multi-language translation function, determine a target language translation type corresponding to the terminal according to the position information of the terminal, and process the text to be translated according to the target language translation type to obtain a translated text corresponding to the translation type.
Optionally, the processing module is further configured to determine a dynamic configuration domain according to a pre-stored mapping relationship and a dynamic configuration object; the mapping relation comprises a corresponding relation between the dynamic configuration object and the dynamic configuration domain; the acquisition module is further configured to read the configuration item from the dynamic configuration domain.
According to a third aspect of the present disclosure, there is provided a server comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement any of the above described optional dynamic configuration methods of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon instructions that, when executed by a processor of a dynamic configuration apparatus, enable the dynamic configuration apparatus to perform any one of the above-mentioned optional dynamic configuration methods of the first aspect.
According to a fifth aspect of the present disclosure, there is provided a computer program product containing instructions which, when run on a dynamic configuration apparatus, cause a computer to perform the optional dynamic configuration method as in any one of the first aspects.
The technical scheme provided by the disclosure at least brings the following beneficial effects: the configuration center adds configuration items in the dynamic configuration domain, the server reads the configuration items in the dynamic configuration domain to realize dynamic configuration, and as the configuration items comprise processing functions capable of processing a plurality of application scenes, when the server receives a configuration request of the terminal, the server searches the configuration items corresponding to the configuration request of the terminal, and processes the data to be processed contained in the configuration request of the terminal through the processing functions in the configuration items to obtain a configuration value corresponding to the data to be processed of the current scene. Therefore, the method and the device can realize a plurality of application scenes through the processing functions of the configuration items, so that the number of the configuration items in the configuration center is reduced, the memory occupation is reduced, and the flexibility of a single configuration item is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a block diagram illustrating a dynamic configuration system in accordance with an exemplary embodiment;
FIG. 2A is one of the flow diagrams illustrating a method of dynamic configuration according to an exemplary embodiment;
FIG. 2B is a second flowchart illustrating a method of dynamic configuration according to an exemplary embodiment;
FIG. 2C is one of the application diagrams illustrating a dynamic configuration in accordance with an exemplary embodiment;
FIG. 2D is a second illustration of an application of a dynamic configuration in accordance with an exemplary embodiment;
FIG. 3 is a third flowchart illustrating a method of dynamic configuration according to an exemplary embodiment;
FIG. 4 is a fourth flowchart illustrating a method of dynamic configuration according to an exemplary embodiment;
FIG. 5 is one of the logical block diagrams of a dynamically configurable apparatus shown in accordance with an exemplary embodiment;
fig. 6 is a second block diagram illustrating a logic structure of a dynamic configuration apparatus according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Based on the background technology, in the dynamic configuration method provided by the embodiments of the present disclosure, a server reads a configuration item in a dynamic configuration domain through a mapping relationship, a processing function is configured in a newly added configuration item included in the configuration item, and after a configuration request of a terminal is obtained, the processing function can be directly called to process data to be processed in the configuration request of the terminal, so as to determine a configuration value, and finally, the configuration value is sent to the terminal. Therefore, the configuration items are more flexibly issued to the server through a dynamic configuration mode, the server can solve the configuration request of the terminal, the work of redevelopment is avoided, and meanwhile, the processing function of the service configuration can be used for providing the configuration values of all scenes, so that the configuration of the configuration center is more flexible to use.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating a dynamic configuration system according to an example embodiment. The dynamic configuration system includes a terminal 110, a configuration center 120, and a server 130. The terminal 110 and the server 130 communicate with each other in a wired or wireless communication manner, and the configuration center 120 and the server 130 communicate with each other in a wired or wireless communication manner.
The server 130 may obtain the configuration item of the dynamic configuration domain and the configuration request of the terminal for the service through the terminal 110, then call the processing function to process the data to be processed, determine the target service type and the configuration value corresponding to the target service type, and finally send the configuration value to the terminal 110.
The terminal 110 may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR) device, a Virtual Reality (VR) device, and other devices that can install and use a content community application (e.g., a fast hand), and the specific form of the terminal is not particularly limited in this disclosure. The system can be used for man-machine interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, voice interaction or handwriting equipment and the like.
The configuration center 120 is used to store configuration items. Configuration center 120 and server 130 may be two separate devices; or may be a device with integrated functions. The server 130 and the terminal 110 may be two separate devices; or may be a device with integrated functions. The embodiment of the present invention is not limited thereto.
It should be noted that the dynamic configuration method provided in the embodiment of the present application is applied to a server. The execution subject of the dynamic configuration method provided by the embodiment of the application can be a dynamic configuration device. The apparatus may be an electronic device (e.g., a server); alternatively, the apparatus may be an Application (APP) installed for the electronic device, which provides a dynamic configuration function; alternatively, the apparatus may be a Central Processing Unit (CPU) in the electronic device; still alternatively, the apparatus may be a control module in the electronic device for performing the dynamic configuration method. The following describes in detail a dynamic configuration method provided in the embodiments of the present application, taking a server as an example.
After describing the application scenarios and implementation environments related to the present disclosure, the dynamic configuration method provided by the present disclosure will be described in detail with reference to the accompanying drawings. Referring to fig. 2A, fig. 2A is a flow chart illustrating a dynamic configuration method according to an exemplary embodiment, the social relationship establishing method is used in the dynamic configuration system shown in fig. 1, and the dynamic configuration method includes the following steps.
Step 201, the server obtains the configuration items in the dynamic configuration domain.
The configuration items in the dynamic configuration domain include newly added configuration items, the newly added configuration items are configured with processing functions, and the processing functions are used for executing different processing on the data to be processed according to different service types of the services to obtain different configuration values.
It should be understood that at least one configuration item is stored in the dynamic configuration field of the configuration center. The configuration item comprises a newly added configuration item, and for the service corresponding to the newly added configuration item, the processing function in the newly added configuration item can process the to-be-processed data of all application scenes corresponding to the service, so as to obtain a configuration value corresponding to the to-be-processed data in each application scene.
Optionally, with reference to fig. 2B, the step 201 obtains the configuration item in the dynamic configuration domain, and further includes:
step 2011, the server determines the dynamic configuration domain according to the pre-stored mapping relationship and the dynamic configuration object.
The mapping relation comprises a corresponding relation between the dynamic configuration object and the dynamic configuration domain.
Step 2012, read configuration items from the dynamic configuration field.
It should be understood that, in order to solve the problem that service configuration needs to be redeveloped, a processing mode for issuing dynamic configuration is provided, specifically: the configuration center sets a dynamic configuration domain, the server sets a dynamic configuration object, a mapping relation is established for the dynamic configuration domain and the dynamic configuration object, and the mapping relation is stored in the server.
In the subsequent service process, if the dynamic configuration domain of the configuration center is updated, the configuration center can send an updated instruction to the server, the server searches the dynamic configuration domain corresponding to the dynamic configuration object according to the updated instruction and the mapping relation, and then reads the configuration item in the found dynamic configuration domain; or, the server actively updates the newly added configuration item in the dynamic configuration domain of the configuration center every time the fixed time passes; or, after the server receives the configuration request of the terminal, the server finds the corresponding dynamic configuration domain according to the mapping relation, and then reads the configuration item in the found dynamic configuration domain to realize dynamic configuration issuing. Thus, the configuration items are obtained in a direct mapping mode, so that time consumption caused by redevelopment is avoided, and the implementation process is greatly simplified.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: according to the technical characteristics, the server can directly obtain the required configuration items by reading the newly added configuration items in the dynamic configuration domain, and the process of configuration development is avoided, so that the working efficiency is further improved.
Optionally, the configuration items of the dynamic configuration domain further include other configuration items, and each other configuration item corresponds to a service type of one service.
It should be understood that the configuration items of the dynamic configuration domain also include other configuration items, and the other configuration items directly store corresponding configuration values, which are only applied to one service type of the corresponding service. Other configuration items are selected for configuration, mostly because the service only contains one application scenario, and possibly because the service has fewer application scenarios. Compared with the mode that the configuration value of the data to be processed is determined through the processing function, the resource consumption required for directly creating the application scene corresponding to each service is less.
For example: as shown in fig. 2C, the configuration center includes a dynamic configuration domain and other configurations, where the dynamic configuration domain includes newly added configuration items and other configuration items, such as: the newly added configuration items comprise configuration items 1, 2 and 3; other configuration items include configuration item 4. Other configurations include system configurations, and the like. Generally speaking, for a service applied to a single scene, it is recommended to select the configuration item 4 to store corresponding configuration information, and for a service applied to multiple scenes, it is recommended to select the new configuration item 1, the configuration item 2 or the configuration item 3 to store corresponding configuration information. For a single scene, a newly added configuration item 1, a newly added configuration item 2 or a newly added configuration item 3 can be selected for processing, and only a processing function is not added in the newly added configuration item; for the service applied to multiple scenes, the configuration item 4 can also be selected to be processed, and only a few additional configuration items are needed. The present disclosure is not limited to the specific implementation. After the dynamic configuration domain of the configuration center updates the configuration items, the server reads the configuration items in the dynamic configuration domain through the dynamic configuration object, and after the server dynamically configures the configuration items, the server can process corresponding terminal services at any time according to the service processing request of the terminal.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: according to the technical characteristics, the dynamic configuration domain of the configuration center can select the configuration items according to the actual application requirements of the services, so that most of the configuration requirements can be met, and the utilization rate of the configuration center is improved.
Optionally, after the server obtains the newly added configuration item from the dynamic configuration domain of the configuration center, the newly added configuration item is stored locally in the server, so that subsequent calling is facilitated.
Step 202, the server obtains a configuration request for the service from the terminal.
The configuration request is used for requesting to acquire a configuration value corresponding to the data to be processed.
It should be understood that the configuration request of the terminal is used to request the server to process the data to be processed, and finally obtain the configuration value corresponding to the data to be processed.
Step 203, the server calls a processing function to process the data to be processed, and determines the target service type and the configuration value corresponding to the target service type.
Wherein, the target service type corresponds to the terminal.
It should be understood that the server needs to determine a newly added configuration item corresponding to the terminal from the obtained numerous newly added configuration items according to the configuration request of the terminal, process the data to be processed of the terminal according to the processing function in the newly added configuration item after the newly added configuration item corresponding to the terminal is determined so as to determine the target service type, and finally, the processing function outputs the configuration value corresponding to the data to be processed according to the target service type.
Specifically, the target service type is used to indicate a service type corresponding to the terminal in the current scenario.
Illustratively, the configuration value may be any one of a boolean value, a string, text, and the like.
For example, after a developer develops a configuration item for a certain service, the configuration item is uploaded to a configuration center, and in conjunction with fig. 2D, the configuration center includes a plurality of configuration items, such as: configuration item 1 and configuration item 2, and so on.
After the server receives the configuration request of the terminal, the server can firstly inquire whether the corresponding configuration item is stored locally, and if not, the configuration item corresponding to the configuration request of the terminal is read in the configuration center. After reading the configuration item, firstly judging whether the configuration item supports multi-scene processing, wherein the specific judgment mode is that an attribute bar of the configuration item is consulted, and whether the multi-scene processing is supported is determined according to the marking information of the attribute bar; after the configuration item is determined to support multi-scene processing, whether the configuration item is configured with a processing function is judged, and after the configuration item is determined to be configured with the processing function, the processing function is executed, and finally, a configuration value required by the terminal is obtained. If the configuration item does not support multi-scenario processing or does not include a processing function, the configuration value corresponding to the configuration item is directly output.
And step 204, the server sends the configuration value to the terminal.
In this step, the server sends the configuration value to the terminal after determining the configuration value.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as can be seen from steps 201 to 204, the configuration center adds configuration items in the dynamic configuration domain, the server reads the configuration items in the dynamic configuration domain to implement dynamic configuration, because the configuration items include processing functions capable of processing a plurality of application scenarios, when the server receives a configuration request from the terminal, the server searches for the configuration items corresponding to the configuration request from the terminal, and processes the to-be-processed data included in the configuration request from the terminal through the processing functions in the configuration items to obtain a configuration value corresponding to the to-be-processed data in the current scenario. Therefore, the method and the device can realize a plurality of application scenes through the processing functions of the configuration items, so that the number of the configuration items in the configuration center is reduced, the memory occupation is reduced, and the flexibility of a single configuration item is improved.
Further, with reference to fig. 2A, as shown in fig. 3, in step 203, a processing function is called to process the data to be processed, and the target service type and the configuration value corresponding to the target service type are determined, which specifically includes:
step 2031a, the server obtains the characteristic information of the terminal.
It should be understood that the characteristic information of the terminal is information related to a service, and a corresponding target service can be determined according to the characteristic information. The specific acquisition mode is as follows: the server can acquire the characteristic information of the terminal related to the configuration request according to the configuration request sent by the terminal; an instruction to acquire the feature information may also be sent to the terminal to acquire the feature information, which is not limited by this disclosure.
Illustratively, the characteristic information of the terminal includes a location of the terminal, an identification of the terminal, and the like.
Step 2032a, the server calls a processing function, determines a target service type corresponding to the terminal according to the characteristic information, and processes the data to be processed according to the target service type to obtain a configuration value corresponding to the target service type.
It should be understood that the server calls a processing function corresponding to the service, processes the acquired feature information of the terminal to obtain a target service type corresponding to the feature information, and finally processes the data to be processed of the terminal in combination with the target service type to obtain a configuration value corresponding to the data to be processed.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: the server can quickly determine the target service according to the characteristic information of the terminal, and then processes the data to be processed according to the type of the target service by combining the processing function so as to obtain the required configuration value.
With reference to fig. 2A, as shown in fig. 4, in an implementation manner of the embodiment of the present disclosure, the service is a multi-language translation service, the processing function is a multi-language translation function, the data to be processed is a text to be translated, the characteristic information of the terminal is location information of the terminal, and the configuration value is a translated text, where the step 203 may specifically include steps 2031b to 2032 b.
Step 2031b, the server obtains the location information of the terminal.
It should be understood that the server may determine the current location information of the terminal according to the configuration request for the service sent by the terminal.
For example, after the terminal sends the translation request of the multilingual translation service, the server may determine the location information of the terminal according to the terminal IP information included in the translation request.
Step 2032b, the server calls the multilingual translation function, determines the target language translation type corresponding to the terminal according to the location information of the terminal, and processes the text to be translated according to the target language translation type to obtain the translated text corresponding to the translation type.
It should be understood that the server may determine the language type mainly used by the location according to the current location information of the terminal, and perform translation in combination with the language type, thereby obtaining a final translated dynamic text.
The present disclosure describes, for example, a usage scenario of a dynamic configuration method in a multi-language translation example, and the dynamic configuration method may also be applied to other scenarios, such as: beauty scenes, etc. The present disclosure is not so limited.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: the server can determine the current position information of the terminal according to the configuration request of the service sent by the terminal, and can determine the language type mainly used by the position according to the position information, thereby providing a translation function according to the language type. Therefore, the development of multi-language translation service is avoided, and the dynamic configuration method can be directly realized.
Optionally, the processing function includes a pre-configured processing function or an editable processing function.
It should be understood that the processing function in the newly added configuration item may be pre-configured and may be called directly, or may be called after editing. The editable processing function is obtained after the edit page is edited in response to the adding operation, and the editable processing function is stored after the edit. The edit page supports developers to add or subtract processing functions to obtain the final editable processing function. The editing page can display the configuration items to be edited, related controls, editing prompt information and other contents.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: according to the technical characteristics, the processing function can be configured in advance or can be customized. In this way, the applicability of the processing function is improved.
The method provided by the embodiments of the present disclosure is described in detail above with reference to fig. 2A-4. In order to implement the functions, the dynamic configuration device includes hardware structures and/or software modules for executing the functions, and the hardware structures and/or software modules for executing the functions may form a dynamic configuration device. Those of skill in the art will readily appreciate that the present disclosure can be implemented in hardware or a combination of hardware and computer software for implementing the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The embodiment of the present disclosure may perform functional module division on the dynamic configuration device according to the above method example, for example, the dynamic configuration device may divide each functional module corresponding to each function, or may integrate two or more functions into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiments of the present disclosure is illustrative, and is only one division of logic functions, and there may be another division in actual implementation.
Hereinafter, a dynamic configuration apparatus provided by an embodiment of the present disclosure is described in detail with reference to fig. 5. It should be understood that the description of the apparatus embodiments corresponds to the description of the method embodiments, and therefore, for brevity, details are not repeated here, since the details that are not described in detail may be referred to the above method embodiments.
Fig. 5 is a block diagram illustrating a logical structure of another dynamic configuration apparatus according to an example embodiment. Referring to fig. 5, the dynamic configuration apparatus includes: an acquisition module 510, a processing module 520, and a sending module 530.
An obtaining module 510, configured to obtain configuration items in a dynamic configuration domain, where the configuration items in the dynamic configuration domain include a newly added configuration item, and the newly added configuration item is configured with a processing function, and the processing function is configured to perform different processing on data to be processed according to different service types of services to obtain different configuration values; for example, in conjunction with fig. 2A, the obtaining module 510 may be configured to perform step 201.
An obtaining module 510, further configured to obtain a configuration request for a service from a terminal, where the configuration request is used to request to obtain a configuration value corresponding to data to be processed; for example, in conjunction with fig. 2A, the obtaining module 510 may be configured to perform step 202.
The processing module 520 is configured to call a processing function to process data to be processed, and determine a target service type and a configuration value corresponding to the target service type, where the target service type corresponds to the terminal; for example, in conjunction with fig. 2A, processing module 520 may be used to perform step 203.
A transmitting module 530 configured to transmit the configuration value to the terminal; for example, in conjunction with fig. 2A, the sending module 530 may be configured to perform step 204.
Optionally, the obtaining module 510 is further configured to obtain feature information of the terminal. For example, in conjunction with fig. 3, the obtaining module 510 may be configured to perform step 2031 a.
The processing module 520 is configured to call a processing function, determine a target service type corresponding to the terminal according to the characteristic information, and process the data to be processed according to the target service type to obtain a configuration value corresponding to the target service type; for example, in conjunction with fig. 3, processing module 520 may be configured to perform step 2032 a.
Optionally, the processing function includes a pre-configured processing function or an editable processing function.
Optionally, the configuration items of the dynamic configuration domain further include other configuration items, and each other configuration item corresponds to a service type of one service.
Optionally, the service is a multi-language translation service, the processing function is a multi-language translation function, the data to be processed is a text to be translated, the characteristic information of the terminal is the position information of the terminal, and the configuration value is the translated text; the obtaining module 510 is further configured to obtain location information of the terminal. For example, in conjunction with fig. 4, the obtaining module 510 may be configured to perform step 2031 b.
The processing module 520 is configured to call a multi-language translation function, determine a target language translation type corresponding to the terminal according to the position information of the terminal, and process the text to be translated according to the target language translation type to obtain a translated text corresponding to the translation type; for example, in conjunction with fig. 4, processing module 520 may be configured to perform step 2032 b.
Optionally, the processing module 520 is further configured to determine a dynamic configuration domain according to a pre-stored mapping relationship and a dynamic configuration object; the mapping relation comprises a corresponding relation between the dynamic configuration object and the dynamic configuration domain; for example, in conjunction with fig. 2B, the obtaining module 510 may be configured to perform step 2011.
The obtaining module 510 is further configured to read the configuration item from the dynamic configuration field. For example, in conjunction with fig. 2B, the obtaining module 510 may be configured to perform step 2012.
Of course, the path selection device provided by the embodiment of the present disclosure includes, but is not limited to, the above modules, for example, the path selection device may further include a storage module 540. The storage module 540 may be configured to store program codes of the write path selection apparatus, and may also be configured to store data generated by the write path selection apparatus during operation, such as data in a write request.
Fig. 6 shows a schematic diagram of a possible structure of the server involved in the above embodiment. As shown in fig. 6, the server 60 includes a processor 601 and a memory 602.
It will be appreciated that the server 60 shown in fig. 6 may implement all of the functionality of the dynamic configuration method described above. The functions of the various modules in the dynamic configuration apparatus described above may be implemented in the processor 601 of the server 60. The storage module of the dynamic configuration apparatus corresponds to the memory 602 of the server 60.
Among other things, processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 60 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 602 is used to store at least one instruction for execution by the processor 601 to implement the dynamic configuration method provided by the disclosed method embodiments.
In some embodiments, the server 60 may also optionally include: a peripheral interface 603 and at least one peripheral. The processor 601, memory 602, and peripheral interface 603 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 603 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 604, a touch screen display 605, a camera 606, an audio circuit 607, a positioning component 608, and a power supply 609.
The peripheral interface 603 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 601 and the memory 602. In some embodiments, the processor 601, memory 602, and peripheral interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 601, the memory 602, and the peripheral interface 603 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 604 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 604 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 604 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 604 may communicate with other dynamically configurable devices via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 6G), Wireless local area networks, and/or Wi-Fi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 604 may also include NFC (Near Field Communication) related circuits, which are not limited by this disclosure.
The display 605 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 605 is a touch display screen, the display screen 605 also has the ability to capture touch signals on or over the surface of the display screen 605. The touch signal may be input to the processor 601 as a control signal for processing. At this point, the display 605 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 605 may be one, providing the front panel of dynamic configuration device 60; the Display 605 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 606 is used to capture images or video. Optionally, camera assembly 606 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the dynamic configuration device and the rear camera is disposed on the back of the dynamic configuration device. Audio circuitry 607 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals into the processor 601 for processing, or inputting the electric signals into the radio frequency circuit 404 to realize voice communication. For stereo acquisition or noise reduction purposes, the microphones may be multiple and placed at different locations on the dynamic configuration apparatus 60. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 601 or the radio frequency circuit 604 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 607 may also include a headphone jack.
The Location component 608 is used to locate the current geographic Location of the dynamically configurable device 60 to implement navigation or LBS (Location Based Service). The Positioning component 608 can be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, the russian graves System, or the european union's galileo System.
A power supply 609 is used to power the various components in the dynamic configuration device 60. The power supply 609 may be ac, dc, disposable or rechargeable. When the power supply 609 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, dynamic configuration device 60 also includes one or more sensors 610. The one or more sensors 610 include, but are not limited to: acceleration sensors, gyroscope sensors, pressure sensors, fingerprint sensors, optical sensors, and proximity sensors.
The acceleration sensor may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the dynamic configuration apparatus 60. The gyro sensor may detect the body direction and the rotation angle of the dynamic configuration device 60, and the gyro sensor may acquire the 3D motion of the user to the dynamic configuration device 60 in cooperation with the acceleration sensor. The pressure sensors may be disposed on the side bezel of dynamic configuration device 60 and/or underlying touch display 606. When the pressure sensor is disposed on the side frame of the dynamic configuration device 60, a user holding signal to the dynamic configuration device 60 can be detected. The fingerprint sensor is used for collecting fingerprints of users. The optical sensor is used for collecting the intensity of ambient light. Proximity sensors, also known as distance sensors, are typically provided on the front panel of the dynamic configuration apparatus 60. The proximity sensor is used to capture the distance between the user and the front of the dynamic configuration device 60.
The present disclosure also provides a computer-readable storage medium having instructions stored thereon, which, when executed by a processor of a dynamic configuration apparatus, enable the dynamic configuration apparatus to perform the dynamic configuration method provided by the present disclosure.
Embodiments of the present disclosure also provide a computer program product containing instructions, which when run on a dynamic configuration apparatus, cause the dynamic configuration apparatus to perform the dynamic configuration method provided in the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for dynamic configuration, comprising:
acquiring configuration items in a dynamic configuration domain, wherein the configuration items in the dynamic configuration domain comprise newly added configuration items, the newly added configuration items are configured with processing functions, and the processing functions are used for executing different processing on data to be processed according to different service types of services to obtain different configuration values;
acquiring a configuration request aiming at a service from a terminal, wherein the configuration request is used for requesting to acquire a configuration value corresponding to data to be processed;
calling the processing function to process the data to be processed, and determining a target service type and a configuration value corresponding to the target service type, wherein the target service type corresponds to the terminal;
and sending the configuration value to the terminal.
2. The dynamic configuration method according to claim 1, wherein the calling the processing function to process the data to be processed and determining a target service type and a configuration value corresponding to the target service type includes:
acquiring characteristic information of the terminal;
and calling the processing function, determining the target service type corresponding to the terminal according to the characteristic information, and processing the data to be processed according to the target service type to obtain a configuration value corresponding to the target service type.
3. The dynamic configuration method of claim 2,
the processing function includes a pre-configured processing function or an editable processing function.
4. A dynamic configuration method as claimed in claim 3,
the configuration items of the dynamic configuration domain also comprise other configuration items, and each other configuration item corresponds to one service type of one service.
5. The dynamic configuration method according to any of claims 1-4, wherein the service is a multilingual translation service, the processing function is a multilingual translation function, the data to be processed is a text to be translated, the characteristic information of the terminal is the location information of the terminal, and the configuration value is the translated text; the calling the processing function to process the data to be processed and determine a target service type and a configuration value corresponding to the target service type, including:
acquiring the position information of the terminal;
and calling the multi-language translation function, determining a target language translation type corresponding to the terminal according to the position information of the terminal, and processing the text to be translated according to the target language translation type to obtain a translated text corresponding to the translation type.
6. The dynamic configuration method according to claim 1, wherein the obtaining the configuration items in the dynamic configuration domain comprises:
determining the dynamic configuration domain according to a mapping relation and a dynamic configuration object which are stored in advance; the mapping relation comprises the corresponding relation between the dynamic configuration object and the dynamic configuration domain;
reading the configuration item from the dynamic configuration field.
7. A dynamic configuration apparatus, comprising:
the system comprises an acquisition module, a configuration module and a processing module, wherein the acquisition module is configured to acquire configuration items in a dynamic configuration domain, the configuration items in the dynamic configuration domain comprise newly added configuration items, the newly added configuration items are configured with processing functions, and the processing functions are used for executing different processing on data to be processed according to different service types of services to obtain different configuration values;
the obtaining module is further configured to obtain a configuration request for a service from a terminal, where the configuration request is used to request to obtain a configuration value corresponding to data to be processed;
the processing module is configured to call the processing function to process the data to be processed, and determine a target service type and a configuration value corresponding to the target service type, wherein the target service type corresponds to the terminal;
a transmitting module configured to transmit the configuration value to a terminal.
8. A server, characterized in that the server comprises:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the dynamic configuration method of any of claims 1-6.
9. A computer-readable storage medium having instructions stored thereon, wherein the instructions in the computer-readable storage medium, when executed by a processor of a dynamic configuration apparatus, enable the dynamic configuration apparatus to perform the dynamic configuration method of any one of claims 1-6.
10. A computer program product comprising instructions that, when executed by a dynamic configuration device, implement the dynamic configuration method of any of claims 1-6.
CN202110963290.XA 2021-08-20 2021-08-20 Dynamic configuration method, device, equipment and storage medium Pending CN113687860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110963290.XA CN113687860A (en) 2021-08-20 2021-08-20 Dynamic configuration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110963290.XA CN113687860A (en) 2021-08-20 2021-08-20 Dynamic configuration method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113687860A true CN113687860A (en) 2021-11-23

Family

ID=78581122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110963290.XA Pending CN113687860A (en) 2021-08-20 2021-08-20 Dynamic configuration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113687860A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1026867A2 (en) * 1998-12-22 2000-08-09 Nortel Networks Corporation System and method to support configurable policies of services in directory-based networks
EP3026614A1 (en) * 2014-11-25 2016-06-01 Lionbridge Technologies, Inc. Information technology platform for language translations and task management
CN107515862A (en) * 2017-09-01 2017-12-26 北京百度网讯科技有限公司 Voice translation method, device and server
CN110781676A (en) * 2019-09-30 2020-02-11 腾讯科技(深圳)有限公司 Text processing method, device and system, electronic equipment and storage medium
CN111177318A (en) * 2019-12-23 2020-05-19 杭州安恒信息技术股份有限公司 Method, device and computer readable storage medium for executing international business
CN112596841A (en) * 2020-12-24 2021-04-02 厦门亿联网络技术股份有限公司 Interface language switching method, device, equipment and storage medium
CN112765997A (en) * 2020-12-31 2021-05-07 平安资产管理有限责任公司 Multi-language conversion method, device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1026867A2 (en) * 1998-12-22 2000-08-09 Nortel Networks Corporation System and method to support configurable policies of services in directory-based networks
EP3026614A1 (en) * 2014-11-25 2016-06-01 Lionbridge Technologies, Inc. Information technology platform for language translations and task management
CN107515862A (en) * 2017-09-01 2017-12-26 北京百度网讯科技有限公司 Voice translation method, device and server
CN110781676A (en) * 2019-09-30 2020-02-11 腾讯科技(深圳)有限公司 Text processing method, device and system, electronic equipment and storage medium
CN111177318A (en) * 2019-12-23 2020-05-19 杭州安恒信息技术股份有限公司 Method, device and computer readable storage medium for executing international business
CN112596841A (en) * 2020-12-24 2021-04-02 厦门亿联网络技术股份有限公司 Interface language switching method, device, equipment and storage medium
CN112765997A (en) * 2020-12-31 2021-05-07 平安资产管理有限责任公司 Multi-language conversion method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭云川 等: "基于动态模板的策略翻译及配置方法", 《通信学报》, vol. 40, no. 12, pages 138 - 147 *

Similar Documents

Publication Publication Date Title
CN107885533B (en) Method and device for managing component codes
CN110659127A (en) Method, device and system for processing task
CN108717365B (en) Method and device for executing function in application program
CN111462742B (en) Text display method and device based on voice, electronic equipment and storage medium
CN112749362B (en) Control creation method, device, equipment and storage medium
CN110932873A (en) Group communication method, terminal equipment, server and communication system
CN111459466B (en) Code generation method, device, equipment and storage medium
CN112581358A (en) Training method of image processing model, image processing method and device
CN110677713B (en) Video image processing method and device and storage medium
CN111125602B (en) Page construction method, device, equipment and storage medium
CN115454642A (en) Thread memory pool management method, device, equipment and storage medium
CN112612539B (en) Data model unloading method and device, electronic equipment and storage medium
CN111862972B (en) Voice interaction service method, device, equipment and storage medium
CN109783176A (en) Switch the method and apparatus of the page
CN110737692A (en) data retrieval method, index database establishment method and device
CN112992127A (en) Voice recognition method and device
CN114332118A (en) Image processing method, device, equipment and storage medium
CN112905328B (en) Task processing method, device and computer readable storage medium
CN113687860A (en) Dynamic configuration method, device, equipment and storage medium
CN111145723B (en) Method, device, equipment and storage medium for converting audio
CN114238074A (en) Debugging method, device and equipment for sub-application and storage medium
CN111694521B (en) Method, device and system for storing file
CN110336881B (en) Method and device for executing service processing request
CN112860365A (en) Content display method and device, electronic equipment and readable storage medium
CN112260845A (en) Method and device for accelerating data transmission

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