CN112256322A - Application program version dynamic partitioning method, device and medium - Google Patents

Application program version dynamic partitioning method, device and medium Download PDF

Info

Publication number
CN112256322A
CN112256322A CN202011525386.XA CN202011525386A CN112256322A CN 112256322 A CN112256322 A CN 112256322A CN 202011525386 A CN202011525386 A CN 202011525386A CN 112256322 A CN112256322 A CN 112256322A
Authority
CN
China
Prior art keywords
application program
version
metadata
resources
acquiring
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
CN202011525386.XA
Other languages
Chinese (zh)
Other versions
CN112256322B (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.)
CHANJET INFORMATION TECHNOLOGY CO LTD
Original Assignee
CHANJET 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 CHANJET INFORMATION TECHNOLOGY CO LTD filed Critical CHANJET INFORMATION TECHNOLOGY CO LTD
Priority to CN202011525386.XA priority Critical patent/CN112256322B/en
Publication of CN112256322A publication Critical patent/CN112256322A/en
Application granted granted Critical
Publication of CN112256322B publication Critical patent/CN112256322B/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/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

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

Abstract

The invention provides a method, a device and a storage medium for dynamically partitioning application program versions, wherein the method comprises the following steps: initializing, namely initially defining an application program and a plurality of versions of the application program, wherein the application program function of each version is different; a partitioning step, namely partitioning the multidimensional resources used in the running process of the application program to obtain mutually independent resources, wherein each application program version corresponds to one or more independent resources; analyzing, namely acquiring the version of the application program corresponding to the user based on the authority of the user, and acquiring the resource of the application program based on the version; and a display step, namely loading the resources into the application program of the corresponding version based on the user equipment and displaying the resources on an interface of the user equipment. The invention realizes fine-grained partition of the application program, so that the configuration of the application is simpler and quicker, the related data in the local system can be directly loaded when the program runs, the time of a user is saved, and the operation difficulty is reduced.

Description

Application program version dynamic partitioning method, device and medium
Technical Field
The invention relates to the technical field of computer program design, in particular to a method, a device and a storage medium for dynamically partitioning an application program version.
Background
In the 2B application system, application versions with different prices, such as a popular version, a standard version, and a flagship version, are often packaged according to the operating scale and economic strength of a client, so that an application function and experience of an entry level, a standard level, and a reinforcement level can be provided for the client, and the client is helped to select an application version suitable for the client to develop a service and reinforce management. And after the client enterprises develop and grow, the client enterprises can be smoothly upgraded to higher application versions.
In the prior art, a common method for implementing version partitioning in a software system is as follows.
One approach is to pull different branches for different versions at the source code level. The defects are as follows: different versions of the source code program need to be maintained, the workload is increased a lot, and the granularity of the partitions is not fine enough.
In another method, the source code is a set, but in the source code, in an application scenario that needs to be controlled according to a version, a branch program is written for control, and the defects are as follows: the source code controls the version through the branch, so that the program has more branches and complex service logic; any change in version control requires modification of the code.
Therefore, in the prior art, the implementation cost of the application version partition is high, the scheme is complex, the flexibility is poor, the partition granularity is not fine, and the like.
Disclosure of Invention
The present invention provides the following technical solutions to overcome the above-mentioned drawbacks in the prior art.
A method for dynamic partitioning of application versions, the method comprising:
initializing, namely initially defining an application program and a plurality of versions of the application program, wherein the application program function of each version is different;
a partitioning step, namely partitioning the multidimensional resources used in the running process of the application program to obtain mutually independent resources, wherein each application program version corresponds to one or more independent resources;
analyzing, namely acquiring the version of the application program corresponding to the user based on the authority of the user, and acquiring the resource of the application program based on the version;
and a display step, namely loading the resources into the application program of the corresponding version based on the user equipment and displaying the resources on an interface of the user equipment.
Still further, the multi-dimensional resources include: the system comprises functional resources of an application program, metadata of the application program and a basic file used in the running of the application program, wherein the functional resources comprise functional modules of the application program, resources used by the functional modules and action resources corresponding to the functional modules, the metadata comprise a metadata main table and metadata fields, and the basic file refers to file data in an application system.
Furthermore, in the step of partitioning, a version partitioning rule, a metadata partitioning rule and a basic file partitioning rule are set, wherein the version partitioning rule comprises a mapping relation between an application program and a function module, a mapping relation between a version and a function module, a mapping relation between a function module and a resource used by the function module, and a mapping relation between the function module and an action resource; the metadata partition rule comprises a mapping relation between a metadata main table and the function module and a mapping relation between the metadata main table and the metadata field; the basic file partition rule comprises a mapping relation between the functional module and the file data, and dynamically generates application programs with different versions according to the version partition rule, the metadata partition rule and the basic file partition rule.
Further, the parsing step is operated as follows: when a user logs in an application program, acquiring the authority of the user, acquiring the version of the application program corresponding to the user based on the authority of the user, inquiring a version partition rule according to the version, acquiring all function modules corresponding to the application program based on the mapping relation between the application program and the function modules, acquiring the function modules corresponding to the application program of the version from all the function modules based on the mapping relation between the version and the function modules, acquiring resources used by the function modules based on the mapping relation between the function modules and the resources used by the function modules, acquiring action resources used by the function modules based on the mapping relation between the function modules and the action resources, and synthesizing a frame of the application program of the version according to the acquired function modules corresponding to the application program of the version, the acquired resources used by the function modules and the action resources used by the function modules; acquiring a metadata main table used by a function module corresponding to the version application program based on the mapping relation between the metadata main table and the function module, and acquiring a metadata field of the used metadata main table based on the mapping relation between the metadata main table and the metadata field; and acquiring archive data used by the functional module corresponding to the version application program based on the mapping relation between the functional module and the archive data, and loading the acquired metadata field and the archive data into a framework of the application program to form the user version of the version application program.
Further, the displaying step operates as: the method comprises the steps of obtaining the type of user equipment, carrying out layout adjustment on the user version of the application program of the version based on the type of the user equipment, and displaying obtained metadata fields and archive data in an application program interface after the layout adjustment.
The invention also provides an application program version dynamic partitioning device, which comprises:
the device comprises an initialization unit, a storage unit and a control unit, wherein the initialization unit initially defines an application program and a plurality of versions of the application program, and the application program function of each version is different;
the partitioning unit is used for partitioning the multidimensional resources used in the running process of the application program to obtain mutually independent resources, and each application program version corresponds to one or more independent resources;
the analysis unit is used for acquiring the version of the application program corresponding to the user based on the authority of the user and acquiring the resource of the application program based on the version;
and the display unit loads the resources into the application programs of the corresponding versions based on the user equipment and displays the resources on the interface of the user equipment.
Still further, the multi-dimensional resources include: the system comprises functional resources of an application program, metadata of the application program and a basic file used in the running of the application program, wherein the functional resources comprise functional modules of the application program, resources used by the functional modules and action resources corresponding to the functional modules, the metadata comprise a metadata main table and metadata fields, and the basic file refers to file data in an application system.
Furthermore, in the partition unit, a version partition rule, a metadata partition rule and a basic file partition rule are set, wherein the version partition rule comprises a mapping relation between an application program and a function module, a mapping relation between a version and a function module, a mapping relation between a function module and a resource used by the function module, and a mapping relation between the function module and an action resource; the metadata partition rule comprises a mapping relation between a metadata main table and the function module and a mapping relation between the metadata main table and the metadata field; the basic file partition rule comprises a mapping relation between the functional module and the file data, and dynamically generates application programs with different versions according to the version partition rule, the metadata partition rule and the basic file partition rule.
Further, the parsing unit performs the following operations: when a user logs in an application program, acquiring the authority of the user, acquiring the version of the application program corresponding to the user based on the authority of the user, inquiring a version partition rule according to the version, acquiring all function modules corresponding to the application program based on the mapping relation between the application program and the function modules, acquiring the function modules corresponding to the application program of the version from all the function modules based on the mapping relation between the version and the function modules, acquiring resources used by the function modules based on the mapping relation between the function modules and the resources used by the function modules, acquiring action resources used by the function modules based on the mapping relation between the function modules and the action resources, and synthesizing a frame of the application program of the version according to the acquired function modules corresponding to the application program of the version, the acquired resources used by the function modules and the action resources used by the function modules; acquiring a metadata main table used by a function module corresponding to the version application program based on the mapping relation between the metadata main table and the function module, and acquiring a metadata field of the used metadata main table based on the mapping relation between the metadata main table and the metadata field; acquiring archive data used by a function module corresponding to the version application program based on the mapping relation between the function module and the archive data, and loading the acquired metadata field and the archive data into a frame of the application program to form a user version of the version application program; the display unit performs the operations of: the method comprises the steps of obtaining the type of user equipment, carrying out layout adjustment on the user version of the application program of the version based on the type of the user equipment, and displaying obtained metadata fields and archive data in an application program interface after the layout adjustment.
The invention also proposes a computer-readable storage medium having stored thereon computer program code which, when executed by a computer, performs any of the methods described above.
The invention discloses a method, a device and a storage medium for dynamically partitioning an application program version, wherein the method comprises the following steps: initializing, namely initially defining an application program and a plurality of versions of the application program, wherein the application program function of each version is different; a partitioning step, namely partitioning the multidimensional resources used in the running process of the application program to obtain mutually independent resources, wherein each application program version corresponds to one or more independent resources; analyzing, namely acquiring the version of the application program corresponding to the user based on the authority of the user, and acquiring the resource of the application program based on the version; and a display step, namely loading the resources into the application program of the corresponding version based on the user equipment and displaying the resources on an interface of the user equipment. The invention sets a version partition rule for realizing the association of a module and an application, a metadata partition rule for realizing the association of metadata and the module, a basic archive partition rule for realizing the association of a basic archive and a function module, and a fine-grained partition of an application program, so that the configuration of the application is simpler and faster The invention sets fine-grained setting for multiple dimensions of function menu resource, function operation, page metadata field, field data, etc. to meet the fine-grained requirement of customer service, firstly, based on the version partition rule, the function module, resource and resource action of the application of the version application program are obtained to combine into the frame of the version application program, then, based on the metadata partition rule and basic file partition rule, the metadata and basic file data needed by the program operation are obtained from the local system of the user, recorded in the frame of the application program to form the user version of the version application program, thereby realizing the dynamic loading of the application in operation, and because of adopting three fine-grained partition rules of version partition rule, metadata partition rule and basic file partition rule, the user can conveniently use the application of the version corresponding to the authority, corresponding metadata and basic archive data are loaded during application running, and running of the program is facilitated.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings.
Fig. 1 is a flowchart of an application version dynamic partitioning method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of an application version dynamic partitioning apparatus according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an application version dynamic partitioning method of the present invention, which includes:
an initialization step S101, initially defining an application program and a plurality of versions of the application program, wherein the application program function of each version is different; for the same source program, application versions with different functions, such as a popular version, a standard version and a flagship version, are packaged, the functions of the application programs of the versions are different, for example, the popular version only has the most basic function, the flagship version can have some complex functions, and the application prices of the different versions are also different, so that the market demand is met, and the needs of customers are met.
A partitioning step S102, in which multidimensional resources used in the running process of the application program are partitioned to obtain mutually independent resources, and each application program version corresponds to one or more independent resources; the invention supports multi-dimensional partition, and the functions, resources and support of application versions are set according to a plurality of dimensions such as function modules, function menu resources, function operations, page metadata fields, field data and the like, so as to meet the requirement of fine management of customer services, namely fine-grained partition.
An analysis step S103, obtaining the version of the application program corresponding to the user based on the authority of the user, and obtaining the resource of the application program based on the version; i.e. the corresponding resources are dynamically loaded according to the user rights, i.e. which version of the application the user has purchased.
And a display step S104, loading the resource into the application program of the corresponding version based on the user equipment, and displaying the resource on an interface of the user equipment.
The invention is based on a set of source programs, dynamically sets the functions and resources of the application version according to the requirements of users during design or running, and adopts a multi-dimensional separation technology to perform fine-grained setting on the functions and resources of the application version according to a plurality of dimensions such as function modules, function menu resources, function operations, page metadata fields, field data and the like so as to meet the requirement of fine management on customer services.
In one embodiment, the multi-dimensional resources include: the system comprises functional resources of an application program, metadata of the application program and a basic file used in the running of the application program, wherein the functional resources comprise functional modules of the application program, resources used by the functional modules and action resources corresponding to the functional modules, the metadata comprise a metadata main table and metadata fields, and the basic file refers to file data in an application system.
Preferably, in the partitioning step, a version partitioning rule, a metadata partitioning rule and a basic archive partitioning rule are set, the version partitioning rule includes a mapping relationship between an application program and a function module, a mapping relationship between a version and a function module, a mapping relationship between a function module and a resource used by the function module, and a mapping relationship between the function module and an action resource; the metadata partition rule comprises a mapping relation between a metadata main table and the function module and a mapping relation between the metadata main table and the metadata field; the basic file partition rule comprises a mapping relation between the functional module and the file data, and dynamically generates application programs with different versions according to the version partition rule, the metadata partition rule and the basic file partition rule.
The version control in the prior art generally adopts a plurality of sets of codes or codes to carry out version branch control on the same source program or corresponds to different program modules according to versions, and the defects of high implementation cost, complex scheme, poor flexibility, low granularity of partition and the like are overcome, the version partition rule is set in the invention for realizing the association of the modules and the application, the metadata partition rule is used for realizing the association of metadata and the modules, the basic archive partition rule is used for realizing the association of basic archives and function modules, and the fine granularity of the application program is realized, so that the configuration of the application is simpler and quicker, and because the association of the metadata, the basic archives and the function modules is realized, when the user uses the application, the related data in a local system can be directly loaded, the user time is saved, the operation difficulty is reduced, which is a technology that the version control in the prior art is not available, this is another important inventive point of the present invention.
In one embodiment, the parsing step operates to: when a user logs in an application program, the user's authority is obtained, the version of the application program corresponding to the user is obtained based on the user's authority, a version partitioning rule is queried according to the version, the version partitioning rule can be an inclusion rule or an exclusion rule, for example, a rule specifies which function modules are included, the exclusion rule refers to that all the function modules except the modules in the rule are included in the application, all the function modules corresponding to the application program are obtained based on the mapping relation between the application program and the function modules, the function modules corresponding to the version application program are obtained from all the function modules based on the mapping relation between the version and the function modules, resources used by the function modules are obtained based on the mapping relation between the function modules and the resources used by the function modules, and action resources used by the function modules are obtained based on the obtained function modules corresponding to the version application program, The resources used by the functional modules and the action resources used by the functional modules are combined into a framework of the version application program; acquiring a metadata main table used by a function module corresponding to the version application program based on the mapping relation between the metadata main table and the function module, and acquiring a metadata field of the used metadata main table based on the mapping relation between the metadata main table and the metadata field; and acquiring archive data used by the functional module corresponding to the version application program based on the mapping relation between the functional module and the archive data, and loading the acquired metadata field and the archive data into a framework of the application program to form the user version of the version application program.
In the invention, the functional module, the resource and the resource action of the application program of the version are firstly obtained based on the version partitioning rule to form the frame of the application program of the version, then, based on the metadata partition rule and the basic archive partition rule, the metadata and the basic archive data needed by the program operation are obtained from the local system of the user, and recorded in the frame of the application program to form the user version of the application program of the version, thereby realizing the dynamic loading of the application in the operation, because of adopting three fine-grained partition rules of a version partition rule, a metadata partition rule and a basic file partition rule, the user can conveniently use the application with the corresponding version of the authority, corresponding metadata and basic archive data are loaded when the application runs, and the running of the program is convenient, which is another important invention point of the invention.
In one embodiment, the displaying step operates by: the method comprises the steps of obtaining the type of user equipment, carrying out layout adjustment on the user version of the application program of the version based on the type of the user equipment, and displaying obtained metadata fields and archive data in an application program interface after the layout adjustment. For example, at a PC end, a PAD end, and a mobile phone end, the present invention can be used to complete application version partition analysis to obtain resources corresponding to an application, and display data on corresponding devices, which is an important point of the present invention.
Fig. 2 shows an application version dynamic partitioning apparatus of the present invention, which includes:
an initialization unit 201, which initially defines an application program and a plurality of versions of the application program, wherein the application program function of each version is different; for the same source program, application versions with different functions, such as a popular version, a standard version and a flagship version, are packaged, the functions of the application programs of the versions are different, for example, the popular version only has the most basic function, the flagship version can have some complex functions, and the application prices of the different versions are also different, so that the market demand is met, and the needs of customers are met.
A partitioning unit 202, configured to partition multidimensional resources used in the running process of the application program to obtain mutually independent resources, where each application program version corresponds to one or more independent resources; the invention supports multi-dimensional partition, and the functions, resources and support of application versions are set according to a plurality of dimensions such as function modules, function menu resources, function operations, page metadata fields, field data and the like, so as to meet the requirement of fine management of customer services, namely fine-grained partition.
The analysis unit 203 acquires the version of the application program corresponding to the user based on the authority of the user, and acquires the resource of the application program based on the version; i.e. the corresponding resources are dynamically loaded according to the user rights, i.e. which version of the application the user has purchased.
The display unit 204 loads the resource into the application program of the corresponding version based on the user equipment, and displays the resource on the interface of the user equipment.
The invention is based on a set of source programs, dynamically sets the functions and resources of the application version according to the requirements of users during design or running, and adopts a multi-dimensional separation technology to perform fine-grained setting on the functions and resources of the application version according to a plurality of dimensions such as function modules, function menu resources, function operations, page metadata fields, field data and the like so as to meet the requirement of fine management on customer services.
In one embodiment, the multi-dimensional resources include: the system comprises functional resources of an application program, metadata of the application program and a basic file used in the running of the application program, wherein the functional resources comprise functional modules of the application program, resources used by the functional modules and action resources corresponding to the functional modules, the metadata comprise a metadata main table and metadata fields, and the basic file refers to file data in an application system.
Preferably, in the partitioning step, a version partitioning rule, a metadata partitioning rule and a basic archive partitioning rule are set, the version partitioning rule includes a mapping relationship between an application program and a function module, a mapping relationship between a version and a function module, a mapping relationship between a function module and a resource used by the function module, and a mapping relationship between the function module and an action resource; the metadata partition rule comprises a mapping relation between a metadata main table and the function module and a mapping relation between the metadata main table and the metadata field; the basic file partition rule comprises a mapping relation between the functional module and the file data, and dynamically generates application programs with different versions according to the version partition rule, the metadata partition rule and the basic file partition rule.
The version control in the prior art generally adopts a plurality of sets of codes or codes to carry out version branch control on the same source program or corresponds to different program modules according to versions, and the defects of high implementation cost, complex scheme, poor flexibility, low granularity of partition and the like are overcome, the version partition rule is set in the invention for realizing the association of the modules and the application, the metadata partition rule is used for realizing the association of metadata and the modules, the basic archive partition rule is used for realizing the association of basic archives and function modules, and the fine granularity of the application program is realized, so that the configuration of the application is simpler and quicker, and because the association of the metadata, the basic archives and the function modules is realized, when the user uses the application, the related data in a local system can be directly loaded, the user time is saved, the operation difficulty is reduced, which is a technology that the version control in the prior art is not available, this is another important inventive point of the present invention.
In one embodiment, the parsing step operates to: when a user logs in an application program, the user's authority is obtained, the version of the application program corresponding to the user is obtained based on the user's authority, a version partitioning rule is queried according to the version, the version partitioning rule can be an inclusion rule or an exclusion rule, for example, a rule specifies which function modules are included, the exclusion rule refers to that all the function modules except the modules in the rule are included in the application, all the function modules corresponding to the application program are obtained based on the mapping relation between the application program and the function modules, the function modules corresponding to the version application program are obtained from all the function modules based on the mapping relation between the version and the function modules, resources used by the function modules are obtained based on the mapping relation between the function modules and the resources used by the function modules, and action resources used by the function modules are obtained based on the obtained function modules corresponding to the version application program, The resources used by the functional modules and the action resources used by the functional modules are combined into a framework of the version application program; acquiring a metadata main table used by a function module corresponding to the version application program based on the mapping relation between the metadata main table and the function module, and acquiring a metadata field of the used metadata main table based on the mapping relation between the metadata main table and the metadata field; and acquiring archive data used by the functional module corresponding to the version application program based on the mapping relation between the functional module and the archive data, and loading the acquired metadata field and the archive data into a framework of the application program to form the user version of the version application program.
In the invention, the functional module, the resource and the resource action of the application program of the version are firstly obtained based on the version partitioning rule to form the frame of the application program of the version, then, based on the metadata partition rule and the basic archive partition rule, the metadata and the basic archive data needed by the program operation are obtained from the local system of the user, and recorded in the frame of the application program to form the user version of the application program of the version, thereby realizing the dynamic loading of the application in the operation, because of adopting three fine-grained partition rules of a version partition rule, a metadata partition rule and a basic file partition rule, the user can conveniently use the application with the corresponding version of the authority, corresponding metadata and basic archive data are loaded when the application runs, and the running of the program is convenient, which is another important invention point of the invention.
In one embodiment, the displaying step operates by: the method comprises the steps of obtaining the type of user equipment, carrying out layout adjustment on the user version of the application program of the version based on the type of the user equipment, and displaying obtained metadata fields and archive data in an application program interface after the layout adjustment. For example, at a PC end, a PAD end, and a mobile phone end, the present invention can be used to complete application version partition analysis to obtain resources corresponding to an application, and display data on corresponding devices, which is an important point of the present invention.
The invention also proposes a computer-readable storage medium having stored thereon computer program code which, when executed by a computer, performs any of the methods described above.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
Finally, it should be noted that: although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that: modifications and equivalents may be made thereto without departing from the spirit and scope of the invention and it is intended to cover in the claims the invention as defined in the appended claims.

Claims (10)

1. A method for dynamically partitioning application versions, the method comprising:
initializing, namely initially defining an application program and a plurality of versions of the application program, wherein the application program function of each version is different;
a partitioning step, namely partitioning the multidimensional resources used in the running process of the application program to obtain mutually independent resources, wherein each application program version corresponds to one or more independent resources;
analyzing, namely acquiring the version of the application program corresponding to the user based on the authority of the user, and acquiring the resource of the application program based on the version;
and a display step, namely loading the resources into the application program of the corresponding version based on the user equipment and displaying the resources on an interface of the user equipment.
2. The method of claim 1, wherein the multi-dimensional resources comprise: the system comprises functional resources of an application program, metadata of the application program and a basic file used in the running of the application program, wherein the functional resources comprise functional modules of the application program, resources used by the functional modules and action resources corresponding to the functional modules, the metadata comprise a metadata main table and metadata fields, and the basic file refers to file data in an application system.
3. The method according to claim 2, wherein in the partitioning step, a version partitioning rule, a metadata partitioning rule, and a base archive partitioning rule are set, the version partitioning rule including a mapping relationship between an application program and a function module, a mapping relationship between a version and a function module, a mapping relationship between a function module and a resource used therefor, and a mapping relationship between a function module and an action resource; the metadata partition rule comprises a mapping relation between a metadata main table and the function module and a mapping relation between the metadata main table and the metadata field; the basic file partition rule comprises a mapping relation between the functional module and the file data, and dynamically generates application programs with different versions according to the version partition rule, the metadata partition rule and the basic file partition rule.
4. The method of claim 3, wherein the parsing step operates to: when a user logs in an application program, acquiring the authority of the user, acquiring the version of the application program corresponding to the user based on the authority of the user, inquiring a version partition rule according to the version, acquiring all function modules corresponding to the application program based on the mapping relation between the application program and the function modules, acquiring the function modules corresponding to the application program of the version from all the function modules based on the mapping relation between the version and the function modules, acquiring resources used by the function modules based on the mapping relation between the function modules and the resources used by the function modules, acquiring action resources used by the function modules based on the mapping relation between the function modules and the action resources, and synthesizing a frame of the application program of the version according to the acquired function modules corresponding to the application program of the version, the acquired resources used by the function modules and the action resources used by the function modules; acquiring a metadata main table used by a function module corresponding to the version application program based on the mapping relation between the metadata main table and the function module, and acquiring a metadata field of the used metadata main table based on the mapping relation between the metadata main table and the metadata field; and acquiring archive data used by the functional module corresponding to the version application program based on the mapping relation between the functional module and the archive data, and loading the acquired metadata field and the archive data into a framework of the application program to form the user version of the version application program.
5. The method of claim 4, wherein the displaying step operates to: the method comprises the steps of obtaining the type of user equipment, carrying out layout adjustment on the user version of the application program of the version based on the type of the user equipment, and displaying obtained metadata fields and archive data in an application program interface after the layout adjustment.
6. An application version dynamic partitioning apparatus, comprising:
the device comprises an initialization unit, a storage unit and a control unit, wherein the initialization unit initially defines an application program and a plurality of versions of the application program, and the application program function of each version is different;
the partitioning unit is used for partitioning the multidimensional resources used in the running process of the application program to obtain mutually independent resources, and each application program version corresponds to one or more independent resources;
the analysis unit is used for acquiring the version of the application program corresponding to the user based on the authority of the user and acquiring the resource of the application program based on the version;
and the display unit loads the resources into the application programs of the corresponding versions based on the user equipment and displays the resources on the interface of the user equipment.
7. The apparatus of claim 6, wherein the multi-dimensional resources comprise: the system comprises functional resources of an application program, metadata of the application program and a basic file used in the running of the application program, wherein the functional resources comprise functional modules of the application program, resources used by the functional modules and action resources corresponding to the functional modules, the metadata comprise a metadata main table and metadata fields, and the basic file refers to file data in an application system.
8. The apparatus according to claim 7, wherein a version partitioning rule, a metadata partitioning rule, and a base archive partitioning rule are set in the partitioning unit, the version partitioning rule including a mapping relationship between an application and a function module, a mapping relationship between a version and a function module, a mapping relationship between a function module and a resource used therefor, and a mapping relationship between a function module and an action resource; the metadata partition rule comprises a mapping relation between a metadata main table and the function module and a mapping relation between the metadata main table and the metadata field; the basic file partition rule comprises a mapping relation between the functional module and the file data, and dynamically generates application programs with different versions according to the version partition rule, the metadata partition rule and the basic file partition rule.
9. The apparatus of claim 8, wherein the parsing unit performs the following operations: when a user logs in an application program, acquiring the authority of the user, acquiring the version of the application program corresponding to the user based on the authority of the user, inquiring a version partition rule according to the version, acquiring all function modules corresponding to the application program based on the mapping relation between the application program and the function modules, acquiring the function modules corresponding to the application program of the version from all the function modules based on the mapping relation between the version and the function modules, acquiring resources used by the function modules based on the mapping relation between the function modules and the resources used by the function modules, acquiring action resources used by the function modules based on the mapping relation between the function modules and the action resources, and synthesizing a frame of the application program of the version according to the acquired function modules corresponding to the application program of the version, the acquired resources used by the function modules and the action resources used by the function modules; acquiring a metadata main table used by a function module corresponding to the version application program based on the mapping relation between the metadata main table and the function module, and acquiring a metadata field of the used metadata main table based on the mapping relation between the metadata main table and the metadata field; acquiring archive data used by a function module corresponding to the version application program based on the mapping relation between the function module and the archive data, and loading the acquired metadata field and the archive data into a frame of the application program to form a user version of the version application program; the display unit performs the operations of: the method comprises the steps of obtaining the type of user equipment, carrying out layout adjustment on the user version of the application program of the version based on the type of the user equipment, and displaying obtained metadata fields and archive data in an application program interface after the layout adjustment.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon computer program code which, when executed by a computer, performs the method of any of claims 1-5.
CN202011525386.XA 2020-12-22 2020-12-22 Application program version dynamic partitioning method, device and medium Active CN112256322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011525386.XA CN112256322B (en) 2020-12-22 2020-12-22 Application program version dynamic partitioning method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011525386.XA CN112256322B (en) 2020-12-22 2020-12-22 Application program version dynamic partitioning method, device and medium

Publications (2)

Publication Number Publication Date
CN112256322A true CN112256322A (en) 2021-01-22
CN112256322B CN112256322B (en) 2021-03-19

Family

ID=74225831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011525386.XA Active CN112256322B (en) 2020-12-22 2020-12-22 Application program version dynamic partitioning method, device and medium

Country Status (1)

Country Link
CN (1) CN112256322B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101198927A (en) * 2005-06-27 2008-06-11 微软公司 Managed automation programming model
US20140282944A1 (en) * 2013-03-12 2014-09-18 Stackinsider Technology LLC Methods and systems of deploying cloud computing platforms
CN107908403A (en) * 2017-11-10 2018-04-13 北京搜狐新动力信息技术有限公司 A kind of collocation method and system of the modularization of mobile terminal business module
CN111443939A (en) * 2020-04-16 2020-07-24 视若飞信息科技(上海)有限公司 Configuration method and device of software development kit and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101198927A (en) * 2005-06-27 2008-06-11 微软公司 Managed automation programming model
US20140282944A1 (en) * 2013-03-12 2014-09-18 Stackinsider Technology LLC Methods and systems of deploying cloud computing platforms
CN107908403A (en) * 2017-11-10 2018-04-13 北京搜狐新动力信息技术有限公司 A kind of collocation method and system of the modularization of mobile terminal business module
CN111443939A (en) * 2020-04-16 2020-07-24 视若飞信息科技(上海)有限公司 Configuration method and device of software development kit and storage medium

Also Published As

Publication number Publication date
CN112256322B (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN109117169B (en) Method and device for repairing kernel vulnerability
CN113312037B (en) Data processing method, device, equipment and storage medium applied to micro-service
CA2894094C (en) Managing software suite component versions
CN110109670B (en) Method and device for processing view list data, electronic equipment and storage medium
WO2012072039A1 (en) Software upgrade method and apparatus
CN107797820B (en) Method and device for generating patch
CN103577207A (en) Loading method and loading device for interface components in custom interface system
CN111126019A (en) Report generation method and device based on mode customization and electronic equipment
CN110597564A (en) Installation package construction and service component loading method, device and terminal equipment
CN111045653A (en) System generation method and device, computer readable medium and electronic equipment
CN108733370B (en) Stylized display method, device, terminal and storage medium of native APP
CN114385164A (en) Page generation and rendering method and device, electronic equipment and storage medium
CN111476007B (en) Table generation method, table generation device, computer device and computer-readable storage medium
CN110688096A (en) Method, device, medium and electronic equipment for constructing application program containing plug-in
US10514940B2 (en) Virtual application package reconstruction
CN113434063B (en) Information display method, device and equipment
US9141353B2 (en) Dynamically building locale objects at run-time
CN112256322B (en) Application program version dynamic partitioning method, device and medium
CN113742018A (en) Archive model adjusting method, computer device and computer readable storage medium
CN113656005A (en) Application component library construction method, application component configuration method and related device
CN112631563A (en) System development method and device based on framework, computer equipment and storage medium
CN111459933B (en) GDB data dynamic expansion method, device and storage medium
CN115756452A (en) Target page code generation method, device, storage medium and program product
CN109460397B (en) Data output control method and device, storage medium and electronic equipment
CN112965733A (en) Component library updating method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant