CN115269033B - Method and system for loading external service component package by aPaaS platform - Google Patents

Method and system for loading external service component package by aPaaS platform Download PDF

Info

Publication number
CN115269033B
CN115269033B CN202210691107.XA CN202210691107A CN115269033B CN 115269033 B CN115269033 B CN 115269033B CN 202210691107 A CN202210691107 A CN 202210691107A CN 115269033 B CN115269033 B CN 115269033B
Authority
CN
China
Prior art keywords
component
user
page
platform
code
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
Application number
CN202210691107.XA
Other languages
Chinese (zh)
Other versions
CN115269033A (en
Inventor
魏福宝
魏传博
黄克云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhixueyun Beijing Technology Co ltd
Original Assignee
Zhixueyun Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhixueyun Beijing Technology Co ltd filed Critical Zhixueyun Beijing Technology Co ltd
Priority to CN202210691107.XA priority Critical patent/CN115269033B/en
Publication of CN115269033A publication Critical patent/CN115269033A/en
Application granted granted Critical
Publication of CN115269033B publication Critical patent/CN115269033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44589Program code verification, e.g. Java bytecode verification, proof-carrying code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a method and a system for loading an external service component package by an aPaaS platform, and relates to the technical field of computer application. The method comprises the following steps: generating a corresponding component package and a configuration file according to component codes written by a user; responding to the uploading request of the user component and checking the component package uploaded by the user; analyzing the checked component package, and loading the component package together when loading the platform code based on the configuration file; responding to user page construction operation to apply the corresponding service components to the page; and responding to the user preservation request to preserve the service component, generating page information, and adding the service code information corresponding to the component package uploaded by the user into the page information. The system comprises a writing module, a verification module, an analysis module, an application module and a page generation module. The method can realize decoupling of the user service component codes and the aPaaS platform codes, ensures the safety and stability of the platform, and can also consider the flexibility of user configuration pages.

Description

Method and system for loading external service component package by aPaaS platform
Technical Field
The invention relates to the technical field of computer application, in particular to a method and a system for loading an external service component package by an aPaaS platform.
Background
an aPaaS can be understood as a sub-form of PaaS. The generic name of aPaaS is app lication Platform as a Service, application platform as a service. The following definitions are by Gartner: this is a solution based on PaaS (platform as a service), supports development, deployment and operation of applications in the cloud, and provides a basic tool in software development to users, including data objects, rights management, user interfaces, etc. In short, the aPaaS (application platform as a service) can provide a rapid development environment, and users can complete development, testing and deployment of applications within a few hours and can adjust or update at any time. Moreover, it has low code or zero code, and non-technicians can complete application development.
However, when components are loaded in the aPaaS platform in the prior art, the components package is either built in the aPaaS platform code, or the existing components package is relied on to develop the aPaaS platform after the third party components package is introduced. The PaaS platform code and the component code have high coupling degree, and the components are difficult to customize and expand. Rendering the aPaaS platform inflexible and flexible when building front-end pages.
Disclosure of Invention
The invention aims to provide a method and a system for loading an external service component package by an aPaaS platform, which can realize decoupling of user service component codes and aPaaS platform codes. The user can independently develop and customize personalized component codes, independently update and maintain the component codes, cannot influence the platform codes, ensures the safety and stability of the platform, and simultaneously gives consideration to the flexibility of the user configuration page.
Embodiments of the present invention are implemented as follows:
in a first aspect, an embodiment of the present application provides a method for loading an external service component package by an aPaaS platform, including the following steps:
generating a corresponding component package and a configuration file according to component codes written by a user;
responding to the uploading request of the user component and checking the component package uploaded by the user;
analyzing the checked component package, and loading the component package together when loading the platform code based on the configuration file;
responding to user page construction operation to apply the corresponding service components to the page;
and responding to the user preservation request to preserve the service component, generating page information, and adding the service code information corresponding to the component package uploaded by the user into the page information.
In some embodiments of the present invention, the step of generating the corresponding package and the configuration file according to the component code written by the user specifically includes:
responding to a downloading request of a user, sending a preset code template to the user, and generating a corresponding code template catalog;
and responding to the user packaging command, checking the component codes written in the code template catalog by the user, and if the checking is passed, packaging the component codes to generate corresponding component packages and configuration files.
In some embodiments of the present invention, the step of verifying the package uploaded by the user in response to the user package upload request includes component name conflict verification and/or configuration file integrity verification.
In some embodiments of the present invention, the steps of parsing the verified package and loading the package together during loading of the platform code based on the configuration file specifically include:
responding to the requirement of loading the aPaaS platform to load the platform code, traversing all the component information in the aPaaS platform, and acquiring the position information of the corresponding component package through a configuration file if the component uploaded by the user is found;
and loading the component code according to the position information by utilizing an HTTPS protocol to the position of the component package.
In some embodiments of the present invention, the step of applying the corresponding service component to the page in response to the user page building operation specifically includes:
responding to a request of a user for adding a service component, adding a corresponding service component on a page, and simultaneously displaying configurable item information of the service component on a configuration page;
and responding to the setting of the configuration item of the business component by the user, and transmitting the set data to the corresponding business component codes in a page data API mode.
In some embodiments of the present invention, the page information includes at least one of a page component name, a page component configuration, an application to which the page belongs, page custom data, configuration information corresponding to the component, or a layout relationship between the components.
In some embodiments of the invention, further comprising:
loading the service codes of the users according to the service code information;
and drawing the page according to the page information contained in the service code.
In a second aspect, an embodiment of the present application provides a system for loading an external service component package by an aPaaS platform, including:
the writing module is used for generating a corresponding component package and a configuration file according to the component code written by the user;
the verification module is used for responding to the uploading request of the user component and verifying the component package uploaded by the user;
the analysis module is used for analyzing the checked component package and loading the component package together when the platform code is loaded based on the configuration file;
the application module is used for responding to the user page construction operation and applying the corresponding service components to the page;
and the page generation module is used for responding to the user preservation request to preserve the service component, generating page information and adding the service code information corresponding to the component package uploaded by the user into the page information.
In a third aspect, embodiments of the present application provide an electronic device comprising a memory for storing one or more programs; a processor. The method as described in any one of the first aspects is implemented when the one or more programs are executed by the processor.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method as described in any of the first aspects above.
Compared with the prior art, the embodiment of the invention has at least the following advantages or beneficial effects:
in the embodiment of the invention, the decoupling of the user service component codes and the aPaaS platform codes is realized by generating the corresponding component package and the configuration file by utilizing the component codes written by the user according to the self requirements according to the code templates and then loading the components according to the component package and the configuration file. That is, the service components of the user are described by adopting a mode of combining the code package and the page information, so that the user can independently develop and customize personalized component codes and independently update and maintain the personalized component codes without influencing the platform codes, the safety and the stability of the platform are ensured, and meanwhile, the flexibility of the user for configuring the page is considered.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an embodiment of a method for loading external service packages by an aPaaS platform;
FIG. 2 is a flowchart illustrating steps performed to generate corresponding package and configuration files according to user-written component code according to an embodiment of the present invention;
FIG. 3 is a specific flowchart illustrating steps for parsing a verified package and loading the package together during loading of platform code based on a configuration file according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating an exemplary architecture of an aPaaS platform external service package loading system;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Icon: 1. writing a module; 2. a verification module; 3. an analysis module; 4. an application module; 5. a page generation module; 7. a memory; 8. a processor; 9. a communication interface.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The various embodiments and features of the embodiments described below may be combined with one another without conflict.
Examples
Referring to fig. 1, the method for loading an external service component package by the aPaaS platform includes the following steps:
step S101: and generating a corresponding component package and a configuration file according to the component code written by the user.
When the aapaas platform is used, a user may encounter a problem that some page functions cannot be directly realized through a basic component combination provided by the aapaas platform, or a mode of realizing the page functions through the basic component combination is too complex. Thus, a loading component is now required to address the above-described needs. In the prior art, in order to solve the above-mentioned demand problem, when a component is loaded in the aPaaS platform, either the component package is built in the aPaaS platform code, or the existing component package is relied on to develop the aPaaS platform after the third party component package is introduced. This results in the aPaaS platform code and component code coupling, making it difficult to customize and extend the components. Rendering the aPaaS platform inflexible and flexible when building front-end pages. In the steps, the mode of independently writing the component codes by the user and embedding the component codes into the platform can be used for solving the problem of the requirement, customizing and expanding the components are realized, and the connection between the aPaaS platform codes and the component codes can be reduced, namely the coupling degree between the aPaaS platform codes and the component codes can be reduced. After the user independently writes the corresponding component codes according to the own requirements, the corresponding component package and the configuration file can be generated based on the component codes, so that the original data support is provided for the subsequent processing of the component package and the configuration file.
Specifically, referring to fig. 2, the step of generating the corresponding component package and the configuration file according to the component code written by the user may specifically include:
step S201: and responding to a downloading request of the user, sending a preset code template to the user, and generating a corresponding code template catalog.
In the above steps, in order to enable the user-written component code for embedding the aPaaS platform to be in butt joint with the platform, the platform requirement is met, and in order to reduce the difficulty of writing the component code by the user, the user only needs to execute a corresponding instruction by sending a preset code template to the user, and the code is written under a code template catalog generated in the template.
Illustratively, the code template may be a complete front-end project code, including command scripts such as create components, project compilation packages, and code instances. So that the user can write the component codes more conveniently. The user can execute the command of creating the component under the catalog of the code template, the catalog of the component of the user can be correspondingly generated in the code template, and the user can write the code under the catalog. In addition, if the code template adopts the vue.js front end framework, the user needs to write the code according to the corresponding specification, and meanwhile, the example code and the document can be referred, and some functional APIs provided by the aPaaS platform are used in the code, such as network request initiation, page existing data acquisition, event registration, activity initiation and the like. After the user's component code is written, a package command can be used under a template catalog, and a corresponding component package and configuration file (the configuration file contains automatically generated component configuration information such as component name, component type, etc.) can be generated under the catalog.
Step S202: and responding to the user packaging command, checking the component codes written in the code template catalog by the user, and if the checking is passed, packaging the component codes to generate corresponding component packages and configuration files.
In the above steps, the component codes written by the user are verified, and after the verification is passed, the component codes are packed to generate corresponding component packages and configuration files, so that the original data support can be provided for the subsequent processing of the component packages.
Illustratively, checking component code includes checking whether parameters and return value types are correct at the time of the functional API call, checking whether the Vue. Js component specification is met, and so on. The packing operation may compile the user code into JavaScript code, which complies with the ECMA 262 standard, and the UMD specification, and the generated configuration file may be in a JSON format, which may facilitate subsequent processing thereof.
Step S102: and responding to the uploading request of the user component and checking the component package uploaded by the user.
In the above steps, the package uploaded by the user is checked, so that whether the package meets the platform docking requirement can be checked, and the package which does not meet the conditions can be conveniently processed by the user. Specifically, the step of verifying the component package uploaded by the user in response to the user component upload request includes component name conflict verification and/or configuration file integrity verification.
Step S103: and analyzing the checked component package, and loading the component package together when loading the platform code based on the configuration file.
In the steps, the resolved component packages are loaded together when the platform code is loaded, so that the component packages of the user can be conveniently found, and the loading efficiency is improved.
Specifically, referring to fig. 3, the steps of parsing the verified package and loading the package together during loading the platform code based on the configuration file specifically include:
step S301: responding to the requirement of loading the aPaaS platform to load the platform code, traversing all the component information in the aPaaS platform, and acquiring the position information of the corresponding component package through a configuration file if the component uploaded by the user is found;
step S302: and loading the component code according to the position information by utilizing an HTTPS protocol to the position of the component package.
In the above steps, when the aPaaS platform loads, all the components are traversed, after the components uploaded by the user are found, the position of the corresponding component package is obtained from the configuration information of the components, and then the component codes are loaded to the corresponding positions through the HTTPS protocol, so that the function of loading the component package is realized. It should be noted that, because the component package code is already compiled into a JavaScript file and meets the UMD specification, the Script tag of the browser standard can be directly used for loading (the specific Script tag is defined by the HTML specification), and the user code package code is introduced by adopting the introduction mode of the UMD specification. In addition, if the page needs to be rendered subsequently, the user code package code is executed, and the aapaas platform function API is transferred as parameters to the code, where the platform function API includes: an API that initiates a network request, an API that obtains page data, an API that listens to page events, an API that initiates activities (e.g., page close activities, network request activities, component hide activities, modify page data, etc.).
Step S104: and responding to the user page construction operation to apply the corresponding business components to the page.
In the above steps, the user can see the developed business components on the aPaaS platform when constructing the page, and then can apply the business components on the page through operations such as dragging. Specifically, the step of applying the corresponding service component to the page in response to the user page construction operation specifically includes:
responding to a request of a user for adding a service component, adding a corresponding service component on a page, and simultaneously displaying configurable item information of the service component on a configuration page;
and responding to the setting of the configuration item of the business component by the user, and transmitting the set data to the corresponding business component codes in a page data API mode.
In the above steps, when the user builds the page, the service component developed by the user can be seen on the aPaaS platform and applied to the page through operations such as dragging. When the service components are configured and used, the platform basic components are the same, the corresponding component name buttons are clicked, a corresponding service component can be added on the page, meanwhile, configurable configuration items (the specific content of the configuration items is determined by codes written by a user) of the components are displayed on the right side of the configuration page, the user can set the configuration items, and meanwhile, the set data can be transmitted to the component codes written by the user by the aPaaS platform in a page data API mode, so that data communication between the components and the configuration information is realized, and the user can write different component display forms in the component codes according to different configuration information.
Step S105: and responding to the user preservation request to preserve the service component, generating page information, and adding the service code information corresponding to the component package uploaded by the user into the page information.
In the above steps, the page information includes at least one of a page component name, a page component composition, an application to which the page belongs, page custom data, configuration information corresponding to the components, or a layout relationship between the components. In addition, the service code information corresponding to the component package uploaded by the user is added into the page information, so that the subsequent processing and operation can be conveniently carried out.
In some embodiments of the invention, further comprising:
loading the service codes of the users according to the service code information;
and drawing the page according to the page information contained in the service code.
In the above steps, the page information can be visualized and rendered by drawing the page information, so that the user's use requirement can be met.
Based on the same inventive concept, referring to fig. 4, the invention further provides a system for loading an external service component package by an aPaaS platform, which comprises:
the writing module 1 is used for generating a corresponding component package and a configuration file according to component codes written by a user;
the verification module 2 is used for responding to the uploading request of the user component and verifying the component package uploaded by the user;
the analysis module 3 is used for analyzing the checked component package and loading the component package together when the platform code is loaded based on the configuration file;
the application module 4 is used for responding to the user page construction operation and applying the corresponding service components to the page;
and the page generating module 5 is used for responding to the user preservation request to preserve the service components, generating page information and adding the service code information corresponding to the component package uploaded by the user into the page information.
The specific implementation process of the system refers to a method for loading an external service component package by an aPaaS platform provided by the embodiment of the present application, which is not described herein.
Referring to fig. 5, fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention. The electronic device comprises a memory 7, a processor 8 and a communication interface 9, wherein the memory 7, the processor 8 and the communication interface 9 are electrically connected with each other directly or indirectly so as to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 7 may be used to store software programs and modules, such as program instructions/modules corresponding to a system for loading an external service component package by an aPaaS platform provided in the embodiments of the present application, and the processor 8 executes the software programs and modules stored in the memory 7, thereby executing various functional applications and data processing. The communication interface 9 may be used for communication of signaling or data with other node devices.
The Memory 7 may be, but is not limited to, a random access Memory (Random Access Memory, RAM), a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
The processor 8 may be an integrated circuit chip with signal processing capabilities. The processor 8 may be a general purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
It will be appreciated that the configuration shown in fig. 5 is merely illustrative, and that the electronic device may also include more or fewer components than shown in fig. 5, or have a different configuration than shown in fig. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The above functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (9)

1. The method for loading the external service component package by the aPaaS platform is characterized by comprising the following steps:
generating a corresponding component package and a configuration file according to component codes written by a user; the step of generating the corresponding component package and the configuration file according to the component code written by the user specifically comprises the following steps: responding to a downloading request of a user, sending a preset code template to the user, and generating a corresponding code template catalog; responding to a user packaging command, checking component codes written in a code template catalog by a user, and if the checking is passed, packaging the component codes to generate corresponding component packages and configuration files;
responding to the uploading request of the user component and checking the component package uploaded by the user;
analyzing the checked component package, and loading the component package together when loading the platform code based on the configuration file;
responding to user page construction operation to apply the corresponding service components to the page;
and responding to the user preservation request to preserve the service component, generating page information, and adding the service code information corresponding to the component package uploaded by the user into the page information.
2. The method for loading external service component packages by opaas platform according to claim 1, wherein the step of verifying the component packages uploaded by the user in response to the user component upload request comprises component name conflict verification and/or configuration file integrity verification.
3. The method for loading the external service component package by the aPaaS platform according to claim 1, wherein the step of parsing the verified component package and loading the package together during loading of the platform code based on the configuration file specifically comprises:
responding to the requirement of loading the aPaaS platform to load the platform code, traversing all the component information in the aPaaS platform, and acquiring the position information of the corresponding component package through a configuration file if the component uploaded by the user is found;
and loading the component code according to the position information by utilizing an HTTPS protocol to the position of the component package.
4. The method for loading external service component packages by the aPaaS platform as claimed in claim 1, wherein said step of applying the corresponding service component to the page in response to the user page building operation specifically comprises:
responding to a request of a user for adding a service component, adding a corresponding service component on a page, and simultaneously displaying configurable item information of the service component on a configuration page;
and responding to the setting of the configuration item of the business component by the user, and transmitting the set data to the corresponding business component codes in a page data API mode.
5. The method for loading an external service component package by an aPaaS platform according to claim 1, wherein the page information includes at least one of a page component name, a page component configuration, an application to which a page belongs, page custom data, configuration information corresponding to the component, or a layout relationship between the components.
6. The method for loading external service component packages by an aPaaS platform as set forth in claim 1, further comprising:
loading the service codes of the users according to the service code information;
and drawing the page according to the page information contained in the service code.
7. A system for an aPaaS platform to load external service component packages, comprising:
the writing module is used for generating a corresponding component package and a configuration file according to the component code written by the user; the step of generating the corresponding component package and the configuration file according to the component code written by the user specifically comprises the following steps: responding to a downloading request of a user, sending a preset code template to the user, and generating a corresponding code template catalog; responding to a user packaging command, checking component codes written in a code template catalog by a user, and if the checking is passed, packaging the component codes to generate corresponding component packages and configuration files;
the verification module is used for responding to the uploading request of the user component and verifying the component package uploaded by the user;
the analysis module is used for analyzing the checked component package and loading the component package together when the platform code is loaded based on the configuration file;
the application module is used for responding to the user page construction operation and applying the corresponding service components to the page;
and the page generation module is used for responding to the user preservation request to preserve the service component, generating page information and adding the service code information corresponding to the component package uploaded by the user into the page information.
8. An electronic device, comprising:
a memory for storing one or more programs;
a processor;
the method of any of claims 1-6 is implemented when the one or more programs are executed by the processor.
9. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any of claims 1-6.
CN202210691107.XA 2022-06-18 2022-06-18 Method and system for loading external service component package by aPaaS platform Active CN115269033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210691107.XA CN115269033B (en) 2022-06-18 2022-06-18 Method and system for loading external service component package by aPaaS platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210691107.XA CN115269033B (en) 2022-06-18 2022-06-18 Method and system for loading external service component package by aPaaS platform

Publications (2)

Publication Number Publication Date
CN115269033A CN115269033A (en) 2022-11-01
CN115269033B true CN115269033B (en) 2023-05-09

Family

ID=83762159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210691107.XA Active CN115269033B (en) 2022-06-18 2022-06-18 Method and system for loading external service component package by aPaaS platform

Country Status (1)

Country Link
CN (1) CN115269033B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113239310A (en) * 2021-06-17 2021-08-10 上海微盟企业发展有限公司 Page loading method and related device
CN113760308A (en) * 2021-02-05 2021-12-07 北京沃东天骏信息技术有限公司 DSP system construction method and device, electronic equipment and storage medium
CN114594944A (en) * 2022-03-10 2022-06-07 支付宝(杭州)信息技术有限公司 Application construction system and device

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8627426B2 (en) * 2010-04-26 2014-01-07 Vmware, Inc. Cloud platform architecture
US11144333B2 (en) * 2011-07-12 2021-10-12 Tongling Yuchen Software Technology Co., Ltd. Service model-oriented software system and operation method thereof
CN104391689B (en) * 2014-11-04 2018-10-16 中国石油天然气股份有限公司 A kind of development approach, middleware and the PaaS platform of Internet of Things application
CN104991760B (en) * 2014-12-23 2018-05-25 广州亦云信息技术有限公司 PaaS platform service management system and implementation method based on distributed modular technology
US9727330B2 (en) * 2015-11-25 2017-08-08 Red Hat, Inc. Source to image transformation pipeline for a platform-as-a-service system
CN107959718B (en) * 2017-11-17 2020-10-02 西北工业大学 Micro-service architecture of enterprise-level application software in cloud computing environment
CN110347395B (en) * 2018-04-03 2023-04-14 中移信息技术有限公司 Software release method and device based on cloud computing platform
CN109597616A (en) * 2018-11-30 2019-04-09 成都华栖云科技有限公司 A kind of APP terminal model generation system based on paas media cloud multi-tenant
CN110554874A (en) * 2019-09-12 2019-12-10 北京百度网讯科技有限公司 Method and device for reusing webpage components of SaaS platform
CN111930381B (en) * 2020-09-21 2021-11-19 知学云(北京)科技有限公司 Personalized page configuration method supporting SaaS multi-tenant system
CN113076105B (en) * 2021-06-08 2021-08-24 知学云(北京)科技股份有限公司 Componentized page rendering method and system for online education and memory
CN113504902B (en) * 2021-07-01 2022-07-22 中国汽车技术研究中心有限公司 Industrial APP integrated development system and related equipment
CN113778445A (en) * 2021-09-15 2021-12-10 树根互联股份有限公司 Cross-platform component generation method and device, electronic equipment and storage medium
CN114115838A (en) * 2021-11-11 2022-03-01 中电九天智能科技有限公司 Data interaction method and system based on distributed components and cloud platform
CN114296834A (en) * 2021-12-31 2022-04-08 树根互联股份有限公司 Component processing method and device and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760308A (en) * 2021-02-05 2021-12-07 北京沃东天骏信息技术有限公司 DSP system construction method and device, electronic equipment and storage medium
CN113239310A (en) * 2021-06-17 2021-08-10 上海微盟企业发展有限公司 Page loading method and related device
CN114594944A (en) * 2022-03-10 2022-06-07 支付宝(杭州)信息技术有限公司 Application construction system and device

Also Published As

Publication number Publication date
CN115269033A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
CN109325195B (en) Rendering method and system for browser, computer device and computer storage medium
CN105718313A (en) Application operation method and device
US9672141B1 (en) Generic language application programming interface interpreter
CN113010827B (en) Page rendering method and device, electronic equipment and storage medium
CN107729452B (en) Webpage loading method and device, electronic equipment and computer readable storage medium
CN112631590B (en) Component library generation method, device, electronic equipment and computer readable medium
CN104881318A (en) Interface calling method and device and terminal
CN107404418B (en) Internet product testing method, device, equipment and storage medium
CN107479868B (en) Interface loading method, device and equipment
CN110007936B (en) Data processing method and device
CN113127361A (en) Application program development method and device, electronic equipment and storage medium
CN110780874A (en) Method and apparatus for generating information
CN107273226B (en) Method and device for integrating components in android system and calling integrated components
US20170161171A1 (en) Tenant Code Debugging in Multi-Tenant Systems
US20130125093A1 (en) Generating object-oriented programming language code from a multi-domain dynamic simulation model
CN110807162A (en) Method and device for loading occupation bitmap
CN115269033B (en) Method and system for loading external service component package by aPaaS platform
CN107665124B (en) Modular JavaScript file processing method, device and server
CN111142972B (en) Method, apparatus, system, and medium for extending functions of application program
CN114035864A (en) Interface processing method, interface processing device, electronic device, and storage medium
CN108170557B (en) Method and apparatus for outputting information
CN110312990A (en) Configuration method and system
CN113835790A (en) Paging page display method and device based on Android
CN112068814A (en) Method, device, system and medium for generating executable file
CN113032004A (en) Method, apparatus and program product for managing development jobs in a development environment

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