CN111258565A - Method, system, server and storage medium for generating small program - Google Patents

Method, system, server and storage medium for generating small program Download PDF

Info

Publication number
CN111258565A
CN111258565A CN202010070134.6A CN202010070134A CN111258565A CN 111258565 A CN111258565 A CN 111258565A CN 202010070134 A CN202010070134 A CN 202010070134A CN 111258565 A CN111258565 A CN 111258565A
Authority
CN
China
Prior art keywords
information
generating
applet
service
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010070134.6A
Other languages
Chinese (zh)
Other versions
CN111258565B (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.)
Shenzhen Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Lexin Software 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 Shenzhen Lexin Software Technology Co Ltd filed Critical Shenzhen Lexin Software Technology Co Ltd
Priority to CN202010070134.6A priority Critical patent/CN111258565B/en
Publication of CN111258565A publication Critical patent/CN111258565A/en
Application granted granted Critical
Publication of CN111258565B publication Critical patent/CN111258565B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • 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 embodiment of the invention discloses a method, a system, a server and a storage medium for generating an applet, wherein the method comprises the following steps: receiving a service request sent by a client; acquiring service information in a preset database according to the service request; acquiring engine construction information of a preset engine construction layer according to the service information, and acquiring a source code of a preset code layer according to the service information; associating engine construction information with source code to generate an initialization generation framework; and pulling the service information to an initialization generation framework to generate the small program. The invention solves the technical problem that a plurality of small programs cannot be developed in parallel in the prior art by utilizing the service information in the preset database, the engine construction information of the preset engine construction layer and the source codes of the preset code layer, and realizes the technical effects of code multiplexing, simplified operation, high efficiency and customized generation of the small programs.

Description

Method, system, server and storage medium for generating small program
Technical Field
The present invention relates to parallel generation technologies, and in particular, to a method, a system, a server, and a storage medium for generating an applet.
Background
With the diversification of services and the deep development of the industry, one micro-message applet cannot meet the requirements of a service party, and the parallel research and development and the rapid online of a plurality of applets become the current urgent tasks, so that a set of applet multiplexing architecture scheme which can meet the requirements of code multiplexing and decoupling, pack resources as required and improve the development efficiency is particularly important.
The existing small program development mainly depends on a WeChat developer tool, and the small program official does not provide a development tool capable of managing a plurality of small programs, so that the WeChat developer tool can only open one project each time, and the problems that the plurality of small programs cannot be developed in parallel, and the flexibility is low, the operation is complex, the process is complicated, and the working efficiency is low exist.
Disclosure of Invention
The invention provides a method, a system, a server and a storage medium for generating an applet, so as to realize the efficient, quick and user-defined generation of the applet.
In a first aspect, an embodiment of the present invention provides a method for generating an applet, including:
receiving a service request sent by a client;
acquiring service information in a preset database according to the service request;
acquiring engine construction information of a preset engine construction layer according to the service information, and acquiring a source code of a preset code layer according to the service information;
associating engine construction information with source code to generate an initialization generation framework;
and pulling the service information to an initialization generation framework to generate the small program.
Optionally, the number of the service information, the initialization generating frame and the applet is at least two, and the initialization generating frame, the service information and the applet correspond to one another.
Optionally, the engine building information includes engine building basic information and an NPM dependency package, and associating the engine building information with the source code to generate the initialization generation framework includes:
judging whether a service request is acquired;
if the service request is obtained, pulling engine construction basic information and an engine NPM (network provider management) dependency package of a preset engine construction layer, and simultaneously pulling a source code of a preset code layer;
judging whether the basic information, the NPM dependency package and the source code constructed by the engine are correct or not;
and if the engine construction basic information, the NPM dependency package and the source code are correct, associating the engine construction basic information, the NPM dependency package and the source code according to a preset rule to generate an initialization generation framework.
Optionally, the engine building information further includes file monitoring information, and associating the engine building information with the source code to generate the initialization generation framework includes:
generating a monitoring log of the service request according to the file monitoring information;
judging whether the storage positions of the engine construction information and the source code change or not according to the monitoring log;
and if the storage position of the engine construction information and/or the source code changes, generating corresponding file change information and sending the file change information to the first preset server.
Optionally, after pulling the service information to the initialization generation framework to generate the applet, the method includes:
and sending the small program to a second preset server for storage.
Optionally, the pulling the service information to the initialization generation framework to generate the applet includes:
judging whether an initialization generating frame exists or not;
if the initialization generation frame exists, generating a pulling command according to the service information;
and pulling the service information to an initialization generation framework according to the pulling command to generate the applet.
In a second aspect, an embodiment of the present invention further provides a system for generating an applet, including:
the receiving module is used for receiving a service request sent by a client;
the first acquisition module is used for acquiring service information in a preset database according to the service request;
the second acquisition module is used for acquiring the engine construction information of the preset engine construction layer according to the service information and acquiring the source code of the preset code layer;
the correlation module is used for correlating the engine construction information with the source code to generate an initialization generation framework;
and the generating module is used for pulling the service information to the initialization generating framework to generate the small program.
Optionally, the number of the service information, the initialization generating frame and the applet is at least two, and the initialization generating frame, the service information and the applet correspond to one another.
In a third aspect, an embodiment of the present invention further provides a server, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the generation method of the applet of any one of the above embodiments.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for generating an applet in any one of the above-mentioned embodiments.
The invention solves the technical problem that a plurality of small programs cannot be developed in parallel in the prior art by utilizing the service information in the preset database, the engine construction information of the preset engine construction layer and the source codes of the preset code layer, and realizes the technical effects of code multiplexing, simplified operation, high efficiency and customized generation of the small programs.
Drawings
Fig. 1 is a flowchart of a method for generating an applet according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for generating an applet according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a system for generating an applet according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, a first acquisition module may be referred to as a second acquisition module, and similarly, a second acquisition module may be referred to as a first acquisition module, without departing from the scope of the present application. The first acquisition module and the second acquisition module are both acquisition modules, but they are not the same acquisition module. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
Fig. 1 is a flowchart of a method for generating an applet according to an embodiment of the present invention, where the embodiment is applicable to a case where multiple applets are generated simultaneously, and the method may be executed by a service end or a corresponding server. As shown in fig. 1, the method for generating an applet in this embodiment specifically includes the following steps:
step S110, receiving a service request sent by a client;
specifically, the client may refer to a server or a terminal that needs to perform service invocation, such as some financial enterprises, and needs basic personal information (mobile phone number, age, gender, and name) of the loan user, loan information (whether a loan has been made before, what the loan amount is), and other information (such as a home address, a work place, a work title, a scholarship, a family member, and the like), and a service request (i.e., a request instruction sent by the client to subscribe to a certain service) of the user may be sent to a service end (where the service end may refer to a terminal for generating an applet) through the server or the intelligent terminal corresponding to the financial service of the financial enterprise.
Step S120, acquiring service information in a preset database according to the service request;
step S130, obtaining engine construction information of a preset engine construction layer according to the service information, and obtaining a source code of a preset code layer according to the service information;
specifically, after the service end receives a service request sent by the client, the service end can correspondingly query service resources in a preset database according to the service request, so as to obtain corresponding service information. In this embodiment, the service information refers to a result of the corresponding service acquired according to the service request. If the order is inquired when the service is requested, the service information is specific data about the order in the preset database, such as order number, order quantity, order amount and the like. The service end also acquires the engine construction information in a preset engine construction layer according to the received service request, and acquires the source code in a preset code layer. In this embodiment, the preset database may be a database of the service end itself, such as a database in a certain company or enterprise, or a database of a third party service end, such as a database of a certain big data platform. In this embodiment, the preset engine building layer may refer to a basic service layer of a service end, and may include functions of building an engine, package dependency management, code check, GIT warehouse management (GIT is an open-source distributed version control system, and may effectively and quickly process from very small to very large project version management), file change monitoring, and the like (information corresponding to these functions is engine building information). The preset code layer refers to a shared resource layer of the service end, and can include corresponding preset codes such as a network request, a tool function, an API (application program interface), a component library, a public page and the like, namely the codes are generally not changed, a program is written in advance by a front-end developer and is stored in a preset database, and the service end only needs to call the codes.
Step S140, associating the engine construction information with the source code to generate an initialization generation framework;
specifically, after the service end obtains the engine construction information and the source code, the engine construction information and the source code may be associated, so as to generate an initialization generation framework of the applet corresponding to the service request.
And S150, pulling the service information to an initialization generation framework to generate the small program.
Specifically, the service end may pull the acquired service information into an initialization generating frame, execute a packaging and compiling command on the entire initialization generating frame, compress pictures in the service information, merge, compress and mix codes of the service information, and finally integrate the processed service information with the engine construction information and the source code to generate an applet application engineering package, that is, complete the whole applet generating process.
The first embodiment of the invention has the advantages that by utilizing the service information in the preset database, the engine construction information of the preset engine construction layer and the source code of the preset code layer, the technical problem that a plurality of small programs cannot be developed in parallel in the prior art is solved, and the technical effects of code multiplexing, simplified operation, high efficiency and customized generation of the small programs are realized.
Example two
The second embodiment of the invention is further optimized on the basis of the first embodiment. Fig. 2 is a flowchart of a method for generating an applet according to a second embodiment of the present invention. In this embodiment, the engine construction information includes engine construction basic information, an NPM dependency package, and file monitoring information, the number of the service information, the initialization generating framework, and the number of the applet are at least two, and the initialization generating framework, the service information, and the applet are in one-to-one correspondence. As shown in fig. 2, the method for generating an applet according to this embodiment includes:
step S210, receiving a service request sent by a client;
specifically, the client may refer to a server or a terminal that needs to perform service invocation, such as some financial enterprises, and needs personal basic information (a mobile phone number, an age, a gender, and a name) for a loan user, loan information (whether a loan has been performed before, what the loan amount is), and other information (such as a home address, a work place, a work title, a study calendar, and family members, etc.), and at this time, a service request for querying the personal basic information, the loan information, and other information of the user may be sent to a service end (the service end may refer to a terminal for generating an applet) through a server or an intelligent terminal corresponding to a financial service of the financial enterprise. In this embodiment, the service request may be multiple, that is, the client sends multiple service requests simultaneously.
Step S220, acquiring service information in a preset database according to the service request;
specifically, after the service end receives a service request sent by the client, the service end can correspondingly query service resources in a preset database according to the service request, so as to obtain corresponding service information. In this embodiment, the preset database may be a database of the service end itself, such as a database in a certain company or enterprise, or a database of a third party service end, such as a database of a certain big data platform. For example, a company sends an order query service request and a stock query service request to a service end at the same time, and then the service end queries data about orders and stocks in a preset database according to the order query service request and the stock query service request, and obtains service information about order query and stock respectively.
Step S230, judging whether to acquire a service request; if the service request is obtained, pulling engine construction basic information and an engine NPM (network provider management) dependency package of a preset engine construction layer, and simultaneously pulling a source code of a preset code layer;
specifically, in this embodiment, it may be determined whether the service end obtains the service request sent by the client, and if the service end really receives the service request, the service end obtains the engine construction information in the preset engine construction layer according to the received service request, and obtains the source code in the preset code layer. The Node Package Manager (NPM) has a main function of managing Node packages, and includes: install, uninstall, update, view, search, publish, and the like. Behind the NPM, a database based on the couchdb records information of each package in detail, including author, version, dependency, authorization information, etc., and an important role of the database is to release developers from tedious package management work (version, dependency, etc.) and concentrate on development of functions. In this embodiment, the preset engine building layer may refer to a basic service layer of the service end, and may include functions of building an engine, NPM package dependency management, code inspection, GIT warehouse management, file change monitoring, and the like, that is, building basic information and an NPM dependency package corresponding to the engine. The preset code layer refers to a shared resource layer of the service end, and can include corresponding preset codes such as a network request, a tool function, an API (application program interface), a component library, a public page and the like, namely the codes are generally not changed, a program is written in advance by a front-end developer and is stored in a preset database, and the service end only needs to call the codes.
Step S240, judging whether the basic information, the NPM dependency package and the source code constructed by the engine are correct or not; if the basic information, the NPM dependency package and the source code constructed by the engine are correct, associating the basic information, the NPM dependency package and the source code constructed by the engine according to a preset rule to generate an initialization generation framework;
specifically, after obtaining the engine construction basic information, the NPM dependent packet, and the source code, the service end needs to check the information, and if the information is correct, that is, not tampered, the service end may associate the engine construction basic information, the NPM dependent packet, and the source code according to a preset rule, thereby generating an initialization generation framework.
Step S250, generating a monitoring log of the service request according to the file monitoring information;
step S260, judging whether the storage positions of the engine construction information and the source code change or not according to the monitoring log; if the storage position of the engine construction information and/or the source code changes, generating corresponding file change information and sending the file change information to a first preset server;
specifically, after receiving a service request sent by a client, a service end may further generate a monitoring log of the service request according to file monitoring information of a preset engine building layer, where the monitoring log is used to monitor whether storage locations of the engine building information and the source code are changed, that is, whether the engine building information and the source code are stored in the preset engine building layer and the preset code layer. If so, the service end directly acquires the engine construction information and the source code through a preset engine construction layer and a preset code layer; if not, that is, the storage location of the engine building information and/or the source code changes, the service end generates corresponding file change information (where the file change information may include the original storage location of the file and the current storage location of the file) and sends the file change information to the first preset server (the first preset server may be a WeChat server, or a server corresponding to the service end), so as to notify relevant personnel and record the change of the storage location of the file. The service end can also determine a new storage position of the file according to the file change information, and acquire the engine construction information and the source code through the new storage position.
Step S270, judging whether an initialization generating frame exists or not; if the initialization generation frame exists, generating a pulling command according to the service information; pulling the service information to an initialization generation framework according to the pulling command to generate an applet;
and step S280, sending the small program to a second preset server for storage.
Specifically, before generating the applet corresponding to the service request, the service end may further determine whether an initialization generation framework is generated through the acquired engine construction information and the source code. If the initialization generating frame is generated, a pulling command of the service information can be generated, the service information is pulled into the generated initialization generating frame, a packing and compiling command is executed on the whole initialization generating frame, pictures in the service information are compressed, codes of the service information are merged, compressed and mixed, finally, the processed service information integration engine construction information and source codes are integrated to generate an engineering package of the small program application, and the whole small program generating process is completed. If the service end receives the service request of the client end but does not generate the initialization generating frame, the initialization command can be directly input, the engine building information of the preset engine building layer and the source code of the preset code layer are directly obtained according to the initialization command, the initialization generating frame is regenerated, and then the service information is input into the newly generated initialization generating frame, so that the small program of the service request is obtained. For example, a company sends an order query service request and a stock query service request to a service end at the same time, at this time, the service end obtains service information of the order query and the stock respectively by querying a preset database, and then the service end inputs the service information of the order query and the stock respectively into an initialization generation frame, thereby generating a small program with an order query function and a stock query function at the same time.
The second embodiment of the invention has the advantages that by utilizing the service information in the preset database, the engine construction information of the preset engine construction layer and the source code of the preset code layer, the technical problem that a plurality of small programs cannot be developed in parallel in the prior art is solved, code multiplexing, simplified operation, efficient and customizable generation of the small programs are realized, and the technical effect of rapidly switching the development mode for the plurality of small programs is realized.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a system for generating an applet according to a third embodiment of the present invention. As shown in fig. 3, an applet generating system 300, comprising:
a receiving module 310, configured to receive a service request sent by a client;
a first obtaining module 320, configured to obtain service information in a preset database according to a service request;
the second obtaining module 330 is configured to obtain engine building information of a preset engine building layer according to the service information, and obtain a source code of a preset code layer;
an association module 340 for associating the engine build information with the source code to generate an initialization generation framework;
and a generating module 350, configured to pull the service information to the initialization generating framework to generate the applet.
In this embodiment, the number of the service information, the initialization generating frame, and the applet is at least two, and the initialization generating frame, the service information, and the applet correspond to one another.
In this embodiment, the engine building information includes engine building basic information and an NPM dependent packet, and the association module 340 includes:
the first association unit is used for judging whether to acquire the service request; if the service request is obtained, pulling engine construction basic information and an engine NPM (network provider management) dependency package of a preset engine construction layer, and simultaneously pulling a source code of a preset code layer;
the second correlation unit is used for judging whether the engine construction basic information, the NPM dependency package and the source code are correct or not; and if the engine construction basic information, the NPM dependency package and the source code are correct, associating the engine construction basic information, the NPM dependency package and the source code according to a preset rule to generate an initialization generation framework.
In this embodiment, the engine construction information further includes file monitoring information, and the applet generating system 300 further includes:
the monitoring module 360 is configured to generate a monitoring log of the service request according to the file monitoring information; judging whether the storage positions of the engine construction information and the source code change or not according to the monitoring log; and if the storage position of the engine construction information and/or the source code changes, generating corresponding file change information and sending the file change information to the first preset server.
In this embodiment, the generation system 300 of an applet further includes:
and a storage module 370, configured to send the applet to a second preset server for storage.
In this embodiment, the generating module 350 includes:
the generating unit is used for judging whether an initialization generating frame exists or not; if the initialization generation frame exists, generating a pulling command according to the service information; and pulling the service information to an initialization generation framework according to the pulling command to generate the applet.
The generation system of the applet provided by the embodiment of the invention can execute the generation method of the applet provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention, as shown in fig. 4, the server includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of the processors 410 in the server may be one or more, and one processor 410 is taken as an example in fig. 4; the processor 410, the memory 420, the input device 430 and the output device 440 in the server may be connected by a bus or other means, and the bus connection is exemplified in fig. 4.
The memory 410 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the applet generating method in the embodiment of the present invention (for example, a receiving module, a first acquiring module, a second acquiring module, a judging module, an associating module, a generating module, a monitoring module, and a storage module in the applet generating system). The processor 410 executes various functional applications of the server and data processing by executing software programs, instructions, and modules stored in the memory 420, that is, implements the above-described applet generating method.
Namely:
receiving a service request sent by a client;
acquiring service information in a preset database according to the service request;
acquiring engine construction information of a preset engine construction layer according to the service information, and acquiring a source code of a preset code layer according to the service information;
associating engine construction information with source code to generate an initialization generation framework;
and pulling the service information to an initialization generation framework to generate the small program.
The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to a server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the server. The output device 440 may include a display device such as a display screen.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for generating an applet, the method including:
receiving a service request sent by a client;
acquiring service information in a preset database according to the service request;
acquiring engine construction information of a preset engine construction layer according to the service information, and acquiring a source code of a preset code layer according to the service information;
associating engine construction information with source code to generate an initialization generation framework;
and pulling the service information to an initialization generation framework to generate the small program.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the applet generating method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the generation system of the applet, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for generating an applet, comprising:
receiving a service request sent by a client;
acquiring service information in a preset database according to the service request;
acquiring engine construction information of a preset engine construction layer according to the service information, and acquiring a source code of a preset code layer according to the service information;
associating the engine build information with the source code to generate an initialization generation framework;
and pulling the service information to the initialization generation framework to generate an applet.
2. The applet generating method according to claim 1, wherein the number of the service information, the initialization generating frame and the applet is at least two, and the initialization generating frame, the service information and the applet are in one-to-one correspondence.
3. The applet generating method according to claim 1, wherein the engine build information includes engine build base information and NPM dependency package, and the associating the engine build information with the source code to generate the initialization generating framework includes:
judging whether the service request is acquired;
if the service request is obtained, pulling the engine construction basic information and the engine NPM dependency package of the preset engine construction layer, and simultaneously pulling the source code of the preset code layer;
judging whether the engine construction basic information, the NPM dependency package and the source code are correct or not;
and if the engine construction basic information, the NPM dependency package and the source code are correct, associating the engine construction basic information, the NPM dependency package and the source code according to a preset rule to generate an initialization generation framework.
4. The applet generating method according to claim 3, wherein the engine build information further includes document monitoring information, and the associating the engine build information with the source code to generate the initialization generating framework includes:
generating a monitoring log of the service request according to the file monitoring information;
judging whether the storage positions of the engine construction information and the source code are changed or not according to the monitoring log;
and if the storage position of the engine construction information and/or the source code changes, generating corresponding file change information and sending the file change information to a first preset server.
5. The method for generating an applet according to claim 1, wherein the pulling the service information to the initialization generation framework to generate an applet comprises:
and sending the small program to a second preset server for storage.
6. The method of claim 1, wherein the pulling the service information to the initialization generation framework to generate an applet comprises:
judging whether the initialization generating frame exists or not;
if the initialization generating frame exists, generating a pulling command according to the service information;
and pulling the service information to the initialization generation framework according to the pulling command to generate an applet.
7. An applet generating system comprising:
the receiving module is used for receiving a service request sent by a client;
the first acquisition module is used for acquiring service information in a preset database according to the service request;
the second acquisition module is used for acquiring the engine construction information of a preset engine construction layer according to the service information and acquiring the source code of a preset code layer;
the correlation module is used for correlating the engine construction information with the source code to generate an initialization generation framework;
and the generating module is used for pulling the service information to the initialization generating framework to generate an applet.
8. The applet generating system according to claim 7, wherein the service information, the initialization generating framework and the applet are at least two, and the initialization generating framework, the service information and the applet are in one-to-one correspondence.
9. A server, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of generating an applet as claimed in any one of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of generating an applet as claimed in any one of claims 1-6.
CN202010070134.6A 2020-01-21 2020-01-21 Method, system, server and storage medium for generating applet Active CN111258565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010070134.6A CN111258565B (en) 2020-01-21 2020-01-21 Method, system, server and storage medium for generating applet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010070134.6A CN111258565B (en) 2020-01-21 2020-01-21 Method, system, server and storage medium for generating applet

Publications (2)

Publication Number Publication Date
CN111258565A true CN111258565A (en) 2020-06-09
CN111258565B CN111258565B (en) 2023-06-06

Family

ID=70949079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010070134.6A Active CN111258565B (en) 2020-01-21 2020-01-21 Method, system, server and storage medium for generating applet

Country Status (1)

Country Link
CN (1) CN111258565B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527335A (en) * 2020-12-21 2021-03-19 恩亿科(北京)数据科技有限公司 Method, system and computer device for automating npm dependent package installation
CN112799660A (en) * 2021-01-21 2021-05-14 三一重工股份有限公司 Application program generation method and device
CN112947984A (en) * 2020-09-29 2021-06-11 深圳市明源云科技有限公司 Application program development method and device
CN113242310A (en) * 2020-06-30 2021-08-10 浙江口碑网络技术有限公司 Method and device for realizing service based on small program
WO2022000869A1 (en) * 2020-06-28 2022-01-06 北京百度网讯科技有限公司 Batch processing method and apparatus for mini programs, and electronic device and readable storage medium
CN114168215A (en) * 2021-11-17 2022-03-11 广东太平洋互联网信息服务有限公司 Plug-in processing method, system and medium for multiple applet functional modules

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304171A (en) * 2017-01-13 2018-07-20 湖南销客云商网络技术有限公司 It is a kind of to be built a station mall system based on the whole network cloud
CN108847989A (en) * 2018-06-29 2018-11-20 杭州安恒信息技术股份有限公司 Log processing method, business service system and electronic equipment based on micro services framework
WO2019072110A1 (en) * 2017-10-11 2019-04-18 阿里巴巴集团控股有限公司 Method for generating application program, apparatus, system, device, and medium
CN109947399A (en) * 2019-01-25 2019-06-28 深圳壹账通智能科技有限公司 Code structure generation method, device, computer installation and readable storage medium storing program for executing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304171A (en) * 2017-01-13 2018-07-20 湖南销客云商网络技术有限公司 It is a kind of to be built a station mall system based on the whole network cloud
WO2019072110A1 (en) * 2017-10-11 2019-04-18 阿里巴巴集团控股有限公司 Method for generating application program, apparatus, system, device, and medium
CN108847989A (en) * 2018-06-29 2018-11-20 杭州安恒信息技术股份有限公司 Log processing method, business service system and electronic equipment based on micro services framework
CN109947399A (en) * 2019-01-25 2019-06-28 深圳壹账通智能科技有限公司 Code structure generation method, device, computer installation and readable storage medium storing program for executing

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022000869A1 (en) * 2020-06-28 2022-01-06 北京百度网讯科技有限公司 Batch processing method and apparatus for mini programs, and electronic device and readable storage medium
CN113242310A (en) * 2020-06-30 2021-08-10 浙江口碑网络技术有限公司 Method and device for realizing service based on small program
CN113242310B (en) * 2020-06-30 2024-04-12 浙江口碑网络技术有限公司 Method and device for realizing service based on applet
CN112947984A (en) * 2020-09-29 2021-06-11 深圳市明源云科技有限公司 Application program development method and device
CN112527335A (en) * 2020-12-21 2021-03-19 恩亿科(北京)数据科技有限公司 Method, system and computer device for automating npm dependent package installation
CN112527335B (en) * 2020-12-21 2024-04-19 恩亿科(北京)数据科技有限公司 Method, system and computer device for automated processing npm dependent package installation
CN112799660A (en) * 2021-01-21 2021-05-14 三一重工股份有限公司 Application program generation method and device
CN114168215A (en) * 2021-11-17 2022-03-11 广东太平洋互联网信息服务有限公司 Plug-in processing method, system and medium for multiple applet functional modules
CN114168215B (en) * 2021-11-17 2024-03-19 广东太平洋互联网信息服务有限公司 Plug-in processing method, system and medium for multiple small program function modules

Also Published As

Publication number Publication date
CN111258565B (en) 2023-06-06

Similar Documents

Publication Publication Date Title
CN111258565A (en) Method, system, server and storage medium for generating small program
CN110310034B (en) Service arrangement and business flow processing method and device applied to SaaS
US8122292B2 (en) Debugging of business flows deployed in production servers
US8707275B2 (en) Simulation environment for distributed programs
CN108874558B (en) Message subscription method of distributed transaction, electronic device and readable storage medium
US20110154226A1 (en) Chip model of an extensible plug-in architecture for enterprise mashups
CN111104103B (en) Visualization method and system for software editing micro-service
US20220179711A1 (en) Method For Platform-Based Scheduling Of Job Flow
CN110769018A (en) Message pushing method and device
CN113971037A (en) Application processing method and device, electronic equipment and storage medium
CN112367363A (en) Information sharing method, device, server and storage medium
CN113961332A (en) Method and device for realizing workflow engine, electronic equipment and storage medium
CN113867600A (en) Development method and device for processing streaming data and computer equipment
CN111736810A (en) Method for dynamically creating node of docker container to execute task based on jenkins real-time task
CN111240998B (en) Test case processing method and device
CN112686580A (en) Workflow definition method and system capable of customizing flow
US9059992B2 (en) Distributed mobile enterprise application platform
CN113495723B (en) Method, device and storage medium for calling functional component
CN115145652A (en) Method, device, equipment and medium for creating data processing task
CN115543647A (en) Function calling method
CN112416980A (en) Data service processing method, device and equipment
CN112084247A (en) Method and device for extending application program service
CN111400060A (en) Equipment linkage method, device, server and medium
US11017032B1 (en) Document recovery utilizing serialized data
KR20090068938A (en) Engineering framework for executing and integrating the distributed engineering resources, and method for using the same

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