CN116301830A - Service code generation method and device, electronic equipment and storage medium - Google Patents

Service code generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116301830A
CN116301830A CN202310258021.2A CN202310258021A CN116301830A CN 116301830 A CN116301830 A CN 116301830A CN 202310258021 A CN202310258021 A CN 202310258021A CN 116301830 A CN116301830 A CN 116301830A
Authority
CN
China
Prior art keywords
component
target
service
configuration file
atomic
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
CN202310258021.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 Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information 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 Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202310258021.2A priority Critical patent/CN116301830A/en
Publication of CN116301830A publication Critical patent/CN116301830A/en
Pending legal-status Critical Current

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/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The disclosure provides a service code generation method and device, electronic equipment and a storage medium; relates to the technical field of computers. The method comprises the following steps: generating a target business component corresponding to a business function of a target business by utilizing a target atomic component, wherein the target atomic component is obtained by screening in an atomic component library according to the business function, and the atomic component library is formed based on a minimum entity unit in the business component; responding to the generation of the target service component, and acquiring a first configuration file corresponding to the target service component; and generating a service code of the target service based on the first configuration file. The method and the device can solve the problems of slow product online and low development efficiency caused by hard coding to realize product updating or development in the related technology.

Description

Service code generation method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to a service code generation method and device, electronic equipment and a storage medium.
Background
The low code development platform can quickly generate application programs through no coding or a small amount of coding, and the development work is completed through the combination of various business components. However, in the related art, development of each service component needs to be realized through hard coding, and modification, upgrading or customization of the service component needs to be realized through modifying codes, so that the product is slow to be online and has low development efficiency.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The embodiment of the disclosure aims to provide a service code generation method and device, electronic equipment and storage medium, and further solves the problems of slow product online and low development efficiency caused by hard coding realization of product updating or development in related technologies to a certain extent.
According to a first aspect of the present disclosure, there is provided a service code generation method, including: generating a target business component corresponding to a business function of a target business by utilizing a target atomic component, wherein the target atomic component is obtained by screening in an atomic component library according to the business function, and the atomic component library is formed based on a minimum entity unit in the business component; responding to the generation of the target service component, and acquiring a first configuration file corresponding to the target service component; and generating a service code of the target service based on the first configuration file.
Optionally, generating, by using the target atomic component, a target service component corresponding to the service function, including: and in response to receiving the component compounding instruction, component compounding is carried out on the layout component and the target atomic component, and the target business component is generated.
Optionally, performing component compounding on the layout component and the target atomic component includes: and generating a target business component based on the configuration attribute information according to the position information of the target atomic component in the layout component, wherein the position information is determined based on the configuration of the target atomic component.
Optionally, obtaining a first configuration file corresponding to the target service component includes: responding to the target atomic assembly being positioned in the layout assembly, and acquiring a second configuration file corresponding to the target atomic assembly; and merging the second configuration file and the third configuration file of the layout component to obtain a first configuration file corresponding to the target service component.
Optionally, after merging the second profile and the third profile of the layout component, the method further comprises: and modifying the combined configuration files based on the configuration attribute information to obtain a first configuration file corresponding to the target service component.
Optionally, after the first configuration file corresponding to the target service component is acquired, the method further includes: and uploading the first configuration file to a server for storage.
Optionally, after generating the service code of the target service, the method further comprises: and storing the service codes in a platform server or uploading the service codes to a third party code library.
According to a second aspect of the present disclosure, there is provided a service code generating apparatus, the apparatus comprising: the device comprises a component generation module, an acquisition module and a code generation module, wherein: the component generating module is configured to generate a target business component corresponding to a business function of a target business by utilizing a target atomic component, wherein the target atomic component is obtained by screening an atomic component library according to the business function, and the atomic component library is formed based on a minimum entity unit in the business component; the acquisition module is configured to respond to the generation of the target service component and acquire a first configuration file corresponding to the target service component; and the code generation module is configured to generate a service code of the target service based on the first configuration file.
According to a third aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the above embodiments.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: one or more processors; and storage means for one or more programs which, when executed by the one or more processors, cause the one or more processors to perform the method of any of the embodiments described above.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of any of the above embodiments.
Exemplary embodiments of the present disclosure may have some or all of the following advantages:
in the service code generation method provided by the exemplary embodiment of the disclosure, on one hand, an atomic component library can be formed based on the minimum entity unit in the service component, in the process of developing the service component, the target atomic component can be screened out according to the service function of the target service, and the target service component is formed by combining the target atomic components, so that the problems of slow product online and low development efficiency caused by developing the service code in a hard coding mode and the like are avoided. On the other hand, the service code can be generated based on the first configuration file of the target service component, so that the limitation of the code development process on the platform can be reduced, and the repeated development process is reduced. In addition, the business components can be flexibly customized through the atomic component library, so that the flexibility of code development is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
Fig. 1 schematically illustrates a flow diagram of a business code generation method according to one embodiment of the present disclosure.
Fig. 2 schematically illustrates a schematic diagram of various business components in one embodiment in accordance with the present disclosure.
FIG. 3 schematically illustrates an interface schematic of an atomic component in combination with a layout component in accordance with one embodiment of the present disclosure.
Fig. 4 schematically illustrates a process flow diagram of a business code generation method according to one embodiment of the present disclosure.
Fig. 5 schematically shows a block diagram of a service code generating apparatus in one embodiment according to the present disclosure.
Fig. 6 illustrates a block diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. However, those skilled in the art will recognize that the aspects of the present disclosure may be practiced with one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
The business code generation method of the present disclosure can be applied to various code development platforms including a terminal and a server, for example, a low-code development platform. The terminal is used for inputting development codes, instructions or various editing operations by a user, displaying results and the like. The server may be a backend server of the development platform for performing various computing services. The server may be an independent physical server, a server cluster formed by a plurality of physical servers or a distributed system, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligence platforms, or nodes in a blockchain, which is not limited in this example.
Next, a service code generation method disclosed in the embodiments of the present specification will be described with reference to specific embodiments.
Referring to fig. 1, the service code generation method according to an exemplary embodiment provided by the present disclosure may be applied to a low code development platform, and may include the following steps.
Step S110, generating a target business component corresponding to the business function of the target business by utilizing the target atomic component, wherein the target atomic component is obtained by screening an atomic component library according to the business function, and the atomic component library is formed based on the minimum entity unit in the business component.
Step S120, responding to the generation of the target service component, and acquiring a first configuration file corresponding to the target service component.
Step S130, generating a service code of the target service based on the first configuration file.
In the service code generation method provided in this example embodiment, on the one hand, an atom component library may be formed based on the smallest entity unit in the service component, in the process of developing the service component, a target atom component may be screened out according to the service function of the target service, and the target service component is formed by combining the target atom components, so that the problems of slow product online and low development efficiency caused by developing the service code in a hard coding manner and the like are avoided. On the other hand, the service code can be generated based on the first configuration file of the target service component, so that the limitation of the code development process on the platform can be reduced, and the repeated development process is reduced. In addition, the business components can be flexibly customized through the atomic component library, so that the flexibility of code development is improved.
The various steps of the present disclosure are described in more detail below.
In step S110, a target business component corresponding to a business function of the target business is generated using the target atomic component.
In this exemplary embodiment, the target atomic component is obtained by screening from an atomic component library according to a service function, the atomic component library is formed based on a minimum entity unit in the service component, and the minimum entity unit can be determined according to an entity class in each service component, so as to form the atomic component library for the service. For example, the smallest physical unit may include a button, a picture, a text, a split line, an icon, a shape, etc., from which the corresponding atomic assembly may be formed. Atomic components can be formed by encoding, and the atomic component library can be continuously expanded.
In the present exemplary embodiment, the target service component refers to a component having a specific service function, for example, the target service component may be one or more of a switch function component, a stepless slide bar function component, a stepped slide bar function component, a mode selection function component, a combination instruction function component, a timing function component, a start pause function component, and the like, which is not limited in this example. Each functional component may be obtained from a minimum entity unit associated with the service.
For example, as shown in fig. 2, the switch function may be composed of text, icons, and buttons, and the stepless slide bar function may be composed of text, icons, split lines, shapes, etc. The corresponding target atomic component can be screened out according to the service function of the target service component.
For example, the layout component and the target atomic component may be component composited in response to receiving the component compositing instruction to generate the target business component.
In this example embodiment, the layout component may be a component in an editor or simulator for a developer to develop a layout for each component. And generating a component compound instruction by dragging and other operations on each target atomic component in the atomic component library by a developer so that the target atomic component is positioned in a layout component, and combining the target atomic components in the layout component to form the target business component.
Illustratively, the layout component and the target atomic component may be component composited by the following steps.
And generating the target business component based on the configuration attribute information according to the position information of the target atomic component in the layout component.
In this example embodiment, the location information is determined based on a configuration of the target atomic component. For example, as shown in FIG. 3, a target atom assembly may be dragged in a layout assembly from an atom assembly library to form the location information by dragging the target atom assembly in an edit region of the layout assembly; location information for the target atom assembly may also be determined in response to operation of a corresponding control (e.g., a move, merge, etc. control) in the layout assembly. The configuration attribute information may include attribute information, display style, and interaction attribute of the target atomic component, where the attribute information of the target atomic component may include attributes such as component size, availability, visibility, and the like, and the interaction attribute refers to an attribute associated with interaction of the target atomic component with a user or other components, such as clicking on the target atomic component to indicate selection. The target business component may be generated based on a determination of configuration attribute information (e.g., save or submit related information) for each target atomic component.
In step S120, in response to the generation of the target service component, a first configuration file corresponding to the target service component is acquired.
In this example embodiment, when the target service component is generated, the front end performs component rendering, and the back end generates a corresponding configuration file (such as configuration json information, i.e. low code DSL), i.e. a first configuration file.
The first profile may be obtained, for example, by the following steps.
Responding to the target atomic assembly being positioned in the layout assembly, and acquiring a second configuration file corresponding to the target atomic assembly; and merging the second configuration file and the third configuration file of the layout component to obtain a first configuration file corresponding to the target service component.
In this exemplary embodiment, the second configuration file refers to a configuration description file of the target atomic component, where the configuration description file (e.g., a schema configuration file) is included under the code file of the atomic component, and the second configuration file may be a schema configuration file under the code file of the target atomic component. The schema configuration file, namely a mode configuration file, is a definition of a field in the collection/kernel, and is mainly used for describing information of the field, data type of the field, whether the field stores indexes and the like contained in the collection/kernel.
In the case where the target atomic component is located in the layout component, the platform reads a second profile (schema profile) of the target atomic component and merges the schema profile (second profile) with configuration json information (third profile) of the layout component. For example, the second configuration file may be combined into the third configuration file in an array push manner to obtain the first configuration file corresponding to the target service component, or other file combining manners may be adopted, which is not limited in this example.
Further, after merging the second profile and the third profile of the layout component, the method further comprises: and modifying the combined configuration files based on the configuration attribute information to obtain a first configuration file corresponding to the target service component.
In this example embodiment, after the second configuration file and the third configuration file are merged, the merged configuration file (configuration json information of the layout components) may also be modified based on the configuration attribute information, for example, the layout, position, size, and the like of each atomic component in the layout components may be changed. And taking the modified configuration file as a first configuration file.
In step S130, a service code of the target service is generated based on the first profile.
In this example embodiment, the code generation engine may generate a corresponding business code based on the first profile. For example, the business code may be generated by a low code generation engine based on the first profile (configuration json information). The first configuration file may also be sent to an applet generation engine, component code of the applet generated, etc.
In some embodiments, after obtaining the first configuration file corresponding to the target service component, the method further includes: and uploading the first configuration file to a server for storage.
In this example embodiment, by uploading the first configuration file to the server, inheritance, multiplexing, and the like of the configuration file corresponding to the target service in the platform can be achieved, so that development workload of related service codes can be saved, and development efficiency can be improved.
In some embodiments, after generating the service code of the target service, the method further comprises: and storing the service codes in a platform server or uploading the service codes to a third party code library.
In this example embodiment, the generated service code may be saved for use in secondary development (e.g., code update), that is, in the case where secondary development is required, the saved service code is directly downloaded and developed on the basis of the code, thereby improving development efficiency. And the service codes can also be uploaded to a third party code library for downloading by other developers. For example, uploading business codes to the package management tool, npm, npm being JavaScript, is the largest software registry in the world.
For example, as shown in fig. 4, the implementation process of the service code generation method of the present disclosure is illustrated by taking a low code development platform as an example, and may be specifically implemented by the following steps.
In step S401, the front end generates a component composite instruction in response to the target atomic component moving into the layout component. The developer moves the target atomic component into the layout component at the front end, and the target atomic component is screened and determined in the atomic component library according to the service function.
In step S402, the front end sends the component composite instruction to the back end.
In step S403, the back end performs component compositing on the layout component and the target atomic component based on the configuration attribute information according to the position information of the target atomic component in the layout component in response to receiving the component compositing instruction, and generates the target business component.
In step S404, the backend obtains the second configuration file corresponding to the target atomic component in response to the target atomic component being located in the layout component.
In step S405, the back end merges the second configuration file and the third configuration file of the layout component to obtain a merged configuration file.
In step S406, the backend modifies the combined configuration file based on the configuration attribute information to obtain a first configuration file corresponding to the target service component.
In step S407, the code generation engine generates a service code based on the first profile.
In step S408, the first configuration file and the service code are saved in the back end (server end).
In step S409, the backend sends the service code to the third party code base (npm) for storage.
The specific details of each step in this embodiment have been described in the foregoing embodiments, and thus will not be described herein.
The method aims at the problems of low development efficiency, high cost and poor flexibility caused by a business component hard coding modification mode of a code development platform. On the one hand, through configuration atom assembly library, corresponding atom assemblies are selected from the atom assembly library according to service functions, service assemblies are formed through combination of smaller-granularity atom assemblies, in the process of changing and upgrading the service assemblies, the process of changing and upgrading the service assemblies is completed without a hard coding mode, and only the combination mode and corresponding configuration attribute information are required to be adjusted, so that development efficiency is improved, and development cost is reduced. On the other hand, through uploading and saving the service codes, multiplexing and secondary development of the codes can be realized, the development efficiency is further improved, the development cost is reduced, and the product line-up speed is accelerated. In addition, business components can be flexibly customized.
Further, in this example embodiment, a service code generating apparatus 500 is also provided. The service code generation apparatus 500 may be applied to a low code development platform. Referring to fig. 5, the service code generation apparatus 500 may include: component generation module 510, acquisition module 520, and code generation module 530, wherein: the component generating module 510 is configured to generate a target business component corresponding to a business function of a target business by using a target atomic component, wherein the target atomic component is obtained by screening in an atomic component library according to the business function, and the atomic component library is formed based on a minimum entity unit in the business component; an obtaining module 520, configured to obtain a first configuration file corresponding to the target service component in response to the generation of the target service component; the code generation module 530 is configured to generate a service code of the target service based on the first configuration file.
In one exemplary embodiment of the present disclosure, the component generation module 510 is further configured to: and in response to receiving the component compounding instruction, component compounding is carried out on the layout component and the target atomic component, and the target business component is generated.
In one exemplary embodiment of the present disclosure, the component generation module 510 is further configured to: and generating a target business component based on the configuration attribute information according to the position information of the target atomic component in the layout component, wherein the position information is determined based on the configuration of the target atomic component.
In an exemplary embodiment of the present disclosure, the acquisition module 520 is further configured to: responding to the target atomic assembly being positioned in the layout assembly, and acquiring a second configuration file corresponding to the target atomic assembly; and merging the second configuration file and the third configuration file of the layout component to obtain a first configuration file corresponding to the target service component.
In an exemplary embodiment of the present disclosure, the acquisition module 520 is further configured to: after the second configuration file and the third configuration file of the layout component are combined, the combined configuration file is modified based on the configuration attribute information, and a first configuration file corresponding to the target service component is obtained.
In an exemplary embodiment of the present disclosure, the apparatus 500 further comprises a first transmission module configured to: after the first configuration file corresponding to the target service component is obtained, the first configuration file is uploaded to a server for storage.
In an exemplary embodiment of the present disclosure, the apparatus 500 further comprises a second transmission module configured to: after the service code of the target service is generated, the service code is stored in a platform service end or uploaded to a third party code library.
The specific details of each module or unit in the above service code generating device have been described in detail in the corresponding service code generating method, so that they will not be described in detail here.
As another aspect, the present application also provides a computer-readable medium that may be contained in the electronic device described in the above embodiment; or may exist alone without being incorporated into the electronic device. The computer-readable medium carries one or more programs which, when executed by one of the electronic devices, cause the electronic device to implement the methods in the embodiments described below. For example, the electronic device may implement the various steps shown in fig. 1, 4, etc.
It should be noted that the computer readable medium shown in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
An electronic device 600 according to such an embodiment of the present disclosure is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 6, the electronic device 600 is in the form of a general purpose computing device. Components of electronic device 600 may include, but are not limited to: the at least one processing unit 610, the at least one memory unit 620, a bus 630 connecting the different system components (including the memory unit 620 and the processing unit 610), a display unit 640.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs steps according to various exemplary embodiments of the present disclosure described in the above-described "exemplary methods" section of the present specification.
The storage unit 620 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 6201 and/or cache memory unit 6202, and may further include Read Only Memory (ROM) 6203.
The storage unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 630 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 670 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 600, and/or any devices (e.g., routers, modems, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. As shown, network adapter 660 communicates with other modules of electronic device 600 over bus 630. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RA identification systems, tape drives, data backup storage systems, and the like.
In an exemplary embodiment, a computer program product is also provided, including one or more instructions executable by a processor of a computer device to perform the service code generation method provided by the above embodiments.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are only schematic illustrations of processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
It should be noted that although the steps of the methods of the present disclosure are illustrated in the accompanying drawings in a particular order, this does not require or imply that the steps must be performed in that particular order or that all of the illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc., all are considered part of the present disclosure.
It should be understood that the present disclosure disclosed and defined herein extends to all alternative combinations of two or more of the individual features mentioned or evident from the text and/or drawings. All of these different combinations constitute various alternative aspects of the present disclosure. Embodiments of the present disclosure describe the best mode known for carrying out the disclosure and will enable one skilled in the art to utilize the disclosure.

Claims (10)

1. A method for generating a service code, the method comprising:
generating a target business component corresponding to a business function of a target business by utilizing a target atomic component, wherein the target atomic component is obtained by screening an atomic component library according to the business function, and the atomic component library is formed based on a minimum entity unit in the business component;
responding to the generation of the target service component, and acquiring a first configuration file corresponding to the target service component;
and generating a service code of the target service based on the first configuration file.
2. The service code generating method according to claim 1, wherein the generating, using the target atomic component, a target service component corresponding to the service function includes:
and in response to receiving the component compounding instruction, component compounding is carried out on the layout component and the target atomic component, and the target business component is generated.
3. The service code generation method according to claim 2, wherein the component compositing the layout component and the target atom component comprises:
and generating the target business component based on configuration attribute information according to the position information of the target atomic component in the layout component, wherein the position information is determined based on the configuration of the target atomic component.
4. The service code generating method according to claim 1, wherein the obtaining the first configuration file corresponding to the target service component includes:
responding to the target atomic assembly being positioned in the layout assembly, and acquiring a second configuration file corresponding to the target atomic assembly;
and merging the second configuration file and the third configuration file of the layout component to obtain a first configuration file corresponding to the target service component.
5. The business code generation method of claim 4, wherein after merging the second profile and the third profile of the layout component, the method further comprises:
and modifying the combined configuration files based on the configuration attribute information to obtain a first configuration file corresponding to the target service component.
6. The service code generating method according to any one of claims 1 to 5, wherein after obtaining the first configuration file corresponding to the target service component, the method further comprises:
and uploading the first configuration file to a server for storage.
7. The service code generation method according to any one of claims 1 to 5, wherein after generating the service code of the target service, the method further comprises:
and storing the service codes in a platform server or uploading the service codes to a third party code library.
8. A service code generation apparatus, the apparatus comprising:
the system comprises a component generation module, a service module generation module and a service module generation module, wherein the component generation module is configured to generate a target service component corresponding to a service function of a target service by utilizing the target atomic component, the target atomic component is obtained by screening in an atomic component library according to the service function, and the atomic component library is formed based on a minimum entity unit in the service component;
the acquisition module is configured to respond to the generation of the target service component and acquire a first configuration file corresponding to the target service component;
and the code generation module is configured to generate a service code of the target service based on the first configuration file.
9. An electronic device, comprising: one or more processors; and
storage means for storing one or more programs which when executed by the one or more processors cause the one or more processors to implement the method of any of claims 1 to 7.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1 to 7.
CN202310258021.2A 2023-03-10 2023-03-10 Service code generation method and device, electronic equipment and storage medium Pending CN116301830A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310258021.2A CN116301830A (en) 2023-03-10 2023-03-10 Service code generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310258021.2A CN116301830A (en) 2023-03-10 2023-03-10 Service code generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116301830A true CN116301830A (en) 2023-06-23

Family

ID=86788291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310258021.2A Pending CN116301830A (en) 2023-03-10 2023-03-10 Service code generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116301830A (en)

Similar Documents

Publication Publication Date Title
CN109634598B (en) Page display method, device, equipment and storage medium
CN110532020B (en) Data processing method, device and system for micro-service arrangement
CN108958736B (en) Page generation method and device, electronic equipment and computer readable medium
US20210034336A1 (en) Executing a process-based software application in a first computing environment and a second computing environment
CN109634490B (en) List display method, device, equipment and storage medium
CN104484189A (en) Construction and design method of application interface
CN110347383B (en) Front-end development method and device for cross-platform desktop application
CN108279882B (en) Framework generation method, device, equipment and computer readable medium
CN109947399A (en) Code structure generation method, device, computer installation and readable storage medium storing program for executing
CN111045653A (en) System generation method and device, computer readable medium and electronic equipment
CN111061522B (en) Method, device, equipment and storage medium for generating front-end card assembly based on back end
CN114997117A (en) Document editing method, device, terminal and non-transitory storage medium
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN113722007B (en) Configuration method, device and system of VPN branch equipment
CN116301830A (en) Service code generation method and device, electronic equipment and storage medium
CN113434063B (en) Information display method, device and equipment
CN116775174A (en) Processing method, device, equipment and medium based on user interface frame
CN114661274A (en) Method and device for generating intelligent contract
CN114756224A (en) Activity execution method and device
CN111813407B (en) Game development method, game running device and electronic equipment
CN113656041A (en) Data processing method, device, equipment and storage medium
CN113806327A (en) Database design method and device and related equipment
CN113781608A (en) Animation editing method and device
CN114115855A (en) Code multiplexing method and device, computer readable storage medium and electronic equipment
CN113296772A (en) Page configuration method and device, computer equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination