CN112685030A - Method, device, storage medium and electronic equipment for generating service code - Google Patents

Method, device, storage medium and electronic equipment for generating service code Download PDF

Info

Publication number
CN112685030A
CN112685030A CN202011624906.2A CN202011624906A CN112685030A CN 112685030 A CN112685030 A CN 112685030A CN 202011624906 A CN202011624906 A CN 202011624906A CN 112685030 A CN112685030 A CN 112685030A
Authority
CN
China
Prior art keywords
code
service
module
generating
service 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.)
Pending
Application number
CN202011624906.2A
Other languages
Chinese (zh)
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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202011624906.2A priority Critical patent/CN112685030A/en
Publication of CN112685030A publication Critical patent/CN112685030A/en
Pending legal-status Critical Current

Links

Images

Abstract

The specification discloses a method, a device, a storage medium and electronic equipment for generating service codes, wherein for each existing service, module identifiers corresponding to code modules contained in the service codes of the existing service can be determined, the module identifiers are directly displayed through a visual graphical user interface, a user can directly operate in the graphical interface to select the required module identifiers, and then the code modules corresponding to the module identifiers can be used for generating the service codes of the target service according to the module identifiers selected by the user, so that any code template is not required to be maintained, the maintenance cost of the code modules is saved, the threshold of development of the service codes by developers is reduced, and the development of the service codes by the developers is facilitated.

Description

Method, device, storage medium and electronic equipment for generating service code
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a service code, a storage medium, and an electronic device.
Background
As technology develops, a service provider may also provide more and more services to users, and these services are usually implemented by service codes.
Since there are often some similarities between different services provided by a service provider, in order to avoid repeated generation of service codes as much as possible and improve service development efficiency, in the prior art, a code template is usually used to generate service codes.
Specifically, a code template may be maintained in advance, and when a service is developed, the code template is used to write a corresponding service code.
However, the code templates with complex functions have high maintenance cost, and the code templates have certain use thresholds for developers who are not familiar with the code templates.
Disclosure of Invention
Embodiments of the present specification provide a method, an apparatus, a storage medium, and an electronic device for generating a service code, so as to partially solve the problems in the prior art.
The embodiment of the specification adopts the following technical scheme:
the method for generating the service code provided by the specification comprises the following steps:
inquiring the service codes of all pre-stored existing services, wherein the existing services are services of which the service codes are generated;
determining a module identifier corresponding to each code module contained in a service code aiming at the service code of each existing service;
displaying each module identification in a graphical user interface;
determining the module identification selected by the user through the graphical user interface;
generating a service code of the target service according to the code module corresponding to the module identifier selected by the user;
and storing the service code of the target service in a specified storage address, establishing a mapping relation between the storage address and a specified domain name, and issuing the domain name.
Optionally, the code module included in the service code is obtained by packing at least part of the code in the service code in advance;
wherein, different code modules contained in the service code can be operated independently.
Optionally, packing at least part of the service codes in advance includes:
dividing the service code in advance according to a specified division rule to obtain each subcode contained in the service code;
and determining other subcodes required to be called by each subcode, and packaging the subcode and the other subcodes required to be called by the subcode into a code module.
Optionally, before dividing the service code, the method further includes:
the business code is converted into a standardized business code according to a specified conversion rule.
Optionally, after the module identifiers are displayed in the graphical user interface, the method further includes:
determining the network configuration of the target service input by the user through the graphical user interface;
and generating a configuration request according to the network configuration, and sending the configuration request to the specified equipment in an asynchronous sending mode.
Optionally, the configuration request carries the domain name;
before establishing a mapping relationship between the storage address and the specified domain name and issuing the domain name, the method further includes:
and receiving a confirmation message returned by the specified equipment for the configuration request.
Optionally, the graphical user interface comprises a code editing interface entry control;
before generating the service code of the target service, the method further comprises:
when the user is monitored to trigger the code editing interface entry control, displaying a code editing interface;
determining a code input by the user through the code editing interface;
generating a service code of the target service according to the code module corresponding to the module identifier selected by the user, specifically comprising:
and generating a service code of the target service according to the code module corresponding to the module identifier selected by the user and the code input by the user through the code editing interface.
The apparatus for generating a service code provided by this specification includes:
the query module is used for querying the service codes of all pre-stored existing services, wherein the existing services are services which generate the service codes;
the first determining module is used for determining a module identifier corresponding to each code module contained in the service code aiming at the service code of each existing service;
the display module is used for displaying each module identifier in the graphical user interface;
the second determination module is used for determining the module identification selected by the user through the graphical user interface;
the generating module is used for generating a service code of the target service according to the code module corresponding to the module identifier selected by the user;
and the execution module is used for storing the service code of the target service in a specified storage address, establishing a mapping relation between the storage address and a specified domain name, and issuing the domain name.
The present specification provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method of generating business code described above.
The present specification provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the processor implements the method for generating the service code.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
the embodiment of the specification can determine the module identifiers corresponding to the code modules contained in the service codes of the existing services, and directly display the module identifiers through a visual graphical user interface, so that a user can directly operate in the graphical interface to select the required module identifiers, and then can generate the service codes of the target services by adopting the code modules corresponding to the module identifiers according to the module identifiers selected by the user, thereby avoiding the need of maintaining any code template, not only saving the maintenance cost of the code modules, but also reducing the threshold of development of the service codes by developers, and facilitating the development of the service codes by the developers.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification and are incorporated in and constitute a part of this specification, illustrate embodiments of the specification and together with the description serve to explain the specification and not to limit the specification in a non-limiting sense. In the drawings:
fig. 1 is a schematic flowchart of generating a service code according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a first graphical user interface provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a second graphical user interface provided by an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an apparatus for generating a service code according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of this specification.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without any creative effort belong to the protection scope of the present specification.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of generating a service code according to an embodiment of the present disclosure, where the flowchart includes:
s100: and inquiring the service code of each pre-stored existing service, wherein the existing service is the service with the generated service code.
In the embodiment of the present specification, a development system for generating business code by the method shown in fig. 1 may be provided. The development system can prestore the service codes of all the existing services, wherein the existing services are the services which have generated the service codes.
Specifically, for an existing service, when the existing service is developed, the development system is used for development, and the development system stores a service code of the developed existing service, or does not perform development in the development system, but needs to store the service code of the existing service into the development system after the service code of the existing service is developed.
When a developer needs to develop service codes for target services, the developer can log in the development system first, and then the development system can inquire the service codes of the existing services which are prestored.
S102: and determining the module identification corresponding to each code module contained in the service code aiming at the service code of each existing service.
In this embodiment of the present specification, a code module included in a service code of an existing service is obtained by packing at least a part of the code in the service code in advance, where different code modules included in the service code may run independently.
In particular, implementation of a service often requires support of many functions, and thus, an entire service code of a service often consists of sub-codes for implementing these functions, and thus, a code module described in this specification can be simply understood as a sub-code included in a service code for implementing a function.
Often, however, many functions in a service need to support and rely on each other, in order to implement a service, therefore, the calling relationship often exists between the subcodes for realizing different functions in the service code of one service, if only sub-codes for implementing a function in the service code are packaged into a code module, ignoring the other code called by the subcode, results in the code module not being able to run independently, therefore, when at least part of the service codes of a service are packaged in advance, the service codes can be divided into a plurality of service codes according to a specified division rule, dividing the service code to obtain each sub-code (the concept of the sub-code is the sub-code for realizing one function) contained in the service code, and determining other sub-codes required to be called by the sub-code for each sub-code, and packaging the subcode and other subcodes required to be called by the subcode into a code module.
In this way, one packaged code module contains both the subcode for realizing the function and other codes required to be called by the subcode, so that each code module can run independently.
The specified division rule according to which the service code is divided can be set as required, for example, the service code can be divided according to a preset regular expression, or the service code can be divided according to annotation information included in the service code.
Further, before the service code is divided, the service code can be converted into a standardized service code according to a specified conversion rule. That is, the service codes of the existing services pre-stored in the development system can be converted into service codes with uniform grammar, thereby facilitating subsequent division and multiplexing. Wherein, the specified conversion rule can be set according to the requirement.
After the service codes of the existing service are packaged into a plurality of code modules by the method, the functions realized by each code module can be identified, and corresponding module identifications are set for each code module according to the functions realized by each code module. The method for identifying the function implemented by the code module can also be used for identifying according to a preset regular expression and/or according to annotation information of the code contained in the code module.
S104: and displaying the module identifications in the graphical user interface.
When a developer needs to develop a service code for a target service, the developer logs in a development system, and the development system can query a service code of each existing service through the step S100, then determine a module identifier corresponding to each code module included in the service code of each existing service through the step S102, and then display each module identifier included in the service code of each existing service through a graphical user interface in the step S104.
Specifically, after the developer logs in, the development system may display the service identifier of each existing service in the graphical user interface after querying the service code of each existing service that is pre-stored, and after the developer selects the specified existing service through the graphical user interface according to the service identifier, the developer displays the module identifier corresponding to each code module included in the service code of the specified existing service, as shown in fig. 2.
In fig. 2, after a developer logs in, the development system first displays existing services A, B, C, and displays a selection control for each existing service, and after the developer selects the selection control corresponding to the existing service a, the development system displays module identifiers corresponding to code modules included in the service code of the existing service a, where the displayed module identifiers are a link module, a plan module, and a drill module, and all three code modules can be selected through a graphical user interface.
S106: and determining the module identification selected by the user through the graphical user interface.
S108: and generating a service code of the target service according to the code module corresponding to the module identifier selected by the user.
In the embodiment of the present specification, after the development system displays the module identifier corresponding to each code module included in the service code of each existing service through the graphical user interface, the developer can select the code module required by the developer in the graphical user interface, and the development system can generate the service code of the target service through the code included in the code module selected by the developer.
Subsequently, the service code of the target service can be stored in the specified storage address, the mapping relation between the storage address and the specified domain name is established, and the domain name is issued, so that the user can obtain the service provided by the target service through the issued domain name. Specifically, when the user accesses the domain name, the service code may be obtained from the storage address according to the mapping relationship between the domain name and the storage address, and the service code is run to provide the service corresponding to the target service for the user.
As can be seen from the method shown in fig. 1, in the embodiment of the present specification, module identifiers corresponding to code modules included in a service code of an existing service can be directly displayed through a visual graphical user interface, a user can directly operate in the graphical interface to select a required module identifier, and then a code module corresponding to the module identifier can be used to generate a service code of a target service according to the module identifier selected by the user, so that no code template needs to be maintained, which not only saves the maintenance cost of the code module, but also reduces the threshold for developers to develop the service code, and facilitates the developers to develop the service code.
Further, the development system may present a graphical user interface that, in addition to being used by the developer to select code modules, may also be used to enable the developer to enter network configurations and other configurations of the target service, as shown in FIG. 2. In fig. 2, in addition to the link module, the plan module, and the drill module included in the displayed service code of the existing service a, a network configuration input box and other configuration input boxes are also included, where the network configuration input box is specifically a domain name configuration input box, and the other configuration input boxes are specifically service identifiers of the target service. The user may enter the specified domain name in the domain name configuration input box.
Correspondingly, the development system can determine the network configuration of the target service input by the user through the graphical user interface besides determining the code module selected by the developer, and generates a configuration request according to the network configuration, wherein the configuration request carries the domain name input by the user, and the configuration request is sent to the specified equipment in an asynchronous sending mode. Since network configuration and other configurations may need to be checked by other personnel, in this embodiment, the development system needs to send a corresponding configuration request to a device (i.e., a designated device) where the other personnel responsible for checking the configuration are located, and in order to improve the generation efficiency of the service code of the target service, the configuration request may be sent in an asynchronous sending manner, so that the development system may wait for confirmation of the configuration request on the one hand and process other tasks on the other hand.
After receiving the confirmation message returned by the designated device for the configuration request, the development system can establish the mapping relationship between the storage address for storing the service code of the target service and the domain name, and issue the domain name.
In the above-mentioned graphical user interface shown in fig. 2, a developer can only select a plurality of code modules included in the service code of one existing service to generate the service code of the target service, and in addition to the graphical user interface shown in fig. 2, the present specification embodiment provides another graphical user interface for selecting code modules, as shown in fig. 3.
In fig. 3, after a developer logs in the development system, the development system directly displays module identifiers corresponding to code modules included in service codes of all existing services in an interface in a form of a multi-level menu, so that the developer can select the code modules in the service codes of different existing services, and simultaneously, in the graphical user interface shown in fig. 3, input boxes for inputting network configuration and other configurations are also displayed.
Whether the graphical user interface shown in fig. 2 or the graphical user interface shown in fig. 3 is adopted, a code editing interface entry control for directly editing a code can be displayed in the graphical user interface (the control is not shown in fig. 2 and 3), the development system can monitor whether a developer triggers the code editing interface entry control, and if so, a code editing interface is displayed so that the developer can directly edit the code through the code editing interface. After the developer edits the code, the development system can determine the code directly input by the developer through the code editing interface, and generate the service code of the target service according to the code module corresponding to the module identifier selected by the developer and the code input through the code editing interface.
Based on the same idea, the present specification further provides a corresponding apparatus, a storage medium, and an electronic device.
Fig. 4 is a schematic structural diagram of an apparatus for generating a service code according to an embodiment of the present disclosure, where the apparatus includes:
the query module 401 is configured to query a service code of each pre-stored existing service, where the existing service is a service for which a service code has been generated;
a first determining module 402, configured to determine, for a service code of each existing service, a module identifier corresponding to each code module included in the service code;
a display module 403, configured to display each module identifier in the graphical user interface;
a second determining module 404, configured to determine a module identifier selected by the user through the graphical user interface;
a generating module 405, configured to generate a service code of the target service according to the code module corresponding to the module identifier selected by the user;
the executing module 406 is configured to store the service code of the target service in a specified storage address, establish a mapping relationship between the storage address and a specified domain name, and issue the domain name.
The code module contained in the service code is obtained by packing at least part of the code in the service code in advance;
wherein, different code modules contained in the service code can be operated independently.
The device further comprises:
a preprocessing module 407, configured to divide the service code in advance according to a specified division rule, so as to obtain each sub-code included in the service code; and determining other subcodes required to be called by each subcode, and packaging the subcode and the other subcodes required to be called by the subcode into a code module.
The preprocessing module 407 is further configured to convert the service code into a standardized service code according to a specified conversion rule.
The device further comprises:
a sending module 408, configured to determine a network configuration of the target service input by the user through the graphical user interface; and generating a configuration request according to the network configuration, and sending the configuration request to the specified equipment in an asynchronous sending mode.
The configuration request carries the domain name;
the executing module 406 is specifically configured to receive a confirmation message returned by the specified device for the configuration request before establishing a mapping relationship between the storage address and the specified domain name and issuing the domain name.
The graphical user interface includes a code editing interface entry control;
the second determining module 404 is further configured to, before generating a service code of a target service, display a code editing interface when it is monitored that the user triggers the code editing interface entry control; determining a code input by the user through the code editing interface;
the generating module 405 is specifically configured to generate a service code of the target service according to the code module corresponding to the module identifier selected by the user and the code input by the user through the code editing interface.
The present specification also provides a computer-readable storage medium storing a computer program which, when executed by a processor, is operable to perform the method of generating service code provided above.
Based on the method for generating a service code provided above, the embodiment of the present specification further provides a schematic structural diagram of the electronic device shown in fig. 5. As shown in fig. 5, the drone includes, at the hardware level, a processor, an internal bus, a network interface, a memory, and a non-volatile memory, although it may also include hardware required for other services. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to realize the positioning method.
Of course, besides the software implementation, the present specification does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may be hardware or logic devices.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (10)

1. A method of generating a service code, comprising:
inquiring the service codes of all pre-stored existing services, wherein the existing services are services of which the service codes are generated;
determining a module identifier corresponding to each code module contained in a service code aiming at the service code of each existing service;
displaying each module identification in a graphical user interface;
determining the module identification selected by the user through the graphical user interface;
generating a service code of the target service according to the code module corresponding to the module identifier selected by the user;
and storing the service code of the target service in a specified storage address, establishing a mapping relation between the storage address and a specified domain name, and issuing the domain name.
2. The method of claim 1, wherein the code module included in the service code is obtained by pre-packing at least a part of the code in the service code;
wherein, different code modules contained in the service code can be operated independently.
3. The method of claim 2, wherein pre-packing at least a portion of the service codes comprises:
dividing the service code in advance according to a specified division rule to obtain each subcode contained in the service code;
and determining other subcodes required to be called by each subcode, and packaging the subcode and the other subcodes required to be called by the subcode into a code module.
4. The method of claim 3, wherein prior to partitioning the service code, the method further comprises:
the business code is converted into a standardized business code according to a specified conversion rule.
5. The method of claim 1, wherein after displaying the module identifications in the graphical user interface, the method further comprises:
determining the network configuration of the target service input by the user through the graphical user interface;
and generating a configuration request according to the network configuration, and sending the configuration request to the specified equipment in an asynchronous sending mode.
6. The method of claim 5, wherein the domain name is carried in the configuration request;
before establishing a mapping relationship between the storage address and the specified domain name and issuing the domain name, the method further includes:
and receiving a confirmation message returned by the specified equipment for the configuration request.
7. The method of claim 1, wherein the graphical user interface comprises a code editing interface entry control;
before generating the service code of the target service, the method further comprises:
when the user is monitored to trigger the code editing interface entry control, displaying a code editing interface;
determining a code input by the user through the code editing interface;
generating a service code of the target service according to the code module corresponding to the module identifier selected by the user, specifically comprising:
and generating a service code of the target service according to the code module corresponding to the module identifier selected by the user and the code input by the user through the code editing interface.
8. An apparatus for generating a service code, comprising:
the query module is used for querying the service codes of all pre-stored existing services, wherein the existing services are services which generate the service codes;
the first determining module is used for determining a module identifier corresponding to each code module contained in the service code aiming at the service code of each existing service;
the display module is used for displaying each module identifier in the graphical user interface;
the second determination module is used for determining the module identification selected by the user through the graphical user interface;
the generating module is used for generating a service code of the target service according to the code module corresponding to the module identifier selected by the user;
and the execution module is used for storing the service code of the target service in a specified storage address, establishing a mapping relation between the storage address and a specified domain name, and issuing the domain name.
9. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-7 when executing the program.
CN202011624906.2A 2020-12-31 2020-12-31 Method, device, storage medium and electronic equipment for generating service code Pending CN112685030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011624906.2A CN112685030A (en) 2020-12-31 2020-12-31 Method, device, storage medium and electronic equipment for generating service code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011624906.2A CN112685030A (en) 2020-12-31 2020-12-31 Method, device, storage medium and electronic equipment for generating service code

Publications (1)

Publication Number Publication Date
CN112685030A true CN112685030A (en) 2021-04-20

Family

ID=75454020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011624906.2A Pending CN112685030A (en) 2020-12-31 2020-12-31 Method, device, storage medium and electronic equipment for generating service code

Country Status (1)

Country Link
CN (1) CN112685030A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113296789A (en) * 2021-06-16 2021-08-24 北京有竹居网络技术有限公司 Code generation method, device, equipment and storage medium
CN113377804A (en) * 2021-06-30 2021-09-10 北京三快在线科技有限公司 Data processing method and device, storage medium and electronic equipment
CN117240928A (en) * 2023-11-10 2023-12-15 浪潮通用软件有限公司 Dynamic publishing method and device for website service, medium and equipment
CN117369783A (en) * 2023-12-06 2024-01-09 之江实验室 Training method and device for security code generation model

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113296789A (en) * 2021-06-16 2021-08-24 北京有竹居网络技术有限公司 Code generation method, device, equipment and storage medium
CN113377804A (en) * 2021-06-30 2021-09-10 北京三快在线科技有限公司 Data processing method and device, storage medium and electronic equipment
CN113377804B (en) * 2021-06-30 2022-08-26 北京三快在线科技有限公司 Data processing method and device, storage medium and electronic equipment
CN117240928A (en) * 2023-11-10 2023-12-15 浪潮通用软件有限公司 Dynamic publishing method and device for website service, medium and equipment
CN117369783A (en) * 2023-12-06 2024-01-09 之江实验室 Training method and device for security code generation model
CN117369783B (en) * 2023-12-06 2024-02-23 之江实验室 Training method and device for security code generation model

Similar Documents

Publication Publication Date Title
CN112685030A (en) Method, device, storage medium and electronic equipment for generating service code
CN107644286B (en) Workflow processing method and device
CN109739600B (en) Data processing method, medium, device and computing equipment
CN110502227B (en) Code complement method and device, storage medium and electronic equipment
CN109241026B (en) Data management method, device and system
CN108268289B (en) Parameter configuration method, device and system for web application
CN111399840B (en) Module development method and device
US20190034195A1 (en) Systems and methods for providing patchable rom firmware
CN111400681B (en) Data authority processing method, device and equipment
CN112597013A (en) Online development and debugging method and device
CN113805882A (en) Method and device for developing application program, electronic equipment and storage medium
CN111666100B (en) Software framework generation method and device, electronic equipment and storage medium
CN112307509A (en) Desensitization processing method, equipment, medium and electronic equipment
CN107391529B (en) Method and device for realizing Object Relation Mapping (ORM)
CN111159278A (en) Data display method and device, electronic equipment and computer readable storage medium
CN111694992A (en) Data processing method and device
CN110941443B (en) Method and device for modifying file name in SDK (software development kit) and electronic equipment
CN112486492A (en) Page generation method and device, storage medium and electronic equipment
CN109409037B (en) Method, device and equipment for generating data confusion rule
CN114449063B (en) Message processing method, device and equipment
CN110221825B (en) Method for realizing native language programming on computer
CN110659105A (en) Virtualized resource processing method, device, equipment and storage medium
CN111966709A (en) Data query method and device and electronic equipment
CN111324778A (en) Data and service processing method and device and electronic equipment
CN116432185B (en) Abnormality detection method and device, readable storage medium and electronic equipment

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