CN-122018936-A - Function management method, apparatus, electronic device, and computer-readable storage medium
Abstract
The embodiment of the application discloses a function management method, a function management device, electronic equipment and a computer readable storage medium, and belongs to the technical field of computers. The method comprises the steps of responding to receiving a configuration file, analyzing the configuration file to obtain target attributes and file types of the configuration file, determining a target specimen stratum module in registered local stratum modules based on the file types, and updating functions of the target local stratum module based on the target attributes. Therefore, the targeted updating of the functions of the target local stratum module can be realized on the premise that the local stratum module is not required to be recompiled, so that the flexible and efficient management of the functions of the local stratum module is realized, the updating efficiency is greatly improved, and the influence on user experience is avoided.
Inventors
- ZHANG YULONG
Assignees
- 深圳TCL新技术有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260113
Claims (10)
- 1. A method of function management, the method comprising: responding to received configuration files, analyzing the configuration files to obtain target attributes and file types of the configuration files; Determining a target specimen stratum module in the registered local stratum modules based on the file type; and updating the function of the target local layer module based on the target attribute.
- 2. The function management method according to claim 1, wherein the determining a destination specimen layer module among registered local layer modules based on the file type includes: and determining the target local layer module by customizing the characteristic attribute management service based on the file type and the corresponding relation between the preset file type and the registered local layer module.
- 3. The function management method according to claim 2, wherein before the determining the target local layer module by the custom feature attribute management service based on the file type and a correspondence between a preset file type and a registered local layer module, the method further comprises: Responding to a registration request sent by any local stratum module to the customized feature attribute management service, and acquiring the module type of the local stratum module and the file type supported by the local stratum module; When the module type is a preset type and the local layer module is provided with a system user identifier, registering the local layer module into the customized characteristic attribute management service, and storing the corresponding relation between the local layer module and the file type in the customized characteristic attribute management service.
- 4. The function management method according to claim 1, wherein updating the function of the target local layer module based on the target attribute comprises: Transmitting the target attribute to a given attribute management service of the manufacturing feature; And sending the target attribute to the target local layer module through the custom feature attribute management service so that the target local layer module adjusts the switch of the function of the target local layer module based on the target attribute.
- 5. The method of claim 1, wherein the parsing the configuration file in response to receiving the configuration file to obtain the target attribute and the file type of the configuration file comprises: In response to receiving a configuration file, acquiring first version information of the configuration file and second version information of a local configuration file; And when the first version information is larger than the second version information, analyzing the configuration file to obtain the target attribute and the file type of the configuration file.
- 6. The method for managing functions according to claim 1, wherein the parsing the configuration file to obtain the target attribute includes: analyzing the configuration file to obtain attribute configuration data; Acquiring an attribute name from the attribute configuration data; And when the attribute name comprises a target identifier, determining the attribute corresponding to the attribute name as the target attribute.
- 7. The function management method according to claim 1, wherein the profile is generated by: acquiring requirement description information; Determining a target attribute of the target local layer module based on the requirement description information; and generating the configuration file based on the target attribute of the target local layer module.
- 8. A function management device, the device comprising: The analysis module is used for responding to the received configuration file, analyzing the configuration file and obtaining a target attribute and a file type of the configuration file; the determining module is used for determining a target specimen stratum module in the registered local stratum modules based on the file type; and the updating module is used for updating the function of the target local layer module based on the target attribute.
- 9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the function management method according to any one of claims 1 to 7 when the computer program is executed.
- 10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the function management method according to any one of claims 1 to 7.
Description
Function management method, apparatus, electronic device, and computer-readable storage medium Technical Field The embodiment of the application relates to the technical field of computers, in particular to a function management method, a function management device, electronic equipment and a computer readable storage medium. Background The native layer module refers to a module developed in the native layer (native) in the C language and the c++ language. If the local layer module needs to be updated, the module needs to be recompiled by modifying codes. Because the user equipment does not have a compiling environment, if the function of the local layer module which is released to the user equipment is required to be updated, the function can only be updated in a system self-upgrading mode at present. The mode needs to recompile the version, has low efficiency, and needs to restart the user equipment in the upgrading process, thereby seriously affecting the user experience. Disclosure of Invention The embodiment of the application provides a function management method, a function management device, electronic equipment and a computer readable storage medium, which can realize efficient and flexible management of functions of a local layer module. In a first aspect, an embodiment of the present application provides a function management method, including: responding to received configuration files, analyzing the configuration files to obtain target attributes and file types of the configuration files; Determining a target specimen stratum module in the registered local stratum modules based on the file type; and updating the function of the target local layer module based on the target attribute. In one embodiment, the determining, based on the file type, the target specimen stratigraphic module among the registered local stratigraphic modules includes: and determining the target local layer module by customizing the characteristic attribute management service based on the file type and the corresponding relation between the preset file type and the registered local layer module. In one embodiment, before the determining, by the custom feature attribute management service, the target local layer module based on the file type and the correspondence between the preset file type and the registered local layer module, the method further includes: Responding to a registration request sent by any local stratum module to the customized feature attribute management service, and acquiring the module type of the local stratum module and the file type supported by the local stratum module; When the module type is a preset type and the local layer module is provided with a system user identifier, registering the local layer module into the customized characteristic attribute management service, and storing the corresponding relation between the local layer module and the file type in the customized characteristic attribute management service. In one embodiment, the updating the function of the target local layer module based on the target attribute includes: Transmitting the target attribute to a given attribute management service of the manufacturing feature; And sending the target attribute to the target local layer module through the custom feature attribute management service so that the target local layer module adjusts the switch of the function of the target local layer module based on the target attribute. In one embodiment, the responding to receiving the configuration file, analyzing the configuration file to obtain the target attribute and the file type of the configuration file includes: In response to receiving a configuration file, acquiring first version information of the configuration file and second version information of a local configuration file; And when the first version information is larger than the second version information, analyzing the configuration file to obtain the target attribute and the file type of the configuration file. In one embodiment, the parsing the configuration file to obtain the target attribute includes: Analyzing the configuration data to obtain attribute configuration data; Acquiring an attribute name from the attribute configuration data; And when the attribute name comprises a target identifier, determining the attribute corresponding to the attribute name as the target attribute. In one embodiment, the configuration file is generated by: acquiring requirement description information; Determining a target attribute of the target local layer module based on the requirement description information; and generating the configuration file based on the target attribute of the target local layer module. In a second aspect, an embodiment of the present application provides a function management apparatus, including: The analysis module is used for responding to the received configuration file, analyzing the configuration file and obtaining a target attribute and a file type o