CN112187503A - Block chain service network configuration method, device, equipment and storage medium - Google Patents

Block chain service network configuration method, device, equipment and storage medium Download PDF

Info

Publication number
CN112187503A
CN112187503A CN201910805945.3A CN201910805945A CN112187503A CN 112187503 A CN112187503 A CN 112187503A CN 201910805945 A CN201910805945 A CN 201910805945A CN 112187503 A CN112187503 A CN 112187503A
Authority
CN
China
Prior art keywords
file
service network
configuration information
visual interface
generating
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
CN201910805945.3A
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.)
Yingsheng Zhichuang Technology Guangzhou Co ltd
Original Assignee
Yingsheng Zhichuang Technology Guangzhou 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 Yingsheng Zhichuang Technology Guangzhou Co ltd filed Critical Yingsheng Zhichuang Technology Guangzhou Co ltd
Priority to CN201910805945.3A priority Critical patent/CN112187503A/en
Publication of CN112187503A publication Critical patent/CN112187503A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0253Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment provides a configuration method, a device, equipment and a storage medium of a block chain service network, and the configuration method, the device, the equipment and the storage medium are used for acquiring configuration information input in a visual interface; generating a model file and a script file according to the configuration information; generating a service network file according to the model file and the script file; configuring a block chain service network by adopting the service network file; in this embodiment, a model file is configured in a visual manner, code information of a corresponding addition, deletion, modification and check portion is automatically generated, and finally, a compressed packet containing a BNA file, a project source code and a bottom layer blockchain network configuration for testing are generated, which can be directly used for deployment.

Description

Block chain service network configuration method, device, equipment and storage medium
Technical Field
The present invention relates to the field of blockchain network technologies, and in particular, to a method and an apparatus for configuring a blockchain service network, a computer device, and a storage medium.
Background
Hyperfolder Composer is a broad set of open Development tools and frameworks that allow users to develop tile chains with greater ease, primarily through an officially provided set of Development tools that may include command line tools, Playgroup, IDE (Integrated Development Environment) plug-ins, and the like. There are two ways in which development can be performed;
in a first aspect, programming can be performed using playgroup, which is an application provided by the authorities for users to configure, deploy and test their own service networks (Business networks) in which users can write their codes.
In a second aspect, programming may be performed using an IDE plug-in. A project template may be generated using an official command line tool and then programmed on that basis. Currently, only plug-ins for VSCode (Visual Studio Code, an IDE developed by microsoft) are offered by the authorities. Specifically, a user may perform a programming operation through the VSCode.
However, the Playground tool does not have the functions of code prompting and skipping, and is only a simple text editor, so that the programming efficiency is low; the IDE plug-in requires a user to manually generate codes, steps are complex, convenience is low, developers need to learn certain fixed grammars of the Hyperhedger Composer in the two modes, using requirements and using experiences of the users are high, codes for increasing, deleting and modifying one asset are similar in the programming process, if a plurality of assets are required to be increased, deleted, modified and modified, programming needs to be repeated, and the process is complex.
Disclosure of Invention
In view of the above, the present embodiments are proposed to provide a method for configuring a block chain service network and a corresponding apparatus for configuring a block chain service network, a computer device and a storage medium, which overcome or at least partially solve the above problems.
In order to solve the above problem, the embodiment discloses a method for configuring a block chain service network, including:
acquiring configuration information input in a visual interface;
generating a model file and a script file according to the configuration information;
generating a service network file according to the model file and the script file;
and configuring a block chain service network by adopting the service network file.
Preferably, the visual interface is set in at least one of a Web application program, a Windows application program or an android application program; the acquiring of the configuration information input in the visual interface includes:
acquiring configuration information input in a visual interface of a Web application program;
and/or acquiring configuration information input in a visual interface of the Windows application program;
and/or obtaining configuration information input in a visual interface of the android application program.
Preferably, the generating a model file and a script file according to the configuration information includes:
converting the configuration information into a JSON data structure;
and analyzing the JSON data structure to obtain the model file and the script file.
Preferably, the analyzing the JSON data structure to obtain the model file and the script file includes:
acquiring a preset template file;
and analyzing the JSON data structure according to the logic in the template file to generate a model file and a script file.
Preferably, the method comprises:
and displaying the code information corresponding to the model file.
Preferably, the generating a service network file according to the model file and the script file includes:
acquiring an access control file and an inquiry file;
and generating a service network file according to the model file, the script file, the access control file and the query file.
The embodiment also discloses a device for configuring a block chain service network, which includes:
the configuration information acquisition module is used for acquiring configuration information input in a visual interface;
the file generation module is used for generating a model file and a script file according to the configuration information;
the service network file generating module is used for generating a service network file according to the model file and the script file;
and the network configuration module is used for configuring the block chain service network by adopting the service network file.
Preferably, the visual interface is set in at least one of a Web application program, a Windows application program or an android application program; the configuration information acquisition module includes:
the first acquisition submodule is used for acquiring configuration information input in a visual interface of a Web application program;
and/or the second obtaining submodule is used for obtaining the configuration information input in the visual interface of the Windows application program;
and/or the third obtaining submodule is used for obtaining the configuration information input in the visual interface of the android application program.
The embodiment also discloses a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the configuration method of the blockchain service network when executing the computer program.
The embodiment also discloses a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the configuration method of the block chain service network.
The present embodiment includes the following advantages:
in the embodiment, configuration information input in a visual interface is acquired; generating a model file and a script file according to the configuration information; generating a service network file according to the model file and the script file; configuring a block chain service network by adopting the service network file; in this embodiment, a model file is configured in a visual manner, code information of a corresponding addition, deletion, modification and check portion is automatically generated, and finally, a compressed packet containing a BNA file, a project source code and a bottom layer blockchain network configuration for testing are generated, which can be directly used for deployment. The method has the advantages that users who do not know the basic concept of programming can configure a basic available service network, for developers, the development efficiency is greatly improved, other needed logics are directly added to automatically generated codes, a plurality of writing, increasing, deleting, modifying and checking works are omitted, tedious steps are reduced, and the use convenience of the developers is improved.
Drawings
In order to more clearly illustrate the technical solution of the present embodiment, the drawings needed to be used in the description of the embodiment will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts
Fig. 1 is a flowchart illustrating steps of an embodiment of a method for configuring a block chain service network according to the present embodiment;
FIG. 2 is a schematic view of a visualization interface of the present embodiment;
FIG. 3 is a schematic view of a visualization interface of the present embodiment;
FIG. 4 is a schematic view of a visualization interface of the present embodiment;
FIG. 5 is a flowchart illustrating the configuration information acquiring step according to the present embodiment;
FIG. 6 is a flowchart illustrating a file generation step according to the present embodiment;
FIG. 7 is a flowchart showing a file acquisition step in the present embodiment;
fig. 8 is a flowchart illustrating a service network file generation step in the present embodiment;
fig. 9 is a block diagram of an embodiment of a configuration apparatus of a blockchain service network according to the present embodiment;
FIG. 10 is an internal block diagram of a computer device of an embodiment.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects solved by the present embodiment more clearly apparent, the present embodiment is further described in detail below with reference to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a configuration method of a block chain service network according to this embodiment is shown, which may specifically include the following steps:
step 101, acquiring configuration information input in a visual interface;
in this embodiment, first, configuration information input in the visualization interface may be received, where the configuration information refers to configuration work and rest for the model file, for example, adding a new type; or add a new field for the new type.
In a core concept of this embodiment, the configuration information input by the visual interface is received to automatically generate the model file and the corresponding code, and compared with the conventional IDE plug-in configuration model file, a user does not need to learn the relevant language of the block chain development framework, so that the configuration efficiency of the block chain service network is improved, the convenience of a developer is improved, the workload is reduced, and the convenience is improved.
In this embodiment, the visualization interface may be set in a Web application, a desktop application, and the like, that is, the visualization interface may be displayed through a browser application, and further, the visualization interface may be displayed through an individual application, specifically, the application may be operated as an individual plug-in, it should be noted that the desktop application may include a Windows application, an android application, an IOS application, and the like, which is not limited in this embodiment.
Referring to fig. 2, which is a schematic diagram of a visualization interface of the embodiment, a user may click on "+" on the right side of the column of "data structure initialization", and add a new type. Dragging the type box on the left side to the right side, and filling in the field name, so that a field can be added to the type. And clicking after the user operation is finished, and generating a file generation button below the visual interface.
Referring to fig. 3, a schematic diagram of a visual interface of the embodiment is shown, where a corresponding blockchain service network may also be displayed in the visual interface, and in addition, a blockchain service network may also be newly established on the interface, so as to improve convenience in use.
102, generating a model file and a script file according to the configuration information;
further, the model file and the script file can be generated according to the configuration information, specifically, a JSON data structure is designed to represent the model file by analyzing the syntax of the model file of the Hyperlegger compiler, the configuration information for the model file is received in the visual interface, the configuration information is converted into the JSON data structure, and the model file and the script file are generated through the JSON data structure.
Specifically, a preset template file is obtained, the template file comprises various judgment logics during automatic generation, a JSON data structure is transmitted into a rear template engine, the JSON data structure is analyzed according to the preset logics in the template file, a character string is spliced according to the logics or a placeholder is replaced, and a model file, a script file and corresponding codes are generated.
Referring to fig. 4, a schematic diagram of a visualization interface of the present embodiment is shown, as shown in fig. 4, after receiving configuration information is completed, a Model File (Model File) and a Script File (Script File) may be displayed in the visualization interface, and further, corresponding codes, such as related codes of the Model File, may be displayed, and a developer may check whether a generated code has a problem on the interface, and modify the code, thereby improving development efficiency.
In addition, the codes can be packaged, the related data can be stored in the database, a downloading interface is provided on the interface, so that developers can download related files, namely the downloading interface shown in the lower left corner in fig. 4, and when a click event aiming at the downloading interface is received, the corresponding files can be downloaded.
103, generating a service network file according to the model file and the script file;
specifically, in this embodiment, the service network file may be generated according to the model file and the script file, and when a file download request of a user is received while the model file and the script file are generated, the service network file of the blockchain may be generated in response to the file download request.
Specifically, when a user click file download request is received, a BND (Business Network Definition) file is automatically generated, where the BND file includes a BNA (Business Network architecture) file, and the BNA file is a Business Network file.
And 104, configuring a block chain service network by adopting the service network file.
In this embodiment, after the service network file is obtained, the service network file may be deployed in a browser application program for testing, and if the service network file passes the test, the service network file may be deployed in a hyper bridge Fabric (block chain network) for practical application. In addition, the BNA file, the corresponding service network source code and the bottom layer blockchain network configuration for testing can also be used for secondary development.
In the embodiment, configuration information input in a visual interface is acquired; generating a model file and a script file according to the configuration information; generating a service network file according to the model file and the script file; configuring a block chain service network by adopting the service network file; in this embodiment, a model file is configured in a visual manner, code information of a corresponding addition, deletion, modification and check portion is automatically generated, and finally, a compressed packet containing a BNA file, a project source code and a bottom layer blockchain network configuration for testing are generated, which can be directly used for deployment. The method has the advantages that users who do not know the basic concept of programming can configure a basic available service network, for developers, the development efficiency is greatly improved, other needed logics are directly added to automatically generated codes, a plurality of writing, increasing, deleting, modifying and checking works are omitted, tedious steps are reduced, and the use convenience of the developers is improved.
In a preferred embodiment of the present invention, referring to fig. 5, a schematic flow chart of the configuration information obtaining step of this embodiment is shown, where the visualization interface is set in at least one of a Web application, a Windows application, or an android application; the method for acquiring the configuration information input in the visual interface comprises the following substeps:
substep S11, acquiring configuration information input in a visualization interface of the Web application;
substep S12, obtaining configuration information input in the visual interface of the Windows application program;
and a substep S13 of obtaining configuration information input in the visual interface of the android application program.
Specifically, the system applied in this embodiment may include a Windows system, an android system, an IOS system, a Linux system, a Unix system, and the like, and the terminal applied may also include a portable mobile terminal and a PC terminal, which are not limited in this embodiment;
it should be noted that the visual interface of the present embodiment may be set in a browser application, that is, a Web application, or may be set in a common desktop application, such as a Windows application and an android application, and it should be noted that the desktop application degree is an application that runs separately, and is different from the Web application.
In a preferred embodiment specifically applied to the present invention, referring to fig. 6, a flowchart illustrating a file generating step of the present embodiment is shown, where the generating a model file and a script file according to the configuration information includes the following sub-steps:
substep S21, converting the configuration information into a JSON data structure;
and a substep S22, analyzing the JSON data structure to obtain the model file and the script file.
In one specific example, the JSON data structure may be defined as follows: all classes are placed in an array, with each element of the array representing a class. Some properties of the class are represented in each element of the array by some fields: js code is an abstract class, whether the type is "participant" or "asset", the name of the class, inheritance, primary key, field, whether incremental or subtractive lookups need to be generated. Where a field is also an array, where each element represents an attribute of the field: whether the data is a foreign key, a field type, a field name, whether the data is a required item, whether the data is an array type, and a regular check, the JSON data structure is merely an example of the embodiment, and the model file may be represented by other data structures, which is not limited in the embodiment.
Specifically, the configuration information is converted into a JSON data structure. And analyzing the JSON data structure to obtain the model file and the script file, namely traversing the array when automatically generating the code, and generating the corresponding model file and the code according to the attribute configured by the user on the visual interface.
In another preferred embodiment of the present invention, referring to fig. 7, a flowchart illustrating a file obtaining step in this embodiment is shown, where the parsing the JSON data structure to obtain the model file and the script file includes the following sub-steps:
a substep S31 of obtaining a preset template file;
and a substep S32, analyzing the JSON data structure according to the logic in the template file, and generating a model file and a script file.
In this embodiment, the template file is preset, the template file includes various judgment logics during automatic generation, and after the JSON data structure is transmitted into the template engine, the JSON data structure splicing character strings or replacing placeholders are analyzed according to the logics preset in the template file, so as to generate a model file, a script file, and corresponding codes.
In an embodiment actually applied to the present invention, referring to fig. 8, a schematic flow chart of the step of generating the service network file according to the embodiment is shown, where the step of generating the service network file according to the model file and the script file includes the following sub-steps:
step S41, obtaining an access control file and a query file;
and a substep S42, generating a service network file according to the model file, the script file, the access control file and the query file.
Specifically, a Control (Access Control) File and a Query File (Query File) can be obtained, the model File and the script File are added, a business network File (BND File) is generated by the four files, and the BND File can be packaged into a BNA File through a command line tool of a Composer and deployed to a Hyper-tree Fabric (block chain network).
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art should understand that the present embodiment is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present embodiment. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the embodiments.
Referring to fig. 9, a block diagram of a configuration apparatus of a blockchain service network according to an embodiment of the present invention is shown, which may specifically include the following modules:
a configuration information obtaining module 301, configured to obtain configuration information input in a visual interface;
a file generating module 302, configured to generate a model file and a script file according to the configuration information;
a service network file generating module 303, configured to generate a service network file according to the model file and the script file;
a network configuration module 304, configured to configure a block chain service network by using the service network file.
In one embodiment, the visual interface is set in at least one of a Web application, a Windows application or an android application; the configuration information acquisition module includes:
the first acquisition submodule is used for acquiring configuration information input in a visual interface of a Web application program;
and/or the second obtaining submodule is used for obtaining the configuration information input in the visual interface of the Windows application program;
and/or the third obtaining submodule is used for obtaining the configuration information input in the visual interface of the android application program.
In one embodiment, the file generation module includes:
the conversion submodule is used for converting the configuration information into a JSON data structure;
and the analysis submodule is used for analyzing the JSON data structure to obtain the model file and the script file.
In one embodiment, the parsing submodule includes:
the acquisition unit is used for acquiring a preset template file;
and the generating unit is used for analyzing the JSON data structure according to the logic in the template file to generate a model file and a script file.
In one embodiment, the apparatus comprises:
and the display module is used for displaying the code information corresponding to the model file.
In one embodiment, the service network file generating module includes:
the file acquisition sub-module is used for acquiring an access control file and an inquiry file;
and the generation submodule is used for generating a service network file according to the model file, the script file, the access control file and the query file.
For specific limitations of the configuration apparatus of the blockchain service network, reference may be made to the above limitations on the configuration method of the blockchain service network, and details are not described herein again. The modules in the configuration device of the blockchain service network may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The configuration device of the blockchain service network provided by the above embodiment can be used for executing the configuration method of the blockchain service network provided by any of the above embodiments, and has corresponding functions and beneficial effects.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of operation maintenance. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring configuration information input in a visual interface;
generating a model file and a script file according to the configuration information;
generating a service network file according to the model file and the script file;
and configuring a block chain service network by adopting the service network file.
In one embodiment, the visual interface is provided in at least one of a Web application, a Windows application, or an android application; the processor, when executing the computer program, further performs the steps of:
acquiring configuration information input in a visual interface of a Web application program;
and/or acquiring configuration information input in a visual interface of the Windows application program;
and/or obtaining configuration information input in a visual interface of the android application program.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
converting the configuration information into a JSON data structure;
and analyzing the JSON data structure to obtain the model file and the script file.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a preset template file;
and analyzing the JSON data structure according to the logic in the template file to generate a model file and a script file.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and displaying the code information corresponding to the model file.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring an access control file and an inquiry file;
and generating a service network file according to the model file, the script file, the access control file and the query file.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring configuration information input in a visual interface;
generating a model file and a script file according to the configuration information;
generating a service network file according to the model file and the script file;
and configuring a block chain service network by adopting the service network file.
In one embodiment, the visual interface is provided in at least one of a Web application, a Windows application, or an android application; the computer program when executed by the processor further realizes the steps of:
acquiring configuration information input in a visual interface of a Web application program;
and/or acquiring configuration information input in a visual interface of the Windows application program;
and/or obtaining configuration information input in a visual interface of the android application program.
In one embodiment, the computer program when executed by the processor further performs the steps of:
converting the configuration information into a JSON data structure;
and analyzing the JSON data structure to obtain the model file and the script file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a preset template file;
and analyzing the JSON data structure according to the logic in the template file to generate a model file and a script file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and displaying the code information corresponding to the model file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring an access control file and an inquiry file;
and generating a service network file according to the model file, the script file, the access control file and the query file.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present embodiments may be provided as methods, apparatus, or computer program products. Accordingly, the present embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present embodiments 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 present embodiments are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the present embodiments. 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 terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, 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 terminal 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 terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present embodiments have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the present embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. 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 terminal that comprises the element.
The block chain service network configuration method, the block chain service network configuration device, the computer device and the storage medium provided by the present invention are described in detail above, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for configuring a blockchain service network, comprising:
acquiring configuration information input in a visual interface;
generating a model file and a script file according to the configuration information;
generating a service network file according to the model file and the script file;
and configuring a block chain service network by adopting the service network file.
2. The method of claim 1, wherein the visual interface is provided in at least one of a Web application, a Windows application, or an android application; the acquiring of the configuration information input in the visual interface includes:
acquiring configuration information input in a visual interface of a Web application program;
and/or acquiring configuration information input in a visual interface of the Windows application program;
and/or obtaining configuration information input in a visual interface of the android application program.
3. The method of claim 1, wherein generating a model file and a script file according to the configuration information comprises:
converting the configuration information into a JSON data structure;
and analyzing the JSON data structure to obtain the model file and the script file.
4. The method according to claim 3, wherein the parsing the JSON data structure to obtain the model file and the script file comprises:
acquiring a preset template file;
and analyzing the JSON data structure according to the logic in the template file to generate a model file and a script file.
5. The method according to claim 1, characterized in that it comprises:
and displaying the code information corresponding to the model file.
6. The method of claim 1, wherein generating a service network file from the model file and the script file comprises:
acquiring an access control file and an inquiry file;
and generating a service network file according to the model file, the script file, the access control file and the query file.
7. An apparatus for configuring a blockchain service network, comprising:
the configuration information acquisition module is used for acquiring configuration information input in a visual interface;
the file generation module is used for generating a model file and a script file according to the configuration information;
the service network file generating module is used for generating a service network file according to the model file and the script file;
and the network configuration module is used for configuring the block chain service network by adopting the service network file.
8. The apparatus of claim 7, wherein the visual interface is provided in at least one of a Web application, a Windows application, or an android application; the configuration information acquisition module includes:
the first acquisition submodule is used for acquiring configuration information input in a visual interface of a Web application program;
and/or the second obtaining submodule is used for obtaining the configuration information input in the visual interface of the Windows application program;
and/or the third obtaining submodule is used for obtaining the configuration information input in the visual interface of the android application program.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of configuring a blockchain service network according to any one of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of configuring a blockchain service network according to any one of claims 1 to 6.
CN201910805945.3A 2019-08-29 2019-08-29 Block chain service network configuration method, device, equipment and storage medium Pending CN112187503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910805945.3A CN112187503A (en) 2019-08-29 2019-08-29 Block chain service network configuration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910805945.3A CN112187503A (en) 2019-08-29 2019-08-29 Block chain service network configuration method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112187503A true CN112187503A (en) 2021-01-05

Family

ID=73919475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910805945.3A Pending CN112187503A (en) 2019-08-29 2019-08-29 Block chain service network configuration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112187503A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653245A (en) * 2014-11-13 2016-06-08 朗新科技股份有限公司 Code automatic generation system, device and method
CN106445556A (en) * 2016-10-18 2017-02-22 中国银行股份有限公司 Visualized code generation method and system thereof
CN106775725A (en) * 2016-12-19 2017-05-31 网易(杭州)网络有限公司 A kind of visual configuration edit methods and device
CN109710243A (en) * 2018-12-29 2019-05-03 百度在线网络技术(北京)有限公司 Block chain development approach, device, server and medium based on Visualization Platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653245A (en) * 2014-11-13 2016-06-08 朗新科技股份有限公司 Code automatic generation system, device and method
CN106445556A (en) * 2016-10-18 2017-02-22 中国银行股份有限公司 Visualized code generation method and system thereof
CN106775725A (en) * 2016-12-19 2017-05-31 网易(杭州)网络有限公司 A kind of visual configuration edit methods and device
CN109710243A (en) * 2018-12-29 2019-05-03 百度在线网络技术(北京)有限公司 Block chain development approach, device, server and medium based on Visualization Platform

Similar Documents

Publication Publication Date Title
US10572249B2 (en) Software kit release management
US9274784B2 (en) Automatic deployment and update of hybrid applications
US11392393B2 (en) Application runtime configuration using design time artifacts
US20230236809A1 (en) Ios application program construction method and apparatus, electronic device, and storage medium
CN110806868B (en) Single-page building and loading method
US11113050B2 (en) Application architecture generation
EP3447635A1 (en) Application architecture generation
Snell et al. Microsoft Visual Studio 2012 Unleashed: Micro Visua Studi 2012 Unl_p2
US11899570B2 (en) System and method for optimizing assessment and implementation of microservices code for cloud platforms
US20200097260A1 (en) Software application developer tools platform
CN113535567A (en) Software testing method, device, equipment and medium
CN115113850A (en) Cross-platform application construction and operation method, server, terminal and system
CN116841543A (en) Development method for dynamically generating cross-platform multi-terminal application based on Flutter
Queirós Kaang: a restful api generator for the modern web
KR20090002032A (en) Executing module for playing ui plug-in in universal web browser, ui plug-in development apparatus and method thereof
US11669332B1 (en) Systems and methods for modernizing legacy applications
Rocha Silva et al. Ensuring the consistency between user requirements and graphical user interfaces: a behavior-based automated approach
CN115794214A (en) Application module metadata management method, device, storage medium and device
CN112187503A (en) Block chain service network configuration method, device, equipment and storage medium
CN114356783A (en) Method and device for automatically generating unit test code, storage medium and equipment
CN113805877A (en) Project engineering construction method and device based on IDEA plug-in
US9477492B2 (en) Deploying multi-channel or device agnostic applications
Colombo-Mendoza et al. Alexandria: A visual tool for generating multi-device rich internet applications.
Pulido Applying behavior driven development practices and tools to low-code technology
Taky Automated Testing With Cypress

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210105