Method and device for applying cloud storage service in development program and electronic equipment

By importing target plug-ins in the development program and directly using cloud storage services in the development environment, the problem of low efficiency in using object storage for development programs is solved, and more efficient code or content storage and management is achieved.

CN119718346APending Publication Date: 2025-03-28BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311256250.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the prior art, the development program uses object storage inefficiently, and developers need to manually store the generated files into the object storage.

Method used

Import the target installation package in the development program, provide the target plug-in, and directly store the code or content into the cloud storage service through the storage interface in the target plug-in, determine the storage location and perform storage operations.

Benefits of technology

It improves the efficiency of the development program using object storage, simplifies the developer's operation process, and enables the development program to use cloud storage services directly in the development environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718346A_ABST
    Figure CN119718346A_ABST
Patent Text Reader

Abstract

The invention relates to a method and device for applying a cloud storage service in a development program and electronic equipment. The method comprises the steps that a target installation package is imported into a development program, and the target installation package is a target plug-in used for providing cloud storage service; determining a target storage position of the target code in the cloud storage service according to a cloud request under the condition that the cloud request for requesting the target code to be clouded is received; and calling a storage interface in the target plug-in, and storing the target code to a target storage position in the cloud storage service. The technical problem that the efficiency of using object storage by the development program is low is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and more particularly to a method, device, and electronic device for applying cloud storage services in a development program. Background Art

[0002] In the prior art, developers can write codes by developing programs to develop some applications, functions, etc. However, in the prior art, if the development program wants to use the object storage service, the developer needs to generate files from the development program and then store the files in the object storage.

[0003] This method results in low efficiency in developing programs to use object storage. Summary of the invention

[0004] The present application provides a method, device and electronic device for applying cloud storage service in a development program to solve the technical problem of low efficiency of object storage in development programs.

[0005] In a first aspect, the present application provides a method for applying a cloud storage service in a development program, comprising: importing a target installation package in the above-mentioned development program, wherein the above-mentioned target installation package is a target plug-in for providing the above-mentioned cloud storage service; upon receiving a cloud upload request requesting a target code to be uploaded to the cloud, determining a target storage location of the above-mentioned target code in the above-mentioned cloud storage service according to the above-mentioned cloud upload request; calling a storage interface in the above-mentioned target plug-in to store the above-mentioned target code in the above-mentioned target storage location in the above-mentioned cloud storage service.

[0006] In a second aspect, the present application provides a device for applying a cloud storage service in a development program, including: an import module, used to import a target installation package in the above-mentioned development program, wherein the above-mentioned target installation package is a target plug-in for providing the above-mentioned cloud storage service; a determination module, used to determine the target storage location of the above-mentioned target code in the above-mentioned cloud storage service according to the above-mentioned cloud upload request when a cloud upload request is received requesting the target code to be uploaded to the cloud; a storage module, used to call the storage interface in the above-mentioned target plug-in to store the above-mentioned target code to the above-mentioned target storage location in the above-mentioned cloud storage service.

[0007] As an optional example, the above-mentioned device also includes: a query module, which is used to query the available storage space of the cloud storage service of the user account corresponding to the above-mentioned development program before calling the storage interface in the above-mentioned target plug-in and storing the above-mentioned target code in the above-mentioned target storage location in the above-mentioned cloud storage service; when the above-mentioned available storage space is less than the data size of the above-mentioned target code, it is prohibited to store the above-mentioned target code in the above-mentioned target storage location in the above-mentioned cloud storage service.

[0008] As an optional example, the above-mentioned query module includes: a calling unit, which is used to call the query interface of the above-mentioned target plug-in when opening the target page of the above-mentioned cloud storage service in the above-mentioned development program, and send a query request to the server of the above-mentioned cloud storage service; receive the total storage space, storage space usage and storage space available of the above-mentioned cloud storage service returned by the above-mentioned server according to the user identifier in the above-mentioned query request.

[0009] As an optional example, the above-mentioned device also includes: a calling module, which is used to call the storage interface in the above-mentioned target plug-in and store the above-mentioned target code to the above-mentioned target storage location in the above-mentioned cloud storage service. When a preview request for previewing the above-mentioned target code is received, the preview interface of the above-mentioned target plug-in is called to display the target page in the current page of the above-mentioned development program, and the above-mentioned target code is transferred to the above-mentioned target page for display; or, when a download request for downloading the above-mentioned target code is received, the download interface of the above-mentioned target plug-in is called to download the code file of the above-mentioned target code to the terminal where the above-mentioned development program is located; or, when a sharing request for sharing the above-mentioned target code is received, the sharing interface of the above-mentioned target plug-in is called to generate a sharing link of the above-mentioned target code, so that the user can access the above-mentioned target code in the above-mentioned cloud storage service through the above-mentioned sharing link.

[0010] As an optional example, the above-mentioned device also includes: a monitoring module, which is used to monitor the server of the above-mentioned cloud storage service through the monitoring interface of the above-mentioned target plug-in after importing the target installation package in the above-mentioned development program; when the above-mentioned server generates a notification message, obtain the above-mentioned notification message from the above-mentioned server; and display the above-mentioned notification message in the target page in the above-mentioned development program.

[0011] As an optional example, the above-mentioned device also includes: a processing module, which is used to call the code generation interface in the above-mentioned target plug-in to obtain the code template after importing the target installation package in the above-mentioned development program; obtain code parameters through the target page in the above-mentioned development program; input the above-mentioned code parameters into the above-mentioned code template to obtain the above-mentioned target code.

[0012] As an optional example, the above-mentioned device also includes: a verification module, which is used to obtain the account identifier of the user account corresponding to the above-mentioned development program from the above-mentioned cloud upload request when determining the target storage location of the above-mentioned target code in the above-mentioned cloud storage service according to the above-mentioned cloud upload request when receiving a cloud upload request requesting the target code to be uploaded to the cloud; when the server performs a security verification on the above-mentioned account identifier and the verification passes, determine the target storage location of the above-mentioned target code in the above-mentioned cloud storage service according to the above-mentioned cloud upload request.

[0013] In a third aspect, the present application provides an electronic device comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus, wherein the memory stores a computer program, and the processor is configured to implement any one of the above-mentioned methods of applying cloud storage services in the above-mentioned development program when executing the computer program.

[0014] In a fourth aspect, the present application further provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the method of applying the cloud storage service in any of the above-mentioned development programs of the present application.

[0015] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art: by importing the target installation package in the development program, a target plug-in can be provided for the development program, allowing the development program to use the object storage service directly in the development program through the target plug-in, and uploading the code or content in the development program to the target user location of the cloud storage service, thereby improving the efficiency of the development program in using object storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0018] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0019] Figure 1 A flowchart of a method for applying a cloud storage service in a development program provided in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of an import target installation package of a method for applying a cloud storage service in a development program provided in an embodiment of the present application;

[0021] Figure 3 A schematic diagram of an interactive interface for a method for applying a cloud storage service in a development program provided in an embodiment of the present application;

[0022] Figure 4 A flowchart of another method for applying a cloud storage service in a development program provided in an embodiment of the present application;

[0023] Figure 5 A schematic diagram of a query button for a method for applying a cloud storage service in a development program provided in an embodiment of the present application;

[0024] Figure 6 A flowchart of a method for applying a cloud storage service in a development program provided in another embodiment of the present application;

[0025] Figure 7 A schematic diagram of downloading target code for a method for applying a cloud storage service in a development program provided in an embodiment of the present application;

[0026] Figure 8 A schematic diagram of displaying a notification message of a method for applying a cloud storage service in a development program provided in an embodiment of the present application;

[0027] Fig. 9 A schematic diagram of a code template for a method for applying a cloud storage service in a development program provided in an embodiment of the present application;

[0028] Fig.10 A schematic diagram of installing and using a plug-in for a method of applying a cloud storage service in a development program provided in an embodiment of the present application;

[0029] Fig.11 A schematic diagram of the structure of a cloud storage service device used in a development program provided in an embodiment of the present application;

[0030] Fig.12 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0032] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0033] In order to solve the technical problem of low efficiency of using object storage in development programs in the prior art, the present application provides a method for applying cloud storage services in development programs, which can achieve the effect of improving the efficiency of using object storage in development programs.

[0034] Figure 1 A flowchart of a method for applying a cloud storage service in a development program provided in an embodiment of the present application. Figure 1 As shown, the cloud storage service method used in the above development program includes:

[0035] S102, importing a target installation package in a development program, wherein the target installation package is a target plug-in for providing a cloud storage service;

[0036] S104, when a cloud upload request for uploading the target code to the cloud is received, determining a target storage location of the target code in the cloud storage service according to the cloud upload request;

[0037] S106, calling the storage interface in the target plug-in to store the target code in the target storage location in the cloud storage service.

[0038] The target installation package can be a plug-in file, and the plug-in file can be imported into the development program. Specifically, the plug-in file can be placed in the code file of the development program, or the plug-in file can be in the form of an interface, and the development program calls the interface of the plug-in file to execute related functions.

[0039] The target plug-in is used to provide cloud storage services. Through the target plug-in, the code or content to be saved in the development program can be stored in the cloud storage service. When needed, the code or content can be called from the cloud storage service for viewing.

[0040] For example, Figure 2 As shown, Figure 2A schematic diagram of importing a target installation package. In the development interface of the development program (or other locations, not limited in this embodiment), there is an import button, through which the target plug-in of this embodiment can be imported. After importing the target plug-in, the cloud storage service can be configured through the configuration interface, such as whether the cloud storage service is enabled, naming, available zones, authentication type and authentication method, whether to use a proxy and other configuration items. After configuring the configuration items, a cloud storage service interface can be displayed in the development interface of the development program. The interface of the cloud storage service is the interface provided by the target plug-in, which is started and closed together with the development program. In the interface of the cloud storage service, functional items of the cloud storage service are provided.

[0041] In this embodiment, the developer can run the development program, and during the process of running the development program, the target plug-in is installed by importing the target installation package. The developer can decide which codes to store in the cloud storage service by triggering a cloud request. When the target code is to be stored in the cloud storage service, it is determined which location in the cloud storage service the target code is to be stored in, that is, the target storage location. The target storage location can be selected through the interactive interface provided by the target plug-in. After determining the target storage location, the storage interface in the target plug-in is called to store the target code in the target storage location in the cloud storage service.

[0042] For example, Figure 3 As shown, Figure 3 The following is a schematic diagram of the interactive interface. The code content can be selected in the upload range, and then the file can be uploaded anywhere, or the code can be directly dragged to the interface area of ​​the cloud storage service to upload the code. The code mark of the uploaded code can be displayed on the page of the cloud storage service for users to view. Figure 3 This is only an exemplary interface and does not constitute a limitation of this application.

[0043] The target plug-in includes multiple interfaces, such as the storage interface mentioned above, the query interface and the preview interface mentioned below, etc. The interfaces in the target plug-in are called by the development program to realize different cloud storage services.

[0044] This application provides a target plug-in for the development program by importing the target installation package in the development program, allowing the development program to use the object storage service directly in the development program through the target plug-in, and upload the code or content in the development program to the target storage location of the cloud storage service, thereby improving the efficiency of the development program in using object storage.

[0045] As an alternative example, Figure 4 As shown, before calling the storage interface in the target plug-in to store the target code in the target storage location in the cloud storage service, the method further includes:

[0046] S402, querying the available storage space of the cloud storage service of the user account corresponding to the development program;

[0047] S404: When the available storage space is smaller than the data size of the target code, it is prohibited to store the target code in the target storage location in the cloud storage service.

[0048] In this embodiment, when a developer develops code by developing a program, if the developer decides to store the target code in a cloud storage service, the available storage space of the cloud storage service of the account can be queried. Each account corresponds to one or more cloud storage spaces, and the cloud storage space has a certain storage limit. The size of the space in the cloud storage space that allows the user to store code is the available cloud storage space. If the available cloud storage space is insufficient, the target code cannot be stored in the cloud storage service.

[0049] In this embodiment, a button can be configured in the interactive interface, through which the total amount and available amount of cloud storage space can be queried or displayed. Figure 5 As shown, Figure 5 The total amount and available amount of storage space can be queried through the query button, and the total amount and available amount are displayed in the interface of the cloud storage service. In this embodiment, when the mouse moves to the query button, the total amount and available amount of storage space can be displayed on the query button. If the available amount of storage space of the cloud storage service is insufficient and the user's target code upload fails, a prompt message can be sent to the user to prompt the user that the target code has not been successfully uploaded.

[0050] As an optional example, querying the available storage space of the cloud storage service of the user account corresponding to the development program includes: when opening the target page of the cloud storage service in the development program, calling the query interface of the target plug-in, and sending a query request to the server of the cloud storage service; receiving the total storage space, storage space usage and available storage space of the cloud storage service returned by the server according to the user identifier in the query request.

[0051] In this embodiment, when the development program is started, the target plug-in can be started synchronously, and the target page can be displayed through the target plug-in. The target page is the above-mentioned interactive page. When the target plug-in is started, a query request is sent to the server of the cloud storage service to query the storage space usage of the user, and the total storage space, storage space usage and storage space available are displayed on the target page.

[0052] As an alternative example, Figure 6 As shown, after calling the storage interface in the target plug-in to store the target code in the target storage location in the cloud storage service, the method further includes:

[0053] S602-1, upon receiving a preview request for previewing the target code, calling the preview interface of the target plug-in, displaying the target page in the current page of the development program, and transferring the target code to the target page for display; or

[0054] S602-2, when receiving a download request for downloading the target code, calling the download interface of the target plug-in to download the code file of the target code to the terminal where the development program is located; or

[0055] S602-3, when a sharing request for sharing the target code is received, the sharing interface of the target plug-in is called to generate a sharing link of the target code, so that the user can access the target code in the cloud storage service through the sharing link.

[0056] In this embodiment, the target code can be stored in the cloud storage service through the target plug-in. After the target code is stored, operations such as preview, download, and share can be performed on the target code. When previewing the target code, a path tree of the stored code can be displayed on the interactive page, and the user can select the preview code through the path tree. For example, Figure 7 As shown, if the user wants to download the target code, he can download the corresponding target code through the download button. A download button can be added after each target code, or the target code can be downloaded by selecting the code in the first step and clicking the download button in the second step. For sharing the target code, a link to the path where the target code is stored in the cloud storage service can be generated and shared with other users. Other users can preview, download or share the target code through the link. Other content except the target code cannot be viewed by other users.

[0057] As an optional example, after importing the target installation package in the development program, the above method also includes: monitoring the server of the cloud storage service through the monitoring interface of the target plug-in; when the server generates a notification message, obtaining the notification message from the server; and displaying the notification message in the target page in the development program.

[0058] In this embodiment, the target plug-in can also monitor the server of the cloud storage service. When the server of the cloud storage service generates a notification message, the target plug-in monitors it and displays the message in the interactive interface. Figure 8 As shown, notification messages can be scrolled and displayed in the interface of the cloud storage service, and users can view the specific content of the notification messages by clicking.

[0059] As an optional example, after importing the target installation package in the development program, the above method also includes: calling the code generation interface in the target plug-in to obtain a code template; obtaining code parameters through the target page in the development program; inputting the code parameters into the code template to obtain the target code.

[0060] In this embodiment, the cloud storage service may also store code templates, which are templates used to generate certain code functions. The templates lack key parameters, and the code templates can quickly generate related functions through the parameters input by the user. Fig. 9 As shown, it is a schematic diagram of displaying a use button of a code template in an interactive interface, through which a code template to be used can be selected from multiple code templates.

[0061] As an optional example, when a cloud upload request is received to upload the target code to the cloud, when the target storage location of the target code in the cloud storage service is determined according to the cloud upload request, the above method also includes: obtaining the account identifier of the user account corresponding to the development program from the cloud upload request; when the server performs a security check on the account identifier and the check passes, determining the target storage location of the target code in the cloud storage service according to the cloud upload request.

[0062] In this embodiment, when the development program is started and the target plug-in is started synchronously, the account ID of the development program can be obtained, and the account ID is verified by the server. After the verification passes, the storage space size corresponding to the account or the target storage location of the target code is found. If the verification fails, it is prompted in the interactive interface that the account of the development program cannot use the cloud storage service.

[0063] Fig.10 Schematic diagram of installing and using the plug-in in this embodiment. Integrated Development Environment,IDE) as an example. After opening the IDE, import the installation package of the target plug-in. After importing the installation package, you can find the plug-in menu in the menu bar of the IDE and open the plug-in through the plug-in menu. After opening the plug-in, you can configure the access key (Access Key / Secret Key, AK / SK) available area in the plug-in configuration interface. After the configuration is completed, you can test it through the test button. During the test, if the connection is successful, the user's available area storage bucket can be displayed. If the user wants to upload code, you can select the upload function on the page to upload the code. If you want to view the available space in the storage area, you can call the Software Development Kit (SDK) to query or use the available area information as part of the request. After receiving the request, the server returns the file including the code, which is displayed by the interface of the cloud storage service on the development program. In addition, the cloud storage service can also provide the functions of downloading, sharing and previewing the code, which can be displayed or performed through the interface of the cloud storage service. If the server generates a notification message, it can be notified to the interface of the cloud storage service. When the notification message is clicked by the user, detailed information can be displayed through the embedded browser (Chromium Embedded Framework, CEF). The notification message is that each time the IDE is started, dynamic content is collected to the client for display through network request. When the client of the cloud storage service in the development program interacts with the server, the client submits form information, which includes basic parameters AK / SK / Region, extended parameters: connection timeout, etc. This information is sent to the server for authentication. If the authentication is passed, the connection is successfully established and the cloud storage service can be used.

[0064] Fig.11 This is a schematic diagram of a structure of a cloud storage service device used in a development program provided in an embodiment of the present application. Fig.11 As shown, the cloud storage service device used in the above development program includes:

[0065] An import module 1102, used to import a target installation package in a development program, wherein the target installation package is a target plug-in for providing a cloud storage service;

[0066] The determination module 1104 is used to determine the target storage location of the target code in the cloud storage service according to the cloud upload request when receiving the cloud upload request for the target code to be uploaded to the cloud;

[0067] The storage module 1106 is used to call the storage interface in the target plug-in to store the target code in the target storage location in the cloud storage service.

[0068] The target installation package can be a plug-in file, and the plug-in file can be imported into the development program. Specifically, the plug-in file can be placed in the code file of the development program, or the plug-in file can be in the form of an interface, and the development program calls the interface of the plug-in file to execute related functions.

[0069] The target plug-in is used to provide cloud storage services. Through the target plug-in, the code or content to be saved in the development program can be stored in the cloud storage service. When needed, the code or content can be called from the cloud storage service for viewing.

[0070] For example, Figure 2 As shown, Figure 2 A schematic diagram of importing a target installation package. In the development interface of the development program (or other locations, not limited in this embodiment), there is an import button, through which the target plug-in of this embodiment can be imported. After importing the target plug-in, the cloud storage service can be configured through the configuration interface, such as whether the cloud storage service is enabled, naming, available zones, authentication type and authentication method, whether to use a proxy and other configuration items. After configuring the configuration items, a cloud storage service interface can be displayed in the development interface of the development program. The interface of the cloud storage service is the interface provided by the target plug-in, which is started and closed together with the development program. In the interface of the cloud storage service, functional items of the cloud storage service are provided.

[0071] In this embodiment, the developer can run the development program, and during the process of running the development program, the target plug-in is installed by importing the target installation package. The developer can decide which codes to store in the cloud storage service by triggering a cloud request. When the target code is to be stored in the cloud storage service, it is determined which location in the cloud storage service the target code is to be stored in, that is, the target storage location. The target storage location can be selected through the interactive interface provided by the target plug-in. After determining the target storage location, the storage interface in the target plug-in is called to store the target code in the target storage location in the cloud storage service.

[0072] For example, Figure 3 As shown, Figure 3 The following is a schematic diagram of the interactive interface. The code content can be selected in the upload range, and then the file can be uploaded anywhere, or the code can be directly dragged to the interface area of ​​the cloud storage service to upload the code. The code mark of the uploaded code can be displayed on the page of the cloud storage service for users to view. Figure 3 This is only an exemplary interface and does not constitute a limitation of this application.

[0073] The target plug-in includes multiple interfaces, such as the storage interface mentioned above, the query interface and the preview interface mentioned below, etc. The interfaces in the target plug-in are called by the development program to realize different cloud storage services.

[0074] The solution provided in the embodiment of the present application provides a target plug-in for the development program by importing the target installation package in the development program, allowing the development program to use the object storage service directly in the development program through the target plug-in, and uploading the code or content in the development program to the target depository location of the cloud storage service, thereby improving the efficiency of the development program in using object storage.

[0075] For other examples of this embodiment, please refer to the above examples and will not be described in detail here.

[0076] like Fig.12 As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.

[0077] A memory 113, for storing computer programs;

[0078] In one embodiment of the present application, the processor 111 is used to implement the method of applying the cloud storage service in the development program provided by any one of the aforementioned method embodiments when executing the program stored in the memory 113.

[0079] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of a method for applying a cloud storage service in a development program provided in any of the aforementioned method embodiments are implemented.

[0080] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0081] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0082] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0083] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for applying a cloud storage service in a development program, characterized in that: include: Importing a target installation package into the development program, wherein the target installation package is a target plug-in for providing the cloud storage service; Upon receiving a cloud upload request for uploading the target code to the cloud, determining a target storage location of the target code in the cloud storage service according to the cloud upload request; The storage interface in the target plug-in is called to store the target code in the target storage location in the cloud storage service.

2. The method according to claim 1, characterized in that: Before calling the storage interface in the target plug-in to store the target code in the target storage location in the cloud storage service, the method further includes: Querying the available storage space of the cloud storage service of the user account corresponding to the development program; In a case where the available amount of storage space is smaller than the data size of the target code, storing the target code in the target storage location in the cloud storage service is prohibited.

3. The method according to claim 2, characterized in that The querying of the available storage space of the cloud storage service of the user account corresponding to the development program includes: When opening the target page of the cloud storage service in the development program, calling the query interface of the target plug-in and sending a query request to the server of the cloud storage service; Receive the total storage space, storage space usage, and storage space available of the cloud storage service returned by the server according to the user identifier in the query request.

4. The method according to claim 1, characterized in that: After calling the storage interface in the target plug-in to store the target code in the target storage location in the cloud storage service, the method further includes: In case of receiving a preview request for previewing the target code, calling the preview interface of the target plug-in, displaying the target page in the current page of the development program, and transferring the target code to the target page for display; or, In case of receiving a download request for downloading the target code, calling the download interface of the target plug-in to download the code file of the target code to the terminal where the development program is located; or When a sharing request for sharing the target code is received, the sharing interface of the target plug-in is called to generate a sharing link of the target code so that the user can access the target code in the cloud storage service through the sharing link.

5. The method according to claim 1, characterized in that: After the target installation package is imported into the development program, the method further includes: Monitoring the server of the cloud storage service through the monitoring interface of the target plug-in; When the server generates a notification message, obtaining the notification message from the server; The notification message is displayed in a target page in the development program.

6. The method according to claim 1, characterized in that After the target installation package is imported into the development program, the method further includes: Calling the code generation interface in the target plug-in to obtain a code template; Obtain code parameters through the target page in the development program; The code parameters are input into the code template to obtain the target code.

7. The method according to claim 1, characterized in that When a cloud upload request for uploading the target code to the cloud is received, when a target storage location of the target code in the cloud storage service is determined according to the cloud upload request, the method further includes: Obtaining an account identifier of a user account corresponding to the development program from the cloud upload request; When the server performs a security check on the account identifier and the check passes, the target storage location of the target code in the cloud storage service is determined according to the cloud upload request.

8. A device for applying a cloud storage service in a development program, characterized in that: include: An import module, used to import a target installation package into the development program, wherein the target installation package is a target plug-in for providing the cloud storage service; A determination module, configured to, upon receiving a cloud upload request for requesting the target code to be uploaded to the cloud, determine a target storage location of the target code in the cloud storage service according to the cloud upload request; The storage module is used to call the storage interface in the target plug-in to store the target code in the target storage location in the cloud storage service.

9. An electronic device, characterized in that: include: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor coupled to the at least one bus; At least one memory connected to the at least one bus, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the method described in any one of claims 1 to 7 of the present application.