CN114201207B - Resource synchronization method and device, electronic equipment and storage medium - Google Patents
Resource synchronization method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114201207B CN114201207B CN202111382661.1A CN202111382661A CN114201207B CN 114201207 B CN114201207 B CN 114201207B CN 202111382661 A CN202111382661 A CN 202111382661A CN 114201207 B CN114201207 B CN 114201207B
- Authority
- CN
- China
- Prior art keywords
- resource
- synchronized
- storage
- path information
- information
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The disclosure relates to a resource synchronization method, a device, an electronic device and a storage medium, and when the method is applied to a resource sharing end, the method comprises the following steps: generating a sharing end configuration file based on preset operation of the research project; the preset operation is used for realizing the function development requirement; the sharing end configuration file comprises: attribute information of resource objects to be synchronized, which are used by the resource sharing end when realizing functions, and address information of a preset storage area of a research and development project; generating an object set to be synchronized based on attribute information of the resource objects; the object set to be synchronized comprises resource objects; and uploading the object set to be synchronized to a preset storage area based on the address information so that the resource synchronization end downloads the object set to be synchronized. The method and the device can solve the problems that in the related art, different development terminals are not timely synchronous with resources and are easy to make mistakes in the development process based on the same project.
Description
Technical Field
The disclosure relates to the technical field of internet, and in particular relates to a resource synchronization method, a device, electronic equipment and a storage medium.
Background
Currently, code development of some development projects such as a middle platform project is often cross-platform, and one development can adapt to double-ended codes of android and ios ends, for example, some model resources and picture resources are common in both ends.
In the related art, development of different operating system versions of a developed project is required to be completed by different developers, and development tools used by different developers are different, so that when any developer changes project resources, the part of the resource, which is required to change, is required to inform other developers, but notification can only be performed manually at present, manual update is performed when notification is received, and if the update is not timely, errors occur in terminal application. Therefore, the problems of untimely resource synchronization and easy error exist in the development process of different development terminals based on the same project in the related technology.
Disclosure of Invention
The disclosure provides a resource synchronization method, a device, an electronic device and a storage medium, which can solve the problems of untimely resource synchronization and easy error existing in the development process of different development terminals based on the same project in the related technology. The technical scheme of the present disclosure is as follows:
According to a first aspect of an embodiment of the present disclosure, a resource synchronization method is provided, applied to a resource sharing end, and the method includes:
Generating a sharing end configuration file based on preset operation of the research project; the preset operation is used for realizing the function development requirement; the sharing end configuration file comprises: attribute information of resource objects to be synchronized, which are used by the resource sharing end when realizing functions, and address information of a preset storage area of a research and development project;
generating an object set to be synchronized based on attribute information of the resource objects; the object set to be synchronized comprises resource objects;
and uploading the object set to be synchronized to a preset storage area based on the address information so that the resource synchronization end downloads the object set to be synchronized.
Optionally, the attribute information of the resource object includes identification information and storage path information of the resource object; generating a set of objects to be synchronized based on attribute information of the resource objects, comprising:
Determining an initial storage area based on the storage path information;
Taking the resource object in the initial storage area as a copy object;
Determining an object folder corresponding to the object set to be synchronized, copying the copy object into the object folder, and representing the copy object by the identification information of the resource object;
A set of objects to be synchronized is obtained based on each replicated object in the object folder.
Optionally, determining an object folder corresponding to the object set to be synchronized, and copying the copy object into the object folder includes:
Creating object folders of which the number corresponds to the number of categories based on the number of categories of the resource object; each object folder is used for storing the resource objects of the same kind;
and copying the copy object into an object folder of a corresponding type according to the type of the copy object.
Optionally, the attribute information of the resource object includes identification information and storage path information of the resource object, and generating the sharing end configuration file includes:
taking the identification information of the preset storage area as a storage object key, taking the address information of the preset storage area as a storage object value, and generating a storage key value pair based on the storage object key and the storage object value;
The identification information of the resource object is used as a resource object key, the storage path information is used as a resource object value, and a resource key value pair is generated based on the resource object key and the storage object value.
Optionally, generating an object set to be synchronized based on attribute information of the resource object; the object to be synchronized includes resource objects:
Determining a resource key value pair based on the identification information of the resource object, taking a resource object value in the resource key value pair as storage path information, and generating an object set to be synchronized based on the resource object corresponding to the storage path information;
Uploading the object set to be synchronized to a preset storage area based on the address information comprises the following steps:
And determining a storage key value pair based on the identification information of the preset storage area, taking the storage object value in the storage key value pair as address information, and uploading the set of objects to be synchronized to the preset storage area based on the address information.
Optionally, the resource sharing end is used for developing the research and development project based on the first operating system, and the resource synchronizing end is used for developing the research and development project based on the second operating system.
According to a second aspect of the embodiments of the present disclosure, there is provided a resource synchronization method, applied to a resource synchronization end, the method including:
Generating a synchronous end configuration file based on the function synchronization requirement of the research and development project; the synchronous end configuration file comprises address information and resource storage path information of a preset storage area corresponding to the research and development project;
Acquiring an object set to be synchronized uploaded by a resource sharing end from a preset storage area based on address information; the method comprises the steps that an object set to be synchronized is generated by a resource sharing end based on attribute information of resource objects to be synchronized in a sharing end configuration file; the sharing terminal configuration file is generated by the resource sharing terminal based on the preset operation of the research and development item; the preset operation is used for realizing the function development requirement;
and storing the object set to be synchronized into a storage area corresponding to the resource storage path information based on the resource storage path information so as to enable the resource synchronization end to develop the research and development project.
Optionally, the synchronization end configuration file includes identification information of a default object, and the resource storage path information includes default storage path information; generating a synchronous end configuration file, comprising:
and taking the identification information of the default object as a default object key, taking the default storage path information as a default object value, and generating a default key value pair based on the default object key and the default object value.
Optionally, the synchronization end configuration file includes identification information of the resource object, and the resource storage path information includes specified storage path information of the resource object; generating a synchronous end configuration file, comprising:
The identification information of the resource object is used as a resource object key, the designated storage path information is used as a resource object value, and a resource key value pair is generated based on the resource object key and the designated storage path information.
Optionally, when the synchronization side configuration file includes identification information of the resource object, and the resource storage path information includes specified storage path information of the resource object, storing the set of objects to be synchronized in a storage area corresponding to the resource storage path information, including:
Determining a target object matched with the identification information of the resource object from the object set to be synchronized;
Determining a resource key value pair based on the identification information of the resource object, and taking the resource object value in the resource key value pair as specified storage path information;
and storing the target object into a corresponding storage area corresponding to the appointed storage path information.
Optionally, when the synchronization side configuration file includes identification information of a default object and the synchronization side configuration file does not include identification information of a resource object, storing the set of objects to be synchronized in a storage area corresponding to the resource storage path information, including:
And determining a default key value pair based on the identification information of the default object, taking the default object value in the default key value pair as default storage path information, and storing the objects in the object set to be synchronized in a storage area corresponding to the default storage path information.
Optionally, the resource sharing end is used for developing the research and development project based on the first operating system, and the resource synchronizing end is used for developing the research and development project based on the second operating system.
According to a third aspect of the embodiments of the present disclosure, there is provided a resource synchronization device, applied to a resource sharing end, the device including:
The first generation module is configured to execute preset operation based on the research project and generate a sharing end configuration file; the preset operation is used for realizing the function development requirement; the sharing end configuration file comprises: attribute information of resource objects to be synchronized, which are used by the resource sharing end when realizing functions, and address information of a preset storage area of a research and development project;
A second generation module configured to perform generation of a set of objects to be synchronized based on attribute information of the resource objects; the object set to be synchronized comprises resource objects;
And the uploading module is configured to upload the object set to be synchronized to a preset storage area based on the address information so as to enable the resource synchronization end to download the object set to be synchronized.
Optionally, the attribute information of the resource object includes identification information and storage path information of the resource object; a second generation module, comprising:
a first determination unit configured to perform determination of an initial storage area based on the storage path information;
a second determination unit configured to execute taking the resource object in the initial storage area as a copy object;
A third determining unit configured to perform determining an object folder corresponding to the set of objects to be synchronized, copy the copy object into the object folder, and characterize the copy object with identification information of the resource object;
And a fourth determining unit configured to perform obtaining the object set to be synchronized based on each of the replicated objects in the object folder.
Optionally, the third determining unit is configured to execute creating a number of object folders corresponding to the number of categories based on the number of categories of the resource object; each object folder is used for storing the resource objects of the same kind;
and copying the copy object into an object folder of a corresponding type according to the type of the copy object.
Optionally, the attribute information of the resource object includes identification information and storage path information of the resource object;
A first generation module configured to execute a process of generating a pair of storage key values based on the storage object key and the storage object value, with the identification information of the preset storage area as the storage object key and the address information of the preset storage area as the storage object value; the identification information of the resource object is used as a resource object key, the storage path information is used as a resource object value, and a resource key value pair is generated based on the resource object key and the storage object value.
Optionally, the second generating module is configured to determine a resource key value pair based on the identification information of the resource object, take the resource object value in the resource key value pair as storage path information, and generate an object set to be synchronized based on the resource object corresponding to the storage path information;
And the uploading module is configured to determine a storage key value pair based on the identification information of the preset storage area, take the storage object value in the storage key value pair as address information, and upload the set of objects to be synchronized to the preset storage area based on the address information.
Optionally, the resource sharing end is used for developing the research and development project based on the first operating system, and the resource synchronizing end is used for developing the research and development project based on the second operating system.
According to a fourth aspect of embodiments of the present disclosure, there is provided a resource synchronization device, applied to a resource synchronization end, the device including:
the generating module is configured to execute the function synchronization requirement based on the research and development project and generate a synchronization end configuration file; the synchronous end configuration file comprises address information and resource storage path information of a preset storage area corresponding to the research and development project;
The acquisition module is configured to execute the acquisition of the object set to be synchronized uploaded by the resource sharing end from a preset storage area based on the address information; the file to be synchronized is generated by the resource sharing end based on the attribute information of the resource object to be synchronized in the configuration file of the sharing end; the sharing end configuration file is generated by the resource sharing end based on preset operation executed on the research and development project; the preset operation refers to the operation which is executed on the research project and used for realizing the function based on the function development requirement of the research project by the resource sharing end;
the storage module is configured to execute the storage of the resource objects in the object set to be synchronized into the storage area corresponding to the resource storage path information based on the resource storage path information so as to enable the resource synchronization end to develop functions.
Optionally, the synchronization end configuration file includes identification information of a default object, and the resource storage path information includes default storage path information;
The generating module is configured to execute the identification information of the default object as a default object key, the default storage path information as a default object value, and generate a default key value pair based on the default object key and the default object value.
Optionally, the synchronization end configuration file includes identification information of the resource object, and the resource storage path information includes specified storage path information of the resource object;
And a generation module configured to execute the identification information of the resource object as a resource object key, the specified storage path information as a resource object value, and generate a resource key value pair based on the resource object key and the specified storage path information.
Alternatively, when the synchronization side configuration file includes identification information of the resource object, the resource storage path information includes specified storage path information of the resource object,
The storage module is configured to execute the steps of determining a target object matched with the identification information of the resource object from the object set to be synchronized; determining a resource key value pair based on the identification information of the resource object, and taking the resource object value in the resource key value pair as specified storage path information; and storing the target object into a corresponding storage area corresponding to the appointed storage path information.
Alternatively, when the synchronization side profile includes identification information of the default object, and the synchronization side profile does not include identification information of the resource object,
The storage module is configured to determine a default key value pair based on the identification information of the default object, take a default object value in the default key value pair as default storage path information, and store the object in the object set to be synchronized in a storage area corresponding to the default storage path information.
Optionally, the resource sharing end is used for developing the research and development project based on the first operating system, and the resource synchronizing end is used for developing the research and development project based on the second operating system.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
A processor;
A memory for storing processor-executable instructions;
Wherein the processor is configured to execute instructions to implement the resource synchronization method provided in the first or second aspect of the present disclosure.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the resource synchronization method provided in the first or second aspect of the present disclosure.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program stored in a readable storage medium, the computer program being read from the readable storage medium and executed by at least one processor of a computer device, such that the computer device performs the resource synchronization method as provided in the first or second aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
The resource sharing terminal generates a sharing terminal configuration file based on the preset operation of the research and development project; the preset operation is used for realizing the function development requirement; the sharing end configuration file comprises: attribute information of resource objects to be synchronized, which are used by the resource sharing end when realizing functions, and address information of a preset storage area of a research and development project; generating an object set to be synchronized based on attribute information of the resource objects; the object set to be synchronized comprises resource objects; and uploading the object set to be synchronized to a preset storage area based on the address information so that the resource synchronization end downloads the object set to be synchronized. Therefore, when any one of the development terminals changes the project resource, the development terminal is used as a resource sharing terminal, and the changed resource object can be rapidly shared to other development terminals, so that the other development terminals can synchronously update the project resource, and the program automatically synchronizes the project resource, so that the efficiency is high, the error rate is low, and the overall development efficiency of the project can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a schematic diagram of an application environment shown in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of resource synchronization according to an example embodiment;
FIG. 3 is a flowchart illustrating a method for generating a set of objects to be synchronized based on attribute information of resource objects, according to an example embodiment;
FIG. 4 is a flowchart illustrating a method of resource synchronization, according to an example embodiment;
FIG. 5 is a block diagram of a resource synchronization device, according to an example embodiment;
FIG. 6 is a block diagram of a resource synchronization device, according to an example embodiment;
FIG. 7 is a block diagram of an electronic device for resource synchronization, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar first objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Typically for one development project, it is required to be able to run on a device of a plurality of different operating systems, so different developers are required to develop different operating systems for the same development project. A typical development project, such as a middle stage project, is a solution proposed to solve the dilemma because of the high cost and risk of the background modification in the foreground development process, and the huge amount of business logic is plugged into the foreground system, which causes the foreground system to expand continuously, affecting the response capability of the foreground to the user. Therefore, in the development process of the middle platform project, developers of different operating systems are required to cooperatively develop. In the current development process, when any one of the open personnel changes the project, some resources in the project are correspondingly changed, such as new resource objects are added, but the change of the resources and the new resource objects cannot be effectively and quickly synchronized to the other developer, and the other developer can only be notified in an offline manual mode, so that the problem of low efficiency exists in the current project development process is caused.
Referring to fig. 1, fig. 1 is a schematic diagram of an application environment of a resource synchronization method according to an exemplary embodiment, and as shown in fig. 1, the application environment may include a client 01 and a client 02, where the client 01 is a resource sharing end and the client 02 is a resource synchronization end. The client 01 and the client 02 are provided with development tools used by developers, and different development tools are used for realizing application development of different operating systems.
In some possible embodiments, the client 01 generates the sharing-side configuration file based on a preset operation on the development project; the preset operation is used for realizing the function development requirement; the sharing end configuration file comprises: attribute information of resource objects to be synchronized, which are used by the client 01 when realizing functions, and address information of a preset storage area of a research and development project; the client 01 generates an object set to be synchronized based on attribute information of the resource object; the object set to be synchronized comprises resource objects; finally, the client 01 uploads the object set to be synchronized to the preset storage area 03 based on the address information, so that the client 02 downloads the object set to be synchronized.
In some possible embodiments, the client 02 generates a synchronization side profile based on the functional synchronization requirements of the development project; the synchronous end configuration file comprises address information and resource storage path information of a preset storage area 03 corresponding to the research and development project; the client 02 acquires a set of objects to be synchronized uploaded by the resource sharing end from a preset storage area 03 based on the address information; finally, the client 02 stores the resource objects in the object set to be synchronized into the storage areas corresponding to the resource storage path information based on the resource storage path information, so that the client 02 can develop the research and development project.
The client may include, but is not limited to, a smart phone, a desktop computer, a tablet computer, a notebook computer, a smart speaker, a digital assistant, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a smart wearable device, and other types of devices. Or may be software running on the device, such as an application, applet, etc. Alternatively, the operating system running on the device may include, but is not limited to, an android system, an IOS system, linux, windows, unix, and the like.
In some possible embodiments, client 01 is used for IOS system-based development for a development project, and client 02 is used for android system-based development for a development project.
Fig. 2 is a flowchart of a resource synchronization method according to an exemplary embodiment, where the resource synchronization method, as shown in fig. 2, may be applied to a resource sharing end, and includes the following steps:
In step S201, a sharing end configuration file is generated based on a preset operation on the research item; the preset operation is used for realizing the function development requirement; the sharing end configuration file comprises: the method comprises the steps of enabling attribute information of resource objects to be synchronized, which are used by a resource sharing end when the function is realized, and address information of a preset storage area of a research and development project.
In the embodiment of the disclosure, the resource sharing end is used as a front-end device used by a developer under a development architecture, and development tools (IDE) used by the developer are installed on the front-end device, and the development tools are classified according to different application end operating systems, for example, for an application end running an IOS operating system, an Xcode development tool can be used for developing corresponding projects, and Xcode is the fastest way for developing macOS and IOS applications. For example, for an application end running an Android operating system, an Android studio development tool can be used for developing corresponding projects.
The functional development requirements of the development project relate to various aspects, such as business aspects, user aspects and the like, and characterize the implementation of certain functional logic, so that developers are required to use development tools for coding, testing and debugging, and finally, the development tools are online at an application end. The preset operation refers to an add-Delete-modify-check (curd) operation performed on the resource data of the research project during the research and development process of the research and development project, where the add-Delete-modify-check includes creation (Create), update (Update), reading (Retrieve) and deletion (Delete). The resource sharing end can realize the development of a certain function by executing the operations of adding, deleting and checking.
In the embodiment of the disclosure, the configuration file of the sharing end includes attribute information of a resource object to be synchronized, which is used by the resource sharing end when the function is implemented, and address information of a preset storage area of the research and development project.
In the embodiment of the disclosure, when any party changes a development project for a developer using different development tools, a part of the resource data, which is related to the change of the resource data in the changing process, is needed to change the resource data, so that other developers can develop corresponding functions based on the changed resource data.
In the related art, developers of different operating systems store resource data in different modes, one party changes the resource data, and needs to manually inform and package the resource data to the other party so that the developers store the resource data and develop corresponding functions. Therefore, the disclosure provides a resource synchronization method, which can solve the problems of untimely resource synchronization and easy error existing in the development process of different development terminals based on the same project in the related technology.
In the embodiment of the disclosure, a configuration file is created, and the configuration file is used for recording which resource objects are changed in the preset operation process, and synchronization with other development ends is needed. The configuration file comprises attribute information of resource objects to be synchronized, which are used by the resource sharing end when the function is realized, and the resource objects comprise resources which can be commonly used in project development such as pictures, models and the like. Meanwhile, the configuration file also comprises address information of a preset storage area of the research and development project, wherein the preset storage area is used for storing resource data changed in the research and development project.
In an alternative embodiment, the configuration file may be in JSON format, i.e. the property information of the resource object is characterized in the form of JSON objects (key-value format). JSON is a lightweight data exchange format, and a concise and clear hierarchical structure makes JSON an ideal data exchange language. The configuration file with the JSON format has the advantages that the configuration file is easy to read and write by a person, is easy to analyze and generate by a machine, can effectively improve the network transmission efficiency, and further improves the subsequent resource synchronization efficiency.
Further, in an alternative embodiment, the attribute information of the resource object includes identification information and storage path information of the resource object; the identification information and the storage path information of the resource object are characterized in a key-value (key-value) format; correspondingly, the generating the sharing end configuration file may include the following steps:
The identification information of the resource object is used as a resource object key, the storage path information is used as a resource object value, and a resource key value pair is generated based on the resource object key and the storage object value.
In an alternative embodiment, when creating the sharing end configuration file in JSON format, a JSON object (i.e. a resource key value pair) may be defined for each resource object, where a key value (i.e. a resource object key) of the JSON object is a name specified by the resource sharing end for the current resource object, and a value (i.e. a resource object value) is storage path information of the current resource object in the resource sharing end, regardless of the kind of the resource object. Specifically, if the resource object to be synchronized includes a plurality of picture resources, for example, the plurality of picture resources includes picture 1 and picture 2, the JSON object defined in the configuration file includes: "Picture 1" means path 1, "Picture 2" means path 2.
In another alternative embodiment, when creating the sharing end configuration file in JSON format, different types of JSON objects are defined for different types of resource objects, considering the types of resource objects. In other words, the resource objects of the same class are in the form of arrays as value values under the key values defined for that class. Specifically, when there are multiple picture-type resource objects, the JSON objects of different types include picture-type JSON objects, where the key value is pic, the value is a JSON array, each element in the JSON array characterizes the resource object of each picture type, each element is also a JSON object, and the key-value of the JSON object (i.e. the resource key pair) is the same as the defining manner of the above embodiment, which is not repeated here. For example, if the plurality of picture resources includes picture 1 and picture 2, then the JSON object defined in the configuration file includes: "pic" means [ "Picture 1" means path 1, "Picture 2" means path 2].
In some possible scenarios, the resource object to be synchronized may further include a model resource, and correspondingly, when there are multiple model type resource objects, the JSON objects of different types include model type JSON objects, where a key value is a mode, a value is a JSON array, each element in the array characterizes each model respectively, and each element is also a JSON object, and a key-value of the JSON object (i.e. a resource key value pair) is the same as a defining manner of the foregoing embodiment, which is not repeated herein. For example, where the plurality of model resources includes mode1 and mode2, then the JSON object defined in the configuration file includes: "mode" means [ "mode1" means path 3, "mode2" means path 4].
The two alternative embodiments provided above are different in that the defining manners of the resource objects in the configuration file are different, and in the second manner, compared with the first manner, when the to-be-synchronized object set is generated based on the configuration file later, the same kind of resource objects can be integrated in one folder, that is, in the first manner, the picture 1 and the picture 2 are respectively stored in two to-be-synchronized object sets, and in the second manner, the picture 1 and the picture 2 can be stored in the same pic folder, so that the number of to-be-synchronized object sets can be reduced, the to-be-synchronized resource objects can be integrated, which is convenient for the resource sharing end to have more visual understanding on the to-be-synchronized resource objects.
In an optional implementation manner, the resource sharing end is used for developing a first operating system based on a development project, and the resource synchronizing end is used for developing a second operating system based on the development project.
In order to solve the problem that in the related art, different development ends adopting different development tools cannot quickly perform resource sharing due to the fact that versions of different operating systems are developed for the same development project, in an alternative embodiment of the present disclosure, resource quick synchronization of different development ends can be realized by using a project management tool.
The project management tool can be Git, which is an open-source distributed version control system, and can effectively and rapidly process project version management from small to very large. Meanwhile, the method is also version control software of open source developed by Linus Torvalds to help manage Linux kernel development. Git is essentially a technology for managing multi-person collaborative research and development projects, and can manage the modification histories of different developers to files, catalogues or projects and other contents in the development process, so that the modification histories can be conveniently checked, and the previous versions can be conveniently backed up. In addition, the Git can realize cross-region multi-person collaborative development; tracking and recording a history of one or more files; organizing and protecting source code and documents; counting the workload; parallel development and development efficiency improvement; tracking and recording the development process of the whole software project; the burden of the developer is lightened, the time is saved, and meanwhile, the human error is reduced.
Correspondingly, in an alternative embodiment, the preset storage area includes a Git repository, where the repository refers to a shared database of all file revision histories under version control.
Further, in the foregoing embodiment, when the sharing end configuration file in JSON format is created, for the resource object to be synchronized, the key value in the corresponding JSON object is the name specified by the resource sharing end for the current resource object, where the name specified by the resource sharing end for the current resource object may be the name of the resource object in the Git repository, the value in the corresponding JSON object is the storage path information of the current resource object in the resource sharing end, and the storage path information may include the path of the resource object in the local cache, or the storage path of the resource object in the local disk.
In an alternative embodiment, when creating a JSON-formatted configuration file, it is also necessary to define JSON objects that characterize the preset storage region. Correspondingly, the generating the sharing end configuration file further comprises the following steps:
and taking the identification information of the preset storage area as a storage object key, taking the address information of the preset storage area as a storage object value, and generating a storage key value pair based on the storage object key and the storage object value.
Specifically, the key value (i.e., the storage object key) of the JSON object (i.e., the storage object key) used to represent the preset storage area may be a Git, and the value (i.e., the storage object value) may be the Git repository address information, where the Git repository corresponding to the Git repository address information is used to store the resource object to be uploaded and synchronized by the resource sharing end.
In the embodiment of the disclosure, the sharing end configuration file is generated based on the preset operation, and then the resource object defined in the sharing end configuration file is uploaded to the Git warehouse based on the Git, so that the Git is utilized to provide correct flow management, and a plurality of problems such as code consistency, content redundancy, concurrency in the development process, code security, project integration and the like can be avoided in the development process of the research and development project.
In step S203, a set of objects to be synchronized is generated based on the attribute information of the resource objects; the object set to be synchronized comprises resource objects.
In step S205, the set of objects to be synchronized is uploaded to a preset storage area based on the address information, so that the resource synchronization end downloads the set of objects to be synchronized.
In the embodiment of the disclosure, the resource sharing terminal generates a set of objects to be synchronized based on attribute information of the resource objects, wherein the set of objects to be synchronized includes the resource objects to be synchronized. Then, based on the address information of the preset storage area, uploading the set of the objects to be synchronized including the resource objects to be synchronized to the preset storage area, and the resource synchronization end can download the set of the objects to be synchronized from the preset storage area and then acquire the resource objects from the set of the objects to be synchronized.
In an alternative embodiment, the attribute information of the resource object includes identification information and storage path information of the resource object; the generating the object set to be synchronized based on the attribute information of the resource object may specifically include the following steps as shown in fig. 3:
In step S301, an initial storage area is determined based on the storage path information.
Specifically, the stored path information may include locally cached path information, and the initial storage area is a local cache area corresponding to the locally cached path information; or the storage path information may include non-locally cached path information, such as cloud storage path information, where the initial storage area is a cache area corresponding to the cloud storage path information.
In step S303, a resource object in the initial storage area is set as a copy object.
In step S305, an object folder corresponding to the set of objects to be synchronized is determined, the replication object is replicated in the object folder, and the replication object is characterized by the identification information of the resource object.
In a specific embodiment, the determining the object folder corresponding to the object set to be synchronized, and copying the copy object into the object folder may include the following steps:
creating object folders of which the number corresponds to the number of categories based on the number of categories of the resource object; each object folder is used for storing the resource objects of the same kind; and copying the copy object into an object folder of a corresponding type according to the type of the copy object.
For example, in the above embodiment, the types of resource objects are described as including a picture type and a model type, and the corresponding sharing end configuration file includes JSON objects corresponding to the two types, so that, correspondingly, the object folder created herein includes a pic folder and a mode folder, where the pic folder is used for storing the picture 1 and the picture 2, and the mode folder is used for storing the mode1 and the mode2.
In a further optional embodiment, the generating the object set to be synchronized based on the attribute information of the resource object further includes:
And determining a resource key value pair based on the identification information of the resource object, taking the resource object value in the resource key value pair as storage path information, and generating an object set to be synchronized based on the resource object corresponding to the storage path information.
In step S307, a set of objects to be synchronized is obtained based on each of the replicated objects in the object folder.
In the embodiment of the present disclosure, the script file implementing the steps S301 to S307 and step S207 is obtained, and the resource sharing end may execute the script file to implement uploading the resource object to be synchronized to the corresponding preset storage area based on the created sharing end configuration file.
Correspondingly, the uploading the object set to be synchronized to the preset storage area based on the address information may include the following steps:
And determining a storage key value pair based on the identification information of the preset storage area, taking the storage object value in the storage key value pair as address information, and uploading the set of objects to be synchronized to the preset storage area based on the address information.
Specifically, in the actual application process, when the script file is executed, a temporary engineering catalog is created according to the configuration file, wherein the temporary engineering catalog comprises an object folder, such as the pic folder and the mode folder; then, according to the storage path information of the resource object appointed in the configuration file, the resource object is found in the corresponding storage area, the resource object is copied into the corresponding object folder, and the name appointed for the resource object in the configuration file is named; in some possible scenarios, the name of the resource object in the local cache area is different from the name specified by the resource sharing end for the resource object; for example, the path information of the local cache is c\doc\picture x, namely the name of a certain resource object in the local cache area is picture x, and because the designated name of the resource object defined by the JSON object in the configuration file (namely, the resource object key) is picture 1, after the picture x in the local cache area is copied into the object file, the name of the resource object will be picture 1.
In the embodiment of the disclosure, the resource sharing end can upload the resource object defined in the sharing end configuration file to the preset storage area in the form of the object set to be synchronized by creating the sharing end configuration file and then executing the corresponding script file, so that the resource synchronization end can acquire the object set to be synchronized from the preset storage area. Therefore, when the resource sharing end and the resource synchronizing end develop versions of different operating systems aiming at the same research and development project, even if the resource sharing end and the resource synchronizing end adopt different development tools for development, when any one party changes project resources, the resource sharing end is used as the resource sharing end, the changed resource objects can be rapidly shared to the other party, so that the other party can synchronously update the project resources, the resource synchronizing process does not have human intervention, the program automatically synchronizes, the efficiency is high, the error rate is low, and the overall development efficiency of the project can be improved.
FIG. 4 is a flowchart illustrating a resource synchronization method, as shown in FIG. 4, according to an exemplary embodiment, where the resource synchronization method may be applied to a resource synchronization end, and includes the following steps:
in step S401, a synchronization end configuration file is generated based on the functional synchronization requirement of the development project; the synchronous end configuration file comprises address information and resource storage path information of a preset storage area corresponding to the research and development project.
In step S403, the set of objects to be synchronized uploaded by the resource sharing end is obtained from the preset storage area based on the address information.
The resource sharing end generates the resource object to be synchronized based on the attribute information of the resource object to be synchronized in the sharing end configuration file; the sharing terminal configuration file is generated by the resource sharing terminal based on the preset operation of the research and development item; the preset operation is used for realizing the function development requirement.
In step S405, based on the resource storage path information, the set of objects to be synchronized is stored in a storage area corresponding to the resource storage path information, so that the resource synchronization end can develop the development project.
In the embodiment of the disclosure, a resource synchronization terminal creates a synchronization terminal configuration file based on the function synchronization requirement of a research and development project; the synchronous side configuration file comprises address information and resource storage path information of a preset storage area corresponding to the research and development project. The function synchronization requirement characterizes the synchronization operation required by the developer before executing the function development of the research and development project to ensure that the developer is developed based on the latest project resources.
In an alternative embodiment, the synchronization side configuration file and the sharing side configuration file have the same format, and are both JSON formats.
Accordingly, when creating a synchronous side configuration file in JSON format, a JSON object for representing a preset storage area needs to be defined, a key value of the JSON object may be a Git, a value may be a Git repository address information, and a manner defined herein is the same as that of a sharing side configuration file, except that a resource synchronization side acquires a resource object from a corresponding Git repository based on the Git repository address information.
In an optional implementation manner, the synchronization end configuration file further includes identification information of a default object, and the resource storage path information includes default storage path information; the identification information of the default object and the default storage path information are characterized in the format of key-value pairs. Correspondingly, the generating the configuration file of the synchronous end includes:
and taking the identification information of the default object as a default object key, taking the default storage path information as a default object value, and generating a default key value pair based on the default object key and the default object value.
Specifically, when the resource synchronization end creates a synchronization end configuration file in the JSON format, a JSON object needs to be defined and used for representing an unknown resource object, a key value (i.e., a default object key) of the JSON object (i.e., a default key value pair) is identification information of the default object, and may specifically be a default name, a value (i.e., a default object value) is default storage path information, and the default storage path information may specifically be a local default storage path specified by the resource synchronization end.
In an alternative embodiment, the synchronization side configuration file includes identification information of the resource object, and the resource storage path information includes specified storage path information of the resource object; the identification information of the resource object and the specified storage path information are characterized in the format of key-value pairs. Correspondingly, the generating the configuration file of the synchronous end includes:
The identification information of the resource object is used as a resource object key, the designated storage path information is used as a resource object value, and a resource key value pair is generated based on the resource object key and the designated storage path information.
Specifically, when the resource synchronization end creates the synchronization end configuration file in JSON format, the name of the resource object to be shared by the resource sharing end is known in advance, so that when the synchronization end configuration file is created, a corresponding JSON object (i.e. a resource key value pair) is defined for the resource object, the key value (i.e. a resource object key) of the corresponding JSON object is the same as the definition of the resource sharing end, and the value (i.e. a resource object value) is the storage path information designated by the resource synchronization end for the resource object. In some possible scenarios, the resource object to be shared by the resource sharing end known in advance by the resource synchronization end may be saved during the last synchronization, and the value is the local actual storage path of the resource object.
In an optional implementation manner, when the configuration file of the synchronization end includes identification information of a resource object, and the resource storage path information includes specified storage path information of the resource object, storing the resource object in the object set to be synchronized into a storage area corresponding to the resource storage path information, including:
Determining a target object matched with the identification information of the resource object from the object set to be synchronized;
Determining a resource key value pair based on the identification information of the resource object, and taking the resource object value in the resource key value pair as specified storage path information;
and storing the target object into a corresponding storage area corresponding to the appointed storage path information.
Specifically, the JSON object (resource key value pair) defined in the synchronous side configuration file comprises a picture 1 and a path 5; here, path 5 is its local storage path specified by the resource synchronization end for picture 1; because the resource synchronization end designates a storage path for the picture 1, in the synchronization process, the picture 1 is found from the object set to be synchronized, the picture 1 is taken as a target object, and then the picture 1 is stored in a corresponding storage area according to a resource object value, namely, a path 5.
In an optional implementation manner, when the synchronization end configuration file includes identification information of a default object and the synchronization end configuration file does not include identification information of a resource object, storing the resource object in the object set to be synchronized into a storage area corresponding to the resource storage path information, where the method includes:
And determining a default key value pair based on the identification information of the default object, taking the default object value in the default key value pair as default storage path information, and storing the objects in the object set to be synchronized in a storage area corresponding to the default storage path information.
Specifically, the JSON object (default key value pair) defined in the synchronous side configuration file comprises a default path 6; here, path 6 is a storage path specified by the resource synchronization side for an unknown resource object. Assuming that the JSON object defined in the configuration file of the synchronization end does not contain an object with a key value of picture 2, in the synchronization process, the resource synchronization end stores the picture 2 in a corresponding storage area according to a default object value, namely path 6.
In the embodiment of the disclosure, the resource synchronization end may also be used as a resource sharing end to implement the resource synchronization method applied to the resource sharing end described above, and similarly, the resource sharing end may also be used as a resource synchronization end to implement the resource synchronization method applied to the resource synchronization end described in the embodiment.
In summary, according to the resource synchronization method of the embodiment of the present disclosure, when different development ends develop versions of different operating systems for the same development project, even if different development ends develop versions of different operating systems by using different development tools, when any one of the development ends changes a project resource, the development end is used as a resource sharing end, so that the changed resource object can be rapidly shared to other development ends, so that other development ends can synchronously update the project resource, and the resource synchronization process does not have artificial intervention, and the program automatically performs synchronization, thereby having high efficiency and low error rate, and being capable of improving the overall development efficiency of the project.
Fig. 5 is a block diagram of a resource synchronization device, according to an example embodiment. Referring to fig. 5, the apparatus is applied to a resource sharing end, and includes a first generating module 501, a second generating module 502 and an uploading module 503, where,
The first generating module 501 is configured to perform a preset operation based on the research project, and generate a sharing end configuration file; the preset operation is used for realizing the function development requirement; the sharing end configuration file comprises: attribute information of resource objects to be synchronized, which are used by the resource sharing end when realizing functions, and address information of a preset storage area of a research and development project;
A second generating module 502 configured to perform generating a set of objects to be synchronized based on attribute information of the resource objects; the object set to be synchronized comprises resource objects;
the uploading module 503 is configured to perform uploading of the set of objects to be synchronized into a preset storage area based on the address information, so that the resource synchronization end downloads the set of objects to be synchronized.
In an alternative embodiment, the attribute information of the resource object includes identification information and storage path information of the resource object; the second generating module 503 includes:
a first determination unit configured to perform determination of an initial storage area based on the storage path information;
a second determination unit configured to execute taking the resource object in the initial storage area as a copy object;
A third determining unit configured to perform determining an object folder corresponding to the set of objects to be synchronized, copy the copy object into the object folder, and characterize the copy object with identification information of the resource object;
And a fourth determining unit configured to perform obtaining the object set to be synchronized based on each of the replicated objects in the object folder.
In an alternative embodiment, the third determining unit is configured to execute creating a number of object folders corresponding to the number of categories based on the number of categories of the resource object; each object folder is used for storing the resource objects of the same kind;
and copying the copy object into an object folder of a corresponding type according to the type of the copy object.
In an alternative embodiment, the attribute information of the resource object includes identification information and storage path information of the resource object;
A first generating module 501 configured to execute a process of generating a pair of storage key values based on the storage object key and the storage object value, with the identification information of the preset storage area as the storage object key and the address information of the preset storage area as the storage object value; the identification information of the resource object is used as a resource object key, the storage path information is used as a resource object value, and a resource key value pair is generated based on the resource object key and the storage object value.
In an optional implementation manner, the second generating module 502 is configured to determine a resource key value pair based on the identification information of the resource object, take a resource object value in the resource key value pair as storage path information, and generate a set of objects to be synchronized based on the resource object corresponding to the storage path information;
The uploading module 503 is configured to determine a storage key value pair based on the identification information of the preset storage area, and upload the set of objects to be synchronized to the preset storage area based on the address information by using the storage object value in the storage key value pair as the address information.
In an optional implementation manner, the resource sharing end is used for developing a first operating system based on a development project, and the resource synchronizing end is used for developing a second operating system based on the development project.
Fig. 6 is a block diagram of a resource synchronization device, according to an example embodiment. Referring to fig. 6, the apparatus is applied to a resource synchronization end, and includes a generation module 601, an acquisition module 602 and a storage module 603, wherein,
The generating module 601 is configured to execute function synchronization requirements based on development projects and generate a synchronization end configuration file; the synchronous end configuration file comprises address information and resource storage path information of a preset storage area corresponding to the research and development project;
the obtaining module 602 is configured to obtain, from a preset storage area, a set of objects to be synchronized uploaded by the resource sharing end based on the address information; the file to be synchronized is generated by the resource sharing end based on the attribute information of the resource object to be synchronized in the configuration file of the sharing end; the sharing end configuration file is generated by the resource sharing end based on preset operation executed on the research and development project; the preset operation refers to the operation which is executed on the research project and used for realizing the function based on the function development requirement of the research project by the resource sharing end;
The storage module 603 is configured to perform storing, based on the resource storage path information, the resource objects in the object set to be synchronized in a storage area corresponding to the resource storage path information, so that the resource synchronization end can develop functions.
In an alternative implementation manner, the synchronous side configuration file comprises identification information of a default object, and the resource storage path information comprises default storage path information;
The generating module 601 is configured to execute the identification information of the default object as a default object key, the default storage path information as a default object value, and generate a default key value pair based on the default object key and the default object value.
In an alternative embodiment, the synchronization side configuration file includes identification information of the resource object, and the resource storage path information includes specified storage path information of the resource object;
The generating module 601 is configured to execute the identification information of the resource object as a resource object key, the specified storage path information as a resource object value, and generate a resource key value pair based on the resource object key and the specified storage path information.
In an alternative embodiment, when the synchronization side configuration file includes identification information of the resource object, the resource storage path information includes specified storage path information of the resource object,
A storage module 603 configured to perform determining a target object matching the identification information of the resource object from the set of objects to be synchronized; determining a resource key value pair based on the identification information of the resource object, and taking the resource object value in the resource key value pair as specified storage path information; and storing the target object into a corresponding storage area corresponding to the appointed storage path information.
In an alternative embodiment, when the synchronization side profile includes identification information of a default object, and the synchronization side profile does not include identification information of a resource object,
The storage module 603 is configured to determine a default key value pair based on the identification information of the default object, take a default object value in the default key value pair as default storage path information, and store the object in the object set to be synchronized in a storage area corresponding to the default storage path information.
In an optional implementation manner, the resource sharing end is used for developing a first operating system based on a development project, and the resource synchronizing end is used for developing a second operating system based on the development project.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 7 is a block diagram illustrating an electronic device for resource synchronization, which may be a terminal device, according to an exemplary embodiment, and an internal structure diagram thereof may be as shown in fig. 7. The electronic device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the electronic device is used for communicating with an external terminal device through a network connection. The computer program is executed by a processor to implement a method of image flaw filling network determination or image flaw handling. The display screen of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the electronic equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of a portion of the structure associated with the disclosed aspects and is not limiting of the electronic device to which the disclosed aspects apply, and that a particular electronic device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an exemplary embodiment, there is also provided an electronic device including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement a resource synchronization method as in the embodiments of the present disclosure.
In an exemplary embodiment, a storage medium is also provided, which when executed by a processor of an electronic device, enables the electronic device to perform the resource synchronization method in the embodiments of the present disclosure.
In an exemplary embodiment, a computer program product comprising instructions is also provided, the computer program product comprising a computer program stored in a readable storage medium, from which at least one processor of a computer device reads and executes the computer program, causing the device to perform the above-described resource synchronization method.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided by the present disclosure may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (21)
1. The resource synchronization method is characterized by being applied to a resource sharing end, and comprises the following steps:
Generating a sharing end configuration file based on preset operation of the research project; the preset operation is used for realizing the function development requirement; the sharing end configuration file comprises: the attribute information of the resource object to be synchronized, which is used by the resource sharing end when the function is realized, and the address information of the preset storage area of the research and development project;
generating an object set to be synchronized based on the attribute information of the resource object; the object set to be synchronized comprises the resource object;
Uploading the object set to be synchronized to the preset storage area based on the address information so that a resource synchronization end downloads the object set to be synchronized;
the attribute information of the resource object comprises identification information and storage path information of the resource object, and the generating of the sharing end configuration file comprises the following steps:
taking the identification information of the preset storage area as a storage object key, taking the address information of the preset storage area as a storage object value, and generating a storage key value pair based on the storage object key and the storage object value;
taking the identification information of the resource object as a resource object key, taking the storage path information as a resource object value, and generating a resource key value pair based on the resource object key and the storage object value;
the generating the object set to be synchronized based on the attribute information of the resource object includes:
determining an initial storage area based on the storage path information;
Taking the resource object in the initial storage area as a copy object;
determining an object folder corresponding to the object set to be synchronized, copying the copy object into the object folder, and representing the copy object by the identification information of the resource object;
and obtaining the object set to be synchronized based on each copied object in the object folder.
2. The resource synchronization method according to claim 1, wherein the determining an object folder corresponding to the set of objects to be synchronized, copying the copy object into the object folder, includes:
Creating object folders of which the number corresponds to the category number based on the category number of the resource object; each object folder is used for storing resource objects of the same kind;
and copying the copying object into an object folder of a corresponding type according to the type of the copying object.
3. The resource synchronization method according to claim 1, wherein the generating an object set to be synchronized is based on attribute information of the resource object; the method for synchronizing the resource objects in the object set to be synchronized comprises the following steps:
Determining the resource key value pair based on the identification information of the resource object, taking the resource object value in the resource key value pair as the storage path information, and generating the object set to be synchronized based on the resource object corresponding to the storage path information;
The uploading the object set to be synchronized to the preset storage area based on the address information comprises the following steps:
and determining the storage key value pair based on the identification information of the preset storage area, taking the storage object value in the storage key value pair as the address information, and uploading the object set to be synchronized to the preset storage area based on the address information.
4. The resource synchronization method of claim 1, wherein the resource sharing end is configured to perform development based on a first operating system for the development project, and the resource synchronization end is configured to perform development based on a second operating system for the development project.
5. A method for synchronizing resources, applied to a resource synchronization end, the method comprising:
generating a synchronous end configuration file based on the function synchronization requirement of the research and development project; the synchronous end configuration file comprises address information and resource storage path information of a preset storage area corresponding to the research and development project;
Acquiring an object set to be synchronized uploaded by a resource sharing end from the preset storage area based on the address information; the object set to be synchronized is generated by the resource sharing end based on attribute information of the resource objects to be synchronized in the sharing end configuration file; the sharing end configuration file is generated by the resource sharing end based on preset operation of the research and development project; the preset operation is used for realizing the function development requirement;
based on the resource storage path information, storing the object set to be synchronized into a storage area corresponding to the resource storage path information, so that the resource synchronization end can develop the research and development project;
The synchronous end configuration file comprises identification information of the resource object, and the resource storage path information comprises appointed storage path information of the resource object; the generating the synchronous end configuration file includes:
And taking the identification information of the resource object as a resource object key, taking the specified storage path information as a resource object value, and generating a resource key value pair based on the resource object key and the specified storage path information.
6. The resource synchronization method according to claim 5, wherein the synchronization side configuration file includes identification information of a default object, and the resource storage path information includes default storage path information; the generating the synchronous end configuration file includes:
and taking the identification information of the default object as a default object key, taking the default storage path information as a default object value, and generating a default key value pair based on the default object key and the default object value.
7. The method for synchronizing resources according to claim 5, wherein when the synchronization side configuration file includes identification information of the resource object, and the resource storage path information includes specified storage path information of the resource object, storing the set of objects to be synchronized in a storage area corresponding to the resource storage path information includes:
Determining a target object matched with the identification information of the resource object from the object set to be synchronized;
determining the resource key value pair based on the identification information of the resource object, and taking the resource object value in the resource key value pair as the specified storage path information;
And storing the target object into a corresponding storage area corresponding to the specified storage path information.
8. The method for synchronizing resources according to claim 6, wherein when the synchronization side configuration file includes identification information of a default object and the synchronization side configuration file does not include identification information of the resource object, storing the set of objects to be synchronized in a storage area corresponding to the resource storage path information includes:
And determining the default key value pair based on the identification information of the default object, taking a default object value in the default key value pair as the default storage path information, and storing the object in the object set to be synchronized in a storage area corresponding to the default storage path information.
9. The resource synchronization method according to claim 5, wherein the resource sharing end is configured to perform development based on a first operating system for the development project, and the resource synchronization end is configured to perform development based on a second operating system for the development project.
10. A resource synchronization device, which is applied to a resource sharing end, the device comprising:
the first generation module is configured to execute preset operation based on the research project and generate a sharing end configuration file; the preset operation is used for realizing the function development requirement; the sharing end configuration file comprises: the attribute information of the resource object to be synchronized, which is used by the resource sharing end when the function is realized, and the address information of the preset storage area of the research and development project;
A second generation module configured to perform generation of a set of objects to be synchronized based on attribute information of the resource object; the object set to be synchronized comprises the resource object;
The uploading module is configured to upload the object set to be synchronized to the preset storage area based on the address information so as to enable a resource synchronization end to download the object set to be synchronized;
The attribute information of the resource object comprises identification information and storage path information of the resource object;
the first generation module is configured to perform a process of taking the identification information of the preset storage area as a storage object key, taking the address information of the preset storage area as a storage object value, and generating a storage key value pair based on the storage object key and the storage object value; taking the identification information of the resource object as a resource object key, taking the storage path information as a resource object value, and generating a resource key value pair based on the resource object key and the storage object value;
the second generation module includes:
a first determination unit configured to perform determination of an initial storage area based on the storage path information;
A second determination unit configured to perform taking the resource object in the initial storage area as a copy object;
a third determining unit configured to perform determining an object folder corresponding to the set of objects to be synchronized, copy the copy object into the object folder, and characterize the copy object with identification information of the resource object;
And a fourth determining unit configured to perform obtaining the object set to be synchronized based on each copied object in the object folder.
11. The resource synchronization device of claim 10, wherein,
The third determining unit is configured to perform creating a number of object folders corresponding to the number of categories based on the number of categories of the resource object; each object folder is used for storing resource objects of the same kind;
and copying the copying object into an object folder of a corresponding type according to the type of the copying object.
12. The resource synchronizer of claim 10,
The second generating module is configured to determine the resource key value pair based on the identification information of the resource object, take the resource object value in the resource key value pair as the storage path information, and generate the object set to be synchronized based on the resource object corresponding to the storage path information;
The uploading module is configured to determine the storage key value pair based on the identification information of the preset storage area, take the storage object value in the storage key value pair as the address information, and upload the object set to be synchronized to the preset storage area based on the address information.
13. The resource synchronization device of claim 10, wherein the resource sharing end is configured to perform development based on a first operating system for the development project, and the resource synchronization end is configured to perform development based on a second operating system for the development project.
14. A resource synchronization device, applied to a resource synchronization end, the device comprising:
The generating module is configured to execute the function synchronization requirement based on the research and development project and generate a synchronization end configuration file; the synchronous end configuration file comprises address information and resource storage path information of a preset storage area corresponding to the research and development project;
The acquisition module is configured to execute the acquisition of the object set to be synchronized uploaded by the resource sharing end from the preset storage area based on the address information; the file to be synchronized is generated by the resource sharing end based on attribute information of the resource object to be synchronized in the sharing end configuration file; the sharing end configuration file is generated by the resource sharing end based on preset operation executed on the research and development project; the preset operation refers to an operation which is executed by the resource sharing end on the research and development project and is used for realizing the function based on the function development requirement of the research and development project;
The storage module is configured to execute the storage of the resource objects in the object set to be synchronized into a storage area corresponding to the resource storage path information based on the resource storage path information so as to enable the resource synchronization end to develop the functions;
The synchronous end configuration file comprises identification information of the resource object, and the resource storage path information comprises appointed storage path information of the resource object;
the generation module is configured to execute the identification information of the resource object as a resource object key, the specified storage path information as a resource object value, and generate a resource key value pair based on the resource object key and the specified storage path information.
15. The resource synchronization device according to claim 14, wherein the synchronization side configuration file includes identification information of a default object, and the resource storage path information includes default storage path information;
the generating module is configured to execute the identification information of the default object as a default object key, the default storage path information as a default object value, and generate a default key value pair based on the default object key and the default object value.
16. The resource synchronization device of claim 14, wherein when the synchronization side profile includes identification information of the resource object, the resource storage path information includes specified storage path information of the resource object,
The storage module is configured to execute the determination of a target object matched with the identification information of the resource object from the object set to be synchronized; determining the resource key value pair based on the identification information of the resource object, and taking the resource object value in the resource key value pair as the specified storage path information; and storing the target object into a corresponding storage area corresponding to the specified storage path information.
17. The resource synchronization device of claim 15, wherein when the synchronization side profile includes identification information of a default object and the synchronization side profile does not include identification information of the resource object,
The storage module is configured to determine the default key value pair based on the identification information of the default object, take a default object value in the default key value pair as the default storage path information, and store the object in the object set to be synchronized in a storage area corresponding to the default storage path information.
18. The resource synchronization device of claim 14, wherein the resource sharing end is configured to perform development based on a first operating system for the development project, and the resource synchronization end is configured to perform development based on a second operating system for the development project.
19. An electronic device, comprising:
A processor;
a memory for storing the processor-executable instructions;
Wherein the processor is configured to execute the instructions to implement the resource synchronization method of any one of claims 1 to 4 or 5 to 9.
20. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the resource synchronization method of any one of claims 1 to 4 or 5 to 9.
21. A computer program product, characterized in that the computer program product comprises a computer program stored in a readable storage medium, from which at least one processor of a computer device reads and executes the computer program, such that the computer device performs the resource synchronization method according to any of claims 1 to 4 or 5 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111382661.1A CN114201207B (en) | 2021-11-22 | 2021-11-22 | Resource synchronization method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111382661.1A CN114201207B (en) | 2021-11-22 | 2021-11-22 | Resource synchronization method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114201207A CN114201207A (en) | 2022-03-18 |
CN114201207B true CN114201207B (en) | 2024-08-20 |
Family
ID=80648121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111382661.1A Active CN114201207B (en) | 2021-11-22 | 2021-11-22 | Resource synchronization method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114201207B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117908930B (en) * | 2024-03-20 | 2024-06-04 | 英诺达(成都)电子科技有限公司 | Method, device, equipment, medium and product for synchronizing codes and code documents |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001154872A (en) * | 1999-11-25 | 2001-06-08 | Nec Ic Microcomput Syst Ltd | Device and method for supporting software development and recording medium having the same program recorded thereon |
CN108984202A (en) * | 2018-06-28 | 2018-12-11 | 广州腾讯科技有限公司 | A method, device and storage medium for sharing electronic resources |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU8467401A (en) * | 2000-07-28 | 2002-02-13 | Storymail Inc | System, method and computer program product for device, operating system, and network transport neutral secure interactive multi-media messaging |
US7337442B2 (en) * | 2002-12-03 | 2008-02-26 | Microsoft Corporation | Methods and systems for cooperative scheduling of hardware resource elements |
US9374275B2 (en) * | 2013-12-11 | 2016-06-21 | Dropbox, Inc. | Rapid application development using a content management system |
CN107968812A (en) * | 2016-10-20 | 2018-04-27 | 法乐第(北京)网络科技有限公司 | The method and device of synchronous local resource and Internet resources |
CN106850779A (en) * | 2017-01-17 | 2017-06-13 | 深圳市金立通信设备有限公司 | The synchronous method and sychronisation of a kind of data |
CN110069346B (en) * | 2019-04-26 | 2021-07-23 | 杭州迪普科技股份有限公司 | Method and device for sharing resources among multiple processes and electronic equipment |
CN110162332B (en) * | 2019-05-20 | 2025-05-23 | 深圳前海微众银行股份有限公司 | Method and system for constructing RN (radio network node) project |
CN112711403B (en) * | 2021-01-13 | 2023-10-27 | 腾讯科技(深圳)有限公司 | Method, device, computer equipment and storage medium for synchronizing game development |
CN113177090A (en) * | 2021-04-30 | 2021-07-27 | 中国邮政储蓄银行股份有限公司 | Data processing method and device |
-
2021
- 2021-11-22 CN CN202111382661.1A patent/CN114201207B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001154872A (en) * | 1999-11-25 | 2001-06-08 | Nec Ic Microcomput Syst Ltd | Device and method for supporting software development and recording medium having the same program recorded thereon |
CN108984202A (en) * | 2018-06-28 | 2018-12-11 | 广州腾讯科技有限公司 | A method, device and storage medium for sharing electronic resources |
Also Published As
Publication number | Publication date |
---|---|
CN114201207A (en) | 2022-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109118358B (en) | Component-based synchronization of digital assets | |
US10877846B2 (en) | Performing a closure merge operation | |
US10055200B1 (en) | Creation and use of development packages | |
EP3025255A1 (en) | Virtual synchronization with on-demand data delivery | |
CN109885299B (en) | Template processing method, device, computer equipment and storage medium in model development | |
CN113254455B (en) | Dynamic configuration method and device of database, computer equipment and storage medium | |
CN111290956A (en) | Brain graph-based testing method and device, electronic equipment and storage medium | |
US11099837B2 (en) | Providing build avoidance without requiring local source code | |
US12130836B1 (en) | Systems and methods for data retention while migrating objects and object metadata stored in object storage environments migrated across cloud ecosystems | |
CN114201207B (en) | Resource synchronization method and device, electronic equipment and storage medium | |
US20150121334A1 (en) | Regression alerts | |
CN111488150B (en) | Page processing method and device | |
EP3980894B1 (en) | Systems and methods for simulating real-world io workloads in a parallel and distributed storage system | |
CN115599361A (en) | Software development method, device, equipment and medium | |
Ledgard et al. | Professional Software; Vol. 2: Programming Practice | |
Reina | Can image data facilitate reproducibility of graphics and visualizations? Toward a trusted scientific practice | |
Nikulchev et al. | Study of cross-platform technologies for data delivery in regional web surveys in the education | |
CN120316070B (en) | Data processing method and device | |
CN110377326B (en) | Installation package generation method, installation package generation device, development device and computer readable medium | |
CN119537397A (en) | Data verification method, device, equipment and medium for big data cluster migration | |
CN120407981A (en) | Page layout method, device, equipment and medium based on display material drive | |
Plofchan | EED-2 Contract Final Report | |
CN119621679A (en) | Batch updating method, device, storage medium and electronic device for picture catalog | |
CN116883137A (en) | Production job generation method and device, computer equipment and storage medium | |
CN120276677A (en) | Data processing method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |