CN111538484A - Multi-project modular management method, biological unlocking model acquisition method and product - Google Patents

Multi-project modular management method, biological unlocking model acquisition method and product Download PDF

Info

Publication number
CN111538484A
CN111538484A CN202010223258.3A CN202010223258A CN111538484A CN 111538484 A CN111538484 A CN 111538484A CN 202010223258 A CN202010223258 A CN 202010223258A CN 111538484 A CN111538484 A CN 111538484A
Authority
CN
China
Prior art keywords
module
content
general
customized
customization
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.)
Granted
Application number
CN202010223258.3A
Other languages
Chinese (zh)
Other versions
CN111538484B (en
Inventor
丁岩
任彦斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TIANJIN JIHAO TECHNOLOGY CO LTD
Original Assignee
Beijing Megvii 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 Megvii Technology Co Ltd filed Critical Beijing Megvii Technology Co Ltd
Priority to CN202010223258.3A priority Critical patent/CN111538484B/en
Publication of CN111538484A publication Critical patent/CN111538484A/en
Application granted granted Critical
Publication of CN111538484B publication Critical patent/CN111538484B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

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 relates to a customized module and general module acquisition method, a biological unlocking model acquisition method, a device, a computer device and a storage medium. The method comprises the following steps: splitting each item according to a preset granularity to obtain a plurality of content blocks corresponding to each item; wherein the content block comprises a file and/or a code segment; if the content block is the general content among the projects, the content block is stored in the general module; and if the content block is not the general content among the projects, determining a target storage module according to the content block. The method can improve the maintenance efficiency of the project codes.

Description

Multi-project modular management method, biological unlocking model acquisition method and product
Technical Field
The application relates to the technical field of computers, in particular to a multi-project modular management method, a biological unlocking model obtaining method and a product.
Background
With the development of code engineering, for engineering in one field (such as fingerprint unlocking engineering), the same code frame is often shared, and then different projects are designed in a customized manner based on different requirements of different manufacturers. In general, different projects often derive their own code branches on the basis of common code, and then maintain the code of each project based on different project requirements.
However, the conventional code maintenance method causes a large amount of code included in one project, and when maintenance or update is required, operation is required for each project, so that maintenance efficiency is low.
Disclosure of Invention
In view of the above, it is necessary to provide a multi-item modular management method, a biological unlocking model acquisition method, an apparatus, a computer device, and a storage medium capable of improving maintenance efficiency.
A method of modular management of a plurality of items, the method comprising:
splitting each item according to a preset granularity to obtain a plurality of content blocks corresponding to each item; wherein the content block comprises a file and/or a code segment;
if the content block is the general content among the projects, the content block is stored in the general module;
and if the content block is not the general content among the projects, determining a target storage module according to the content block.
In one embodiment, the target storage module is a general module or a customized module; the determining a target storage module according to the content block includes:
judging whether the content block is a code segment;
if yes, storing the code segment to a general module or a custom module according to the custom content contained in the code segment;
if not, the content block is stored in the customization module of the corresponding project, and the soft link of the content block is reserved in the general module.
In one embodiment, the saving the code segment to a general-purpose module or a custom-made module according to the customized content included in the code segment includes:
splitting the code segments according to the updating granularity to obtain a plurality of sub-code segments; wherein the update granularity is less than the preset granularity;
judging whether each child code segment is multiplexed in other projects;
if yes, storing the sub-code segments to the general module, and generating switch options corresponding to the sub-code segments in the customization module corresponding to each project;
if not, generating a first interface corresponding to the sub-code segment, saving the first interface to the general module, and saving the sub-code segment to the customization module of the corresponding project.
In one embodiment, the method further comprises:
judging whether the updated content aiming at the content block is general content among the items;
if not, modifying the customization module of the corresponding project according to the updated content;
and if so, modifying the general module or the customized module according to the influence of the updated content on other projects.
In one embodiment, the modifying the generic module or the customized module according to the influence of the updated content on other items includes:
judging whether the updated content affects other items;
if yes, determining to modify the general module or the customized module according to the modification type of the updated content;
if not, the universal module is modified according to the updated content.
In one embodiment, the determining to modify the generic module or the customized module according to the modification type of the updated content includes:
judging whether the modification type of the updated content is general modification or not;
if not, adding a second interface with empty content in the general module, and modifying the customization module of the corresponding project according to the updated content; the second interface is used for calling a content block corresponding to the updated content in the customization module;
and if so, modifying the universal module according to the updated content.
A biological unlock model acquisition method, the method comprising:
acquiring a general module and a customized module; the universal module and the customized module are modules which are modularly managed by adopting the method of any one of the embodiments;
and compiling by calling the general module and the customized module corresponding to each biological unlocking item to obtain a biological unlocking model corresponding to each biological unlocking item.
A modular management apparatus for multiple items, the apparatus comprising:
the splitting module is used for splitting each item according to a preset granularity to obtain a plurality of content blocks corresponding to each item; wherein the content block comprises a file and/or a code segment;
the processing module is used for storing the content blocks to the general module when the content blocks are general content among the projects; and when the content block is not the general content among the items, determining a target storage module according to the content block.
A biological unlock model acquisition device, the device comprising:
the acquisition module is used for acquiring the general module and the customization module; the universal module and the customized module are modules which are modularly managed by adopting the method of any one of the above embodiments;
and the compiling module is used for compiling the customized content corresponding to each biological unlocking item in the universal module and the customized module by calling, so as to obtain a biological unlocking model corresponding to each biological unlocking item.
A modular management system for multiple items, the system comprising a custom module and a generic module;
the universal module stores universal contents of a plurality of projects;
the customization module stores customized contents of a plurality of projects, and the customized contents correspond to at least one of a customized interface, a switch option and a soft link;
the customization interface, the switch option and the soft link are stored in the general module and used for calling the customization content of the corresponding item in the customization module according to the calling strategy in the general module.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
splitting each item according to a preset granularity to obtain a plurality of content blocks corresponding to each item; wherein the content block comprises a file and/or a code segment;
if the content block is the general content among the projects, the content block is stored in the general module;
and if the content block is not the general content among the projects, determining a target storage module according to the content block.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring a general module and a customized module; the universal module and the customized module are modules which are modularly managed by adopting the method of any one of the embodiments;
and compiling by calling the general module and the customized module corresponding to each biological unlocking item to obtain a biological unlocking model corresponding to each biological unlocking item.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
splitting each item according to a preset granularity to obtain a plurality of content blocks corresponding to each item; wherein the content block comprises a file and/or a code segment;
if the content block is the general content among the projects, the content block is stored in the general module;
and if the content block is not the general content among the projects, determining a target storage module according to the content block.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a general module and a customized module; the universal module and the customized module are modules which are modularly managed by adopting the method of any one of the embodiments;
and compiling by calling the general module and the customized module corresponding to each biological unlocking item to obtain a biological unlocking model corresponding to each biological unlocking item.
According to the multi-item modular management method, the biological unlocking model obtaining method and device, the computer equipment and the storage medium, each item is split according to the preset granularity through the computer equipment, and a plurality of content blocks corresponding to each item are obtained. When the content blocks are the general content among the projects, the content blocks are stored in the general modules so that different projects can call codes and/or files in the same general modules, a large number of repeated codes and files are reduced, and maintenance of all the general parts of the projects in one project can be realized by once developing and maintaining the general modules, such as general bug repair or general update of new characteristics, so that the complexity of project development, integration and maintenance can be effectively reduced, the efficiency and universality of the project development are improved, the efficiency of the project development and maintenance is greatly improved, and the development and maintenance cost is reduced. Meanwhile, when the content block is not the general content in each project, the content block is determined to contain the customized content, and the customized modules of different projects are determined according to the customized content of the content block so as to distinguish the customized parts of the different projects, so that the projects meet the requirement of differentiation, and the application scene is more flexible. When the engineering is a biological unlocking engineering, an unmanned aerial vehicle control engineering, an intelligent home control engineering or an automatic driving engineering, the development and maintenance efficiency of different engineering can be greatly improved, and the development and maintenance cost of different projects under the engineering is reduced.
Drawings
FIG. 1 is a flow diagram illustrating a method for modular management of multiple items, according to an embodiment;
FIG. 1a is a diagram illustrating a custom module and a general module obtained by splitting different items according to an embodiment;
FIG. 2 is a flow chart illustrating a method for modular management of multiple items according to another embodiment;
FIG. 3 is a flow chart illustrating a method for modular management of multiple items according to yet another embodiment;
FIG. 4 is a flow chart illustrating a method for modular management of multiple items according to yet another embodiment;
FIG. 5 is a flow chart illustrating a method for modular management of multiple items according to yet another embodiment;
FIG. 6 is a diagram illustrating a detailed partitioning of generic and custom modules provided in one embodiment;
fig. 7 is a schematic flowchart of a biological unlock model acquisition method according to an embodiment;
FIG. 8 is a block diagram of a modular management appliance for multiple items, according to one embodiment;
fig. 9 is a block diagram illustrating a configuration of a biological unlock model acquisition apparatus according to an embodiment;
FIG. 10 is a diagram showing an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
It should be noted that the execution subjects of the following method embodiments may be a multi-project modular management apparatus and a biological unlocking model obtaining apparatus, which may be implemented as part of or all of the computer device by software, hardware, or a combination of software and hardware. The following method embodiments are described by taking the execution subject as the computer device as an example.
Fig. 1 is a flowchart illustrating a method for modular management of multiple items according to an embodiment. The embodiment relates to a specific process. As shown in fig. 1, includes:
s11, splitting each item according to a preset granularity to obtain a plurality of content blocks corresponding to each item; wherein the content block comprises a file and/or a code segment.
It should be noted that, for projects in a field, such as fingerprint unlocking projects, the same code frame is often used. However, because different manufacturers have different requirements, the requirements of one manufacturer can be developed according to one project, and different manufacturers can implement function differentiation by developing different projects, so that each project can usually include multiple projects, when multiple projects are included, each project includes codes, files, or files and codes for implementing functions, and the files and/or code segments included in each project can be compiled to generate a software version, thereby depending on hardware devices to complete specific functions. For example, by compiling files and/or code segments of the fingerprint identification item, fingerprint identification software can be generated and loaded in a system of a fingerprint lock, so that functions such as fingerprint unlocking and the like are realized. The multi-project customization module and the general module described in the embodiment of the present application may be used in projects in multiple technical fields, such as a biological unlocking project, an unmanned aerial vehicle control project, an intelligent home control project, an automatic driving project, and the like, and the embodiment of the present application is not limited.
Specifically, the computer device splits all the projects in one project, which may be splitting each project according to a preset granularity, so as to obtain a plurality of content blocks corresponding to each project. The preset granularity may be a preset size of the splitting unit, such as 5M, 10M, and so on. Each content block may include a code segment composed of code, and may also include a referenced file, such as a user development file, a specification, and other document files.
S12A, if the content block is the general content between the projects, saving the content block to the general module.
S12B, if the content block is not the general content among the items, determining a target storage module according to the content block.
Specifically, the computer device may determine whether each content block is common content between items one by one, for example, may determine whether each content block is the same as a content block in another item, and is capable of being common between items. Optionally, each content block and the content blocks split from other items except the located item may be compared pairwise, for example, whether the code segments are consistent or whether the attribute of the file and the content of the file are the same may be determined.
If the content block is general content among the projects, it can be determined that a code segment and/or a file such as the content block needs to be used in each project, and the content block is saved to a general module as general content for calling each project in the process of performing and compiling. Meanwhile, the relative path of the content block is not changed, namely the reading path of the content block is not changed when the content block is called, so that the content block of the universal module is correctly called in the compiling process. If the content block is not a general module between the items, for example, the content block contains customized content, the code segment or file of the content block only applies to part of the items, but not all of the items, and at this time, the code block is saved to the target saving module, which may be a customized module or a general module, or partly saved in the customized module and partly saved in the general module. For example, the computer device may determine the customization modules of different projects according to the customized content of the content blocks, e.g., store the content blocks containing the customized content into the customization modules of the corresponding projects; or the customized contents contained in the content block are stored in the corresponding customized module, and the general contents contained in the content block are stored in the general module. Optionally, as shown in fig. 1a, fig. 1a is a schematic diagram of a customized module and a general module obtained by splitting different items.
It should be noted that the size of the preset granularity may be set as needed, and when the preset granularity is set to be larger, the adaptability of the content block is high, so that the accuracy of code maintenance can be improved to improve the accuracy rate in compiling; when the preset granularity setting is smaller, the flexibility of the project in maintenance is high.
In this embodiment, the computer device splits each item according to a preset granularity to obtain a plurality of content blocks corresponding to each item. When the content blocks are the general content among the projects, the content blocks are stored in the general modules so that different projects can call codes and/or files in the same general modules, a large number of repeated codes and files are reduced, and maintenance of all the general parts of the projects in one project can be realized by once developing and maintaining the general modules, such as general bug repair or general update of new characteristics, so that the complexity of project development, integration and maintenance can be effectively reduced, the efficiency and universality of the project development are improved, the efficiency of the project development and maintenance is greatly improved, and the development and maintenance cost is reduced. Meanwhile, when the content block is not the general content in each project, the content block is determined to contain the customized content, and the customized modules of different projects are determined according to the customized content of the content block so as to distinguish the customized parts of the different projects, so that the projects meet the requirement of differentiation, and the application scene is more flexible. When the engineering is a biological unlocking engineering, an unmanned aerial vehicle control engineering, an intelligent home control engineering or an automatic driving engineering, the development and maintenance efficiency of different engineering can be greatly improved, and the development and maintenance cost of different projects under the engineering is reduced.
Optionally, on the basis of the foregoing embodiments, the target saving module is a general module or a customized module, and the "determining a target saving module according to the content chunk" in step S12B may include, as shown in fig. 2:
and S121, judging whether the content block is a code segment.
Specifically, the computer device may determine whether the content block is a code segment, for example, determine whether the content block includes only a code, or further includes information related to the code, such as a corresponding comment; or whether the content block is a file.
And S122A, if yes, saving the code segment to a general module or a custom module according to the custom content contained in the code segment.
Specifically, if the computer device determines that the content block only includes the code, or includes information such as the code and a related comment, the content block may be determined to be a code segment, and at this time, the computer device may store the code segment in the general module or the custom module according to the customized content included in the code segment. Optionally, the computer device may determine, according to the customized content in the content block, whether to store the content block in the general module or the customized module, or split the content block according to the customized content, to obtain the general part and the customized part, and store the general part and the customized part in the general module and the customized module, respectively.
Optionally, a specific implementation manner of the step S122A may be as shown in fig. 3, and include:
s1221, splitting the code segments according to the updating granularity to obtain a plurality of sub-code segments; wherein the update granularity is less than the preset granularity.
Specifically, the computer device may obtain an update granularity, where the update granularity is smaller than the preset granularity, for example, when the preset granularity is 10M, the update granularity may be 3M, or 1M, or another size, as long as the update granularity is smaller than 10M. Specifically, the computer device may split the code segment again according to a smaller update granularity to obtain a plurality of sub-code segments.
S1222, judging whether each said sub code segment is multiplexed in other items.
Specifically, the computer device may determine one by one whether each sub-code segment can be reused in other items other than the corresponding item, for example, whether the same code segment identical to the sub-code segment exists in other items. Optionally, the sub-code segment may be capable of being multiplexed in one of the other items, or may be capable of being multiplexed in a plurality of the other items.
And S1223A, if yes, saving the child code segments to the general module, and generating switch options corresponding to the child code segments in the customization modules corresponding to each project.
When the sub-code segment can be reused in other projects, the storage position of the sub-code segment is kept unchanged, and meanwhile, the computer device can set a switch option for the sub-code segment and store or add the switch option to the customization module of the corresponding other projects. Alternatively, other items may control whether the subcode segments are multiplexed by setting a switch of the switch option. When the sub-code segment needs to be multiplexed in other projects, the switch option in the general module can be set to be in an on state, for example, set to be in a 1 state, so that the code is multiplexed through the switch option, and the code amount is further reduced. And the unified development and maintenance of the corresponding functions can be realized conveniently by maintaining the reusable sub-code segments, and the development and maintenance efficiency of the codes is further improved, so that the cost is further reduced. When the subcode segment is not required to be multiplexed in other projects, the switch option in the general module can be set to be in an off state, for example, to be 0, so that flexible setting is realized, and application scenes are richer and more flexible on the premise of being convenient for maintenance and development.
S1223B, if not, generating a first interface corresponding to the child code segment, saving the first interface to the general module, and saving the child code segment to the custom module of the corresponding project.
Specifically, when the sub-code segment cannot be reused in all other projects, the computer device may generate a first interface corresponding to the sub-code segment, replace the sub-code segment with the first interface in the general-purpose module, and store the sub-code segment as the customized content in the customization module of the corresponding project. The first interface is capable of making calls to the corresponding subcode segments during compilation.
In the implementation manner shown in fig. 3, the computer device obtains a plurality of sub-code segments by splitting the code segments according to the update granularity smaller than the preset granularity, and then determines whether each sub-code segment is multiplexed in other items. If the code segment can be reused, the sub-code segment is stored in the general module, the switch option corresponding to the sub-code segment is generated in the customization module corresponding to each project, whether the sub-code segment is reused or not can be flexibly set in each project by setting the states of the switch options in the customization modules of different projects, and the development and maintenance efficiency of the code is further improved, so that the cost is further reduced, and the application scene is richer and more flexible on the premise of being convenient for maintenance and development. If the user can not multiplex, the computer equipment generates a first interface corresponding to the subcode section, stores the first interface to the general module and stores the subcode section to the customization module of the corresponding project, so that customized management of customized content is realized, the requirements of differentiation of different projects are further met, and the application scene is more flexible.
S122B, if not, storing the content block into the customization module of the corresponding project, and reserving the soft link of the content block in the general module.
If the computer device judges that the content block is not a code segment, for example, a file, the computer device can store the content block into the customization module of the corresponding project; and simultaneously reserving the soft link of the content block in the general module so that the item is independent in the form of the soft link for the customized part, and reserving only the soft link in the general module for calling, wherein the actual content block, such as a file, is saved in the customized module corresponding to the item, and the general module is still a complete whole in form.
In this embodiment, the computer device stores the code segment to the general module and/or the custom module according to the customized content included in the code segment by determining whether the content block is a code segment. When the content block is not a code segment, the content block is stored in a customization module of a project corresponding to the content block, meanwhile, a soft link of the content block is reserved in a general module, so that the project is independent from a project customization part in a soft link mode, only the soft link is reserved in the general module, the actual content block is stored in the customization module corresponding to the project, development and maintenance of the general module are completed at one time, customization modules of different projects are subjected to customization development and independent maintenance, and the project meets the differentiated requirements so as to adapt to different application requirements.
Optionally, when a modification needs to be performed on the item, the computer device may adopt the following method of fig. 4, and on the basis of the foregoing embodiments, may further include:
s13, determining whether the updated content for the content block is common content between the items.
S14A, if not, modifying the customization module of the corresponding item according to the updated content.
And S14B, if yes, modifying the general module or the customization module according to the influence of the updated content on other projects.
Specifically, the computer device obtains the update content for the content block, where the update content may be a code or a file that needs to be added, a code or a file that needs to be deleted, or a code or a file that needs to be modified. The computer device determines whether the updated content is general content of each project, for example, may determine whether the updated content is updated for a general framework portion of a project, or may also determine whether the updated content is updated for a general module portion, or may determine according to an attribute of generality of the updated content input by a user, which is not limited in this embodiment. If the updated content is not the general content among the items, the updated content is characterized as the updated content of the specific item, so the computer device can modify the customization module of the corresponding specific item according to the updated content, for example, add code, delete code, or modify code in the customization module of the corresponding item. And if the updated content is the general content among the projects, modifying the general module or the customized module according to the influence of the updated content on other projects.
In this embodiment, the computer device modifies the customization module of the corresponding item according to the update content by determining whether the update content for the content block is the general content between the items, when the update content is not the general content between the items, thereby implementing targeted modification for different items, facilitating maintenance for different items, and improving the targeting and maintenance efficiency of item maintenance. When the updated content is the general content among the projects, the general module or the customization module is modified according to the influence of the updated content on other projects, and the requirements of both code universality and customization can be met, so that the method is more reasonable.
Optionally, one possible implementation manner of the step S14B may be as shown in fig. 5, and includes:
and S141, judging whether the updated content affects other items.
And S142A, if yes, determining to modify the general module or the customized module according to the modification type of the updated content.
S142B, if not, modifying the universal module according to the updated content.
Specifically, the computer device determines whether the updated content affects other items, whether the updated content is compatible with codes of other items, or whether the updated content affects other items is checked by pre-compiling the updated content in a pre-compiling manner. When the updated content affects other items, the computer device further determines whether to modify the generic module or the custom module based on a modification type of the updated content.
Optionally, a possible implementation manner of the step S141A may be that the computer device determines whether the modification type of the updated content is a general modification, and if not, the computer device adds a second interface whose content is empty in the general module, and modifies the customization module of the corresponding item according to the updated content, where the second interface is used to call a content block corresponding to the updated content in the customization module, so that the updated content in the customization module of the item can be called through the second interface in the software compiling process, thereby implementing modification of item differentiation requirements, facilitating differentiated setting of customized content, and thus being more convenient and targeted; if the update content is the universal modification, the computer equipment modifies the universal module according to the update content to perform unified code maintenance, so that the project maintenance efficiency is improved.
Optionally, fig. 6 is a schematic diagram illustrating a division of a general module and a customization module provided in an embodiment, where a plurality of items are provided with one general module, and each item corresponds to one customization module, and the number of the customization modules is determined according to the number of the items, and thus is not limited to the number shown in fig. 6. The general module can include general files, algorithm strategy library, different function interfaces and soft links of different files, and the customization module includes configuration items for configuring strategies in the algorithm strategy library, function realization corresponding to different function interfaces and files corresponding to soft links of files.
In this embodiment, the computer device determines to modify the general module or the custom module according to the modification type of the update content when the update content affects other items by judging whether the update content affects other items, and modifies the general module according to the update content when the update content does not affect other items, so that the general module and the custom module are more reasonably set, and the efficiency of modular management is improved.
Fig. 7 is a method for acquiring a biological unlock model according to an embodiment. The embodiment relates to a method for acquiring a biological unlocking model by a computer device by adopting the multi-item custom module and the universal module method.
As shown in fig. 7, includes:
s21, acquiring a general module and a customization module; the general module and the customized module are modules managed by adopting the modular management method in any embodiment.
And S22, obtaining a biological unlocking model corresponding to each biological unlocking project by calling the general module and the customized module corresponding to each biological unlocking project for compiling.
Specifically, the computer device may obtain a plurality of customized modules corresponding to the general module and the plurality of biological unlocking items in the method according to any of the embodiments, and then, in the compiling process, the general module and the customized module corresponding to each biological unlocking item are called to compile the software version, so as to obtain different biological unlocking models corresponding to each biological unlocking item, thereby implementing different biological unlocking processes. The biological unlocking model can exist in the form of software version, and realizes respective corresponding functions by depending on corresponding hardware equipment, such as a mobile phone terminal and the like. The technical principle and the implementation effect of the method adopted by the embodiment can be seen in the foregoing embodiments, and by the method, the efficiency of development and maintenance of a plurality of biological unlocking models can be improved, and the development and maintenance cost of the biological unlocking models can be reduced.
It should be understood that although the various steps in the flow charts of fig. 1-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-7 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 8, there is provided a modular management apparatus for multiple items, including:
the splitting module 100 is configured to split each item according to a preset granularity to obtain a plurality of content blocks corresponding to each item; wherein the content block comprises a file and/or a code segment;
a processing module 200, configured to, when the content block is a general content between the items, store the content block to the general module; and when the content block is not the general content among the items, determining a target storage module according to the content block.
In an embodiment, the processing module 200 is specifically configured to determine whether the content block is a code segment; if yes, storing the code segment to a general module or a custom module according to the custom content contained in the code segment; if not, the content block is stored in the customization module of the corresponding project, and the soft link of the content block is reserved in the general module.
In an embodiment, the processing module 200 is specifically configured to split the code segment according to the update granularity to obtain a plurality of sub-code segments; wherein the update granularity is less than the preset granularity; judging whether each child code segment is multiplexed in other projects; if yes, storing the sub-code segments to the general module, and generating switch options corresponding to the sub-code segments in the customization module corresponding to each project; if not, generating a first interface corresponding to the sub-code segment, saving the first interface to the general module, and saving the sub-code segment to the customization module of the corresponding project.
In an embodiment, the processing module 200 is specifically configured to determine whether the updated content for the content block is general content between the items; if not, modifying the customization module of the corresponding project according to the updated content; and if so, modifying the general module or the customized module according to the influence of the updated content on other projects.
In an embodiment, the processing module 200 is specifically configured to determine whether the updated content affects other items; if yes, determining to modify the general module or the customized module according to the modification type of the updated content; if not, the universal module is modified according to the updated content.
In an embodiment, the processing module 200 is specifically configured to determine whether a modification type of the update content is a general modification; if not, adding a second interface with empty content in the general module, and modifying the customization module of the corresponding project according to the updated content; the second interface is used for calling a content block corresponding to the updated content in the customization module; and if so, modifying the universal module according to the updated content.
In one embodiment, as shown in fig. 9, there is provided a biological unlock model acquisition apparatus including:
an obtaining module 300, configured to obtain a general module and a customized module; the universal module and the customized module are modules which are modularly managed by adopting the method of any one of the above embodiments;
the compiling module 400 is configured to compile customized content corresponding to each biological unlocking item in the universal module and the customized module by calling, so as to obtain a biological unlocking model corresponding to each biological unlocking item.
For specific limitations of the modular management apparatus and the biological unlocking model obtaining apparatus for multiple items, reference may be made to the above limitations of the modular management method and the biological unlocking model obtaining method for multiple items, which are not described herein again. The above-mentioned modules in the multi-project modular management apparatus and the biological unlocking model obtaining apparatus may be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, there is also provided a modular management system for multiple items, the system comprising a custom module and a generic module; the universal module stores universal contents of a plurality of projects; the customization module stores customized contents of a plurality of projects, and the customized contents correspond to at least one of a customized interface, a switch option and a soft link; the customization interface, the switch option and the soft link are stored in the general module and used for calling the customization content of the corresponding item in the customization module according to the calling strategy in the general module. Specifically, the customized code can be abstracted in the form of an interface, only the interface is reserved in the general module, and the specific implementation of the interface is stored in the customized module; for the customized strategy, the strategy can be controlled in a switch mode, all possible strategies are integrated in the general module, and the specific selection of the strategy is stored in the customized module to adapt to different project configurations; the customized file can be independently obtained in a soft link form, the actual file is stored in the customized module, and only the soft link corresponding to the customized file is reserved in the general module. The implementation principle and the technical effect of the embodiments of the present application may also be referred to the description in the foregoing embodiments, and are not described herein again.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing code and file data of a plurality of projects in a project. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a multi-item modular management method, and a biological unlock model acquisition method.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
splitting each item according to a preset granularity to obtain a plurality of content blocks corresponding to each item; wherein the content block comprises a file and/or a code segment;
if the content block is the general content among the projects, the content block is stored in the general module;
and if the content block is not the general content among the projects, determining a target storage module according to the content block.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
judging whether the content block is a code segment;
if yes, storing the code segment to a general module or a custom module according to the custom content contained in the code segment;
if not, the content block is stored in the customization module of the corresponding project, and the soft link of the content block is reserved in the general module.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
splitting the code segments according to the updating granularity to obtain a plurality of sub-code segments; wherein the update granularity is less than the preset granularity;
judging whether each child code segment is multiplexed in other projects;
if yes, storing the sub-code segments to the general module, and generating switch options corresponding to the sub-code segments in the customization module corresponding to each project;
if not, generating a first interface corresponding to the sub-code segment, saving the first interface to the general module, and saving the sub-code segment to the customization module of the corresponding project.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
judging whether the updated content aiming at the content block is general content among the items;
if not, modifying the customization module of the corresponding project according to the updated content;
and if so, modifying the general module or the customized module according to the influence of the updated content on other projects.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
judging whether the updated content affects other items;
if yes, determining to modify the general module or the customized module according to the modification type of the updated content;
if not, the universal module is modified according to the updated content.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
judging whether the modification type of the updated content is general modification or not;
if not, adding a second interface with empty content in the general module, and modifying the customization module of the corresponding project according to the updated content; the second interface is used for calling a content block corresponding to the updated content in the customization module;
and if so, modifying the universal module according to the updated content.
It should be clear that, in the embodiments of the present application, the process of executing the computer program by the processor is consistent with the process of executing the steps in the above method, and specific reference may be made to the description above.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a general module and a customized module; the universal module and the customized module are modules which are modularly managed by adopting the method of any one of the above embodiments;
and compiling by calling the general module and the customized module corresponding to each biological unlocking item to obtain a biological unlocking model corresponding to each biological unlocking item.
It should be clear that, in the embodiments of the present application, the process of executing the computer program by the processor is consistent with the process of executing the steps in the above method, and specific reference may be made to the description above.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
splitting each item according to a preset granularity to obtain a plurality of content blocks corresponding to each item; wherein the content block comprises a file and/or a code segment;
splitting each item according to a preset granularity to obtain a plurality of content blocks corresponding to each item; wherein the content block comprises a file and/or a code segment;
if the content block is the general content among the projects, the content block is stored in the general module;
and if the content block is not the general content among the projects, determining a target storage module according to the content block.
In one embodiment, the computer program when executed by the processor further performs the steps of:
judging whether the content block is a code segment;
if yes, storing the code segment to a general module or a custom module according to the custom content contained in the code segment;
if not, the content block is stored in the customization module of the corresponding project, and the soft link of the content block is reserved in the general module.
In one embodiment, the computer program when executed by the processor further performs the steps of:
splitting the code segments according to the updating granularity to obtain a plurality of sub-code segments; wherein the update granularity is less than the preset granularity;
judging whether each child code segment is multiplexed in other projects;
if yes, storing the sub-code segments to the general module, and generating switch options corresponding to the sub-code segments in the customization module corresponding to each project;
if not, generating a first interface corresponding to the sub-code segment, saving the first interface to the general module, and saving the sub-code segment to the customization module of the corresponding project.
In one embodiment, the computer program when executed by the processor further performs the steps of:
judging whether the updated content aiming at the content block is general content among the items;
if not, modifying the customization module of the corresponding project according to the updated content;
and if so, modifying the general module or the customized module according to the influence of the updated content on other projects.
In one embodiment, the computer program when executed by the processor further performs the steps of:
judging whether the updated content affects other items;
if yes, determining to modify the general module or the customized module according to the modification type of the updated content;
if not, the universal module is modified according to the updated content.
In one embodiment, the computer program when executed by the processor further performs the steps of:
judging whether the modification type of the updated content is general modification or not;
if not, adding a second interface with empty content in the general module, and modifying the customization module of the corresponding project according to the updated content; the second interface is used for calling a content block corresponding to the updated content in the customization module;
and if so, modifying the universal module according to the updated content.
It should be clear that, in the embodiments of the present application, the process executed by the processor by the computer program is consistent with the execution process of each step in the above method, and specific reference may be made to the description above.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a general module and a customized module; the universal module and the customized module are modules which are modularly managed by adopting the method of any one of the above embodiments;
and compiling by calling the general module and the customized module corresponding to each biological unlocking item to obtain a biological unlocking model corresponding to each biological unlocking item.
It should be clear that, in the embodiments of the present application, the process executed by the processor by the computer program is consistent with the execution process of each step in the above method, and specific reference may be made to the description above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A method for modular management of a plurality of items, the method comprising:
splitting each item according to a preset granularity to obtain a plurality of content blocks corresponding to each item; wherein the content block comprises a file and/or a code segment;
if the content block is the general content among the projects, the content block is stored in the general module;
and if the content block is not the general content among the projects, determining a target storage module according to the content block.
2. The method of claim 1, wherein the target saving module is a general module or a custom module; the determining a target storage module according to the content block includes:
judging whether the content block is a code segment;
if yes, storing the code segment to a general module or a custom module according to the custom content contained in the code segment;
if not, the content block is stored in the customization module of the corresponding project, and the soft link of the content block is reserved in the general module.
3. The method according to claim 2, wherein the saving the code segment to a generic module or a custom module according to the customized content included in the code segment comprises:
splitting the code segments according to the updating granularity to obtain a plurality of sub-code segments; wherein the update granularity is less than the preset granularity;
judging whether each child code segment is multiplexed in other projects;
if yes, storing the sub-code segments to the general module, and generating switch options corresponding to the sub-code segments in the customization module corresponding to each project;
if not, generating a first interface corresponding to the sub-code segment, saving the first interface to the general module, and saving the sub-code segment to the customization module of the corresponding project.
4. The method of claim 1, further comprising:
judging whether the updated content aiming at the content block is general content among the items;
if not, modifying the customization module of the corresponding project according to the updated content;
and if so, modifying the general module or the customized module according to the influence of the updated content on other projects.
5. The method of claim 4, wherein said modifying the generic module or the customized module based on the effect of the updated content on other items comprises:
judging whether the updated content affects other items;
if yes, determining to modify the general module or the customized module according to the modification type of the updated content;
if not, the universal module is modified according to the updated content.
6. The method of claim 5, wherein the determining to modify the generic module or the custom module according to the modification type of the updated content comprises:
judging whether the modification type of the updated content is general modification or not;
if not, adding a second interface with empty content in the general module, and modifying the customization module of the corresponding project according to the updated content; the second interface is used for calling a content block corresponding to the updated content in the customization module;
and if so, modifying the universal module according to the updated content.
7. A biological unlocking model acquisition method is characterized by comprising the following steps:
acquiring a general module and a customized module; wherein the general modules and the customized modules are modules for modular management using the method according to any one of claims 1 to 6;
and compiling by calling the general module and the customized module corresponding to each biological unlocking item to obtain a biological unlocking model corresponding to each biological unlocking item.
8. A modular management apparatus for multiple items, the apparatus comprising:
the splitting module is used for splitting each item according to a preset granularity to obtain a plurality of content blocks corresponding to each item; wherein the content block comprises a file and/or a code segment;
the processing module is used for storing the content blocks to the general module when the content blocks are general content among the projects; and when the content block is not the general content among the items, determining a target storage module according to the content block.
9. A biological unlock model acquisition apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring the general module and the customization module; wherein the general modules and the customized modules are modules for modular management using the method according to any one of claims 1 to 6;
and the compiling module is used for compiling the customized content corresponding to each biological unlocking item in the universal module and the customized module by calling, so as to obtain a biological unlocking model corresponding to each biological unlocking item.
10. A modular management system for multiple items, said system comprising a custom module and a generic module;
the universal module stores universal contents of a plurality of projects;
the customization module stores customized contents of a plurality of projects, and the customized contents correspond to at least one of a customized interface, a switch option and a soft link;
the customization interface, the switch option and the soft link are stored in the general module and used for calling the customization content of the corresponding item in the customization module according to the calling strategy in the general module.
11. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010223258.3A 2020-03-26 2020-03-26 Modularized management method for multiple items, biological unlocking model acquisition method and product Active CN111538484B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010223258.3A CN111538484B (en) 2020-03-26 2020-03-26 Modularized management method for multiple items, biological unlocking model acquisition method and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010223258.3A CN111538484B (en) 2020-03-26 2020-03-26 Modularized management method for multiple items, biological unlocking model acquisition method and product

Publications (2)

Publication Number Publication Date
CN111538484A true CN111538484A (en) 2020-08-14
CN111538484B CN111538484B (en) 2024-07-30

Family

ID=71980013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010223258.3A Active CN111538484B (en) 2020-03-26 2020-03-26 Modularized management method for multiple items, biological unlocking model acquisition method and product

Country Status (1)

Country Link
CN (1) CN111538484B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030200532A1 (en) * 2002-04-17 2003-10-23 Thomas Gensel System and method for sharing reusable code base
US20050091181A1 (en) * 2003-10-23 2005-04-28 Mckee Timothy P. System and method for the presentation of items stored on a computer
US20070006152A1 (en) * 2005-06-29 2007-01-04 Microsoft Corporation Software source asset management
JP2007226358A (en) * 2006-02-21 2007-09-06 Fujitsu Ltd Application generation device, application generation method, and application generation program
US20150347093A1 (en) * 2012-12-11 2015-12-03 Hewlett-Packard Development Company, L.P. Provisioning Tools for Application Development
CN106934028A (en) * 2017-03-14 2017-07-07 深圳天珑无线科技有限公司 The method and terminal of a kind of store code
CN107277120A (en) * 2017-06-05 2017-10-20 广州视源电子科技股份有限公司 Configuration file management method and device, and service configuration method and system
CN108958796A (en) * 2017-05-23 2018-12-07 阿里巴巴集团控股有限公司 service request processing method and device, service request processing system
CN109408101A (en) * 2018-09-12 2019-03-01 深圳点猫科技有限公司 A kind of code development maintaining method and electronic equipment for programming
CN109711802A (en) * 2018-12-14 2019-05-03 深圳壹账通智能科技有限公司 Item information processing method, device, computer equipment and storage medium
CN109885299A (en) * 2019-01-23 2019-06-14 平安科技(深圳)有限公司 Template processing method, device, computer equipment and storage medium in model development
CN110209385A (en) * 2019-05-09 2019-09-06 无线生活(杭州)信息科技有限公司 Establishment of item method and device
CN110688112A (en) * 2019-09-25 2020-01-14 上海创功通讯技术有限公司 Automatic storage method and system for multi-project collinear development codes

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030200532A1 (en) * 2002-04-17 2003-10-23 Thomas Gensel System and method for sharing reusable code base
US20050091181A1 (en) * 2003-10-23 2005-04-28 Mckee Timothy P. System and method for the presentation of items stored on a computer
US20070006152A1 (en) * 2005-06-29 2007-01-04 Microsoft Corporation Software source asset management
JP2007226358A (en) * 2006-02-21 2007-09-06 Fujitsu Ltd Application generation device, application generation method, and application generation program
US20150347093A1 (en) * 2012-12-11 2015-12-03 Hewlett-Packard Development Company, L.P. Provisioning Tools for Application Development
CN106934028A (en) * 2017-03-14 2017-07-07 深圳天珑无线科技有限公司 The method and terminal of a kind of store code
CN108958796A (en) * 2017-05-23 2018-12-07 阿里巴巴集团控股有限公司 service request processing method and device, service request processing system
CN107277120A (en) * 2017-06-05 2017-10-20 广州视源电子科技股份有限公司 Configuration file management method and device, and service configuration method and system
CN109408101A (en) * 2018-09-12 2019-03-01 深圳点猫科技有限公司 A kind of code development maintaining method and electronic equipment for programming
CN109711802A (en) * 2018-12-14 2019-05-03 深圳壹账通智能科技有限公司 Item information processing method, device, computer equipment and storage medium
CN109885299A (en) * 2019-01-23 2019-06-14 平安科技(深圳)有限公司 Template processing method, device, computer equipment and storage medium in model development
CN110209385A (en) * 2019-05-09 2019-09-06 无线生活(杭州)信息科技有限公司 Establishment of item method and device
CN110688112A (en) * 2019-09-25 2020-01-14 上海创功通讯技术有限公司 Automatic storage method and system for multi-project collinear development codes

Also Published As

Publication number Publication date
CN111538484B (en) 2024-07-30

Similar Documents

Publication Publication Date Title
US20180088936A1 (en) Determination apparatus and determination method
CN107678748B (en) Source code file compiling method and device
CN110990019B (en) Java class analysis method and device, storage medium and electronic equipment
US8141035B2 (en) Method for accessing internal states of objects in object oriented programming
US20220179642A1 (en) Software code change method and apparatus
US20040015884A1 (en) Relocation format for linking
CN110597518A (en) Project construction method and device, computer equipment and storage medium
US20080196014A1 (en) Partial methods
CN115826946B (en) Program exception vector space optimization system, method, equipment and medium
CN111625225A (en) Program specified data output method and device
CN112631600A (en) Software construction method and system based on Flutter
CN108536444B (en) Plug-in compiling method and device, computer equipment and storage medium
Felser et al. Dynamic software update of resource-constrained distributed embedded systems
Pati et al. A survey report of enhancements to the visitor software design pattern
CN110377367B (en) Component configuration method and device, electronic terminal and computer readable storage medium
CN110018831B (en) Program processing method, program processing apparatus, and computer-readable storage medium
CN114721647B (en) Object-oriented programming method based on codeless application development
CN111538484B (en) Modularized management method for multiple items, biological unlocking model acquisition method and product
CN108052335B (en) Data management method and device, computing equipment and storage medium
CN115904387A (en) Program module compiling method, computer device, and program product
CN117170634A (en) Code compiling method and device, storage medium and electronic equipment
CN115220873A (en) Method for running Open Harmony application in Android system
CN115469873A (en) Compiling method, terminal and management system platform under android system
CN110333870B (en) Simulink model variable distribution processing method, device and equipment
CN114579135B (en) Installation package generation method and device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230327

Address after: No. S, 17/F, No. 1, Zhongguancun Street, Haidian District, Beijing 100082

Applicant after: Beijing Jigan Technology Co.,Ltd.

Address before: 316-318, block a, Rongke Information Center, No.2, South Road, Academy of Sciences, Haidian District, Beijing, 100190

Applicant before: MEGVII (BEIJING) TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230707

Address after: 201-1, Floor 2, Building 4, No. 188, Rixin Road, Binhai Science Park, Binhai, Tianjin, 300451

Applicant after: Tianjin Jihao Technology Co.,Ltd.

Address before: No. S, 17/F, No. 1, Zhongguancun Street, Haidian District, Beijing 100082

Applicant before: Beijing Jigan Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant