Movatterモバイル変換


[0]ホーム

URL:


CN117785164A - Methods and related devices for generating business interfaces for low-code platforms - Google Patents

Methods and related devices for generating business interfaces for low-code platforms
Download PDF

Info

Publication number
CN117785164A
CN117785164ACN202311744575.XACN202311744575ACN117785164ACN 117785164 ACN117785164 ACN 117785164ACN 202311744575 ACN202311744575 ACN 202311744575ACN 117785164 ACN117785164 ACN 117785164A
Authority
CN
China
Prior art keywords
target
data table
nodes
target node
data
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
CN202311744575.XA
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co LtdfiledCriticalBeijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202311744575.XApriorityCriticalpatent/CN117785164A/en
Publication of CN117785164ApublicationCriticalpatent/CN117785164A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

The disclosure provides a method and a related device for generating a service interface for a low-code platform, and relates to the technical fields of low-code platforms, interface development, data processing and artificial intelligence. One embodiment of the method comprises the following steps: in response to receiving a service interface generation request sent by a user, presenting the user with a set of nodes for configuring a table operation for a pre-configured data table including at least one of an add table, a read table, an update table, and a delete table operation performed for the data table; configuring corresponding target table operation for the target node based on the operation configuration instruction received for the target node; generating an operation sequence based on the configured target table operation of all target nodes in response to receiving the configuration completion instruction; and encapsulating the operation sequence and generating a service interface for executing the operation sequence. According to the implementation mode, the difficulty of generating the service interface for the low-code platform can be reduced, and the efficiency of generating the service interface for the low-code platform can be improved.

Description

Translated fromChinese
面向低代码平台的生成业务接口的方法、相关装置Method and related device for generating business interface for low-code platform

技术领域Technical field

本公开涉及计算机技术领域,具体涉及低代码平台、接口开发和数据处理和等人工智能技术领域,尤其涉及面向低代码平台的生成业务接口的方法、装置、电子设备、计算机可读存储介质及计算机程序产品。The present disclosure relates to the field of computer technology, specifically to the fields of low-code platforms, interface development, data processing and other artificial intelligence technologies, and in particular to methods, devices, electronic devices, computer-readable storage media and computers for generating business interfaces for low-code platforms. Program Products.

背景技术Background technique

软件开发是根据用户要求建造出软件系统或者系统中的软件部分的过程。软件开发是一项包括需求捕捉、需求分析、设计、实现和测试的系统工程。Software development is the process of building a software system or the software part of a system according to user requirements. Software development is a systematic project that includes requirements capture, requirements analysis, design, implementation and testing.

为了简化软件、代码的开发难度,降低对于代码开发人员的要求,低代码开发技术应运而生。低代码开发技术中,可以通过预先配置代码模块、代码块与“低代码语言”、“简易操作”之间的关系,使得用户可以利用“低代码语言”、“简易操作”来调用对应的代码模块、代码块,以快速地配置代码,生成例如应用程序编程接口(Application ProgrammingInterface,简称,API)的业务接口。在此背景下,如何进一步地帮助用户提高业务接口的编码效率,降低编码难度,是值得关注和迫切需求的。In order to simplify the development difficulty of software and code and reduce the requirements for code developers, low-code development technology emerged as the times require. In low-code development technology, the relationship between code modules and code blocks and "low-code language" and "easy operation" can be pre-configured, so that users can use "low-code language" and "easy operation" to call the corresponding code Modules and code blocks to quickly configure code and generate business interfaces such as Application Programming Interface (API). In this context, how to further help users improve the coding efficiency of business interfaces and reduce the difficulty of coding is worthy of attention and urgently needed.

发明内容Contents of the invention

本公开实施例提出了一种面向低代码平台的生成业务接口的方法、装置、电子设备、计算机可读存储介质及计算机程序产品。The embodiment of the present disclosure proposes a method, device, electronic device, computer-readable storage medium, and computer program product for generating a business interface for a low-code platform.

第一方面,本公开实施例提出了一种面向低代码平台的生成业务接口的方法,包括:响应于接收到用户发送的业务接口生成请求,为用户呈现一组节点,其中,一组节点中的节点用于配置针对预先配置的一组数据表中至少部分的数据表的表操作,表操作包括针对一组数据表中至少一个数据表执行的增加表操作、读取表操作、更新表操作和删除表操作中的至少一项;基于针对至少一个目标节点接收到的操作配置指令,为至少一个目标节点配置对应的目标表操作;响应于接收到配置完成指令,基于所有目标节点被配置的目标表操作,生成操作序列;封装操作序列,生成用于执行操作序列的业务接口。In a first aspect, an embodiment of the present disclosure proposes a method for generating a business interface for a low-code platform, including: in response to receiving a business interface generation request sent by a user, presenting a set of nodes to the user, wherein a set of nodes The node is used to configure table operations for at least part of the data tables in a pre-configured set of data tables. Table operations include adding table operations, reading table operations, and updating table operations for at least one data table in a set of data tables. and at least one of the delete table operations; based on the operation configuration instruction received for the at least one target node, configure the corresponding target table operation for the at least one target node; in response to receiving the configuration completion instruction, based on all target nodes being configured Target table operations generate an operation sequence; encapsulate the operation sequence and generate a business interface for executing the operation sequence.

第二方面,本公开实施例提出了一种面向低代码平台的生成业务接口的装置,包括:节点呈现单元,被配置成响应于接收到用户发送的业务接口生成请求,为用户呈现一组节点,其中,一组节点中的节点用于配置针对预先配置的一组数据表中至少部分的数据表的表操作,表操作包括针对一组数据表中至少一个数据表执行的增加表操作、读取表操作、更新表操作和删除表操作中的至少一项;操作配置单元,被配置成基于针对至少一个目标节点接收到的操作配置指令,为至少一个目标节点配置对应的目标表操作;序列生成单元,被配置成响应于接收到配置完成指令,基于所有目标节点被配置的目标表操作,生成操作序列;接口生成单元,被配置成封装操作序列,生成用于执行操作序列的业务接口。In the second aspect, embodiments of the present disclosure propose a device for generating business interfaces for low-code platforms, including: a node presentation unit configured to present a set of nodes to the user in response to receiving a business interface generation request sent by the user. , wherein the nodes in a group of nodes are used to configure table operations for at least part of the data tables in a preconfigured group of data tables, and the table operations include adding table operations and reading performed on at least one data table in the group of data tables. At least one of a table fetch operation, an update table operation, and a table delete operation; an operation configuration unit configured to configure a corresponding target table operation for at least one target node based on an operation configuration instruction received for at least one target node; sequence The generation unit is configured to generate an operation sequence based on the configured target table operations of all target nodes in response to receiving the configuration completion instruction; the interface generation unit is configured to encapsulate the operation sequence and generate a business interface for executing the operation sequence.

第三方面,本公开实施例提供了一种电子设备,该电子设备包括:至少一个处理器;以及与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,该指令被至少一个处理器执行,以使至少一个处理器执行时能够实现如第一方面中任一实现方式描述的面向低代码平台的生成业务接口的方法。In a third aspect, embodiments of the present disclosure provide an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor. , the instruction is executed by at least one processor, so that when executed by at least one processor, the method for generating a business interface for a low-code platform as described in any implementation manner in the first aspect can be implemented.

第四方面,本公开实施例提供了一种存储有计算机指令的非瞬时计算机可读存储介质,该计算机指令用于使计算机执行时能够实现如第一方面中任一实现方式描述的面向低代码平台的生成业务接口的方法。In the fourth aspect, embodiments of the present disclosure provide a non-transitory computer-readable storage medium storing computer instructions. The computer instructions are used to enable the computer to implement the low-code oriented method described in any implementation manner in the first aspect when executed. The platform’s method of generating business interfaces.

第五方面,本公开实施例提供了一种包括计算机程序的计算机程序产品,该计算机程序在被处理器执行时能够实现如第一方面中任一实现方式描述的面向低代码平台的生成业务接口的方法。In the fifth aspect, embodiments of the present disclosure provide a computer program product including a computer program. When executed by a processor, the computer program can implement the generation of business interfaces for low-code platforms as described in any implementation manner in the first aspect. Methods.

本公开实施例提供的面向低代码平台的生成业务接口的方法、装置、电子设备、计算机可读存储介质及计算机程序产品,响应于接收到用户发送的业务接口生成请求,为用户呈现一组节点,其中,一组节点中的节点用于配置针对预先配置的一组数据表中至少部分的数据表的表操作,表操作包括针对一组数据表中至少一个数据表执行的增加表操作、读取表操作、更新表操作和删除表操作中的至少一项;基于针对至少一个目标节点接收到的操作配置指令,为至少一个目标节点配置对应的目标表操作;响应于接收到配置完成指令,基于所有目标节点被配置的目标表操作,生成操作序列;封装操作序列,生成用于执行操作序列的业务接口。The methods, devices, electronic devices, computer-readable storage media and computer program products for generating business interfaces for low-code platforms provided by embodiments of the present disclosure present a set of nodes to the user in response to receiving a business interface generation request sent by the user. , wherein the nodes in a group of nodes are used to configure table operations for at least part of the data tables in a preconfigured group of data tables, and the table operations include adding table operations and reading performed on at least one data table in the group of data tables. At least one of a table fetch operation, an update table operation, and a table delete operation; based on an operation configuration instruction received for at least one target node, configure a corresponding target table operation for at least one target node; in response to receiving the configuration completion instruction, Based on the configured target table operations of all target nodes, an operation sequence is generated; the operation sequence is encapsulated to generate a business interface for executing the operation sequence.

本公开用户可以基于选择节点、为节点配置表操作的方式搭建操作序列,并基于操作序列的封装结果得到业务接口。这样的方式,使得用户在编辑业务接口时,可以基于串接代码模块、代码动作的方式来指示联动、连续地实现一系列的表操作,能够简单、便利地实现包括复杂、多步骤的执行步骤的业务接口。由此,能够降低面向低代码平台的生成业务接口难度,并提高面向低代码平台的生成业务接口效率。Users of this disclosure can build operation sequences based on selecting nodes and configuring table operations for nodes, and obtain business interfaces based on the encapsulation results of the operation sequences. In this way, when editing the business interface, users can instruct linkage and continuously implement a series of table operations based on concatenating code modules and code actions, and can easily and conveniently implement complex and multi-step execution steps. business interface. This can reduce the difficulty of generating business interfaces for low-code platforms and improve the efficiency of generating business interfaces for low-code platforms.

应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the disclosure, nor is it intended to limit the scope of the disclosure. Other features of the present disclosure will become readily understood from the following description.

附图说明Description of the drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本公开的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present disclosure will become more apparent upon reading the detailed description of the non-limiting embodiments with reference to the following drawings:

图1是本公开可以应用于其中的示例性系统架构;Figure 1 is an exemplary system architecture in which the present disclosure may be applied;

图2为本公开实施例提供的一种面向低代码平台的生成业务接口的方法的流程图;Figure 2 is a flow chart of a method for generating a business interface for a low-code platform provided by an embodiment of the present disclosure;

图3为本公开实施例提供的一种配置联动表操作的过程的流程图;Figure 3 is a flow chart of a process of configuring a linkage table operation provided by an embodiment of the present disclosure;

图4为本公开实施例提供的在一应用场景下的面向低代码平台的生成业务接口的方法的流程示意图;Figure 4 is a schematic flowchart of a method for generating a business interface for a low-code platform in an application scenario provided by an embodiment of the present disclosure;

图5为本公开实施例提供的一种面向低代码平台的生成业务接口的装置的结构框图;Figure 5 is a structural block diagram of a device for generating a business interface for a low-code platform provided by an embodiment of the present disclosure;

图6为本公开实施例提供的一种适用于执行面向低代码平台的生成业务接口的方法的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device suitable for executing a method of generating a business interface for a low-code platform provided by an embodiment of the present disclosure.

具体实施方式Detailed ways

以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。需要说明的是,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the present disclosure are included to facilitate understanding, and they should be considered to be exemplary only. Accordingly, those of ordinary skill in the art will appreciate that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness. It should be noted that, as long as there is no conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

此外,本公开涉及的技术方案中,所涉及的用户个人信息(例如本公开后续涉及的数据表)的获取、存储、使用、加工、运输、提供和公开等处理,均符合相关法律法规的规定,且不违背公序良俗。In addition, in the technical solutions involved in this disclosure, the acquisition, storage, use, processing, transportation, provision and disclosure of user personal information (such as the data tables involved in the subsequent disclosure) are in compliance with the relevant laws and regulations and do not violate public order and good morals.

图1示出了可以应用本公开的面向低代码平台的生成业务接口的方法、装置、电子设备及计算机可读存储介质的实施例的示例性系统架构100。FIG. 1 shows an exemplary system architecture 100 in which embodiments of methods, devices, electronic devices, and computer-readable storage media for generating business interfaces for low-code platforms of the present disclosure can be applied.

如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in Fig. 1, system architecture 100 may include terminal devices 101, 102, 103, network 104 and server 105. Network 104 is used to provide a medium for communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

用户(图中未示出)可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103和服务器105上可以安装有各种用于实现两者之间进行信息通讯的应用,例如业务接口生成类应用、代码开发类应用、即时通讯类应用等。Users (not shown in the figure) can use terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various applications for information communication between the terminal devices 101, 102, 103 and the server 105 may be installed, such as business interface generation applications, code development applications, instant messaging applications, etc.

终端设备101、102、103和服务器105可以是硬件,也可以是软件。当终端设备101、102、103为硬件时,可以是具有显示屏的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等;当终端设备101、102、103为软件时,可以安装在上述所列举的电子设备中,其可以实现成多个软件或软件模块,也可以实现成单个软件或软件模块,在此不做具体限定。当服务器105为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器;服务器为软件时,可以实现成多个软件或软件模块,也可以实现成单个软件或软件模块,在此不做具体限定。Terminal devices 101, 102, 103 and server 105 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc.; when terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above, which can be implemented as multiple software or software modules, or as a single software or software module, and no specific limitation is made here. When server 105 is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server; when the server is software, it can be implemented as multiple software or software modules, or as a single software or software module, and no specific limitation is made here.

服务器105通过内置的各种应用可以提供各种服务,以可以提供生成用于对数据表执行增加表、读取表、更新表和删除表的业务接口生成类应用为例,服务器105在运行该业务接口生成类应用时可实现如下效果:首先,通过网络104从终端设备101、102、103接收用户发送的业务接口的生成请求,通过终端设备101、102、103为用户提供一组节点,其中,一组节点中的节点用于配置针对预先配置的一组数据表中至少部分的数据表的表操作,表操作包括针对一组数据表中至少一个数据表执行的增加表操作、读取表操作、更新表操作和删除表操作中的至少一项;然后,服务器105基于针对至少一个目标节点接收到的操作配置指令,为至少一个目标节点配置对应的目标表操作;然后,服务器105响应于接收到配置完成指令,基于所有目标节点被配置的目标表操作,生成操作序列;最后,服务器105封装操作序列,生成用于执行操作序列的业务接口。The server 105 can provide various services through various built-in applications. For example, a business interface generation application for adding, reading, updating and deleting tables to a data table can be provided. When the server 105 runs the business interface generation application, the following effects can be achieved: first, a business interface generation request sent by a user is received from the terminal devices 101, 102, and 103 through the network 104, and a group of nodes are provided to the user through the terminal devices 101, 102, and 103, wherein the nodes in the group of nodes are used to configure table operations for at least part of a group of pre-configured data tables, and the table operations include at least one of the operations of adding, reading, updating and deleting tables performed on at least one data table in the group of data tables; then, based on the operation configuration instruction received for at least one target node, the server 105 configures a corresponding target table operation for at least one target node; then, in response to receiving the configuration completion instruction, the server 105 generates an operation sequence based on the target table operations configured for all target nodes; finally, the server 105 encapsulates the operation sequence and generates a business interface for executing the operation sequence.

由于存储数据表、封装操作序列可能需要占用较多的运算资源和较强的运算能力,因此本公开后续各实施例所提供的面向低代码平台的生成业务接口的方法一般由拥有较强运算能力、较多运算资源的服务器105来执行,相应地,面向低代码平台的生成业务接口的装置一般也设置于服务器105中。但同时也需要指出的是,在终端设备101、102、103也具有满足要求的运算能力和运算资源时,终端设备101、102、103也可以通过其上安装的业务接口生成类应用完成上述本交由服务器105做的各项运算,进而输出与服务器105同样的结果。尤其是在同时存在多种具有不同运算能力的终端设备的情况下,但业务接口生成类应用判断所在的终端设备拥有较强的运算能力和剩余较多的运算资源时,可以让终端设备来执行上述运算,从而适当减轻服务器105的运算压力,相应的,面向低代码平台的生成业务接口的装置也可以设置于终端设备101、102、103中。在此种情况下,示例性系统架构100也可以不包括服务器105和网络104。例如,终端设备101、102、103可以根据用户的请求、与用户的交互,为用户提供一组节点,并使得用户可以在终端设备101、102、103本地来生成业务接口。Since storing data tables and encapsulating operation sequences may require more computing resources and stronger computing capabilities, the methods for generating business interfaces for low-code platforms provided by subsequent embodiments of the present disclosure generally require strong computing capabilities. , a server 105 with more computing resources is executed. Correspondingly, a device for generating a business interface for a low-code platform is generally also provided in the server 105. But at the same time, it should be pointed out that when the terminal devices 101, 102, and 103 also have computing capabilities and computing resources that meet the requirements, the terminal devices 101, 102, and 103 can also generate the above-mentioned applications through the business interfaces installed on them. Each operation is performed by the server 105, and the same result as the server 105 is output. Especially when there are multiple terminal devices with different computing capabilities at the same time, but the terminal device where the business interface generation application judgment is located has stronger computing capabilities and more remaining computing resources, the terminal device can be allowed to execute The above operation can appropriately reduce the computing pressure of the server 105. Correspondingly, a device for generating a business interface for a low-code platform can also be provided in the terminal devices 101, 102, and 103. In this case, the exemplary system architecture 100 may not include the server 105 and the network 104. For example, the terminal devices 101, 102, and 103 can provide the user with a set of nodes based on the user's request and interaction with the user, and enable the user to generate a service interface locally on the terminal device 101, 102, and 103.

应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the number of terminal devices, networks and servers in Figure 1 is only illustrative. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

请参考图2,图2为本公开实施例提供的一种面向低代码平台的生成业务接口的方法的流程图,其中流程200包括以下步骤:Please refer to Figure 2. Figure 2 is a flow chart of a method for generating a business interface for a low-code platform provided by an embodiment of the present disclosure. The process 200 includes the following steps:

步骤201:响应于接收到用户发送的业务接口生成请求,为用户呈现一组节点;Step 201: In response to receiving the business interface generation request sent by the user, present a set of nodes to the user;

本步骤旨在由面向低代码平台的生成业务接口的方法的执行主体(例如图1所示的服务器105),在接收到用户发送的业务接口生成请求时进行响应,呈现一组节点。例如,用户通过终端设备101、102、103与服务器105进行通信、发送接口请求的情况下,执行主体可以为终端设备101、102、103与一组节点相关联的呈现素材(或者说,呈现数据),以使得终端设备101、102、103可以利用这些呈现素材,生成可视化界面,并利用可视化界面来为用户呈现一组节点。在一些实施例中,在例如由终端设备101、102、103作为面向低代码平台的生成业务接口的方法的执行主体时,终端设备101、102、103同样可以基于类似的方式,基于预先配置素材数据来生成、组合一组用于为用户呈现的节点,此处不再重复说明。This step is intended for the execution subject of the method of generating business interfaces for low-code platforms (such as the server 105 shown in Figure 1) to respond and present a set of nodes when receiving the business interface generation request sent by the user. For example, when the user communicates with the server 105 and sends an interface request through the terminal device 101, 102, 103, the execution subject may be the presentation material (or presentation data) associated with the terminal device 101, 102, 103 and a group of nodes. ), so that the terminal devices 101, 102, and 103 can use these presentation materials to generate a visual interface, and use the visual interface to present a set of nodes to the user. In some embodiments, when, for example, the terminal devices 101, 102, and 103 are used as the execution subject of the method of generating a business interface for a low-code platform, the terminal devices 101, 102, and 103 can also be based on pre-configured materials in a similar manner. Data is used to generate and combine a set of nodes for presentation to users, which will not be repeated here.

在本公开的实施例中,执行主体在接收到用户发送的业务接口生成请求后,可以在本地生成初始的业务接口,并为其设置请求路径和名称后,为用户呈现、提供一组用于针对该初始的业务接口配置执行代码的节点。用户可以通过与节点的交互、为节点配置操作,来为初始业务接口配置、组合相应的代码(代码组、代码模块),进而得到完整的业务接口。In the embodiment of the present disclosure, after receiving the business interface generation request sent by the user, the execution subject can generate the initial business interface locally, and after setting the request path and name for it, present and provide a set of Configure the node that executes the code for this initial business interface. Users can configure and combine the corresponding code (code group, code module) for the initial business interface by interacting with the node and configuring operations for the node, and then obtain a complete business interface.

通常,数据表中可以利用不同的行、列(或者,单元格)记载不同的信息,相应地,数据表中可以利用字段来标记各部分的内容。由此,使得执行主体、用户可以基于字段来定位、指示数据表中所包括的内容。一组数据表,或者说数据表,可以由用户所预先提供,也可以由例如执行主体的维护方(例如,代码开发平台的维护方)预先提供。例如,用户可以在发送业务接口生成请求时,或发送业务接口生成请求之前,与执行主体进行通信,并上传一组数据表。Generally, different rows and columns (or cells) can be used in a data table to record different information. Correspondingly, fields can be used in the data table to mark the content of each part. This allows the execution subject and the user to locate and indicate the content included in the data table based on the fields. A set of data tables, or data tables, may be provided in advance by the user, or may be provided in advance by, for example, the maintainer of the execution subject (for example, the maintainer of the code development platform). For example, the user can communicate with the execution subject and upload a set of data tables when sending a business interface generation request or before sending a business interface generation request.

换言之,数据表可以由上述执行主体直接从本地的存储设备获取,也可以从非本地的存储设备(例如图1所示的终端设备101、102、103)中获取。本地的存储设备可以是设置在上述执行主体内的一个数据存储模块,例如服务器硬盘,在此种情况下,数据表可以在本地快速读取到;非本地的存储设备还可以为其它任何被设置用于存储数据的电子设备,例如一些用户终端等,在此情况下,上述执行主体可以通过与该电子设备之间的通信(例如,基于获取命令),来获取所需的数据表。In other words, the data table can be obtained directly from the local storage device by the execution subject, or can also be obtained from a non-local storage device (such as the terminal devices 101, 102, and 103 shown in Figure 1). The local storage device can be a data storage module set in the above-mentioned execution body, such as a server hard disk. In this case, the data table can be quickly read locally; the non-local storage device can also be set for any other Electronic equipment used to store data, such as some user terminals, etc. In this case, the above-mentioned execution subject can obtain the required data table through communication with the electronic equipment (for example, based on an acquisition command).

在本公开的实施例中,一组节点中的节点用于配置针对预先配置的一组数据表中至少部分的数据表的表操作,表操作包括针对一组数据表中至少一个数据表执行的增加表操作(即,将被选择的新数据表加入)、读取表操作(即,获取用户所指示的数据表)、更新表操作(即,基于用户所指示的更新内容,对用户所指示的数据表中相应的内容进行更新)和删除表操作(即,删除用户所指示的数据表)中的至少一项。在一些场景,增加表操作、读取表操作、更新表操作和删除表操作,也可以被统称为增删改查操作(CRUD)。In an embodiment of the present disclosure, the nodes in the group of nodes are used to configure table operations for at least part of the data tables in the preconfigured group of data tables, and the table operations include performing operations on at least one data table in the group of data tables. Add table operation (i.e., add the selected new data table), read table operation (i.e., obtain the data table indicated by the user), update table operation (i.e., based on the update content indicated by the user, update the table indicated by the user) At least one of the following: updating the corresponding content in the data table) and deleting the table operation (that is, deleting the data table indicated by the user). In some scenarios, add table operations, read table operations, update table operations, and delete table operations can also be collectively referred to as CRUD operations.

应当理解的是,每个节点中所关联的数据表可以是一个或者多个,即,每个节点中的操作可以同时针对一个或者多个不同的数据表被执行或生效。例如,节点a可以被配置添加数据表A的增加表操作,而节点b可以被配置针对数据表B和数据表C中的属于相同内容的字段进行修改的更新表操作。例如,数据表B和数据表C中均记录甲对象的数量的情况,节点b中可以基于被配置的修改甲对象的对象数量的更新表操作,来指示需要同时对数据表和数据表C中记录的甲对象的数量进行更新。It should be understood that each node may be associated with one or more data tables, that is, the operations in each node may be executed or effective for one or more different data tables at the same time. For example, node a can be configured with an add table operation that adds data table A, while node b can be configured with an update table operation that modifies fields with the same content in data tables B and data table C. For example, if the number of object A is recorded in both data table B and data table C, node b can indicate the need to simultaneously update the data table and data table C based on the configured update table operation that modifies the number of objects of object A. The number of recorded A objects is updated.

在本公开的实施例中,执行主体可以预先为用户呈现预定数量的节点(例如,基于用户实际使用的节点的数量的历史统计数据确定的一个数值)。此外,还可以通过用户配置节点增加控件的方式,使用户在节点不足以满足使用需求时,通过触发节点增加控件的方式,调整节点数量,以满足用户的实际使用需求。由此,以避免为用户提供过多的节点导致的呈现效果不佳的问题(例如,节点数量过多导致的图标过小、不方便用户点选),提升用户的使用体验。In an embodiment of the present disclosure, the execution subject may present a predetermined number of nodes to the user in advance (for example, a value determined based on historical statistical data of the number of nodes actually used by the user). In addition, the user can also configure nodes to add controls, so that when the nodes are not enough to meet the usage needs, the user can adjust the number of nodes by triggering nodes to add controls to meet the user's actual usage needs. This avoids the problem of poor presentation results caused by providing too many nodes to users (for example, too many nodes lead to icons that are too small and inconvenient for users to click) and improve the user experience.

步骤202:基于针对至少一个目标节点接收到的操作配置指令,为至少一个目标节点配置对应的目标表操作;Step 202: Based on the operation configuration instruction received for at least one target node, configure a corresponding target table operation for at least one target node;

在步骤201的基础上,本步骤旨在由上述执行主体根据针对目标节点接收到的操作配置指令,相应地为目标节点配置对应的目标表操作。例如,用户在接收到一组节点后,可以基于需求来选择一个或者多个目标节点,并分别为目标节点配置对应的目标表操作。例如,一组节点可以包括节点a至c,用户可以通过例如点选节点、针对节点发送配置操作命令语言的方式,指示用户希望为目标节点配置对应的目标表操作。例如,用户可以针对节点a配置添加数据表A,针对节点b配置同时对数据表和数据表C中记录的甲对象的数量进行更新(例如,均更新至Y),针对节点c配置删除数据表D。应当理解的是,在一组节点中存在两个以上的节点时,用户可以根据需求仅为其中部分的节点配置目标表操作,由此,以方便用户更为灵活地配置需要执行的步骤数量。例如,在上述示例中,即便执行主体为用户提供了节点a至c,用户也可以仅选择在节点a和b处配置目标表操作,而不在节点c处配置目标表操作。On the basis of step 201, this step is intended for the execution subject to configure corresponding target table operations for the target node according to the operation configuration instructions received for the target node. For example, after receiving a set of nodes, the user can select one or more target nodes based on needs, and configure corresponding target table operations for the target nodes. For example, a group of nodes may include nodes a to c, and the user may indicate that the user wants to configure the corresponding target table operation for the target node by, for example, clicking on the node and sending a configuration operation command language to the node. For example, the user can add data table A for the configuration of node a, update the number of objects A recorded in the data table and data table C at the same time for the configuration of node b (for example, both update to Y), and delete the data table for the configuration of node c. D. It should be understood that when there are more than two nodes in a group of nodes, the user can configure target table operations for only some of the nodes according to needs, thereby making it easier for the user to more flexibly configure the number of steps to be performed. For example, in the above example, even if the execution subject provides the user with nodes a to c, the user can only choose to configure the target table operation at nodes a and b, but not at node c.

如上述说明的,在用户实际配置后,或者说,被配置有目标表操作的节点,其形式可以被理解为,在该节点处,对用户所指示的一个或者多个数据表,执行“增加表操作、读取表操作、更新表操作和删除表操作中的至少一项”。As explained above, after the user actually configures, or in other words, the node is configured with the target table operation, its form can be understood as, at the node, perform "add" to one or more data tables indicated by the user. At least one of table operations, read table operations, update table operations, and delete table operations."

进一步地,用户在完成期望的目标表操作配置后,可以通过例如触发完成控件、发送完成消息等方式与执行主体交互,以指示执行主体执行后续操作。Furthermore, after completing the desired target table operation configuration, the user may interact with the execution subject by, for example, triggering a completion control, sending a completion message, etc., to instruct the execution subject to perform subsequent operations.

此外,为方便理解,基于操作配置指令确定目标表操作,以及表操作的具体执行方式,将在下文详细说明。In addition, for the convenience of understanding, the target table operation is determined based on the operation configuration instruction, and the specific execution method of the table operation will be described in detail below.

步骤203:响应于接收到配置完成指令,基于所有目标节点被配置的目标表操作,生成操作序列;Step 203: In response to receiving the configuration completion instruction, generate an operation sequence based on the configured target table operations of all target nodes;

在步骤202的基础上,本步骤旨在由上述执行主体在确定用户完成为节点配置目标表操作的情况下进行响应。例如,执行主体可以在接收到用户发送的配置完成指令(例如,配置完成指令可以是由用户通过触发完成控件发送的指令)时,进行响应。进一步地,执行主体可以获取所有的用户配置有目标表操作的目标节点。进一步地,执行主体可以将这些目标节点,以及目标节点对应的目标表操作整合为一个操作序列。在一些实施例中,执行主体可以基于目标节点被配置目标表操作的时间先后顺序,确定各个目标节点所关联的目标表操作的操作顺序,得到操作序列。Based on step 202, this step is intended for the execution subject to respond when it is determined that the user has completed the operation of configuring the target table for the node. For example, the execution subject may respond when receiving a configuration completion instruction sent by the user (for example, the configuration completion instruction may be an instruction sent by the user by triggering the completion control). Further, the execution subject can obtain all target nodes configured with target table operations by the user. Further, the execution subject can integrate these target nodes and the target table operations corresponding to the target nodes into an operation sequence. In some embodiments, the execution subject can determine the operation sequence of the target table operations associated with each target node based on the time sequence in which target table operations are configured on the target nodes, and obtain the operation sequence.

在本实施例的一些可选的视线方式中,执行主体还可以通过配置节点之间的操作逻辑的方式,使得用户可以按照节点之间的操作逻辑来相应地配置动作。例如,被呈现的一组节点中各个节点中可以关联由操作执行顺序。例如,节点a至c组成的一组节点中,执行顺序可以是依次执行节点a、b和c各自对应的目标表操作。由此,执行主体可以在呈现一组节点时,选择对应一组节点中各个节点的操作执行顺序,顺序地呈现各个节点。例如,执行主体可以利用带有用于指示执行顺序的指示箭头、添加执行顺序标号等方式来顺序地呈现各个节点,以使得用户理解节点之间的执行顺序。在一些实施例中,执行主体还可以通过依次呈现节点的方式,例如,在用户为节点a配置目标表操作后,再为其呈现节点b。由此,基于被顺序呈现的一组节点,用户可以根据需求来配置各个节点之间的执行顺序、逻辑,以满足其不同的配置需求。In some optional line-of-sight methods of this embodiment, the execution subject can also configure the operation logic between nodes, so that the user can configure actions accordingly according to the operation logic between nodes. For example, each node in a presented set of nodes can be associated with an order of execution by an operation. For example, in a group of nodes consisting of nodes a to c, the execution order may be to sequentially execute the target table operations corresponding to nodes a, b, and c. Therefore, when presenting a set of nodes, the execution subject can select the operation execution order corresponding to each node in the set of nodes, and present each node sequentially. For example, the execution subject can present each node sequentially by using indicator arrows to indicate the execution order, adding execution order labels, etc., so that the user can understand the execution order between nodes. In some embodiments, the execution subject can also present nodes sequentially. For example, after the user configures the target table operation for node a, node b can then be presented to it. Therefore, based on a set of nodes presented sequentially, users can configure the execution sequence and logic between each node according to their needs to meet their different configuration needs.

在一些实施例中,即便执行主体顺序地呈现了各个节点,执行主体也允许根据需求来对节点之间的呈现顺序,或者说,执行逻辑进行调整。例如,用户可以通过拖动指示箭头、改变执行顺序标号的方式与执行主体进行交互,以改变节点之间的执行顺序。这样的方式不仅能便于用户根据需求来对执行逻辑进行调整,还能避免因预设顺序不足所存在的影响用户配置执行顺序、执行逻辑的问题。In some embodiments, even if the execution subject presents each node sequentially, the execution subject is allowed to adjust the presentation order between nodes, or the execution logic, according to requirements. For example, the user can interact with the execution subject by dragging the indicator arrow and changing the execution order label to change the execution order between nodes. This method not only facilitates users to adjust the execution logic according to their needs, but also avoids problems caused by insufficient preset sequences that affect the user's configuration of execution sequences and execution logic.

步骤204:封装操作序列,生成用于执行操作序列的业务接口。Step 204: Encapsulate the operation sequence and generate a business interface for executing the operation sequence.

在步骤203的基础上,本步骤旨在由上述执行主体根据操作序列,来封装在各个节点所执行的动作,生成用于执行操作序列的业务接口。或者说,执行主体可对应操作序列,依次地封装在各个目标节点所执行动作的代码、代码块,生成业务接口。这样,使得在业务接口被调用、执行至相应的目标节点时,可以基于对应的代码来实现用户通过操作配置指令配置的动作。在一些场景中,这样的方式也可以被称为低代码编码,低代码生成业务接口。在本公开的实施例中,业务接口在被调用时,可以对应地执行各个节点中对于数据表的操作。例如,用户可以在提供更新的目标数据后,调用业务接口,来执行“更新表操作”。类似地,如果业务接口中包括有增加表操作、删除表操作等,执行主体可以基于业务接口对应地执行这些操作。由此,执行主体可以利用一组节点与用户交互,完成业务接口的编排,使得用户可以在节点中通过低代码配置方式(例如,仅指示节点处所执行的操作,而不是提供用于执行操作所需要的完整的方式)配置动作后,基于节点之间的组合,来得到实现操作链、操作序列的业务接口。Based on step 203, this step aims to encapsulate the actions performed on each node according to the operation sequence by the above-mentioned execution subject, and generate a business interface for executing the operation sequence. In other words, the execution subject can correspond to the operation sequence and sequentially encapsulate the codes and code blocks of the actions performed by each target node to generate a business interface. In this way, when the business interface is called and executed to the corresponding target node, the action configured by the user through the operation configuration instruction can be implemented based on the corresponding code. In some scenarios, this approach can also be called low-code coding, and low-code generation business interfaces. In the embodiment of the present disclosure, when the business interface is called, it can correspondingly perform operations on the data table in each node. For example, users can call the business interface to perform "update table operation" after providing updated target data. Similarly, if the business interface includes add table operations, delete table operations, etc., the execution subject can perform these operations accordingly based on the business interface. As a result, the execution subject can use a set of nodes to interact with the user and complete the orchestration of the business interface, so that the user can configure the node in a low-code manner (for example, only instruct the operation to be performed at the node, rather than providing the information needed to perform the operation). After configuring the action in a complete way (required), based on the combination between nodes, the business interface that implements the operation chain and operation sequence is obtained.

作为备选或附加地,执行主体在面向低代码平台的生成业务接口过程中可以进基于数据表的表信息(例如,表名称)构建代码后,利用例如对象关系映射(ObjectRelational Mapping,简称ORM)工具将数据表调整为实体,以实际执行对表的操作。As an alternative or additionally, during the process of generating a business interface for a low-code platform, the execution subject can construct the code based on the table information (for example, table name) of the data table, and then use, for example, Object Relational Mapping (ORM). Tools adapt data tables into entities to actually perform operations on the tables.

本公开实施例提供的面向低代码平台的生成业务接口的方法,用户可以基于选择节点、为节点配置表操作的方式搭建操作序列,并基于操作序列的封装结果得到业务接口。这样的方式,使得用户在编辑业务接口时,可以基于串接代码模块、代码动作的方式来指示联动、连续地实现一系列的表操作,能够简单、便利地实现包括复杂、多步骤的执行步骤的业务接口。由此,能够降低面向低代码平台的生成业务接口难度,并提高面向低代码平台的生成业务接口效率。The method for generating a business interface for a low-code platform provided by an embodiment of the present disclosure allows users to build an operation sequence by selecting nodes and configuring table operations for the nodes, and obtain a business interface based on the encapsulation result of the operation sequence. In this way, when editing a business interface, users can indicate linkage and continuously implement a series of table operations based on the method of concatenating code modules and code actions, and can simply and conveniently implement a business interface that includes complex, multi-step execution steps. As a result, the difficulty of generating business interfaces for low-code platforms can be reduced, and the efficiency of generating business interfaces for low-code platforms can be improved.

在一些实施例中,数据表之间可能存在某些内容上、隶属关系上的关联,例如,对应相同的内容,可能同时记录于数据表A和数据表B中。即,数据表A和数据表B对于该相同的内容,存在联动关系。通常用户为避免数据表记录的内容存在错误,针对存在联动关系的数据表,会期望联动地对它们进行调整。例如,在对数据表A中内容u的进行修改时,用户可能也期望同时对数据表B中的内容u联动地修改。或者,在数据表E和F具有上下级关系时,如果数据表E被删除,则用户可能也期望同步地删除数据表F。由此,为方便用户实现联动配置,以及避免数据表记录的内容存在因未联动修改导致的错误,执行主体还可以基于联动关系,来联动地调整数据表。In some embodiments, there may be certain content and affiliation relationships between data tables. For example, the same content may be recorded in data table A and data table B at the same time. That is, data table A and data table B have a linkage relationship with respect to the same content. Usually, in order to avoid errors in the contents recorded in data tables, users expect to adjust data tables in a linked manner. For example, when modifying the content u in data table A, the user may also expect to modify the content u in data table B simultaneously. Or, when data tables E and F have a superior-subordinate relationship, if data table E is deleted, the user may also expect to delete data table F synchronously. Therefore, in order to facilitate users to implement linkage configuration and avoid errors caused by unlinked modifications in the content recorded in the data table, the execution subject can also adjust the data table in a linkage manner based on the linkage relationship.

在本实施例的一些可选的实现方式中,执行主体可以接收针对一组数据表传入的联动描述信息,其中,联动描述信息用于指示第一数据表和第二数据表之间的联动关系。例如,联动描述信息可以由用户传入,用户可以利用描述信息指示第一数据表和第二数据表之间的联动关系。例如,描述信息可以指示第一数据表和第二数据表之间具有例如上下级、包括相同内容的情况,以及对应各情况需要被执行的联动动作的联动关系。例如,描述信息可以指示第一数据表和第二数据表之间具有上下级关系,需要被联动地删除。又例如,描述信息可以指示第一数据表和第二数据表包括相同内容,在对该部分相同内容进行调整时,第一数据表和第二数据表需要联动地被调整。In some optional implementations of this embodiment, the execution subject may receive linkage description information passed in for a group of data tables, where the linkage description information is used to indicate linkage between the first data table and the second data table. relation. For example, the linkage description information can be passed in by the user, and the user can use the description information to indicate the linkage relationship between the first data table and the second data table. For example, the description information may indicate a linkage relationship between the first data table and the second data table, such as superior and subordinate levels, situations including the same content, and linkage actions that need to be performed corresponding to each situation. For example, the description information may indicate that the first data table and the second data table have a superior-subordinate relationship and need to be deleted in conjunction. For another example, the description information may indicate that the first data table and the second data table include the same content. When adjusting this part of the same content, the first data table and the second data table need to be adjusted in conjunction.

进一步地,如果执行主体基于联动描述信息确定第一目标节点处的第一目标表操作指向第一数据表,即,在第一目标节点配置的第一目标表操作所针对的数据表是第一数据表,执行主体可以基于第一目标表操作生成针对第二数据表的联动表操作。例如,执行主体在第一目标节点处确定被删除的数据表H是与数据表J的上级数据表,则执行主体可以生成针对数据表J的联动表操作(在此示例中,联动表操作可以是删除数据表J的删除表操作)。Further, if the execution subject determines based on the linkage description information that the first target table operation at the first target node points to the first data table, that is, the data table targeted by the first target table operation configured at the first target node is the first Data table, the execution subject can generate a linkage table operation for the second data table based on the first target table operation. For example, if the execution subject determines at the first target node that the deleted data table H is the superior data table of data table J, then the execution subject can generate a linkage table operation for data table J (in this example, the linkage table operation can It is a delete table operation that deletes data table J).

应当理解的是,上述示例中“基于联动描述信息确定第一目标节点处的第一目标表操作指向第一数据表”中仅是以“第一数据表为例”的示例性说明。在一些实施例中,执行主体也可以“基于联动描述信息确定第二目标节点处的第二目标表操作指向第二数据表”来为第一数据表配置联动表操作,此处不再重复说明。It should be understood that the above example of "determining that the first target table operation at the first target node points to the first data table based on the linkage description information" is only an exemplary description of "the first data table as an example". In some embodiments, the execution subject can also "determine that the second target table operation at the second target node points to the second data table based on the linkage description information" to configure the linkage table operation for the first data table. The description will not be repeated here. .

进一步地,执行主体可以在第一目标节点处,针对第二数据表同时配置联动表操作,以对第一数据表和第二数据表联动地进行调整。由此,执行主体针对存在联动关系的数据表,自动补全联动表操作,方便用户配置的同时,避免因缺失联动操作所导致的数据表异常。Further, the execution subject can simultaneously configure a linked table operation for the second data table at the first target node to make linked adjustments to the first data table and the second data table. As a result, the execution subject automatically completes the linkage table operations for data tables with linkage relationships, which facilitates user configuration and avoids data table anomalies caused by missing linkage operations.

应当理解的是,基于第一目标表操作生成针对第二数据表的联动表操作的步骤,基于不同的需求可以在不同的阶段被执行。例如,在一些实施例中,执行主体可以在上述步骤202执行完成后,执行基于第一目标表操作生成针对第二数据表的联动表操作的步骤,以直接跟随用户的动作,补入联动表操作。又例如,执行主体可以在生成操作序列后,执行基于第一目标表操作生成针对第二数据表的联动表操作的步骤,以对操作序列进行检测,并选择补入联动表操作。It should be understood that the step of generating the linkage table operation for the second data table based on the first target table operation can be executed at different stages based on different requirements. For example, in some embodiments, the execution subject can execute the step of generating the linkage table operation for the second data table based on the first target table operation after the above step 202 is executed, so as to directly follow the user's action and add the linkage table operation. For another example, the execution subject can execute the step of generating the linkage table operation for the second data table based on the first target table operation after generating the operation sequence, so as to detect the operation sequence and select to add the linkage table operation.

类似地,用户也可以基于不同的需求,来传入不同的联动描述信息。例如,用户可以在提供操作配置指令之前,传入联动描述信息也可以选择在提供操作配置指令之后,提供联动描述信息。Similarly, the user may also input different linkage description information based on different requirements. For example, the user may input linkage description information before providing the operation configuration instruction, or may choose to provide linkage description information after providing the operation configuration instruction.

在一些实施例中,执行主体也可以根据用户的请求,为其提供当前被记录的联动描述信息,以使得用户可以对已有的联动描述信息进行修改、更新,以保持联动描述信息的可用性。In some embodiments, the execution entity may also provide the currently recorded linkage description information to the user according to the user's request, so that the user can modify and update the existing linkage description information to maintain the availability of the linkage description information.

为方便理解上述执行顺序,示例性地以提供图3作为实现方式的一种。图3为本公开实施例提供的一种配置联动表操作的过程300的流程图。例如,在过程300中,执行主体可以基于预先的配置,在为至少一个目标节点配置对应的目标表操作之后,接收传入的联动描述信息,并配置联动表操作。过程300具体可以包括以下步骤:To facilitate understanding of the above execution sequence, Figure 3 is provided as an example of an implementation manner. FIG. 3 is a flow chart of a process 300 for configuring a linkage table operation provided by an embodiment of the present disclosure. For example, in process 300, the execution subject may receive the incoming linkage description information and configure the linkage table operation after configuring the corresponding target table operation for at least one target node based on the pre-configuration. The process 300 may specifically include the following steps:

步骤301:响应于接收到用户发送的业务接口生成请求,为用户呈现一组节点;Step 301: In response to receiving the business interface generation request sent by the user, present a set of nodes to the user;

步骤302:基于针对至少一个目标节点接收到的操作配置指令,为至少一个目标节点配置对应的目标表操作;Step 302: Configure a corresponding target table operation for at least one target node based on the operation configuration instruction received for at least one target node;

步骤303:接收到针对一组数据表传入的联动描述信息;Step 303: Receive the linkage description information passed in for a set of data tables;

具体地,用户可以在为至少一个目标节点配置对应的目标表操作后,提供针对一组数据表的联动描述信息;Specifically, the user can provide linkage description information for a group of data tables after configuring a corresponding target table operation for at least one target node;

步骤304:响应于基于联动描述信息确定第一目标节点处的第一目标表操作指向第一数据表,基于第一目标表操作生成针对第二数据表的联动表操作;Step 304: In response to determining that the first target table operation at the first target node points to the first data table based on the linkage description information, generate a linkage table operation for the second data table based on the first target table operation;

具体地,如果执行主体基于联动描述信息确定第一目标节点处的第一目标表操作指向第一数据表,则执行主体可以在第一目标节点处,针对第二数据表同时配置联动表操作,以对第一数据表和第二数据表联动地进行调整。Specifically, if the execution subject determines that the first target table operation at the first target node points to the first data table based on the linkage description information, the execution subject can simultaneously configure the linkage table operation for the second data table at the first target node, to adjust the first data table and the second data table in a coordinated manner.

步骤305:为第一目标节点额外配置联动表操作;Step 305: Configure additional linkage table operations for the first target node;

具体地,执行主体可以将针对第二数据表联动配置的联动表操作,配置于第一目标节点处,以使得在第一目标节点处可以联动地对第一数据表和第二数据表执行调整。Specifically, the execution subject can configure the linkage table operation configured for the linkage of the second data table at the first target node, so that the adjustment of the first data table and the second data table can be executed in linkage at the first target node. .

步骤306:响应于接收到配置完成指令,基于所有目标节点被配置的目标表操作和联动表操作,生成操作序列;Step 306: In response to receiving the configuration completion instruction, generating an operation sequence based on the target table operations and linkage table operations configured for all target nodes;

具体地,执行主体可以基于目标节点被配置的目标表操作和联动表操作,来生成操作序列。应当理解的是,在不具有联动表操作的目标节点,执行主体可以参照如图2所示的步骤203中所描述的方式进行处理、生成操作序列,此处不再说明。而对于,联动表操作的目标节点,执行主体可以在操作序列中,对应该目标节点的位置,添加相应的目标表操作和联动表操作,以使得目标表操作和联动表操作可以同时被执行,以联动地对第一数据表和第二数据表执行调整。Specifically, the execution subject can generate an operation sequence based on the target table operation and linkage table operation configured on the target node. It should be understood that on a target node that does not have a linkage table operation, the execution subject can perform processing and generate an operation sequence by referring to the method described in step 203 as shown in Figure 2, which will not be described here. For the target node of the linkage table operation, the execution subject can add the corresponding target table operation and linkage table operation corresponding to the position of the target node in the operation sequence, so that the target table operation and the linkage table operation can be executed at the same time. Adjustment is performed on the first data table and the second data table in a linked manner.

步骤307:封装操作序列,生成用于执行操作序列的业务接口。Step 307: Encapsulate the operation sequence and generate a business interface for executing the operation sequence.

以上步骤301、302和307分别对应与图2所示的步骤201、202和204,相同部分内容请参见上一实施例的相应部分,此处不再进行赘述。The above steps 301, 302 and 307 correspond to steps 201, 202 and 204 shown in FIG. 2 respectively. For the same contents, please refer to the corresponding parts of the previous embodiment, which will not be described again here.

在一些实施例中,为了进一步地方便用户在节点中配置操作,执行主体还可以:响应于针对一组节点中至少一个目标节点接收到查询指示,与至少一个目标节点相关联地呈现一组候选数据表。具体地,用户可以通过例如点击,或者基于预先配置的查询指令与执行主体交互,以针对一组节点中的至少一个目标节点来发送查询指示。In some embodiments, in order to further facilitate the user to configure operations in the node, the execution subject may also: in response to receiving a query indication for at least one target node in the set of nodes, present a set of candidates in association with the at least one target node. data sheet. Specifically, the user can, for example, click or interact with the execution subject based on a preconfigured query instruction to send a query instruction for at least one target node in a group of nodes.

相应地,执行主体在接收到该查询指示后,可以为其提供与该目标节点相关联的一组候选数据表,一组候选数据表中的候选数据表包括该目标节点处可以被使用的数据表。例如,执行主体可以基于约束条件(例如,是否与在先被配置的节点中的目标表操作存在冲突、用户对于数据表的使用权限等等)来对一组数据表中的数据表进行筛选,进而选择出在该目标节点可以被用户所使用、操作的数据表作为候选数据表,进而生成一组候选数据表。由此,用户可以通过候选数据表直观地了解到可以被其处理的数据表,方便用户进行配置。Correspondingly, after receiving the query instruction, the execution subject can provide it with a set of candidate data tables associated with the target node. The candidate data tables in the set of candidate data tables include data that can be used at the target node. surface. For example, the execution subject can filter the data tables in a set of data tables based on constraints (for example, whether there is a conflict with the target table operation in the previously configured node, the user's permission to use the data table, etc.), Then, a data table that can be used and operated by the user at the target node is selected as a candidate data table, and a set of candidate data tables is generated. As a result, users can intuitively understand the data tables that can be processed through the candidate data tables, which facilitates user configuration.

在本实施例的一些可选的实现方式中,如果用户在发送操作配置指令之前发送了联动描述信息,则执行主体还可以生成用于指示联动关系的指示标识,并在第一数据表基于针对至少一个目标节点的查询指示被呈现时进行响应,与第一数据表相关联地呈现指示标识。由此,执行主体可以进一步地利用指示标识来提示联动关系,使得用户可以更清晰地理解数据表之间的联动关系,方便用户更有质量地配置表操作。In some optional implementations of this embodiment, if the user sends linkage description information before sending the operation configuration instruction, the execution subject can also generate an indication identifier for indicating the linkage relationship, and add it in the first data table based on the In response to a query indication of at least one target node being presented, an indication identifier is presented in association with the first data table. Therefore, the execution subject can further use the indicator to prompt the linkage relationship, so that the user can more clearly understand the linkage relationship between the data tables, and facilitate the user to configure table operations with higher quality.

在本实施例的一些可选的实现方式中,执行主体还可以与候选数据表相关联地呈现可以被用户所执行的表操作,以进一步地辅助用户理解。In some optional implementations of this embodiment, the execution subject may also present table operations that can be performed by the user in association with the candidate data table to further assist the user in understanding.

此外,用户还可以向执行主体提供额外的辅助信息,例如,期望选择的数据表的描述信息(例如,数据表所包括的字段等)。相应地,执行主体在筛选一组候选数据表时,还可以根据用户所提供的描述信息,来进一步地筛选出满足用户使用需求的一组候选数据表。In addition, the user can also provide additional auxiliary information to the execution subject, such as description information of the data table that is desired to be selected (for example, fields included in the data table, etc.). Correspondingly, when screening a set of candidate data tables, the execution subject can further screen out a set of candidate data tables that meet the user's needs based on the description information provided by the user.

接下来,将详细说明执行主体基于用户的操作配置指令,为至少一个目标节点配置对应的目标表操作的相关内容,即,执行主体可以基于操作配置指令,来将实现操作配置指令所指示的动作的代码(代码模块、代码组)与目标节点进行关联。Next, it will be described in detail how the execution subject configures the relevant content of the corresponding target table operation for at least one target node based on the user's operation configuration instructions. That is, the execution subject can associate the code (code module, code group) that implements the action indicated by the operation configuration instructions with the target node based on the operation configuration instructions.

如上述说明的,可以通过将节点配置为可以被触发的控件的方式,使得可以在用户通过点选节点后,为其提供可以被处理的数据表以及可以被选择的表操作,来与用户进行交互、获取用户所发出的操作配置指令。类似地,用户也可以通过预先配置的代码指令,来实现类似的目的,例如,用户可以通过指令语言(例如,数据库语言Structured QueryLanguage,简称SQL)来指定节点、需要执行的表操作,以及表操作针对的数据表。As explained above, the node can be configured as a control that can be triggered, so that after the user clicks the node, it can be provided with a data table that can be processed and a table operation that can be selected to interact with the user. Interact and obtain operation configuration instructions issued by the user. Similarly, users can also achieve similar purposes through pre-configured code instructions. For example, users can specify nodes, table operations to be performed, and table operations through instruction languages (for example, database language Structured Query Language, SQL for short). Targeted datasheet.

以为用户提供可以被处理的数据表以及可以被选择的表操作与用户进行交互,以获取用户所发出的操作配置指令的实施例进行示例。An example is provided to provide the user with a data table that can be processed and a table operation that can be selected to interact with the user to obtain the operation configuration instructions issued by the user.

例如,在目标节点处(为方便理解,将其描述为第二目标节点),用户可以通过选择数据表以及选择增加表操作,指示在第二目标节点来增加被选中的数据表。在本实施例的一些可选的实现方式中,因数据表为新增,数据表中可能包括一些非空字段,即,必须需要填入内容的字段。例如,新增的数据表可能基于预先配置的数据表模板确定,在此情况下,数据表模板中可能包括一些需要被填写的“非空字段”。For example, at the target node (for ease of understanding, it is described as the second target node), the user can indicate to add the selected data table at the second target node by selecting the data table and selecting the add table operation. In some optional implementations of this embodiment, because the data table is newly added, the data table may include some non-empty fields, that is, fields that must be filled with content. For example, the newly added data table may be determined based on a preconfigured data table template. In this case, the data table template may include some "non-empty fields" that need to be filled in.

在此情况下,执行主体可以响应于第二数据表包括非空字段,与第二目标节点相关联地呈现用于获取非空字段的内容的参数获取窗口。具体地,执行主体可以用户为第二目标节点配置增加表操作后,与该第二目标节点的呈现位置的关联位置(例如,位于第二目标节点的呈现位置一定距离范围内的位置)呈现参数获取窗口,以利用参数获取窗口提示用户存在需要被填写的“非空字段”的内容的同时,使得用户可以利用参数获取窗口来填写非空字段的内容。由此,方便用户填写的同时,可以用户进行提示,要求用户补全缺失的非空字段的内容,避免在增加表场景中因字段缺失所导致的执行异常,提升最终生成的业务接口的可用性。In this case, the execution entity can present a parameter acquisition window for obtaining the content of the non-empty field in association with the second target node in response to the second data table including a non-empty field. Specifically, after the user configures the operation of adding a table for the second target node, the execution entity can present a parameter acquisition window at a position associated with the presentation position of the second target node (for example, a position within a certain distance range of the presentation position of the second target node), so as to use the parameter acquisition window to prompt the user that there is a "non-empty field" that needs to be filled in, so that the user can use the parameter acquisition window to fill in the content of the non-empty field. In this way, while facilitating the user to fill in, the user can be prompted to complete the content of the missing non-empty field, avoiding execution anomalies caused by missing fields in the table addition scenario, and improving the usability of the business interface finally generated.

应当理解的是,对于更新表操作、读取表操作和删除表操作,用户同样可以增加表操作的类似的方式,与执行主体进行交互,后续不再重复说明,仅对实际表操作执行过程的差别进行说明。It should be understood that for update table operation, read table operation and delete table operation, the user can also add similar methods of table operation to interact with the execution subject, which will not be repeated later, and only the differences in the actual table operation execution process will be explained.

对于更新表操作而言,操作配置指令可以是指示在目标节点(为方便理解,描述为第三目标节点)处,基于更新字段值对包括更新字段名称的待更新数据表执行更新表操作。例如,用户可以通过点击第三目标节点后,选择更新表操作,并与执行主体进行交互,以提供期望被更新的更新字段,以及更新的更新字段值。相应地,执行主体在接收到这样的操作配置指令时,在第三节点处被配置的目标表操作包括:获取的待更新数据表;利用更新字段值,对待更新数据表中对应更新字段名称部分的内容进行更新。For an update table operation, the operation configuration instruction may be an instruction to perform an update table operation on the data table to be updated including the update field name based on the update field value at the target node (described as the third target node for ease of understanding). For example, the user can select the update table operation by clicking on the third target node, and interact with the execution subject to provide the update fields expected to be updated, and the updated update field values. Correspondingly, when the execution subject receives such an operation configuration instruction, the target table operation configured at the third node includes: the obtained data table to be updated; using the update field value, the corresponding update field name part in the data table to be updated content is updated.

具体地,执行主体可以将获取包括待更新字段的待更新数据表,并对这些待更新数据表中对应待更新字段部分的内容执行更新(即,将对应待更新字段部分的内容更新至更新字段值)作为目标表操作的具体实现方式,与该第三目标节点进行关联,以使得业务接口被调用、执行至第三目标节点时,基于上述方式更新数据表。由此,用户可以通过指示被更新的内容以及更新后得到的值的方式,便能在节点(业务接口)中编入更新表操作功能,降低用户的编码难度。Specifically, the execution subject can obtain the to-be-updated data table including the to-be-updated fields, and perform updates on the contents of the corresponding to-be-updated fields in the to-be-updated data table (i.e., update the contents of the corresponding to-be-updated fields to the update field values) as a specific implementation method of the target table operation, and associate it with the third target node, so that when the business interface is called and executed to the third target node, the data table is updated based on the above method. Thus, the user can program the update table operation function in the node (business interface) by indicating the updated content and the value obtained after the update, thereby reducing the coding difficulty of the user.

作为备选或附加地,用户也可以直接向执行主体提供需要被更新的待更新数据表,以更细粒地指示需要被更新的目标操作表。Alternatively or additionally, the user can also directly provide the to-be-updated data table that needs to be updated to the execution subject to indicate the target operation table that needs to be updated in a more granular manner.

对于读取表操作而言,操作配置指令可以是指示在目标节点(为方便理解,描述为第四目标节点)处,读取、呈现被指示的目标数据表的操作。作为备选或附加地,用户还可以对目标数据表的策略进行指示,以使得执行主体可以根据用户的要求,按照一定的顺序、排序来呈现目标数据表,以方便用户阅读。For the read table operation, the operation configuration instruction may be an operation of instructing to read and present the indicated target data table at the target node (described as the fourth target node for ease of understanding). Alternatively or additionally, the user can also indicate the policy of the target data table, so that the execution subject can present the target data table in a certain order and sorting according to the user's requirements to facilitate the user's reading.

相应地,执行主体可以响应于操作配置指令指示在第四目标节点处,执行读取表操作,读取表包括基于呈现排序策略,呈现包括查询字段的一组目标数据表,在第四目标节点处被配置的目标表操作包括:基于查询字段确定一组目标数据表;基于呈现排序策略,对一组目标数据表进行排序,得到排序结果;呈现排序结果。Accordingly, the execution subject can perform a table read operation at the fourth target node in response to the operation configuration instruction, and the table read operation includes presenting a set of target data tables including query fields based on a presentation sorting strategy. The target table operation configured at the fourth target node includes: determining a set of target data tables based on the query fields; sorting a set of target data tables based on the presentation sorting strategy to obtain a sorting result; and presenting the sorting result.

具体地,如果执行主体在第四目标节点处被配置的目标表操作是读取表操作,则执行主体可以将调用包括查询字段的一组目标数据表,并呈现基于呈现排序策略来呈现的一组数据表,作为读取表操作的具体实现方式。由此,使得用户仅通过提供呈现策略和查询字段,便能在节点(业务接口)中编入读取表操作,或者说功能,降低用户的编码难度。Specifically, if the target table operation configured by the execution subject at the fourth target node is a read table operation, the execution subject may call a set of target data tables including query fields and present a set of data tables presented based on the presentation sorting strategy as a specific implementation of the read table operation. Thus, the user can program the read table operation, or function, into the node (business interface) by only providing the presentation strategy and query fields, thereby reducing the coding difficulty of the user.

对于删除表操作而言,与增加表类似,用户可以通过操作配置指令,指示在目标节点(为方便理解,描述为第五目标节点)处,对包括目标字段的已有数据表执行删除表操作。例如,执行主体可以在第五目标节点处为用户标识已有数据表。已有数据表包括基于第五目标节点之前的其他节点被添加的数据表。用户可以通过选择已有数据表后,为其配置删除表操作的方式,指示执行主体在第五目标节点处配置的目标表操作包括为删除已有数据表。由此,用户可以利用节点中选择的删除表操作,来为业务接口编入删除表操作,或者说功能,降低用户的编码难度。For the delete table operation, similar to adding a table, the user can instruct, through the operation configuration instruction, at the target node (described as the fifth target node for ease of understanding), to perform the delete table operation on the existing data table including the target field. For example, the execution subject can identify the existing data table for the user at the fifth target node. The existing data table includes a data table that is added based on other nodes before the fifth target node. The user can select the existing data table and configure the delete table operation for it, indicating that the target table operation configured by the execution subject at the fifth target node includes deleting the existing data table. Thus, the user can use the delete table operation selected in the node to incorporate the delete table operation, or function, into the business interface, thereby reducing the coding difficulty of the user.

为加深理解,本公开还结合一个具体应用场景,给出了一种具体的实现方案,请参见如图4所示的流程400。To deepen understanding, this disclosure also provides a specific implementation solution based on a specific application scenario. Please refer to the process 400 shown in Figure 4.

在图4中,可以由服务器105作为面向低代码平台的生成业务接口执行主体。例如,用户可以利用终端设备103与服务器105进行通信,执行步骤S401,以发送业务生成请求。相应地,服务器105可以执行步骤S402,向终端设备提供节点411至413。例如,服务器105可以在本地创建初始的业务接口、为该初始的业务接口设置请求路径和名称后,为用户呈现、提供一组用于针对该初始的业务接口配置执行代码的节点411至413。In Figure 4, the server 105 can be used as the execution subject for generating a business interface for a low-code platform. For example, the user can use the terminal device 103 to communicate with the server 105 and perform step S401 to send a service generation request. Correspondingly, the server 105 may perform step S402 to provide the nodes 411 to 413 to the terminal device. For example, the server 105 can create an initial business interface locally, set the request path and name for the initial business interface, and then present and provide the user with a set of nodes 411 to 413 configured to execute code for the initial business interface.

进一步地,终端设备103可以利用其屏幕来呈现界面103-a,以供用户交互。Further, the terminal device 103 can use its screen to present the interface 103-a for user interaction.

例如,以用户通过界面103-a,将节点411作为目标节点来配置目标表操作进行示例(例如,终端设备103中可以利用不同的呈现样式来体现用户所选择的、当前正在执行配置的节点)。用户可以点击节点411以要求为其配置目标表操作。相应地,终端设备103可以为用户呈现由服务器105提供的、可以在节点411中配置的多个表操作,以供用户进行选择。例如,终端设备103可以利用菜单420来呈现可以被选择的“表操作”。示例性地,用户通过点选图标421,来选择了“增加表操作”。进一步地,终端设备103可以为用户提供菜单430,以要求用户选择需要被增加的“候选数据表”。示例性地,用户通过点选图标431,来选择需要被增加的数据表是“候选数据表A”。相应地,终端设备103,可以(多次)执行步骤S403,(连续地)将用户配置的目标表操作,通信至服务器105,以使得服务器105能够基于针对至少一个目标节点接收到的操作配置指令,为至少一个目标节点配置对应的目标表操作。For example, the user configures the target table operation by using the node 411 as the target node through the interface 103-a (for example, the terminal device 103 can use different presentation styles to reflect the node selected by the user and currently performing the configuration) . The user can click on node 411 to request that target table operations be configured for it. Correspondingly, the terminal device 103 can present to the user multiple table operations provided by the server 105 and configured in the node 411 for the user to select. For example, the terminal device 103 can utilize the menu 420 to present "table operations" that can be selected. For example, the user selects the "add table operation" by clicking icon 421. Further, the terminal device 103 may provide the user with a menu 430 to require the user to select a "candidate data table" that needs to be added. For example, the user selects the data table that needs to be added as "candidate data table A" by clicking icon 431. Correspondingly, the terminal device 103 may execute step S403 (multiple times) and communicate the user-configured target table operation to the server 105 (continuously), so that the server 105 can configure the instruction based on the operation received for at least one target node. , configure the corresponding target table operation for at least one target node.

进一步地,用户可以基于类似的方式,完成对节点412和413的配置,此处不再重复说明。在用户认为完成为节点配置表操作后,用户可以点击控件440,以执行步骤S404来向服务器105发送配置完成指令。Further, the user can complete the configuration of nodes 412 and 413 in a similar manner, and the description will not be repeated here. After the user thinks that the node configuration table operation is completed, the user can click the control 440 to perform step S404 to send a configuration completion instruction to the server 105 .

由此,服务器105可以响应于接收到配置完成指令,基于所有目标节点被配置的目标表操作,生成操作序列。后续最终可以由服务器105封装操作序列,生成用于执行操作序列的业务接口。Thus, the server 105 can generate an operation sequence based on the configured target table operations of all target nodes in response to receiving the configuration completion instruction. Subsequently, the server 105 can finally encapsulate the operation sequence and generate a business interface for executing the operation sequence.

进一步参考图5,作为对上述各图所示方法的实现,本公开提供了一种面向低代码平台的生成业务接口的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。With further reference to Figure 5, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for generating a business interface for a low-code platform. The device embodiment is the same as the method embodiment shown in Figure 2 Correspondingly, the device can be applied in various electronic devices.

如图5所示,本实施例的面向低代码平台的生成业务接口的装置500可以包括:节点呈现单元501、操作配置单元502、序列生成单元503和接口生成单元504。其中,节点呈现单元501,被配置成响应于接收到用户发送的业务接口生成请求,为用户呈现一组节点,其中,一组节点中的节点用于配置针对预先配置的一组数据表中至少部分的数据表的表操作,表操作包括针对一组数据表中至少一个数据表执行的增加表操作、读取表操作、更新表操作和删除表操作中的至少一项;操作配置单元502,被配置成基于针对至少一个目标节点接收到的操作配置指令,为至少一个目标节点配置对应的目标表操作;序列生成单元503,被配置成响应于接收到配置完成指令,基于所有目标节点被配置的目标表操作,生成操作序列;接口生成单元504,被配置成封装操作序列,生成用于执行操作序列的业务接口。As shown in Figure 5, the device 500 for generating a business interface for a low-code platform in this embodiment may include: a node presentation unit 501, an operation configuration unit 502, a sequence generation unit 503, and an interface generation unit 504. Wherein, the node presentation unit 501 is configured to respond to receiving a business interface generation request sent by the user and present a set of nodes to the user, wherein the nodes in the set of nodes are used to configure at least one of the preconfigured set of data tables. Table operations for a partial data table, the table operations include at least one of an add table operation, a read table operation, an update table operation and a delete table operation performed on at least one data table in a group of data tables; the operation configuration unit 502, is configured to configure a corresponding target table operation for at least one target node based on an operation configuration instruction received for at least one target node; the sequence generation unit 503 is configured to respond to receiving a configuration completion instruction, based on all target nodes being configured The target table operation generates an operation sequence; the interface generation unit 504 is configured to encapsulate the operation sequence and generate a business interface for executing the operation sequence.

在本实施例中,面向低代码平台的生成业务接口的装置500中:节点呈现单元501、操作配置单元502、序列生成单元503和接口生成单元504的具体处理及其所带来的技术效果可分别参考图2对应实施例中的步骤201-204的相关说明,在此不再赘述。In this embodiment, in the device 500 for generating a business interface for a low-code platform: the specific processing of the node presentation unit 501, the operation configuration unit 502, the sequence generation unit 503 and the interface generation unit 504 and the technical effects thereof can be Refer to the relevant descriptions of steps 201-204 in the corresponding embodiment of FIG. 2 respectively, which will not be described again here.

在本实施例的一些可选的实现方式中,装置500还包括:联动关系接收单元,被配置成接收到针对一组数据表传入的联动描述信息,其中,联动描述信息用于指示第一数据表和第二数据表之间的联动关系;联动操作确定单元,被配置成响应于基于联动描述信息确定第一目标节点处的第一目标表操作指向第一数据表,基于第一目标表操作生成针对第二数据表的联动表操作,其中,联动表操作根据第一目标表操作对第一数据表的表操作,对第二数据表进行联动调整;联动操作配置单元,被配置成为第一目标节点额外配置联动表操作;以及序列生成单元503进一步被配置成,响应于接收到配置完成指令,基于所有目标节点被配置的目标表操作和联动表操作,生成操作序列。In some optional implementations of this embodiment, the device 500 also includes: a linkage relationship receiving unit, configured to receive linkage description information input for a group of data tables, wherein the linkage description information is used to indicate the linkage relationship between the first data table and the second data table; a linkage operation determination unit, configured to generate a linkage table operation for the second data table based on the first target table operation in response to determining that the first target table operation at the first target node points to the first data table based on the linkage description information, wherein the linkage table operation performs linkage adjustment on the second data table according to the table operation of the first target table operation on the first data table; a linkage operation configuration unit, configured to additionally configure a linkage table operation for the first target node; and the sequence generation unit 503 is further configured to generate an operation sequence based on the target table operations and linkage table operations configured for all target nodes in response to receiving a configuration completion instruction.

在本实施例的一些可选的实现方式中,响应于在接收到操作配置指令之前,接收到联动描述信息,装置500还包括:指示标识生成单元,被配置成生成用于指示联动关系的指示标识;指示标识呈现单元,被配置成响应于第一数据表基于针对至少一个目标节点的查询指示被呈现,与第一数据表相关联地呈现指示标识。In some optional implementations of this embodiment, in response to receiving the linkage description information before receiving the operation configuration instruction, the device 500 further includes: an indication identification generating unit configured to generate an indication for indicating the linkage relationship. Identity; an indication identification presentation unit configured to, in response to the first data table being presented based on a query indication for at least one target node, present the indication identification in association with the first data table.

在本实施例的一些可选的实现方式中,装置500还包括:候选数据表呈现单元,被配置成响应于针对一组节点中至少一个目标节点接收到查询指示,与至少一个目标节点相关联地呈现一组候选数据表。In some optional implementations of this embodiment, the apparatus 500 further includes: a candidate data table presentation unit configured to, in response to receiving a query indication for at least one target node in a group of nodes, associate with the at least one target node. Presents a set of candidate data tables.

在本实施例的一些可选的实现方式中,响应于操作配置指令指示在第二目标节点处,基于一组数据表中的第三数据表执行增加表操作,装置500还包括:参数获取单元,被配置成响应于第二数据表包括非空字段,与第二目标节点相关联地呈现用于获取非空字段的内容的参数获取窗口。In some optional implementations of this embodiment, in response to the operation configuration instruction indicating that at the second target node, the add table operation is performed based on the third data table in the set of data tables, the device 500 further includes: a parameter acquisition unit , configured to, in response to the second data table including a non-null field, present a parameter acquisition window associated with the second target node for obtaining the content of the non-null field.

在本实施例的一些可选的实现方式中,响应于操作配置指令指示在第三目标节点处,基于更新字段值对包括更新字段名称的待更新数据表执行更新表操作,在第三节点处被配置的目标表操作包括:获取的待更新数据表;利用更新字段值,对待更新数据表中对应更新字段名称部分的内容进行更新。In some optional implementations of this embodiment, in response to the operation configuration instruction indicating that at the third target node, an update table operation is performed on the data table to be updated including the update field name based on the update field value, at the third node The configured target table operations include: obtaining the data table to be updated; using the update field value to update the content corresponding to the updated field name in the data table to be updated.

在本实施例的一些可选的实现方式中,响应于操作配置指令指示在第四目标节点处,执行读取表操作,读取表包括基于呈现排序策略,呈现包括查询字段的一组目标数据表,在第四目标节点处被配置的目标表操作包括:基于查询字段确定一组目标数据表;基于呈现排序策略,对一组目标数据表进行排序,得到排序结果;呈现排序结果。In some optional implementations of the present embodiment, in response to an operation configuration instruction indicating that a read table operation is performed at the fourth target node, the read table includes presenting a group of target data tables including query fields based on a presentation sorting strategy, and the target table operation configured at the fourth target node includes: determining a group of target data tables based on the query fields; sorting a group of target data tables based on the presentation sorting strategy to obtain a sorting result; and presenting the sorting result.

在本实施例的一些可选的实现方式中,响应于操作配置指令指示在第五目标节点处,对包括目标字段的已有数据表执行删除表操作,已有数据表包括基于第五目标节点之前的其他节点被添加的数据表,在第五目标节点处被配置的目标表操作包括:删除已有数据表。In some optional implementations of this embodiment, in response to the operation configuration instruction indicating that at the fifth target node, a delete table operation is performed on an existing data table including a target field, and the existing data table includes a table based on the fifth target node. For data tables that were added to other nodes before, the target table operations configured at the fifth target node include: deleting existing data tables.

在本实施例的一些可选的实现方式中,节点呈现单元进一步被配置成,响应于接收到业务接口生成请求,对应一组节点中各个节点的操作执行顺序,顺序地呈现各个节点。In some optional implementations of this embodiment, the node presentation unit is further configured to, in response to receiving a service interface generation request, present each node in sequence corresponding to the operation execution order of each node in a group of nodes.

本实施例作为对应于上述方法实施例的装置实施例存在,本实施例提供的面向低代码平台的生成业务接口的装置,用户可以基于选择节点、为节点配置表操作的方式搭建操作序列,并基于操作序列的封装结果得到业务接口。这样的方式,使得用户在编辑业务接口时,可以基于串接代码模块、代码动作的方式来指示联动、连续地实现一系列的表操作,能够简单、便利地实现包括复杂、多步骤的执行步骤的业务接口。由此,能够降低面向低代码平台的生成业务接口难度,并提高面向低代码平台的生成业务接口效率。This embodiment exists as a device embodiment corresponding to the above method embodiment. This embodiment provides a device for generating a business interface for a low-code platform. The user can build an operation sequence based on selecting nodes and configuring table operations for the nodes, and The business interface is obtained based on the encapsulation result of the operation sequence. In this way, when editing the business interface, users can instruct linkage and continuously implement a series of table operations based on concatenating code modules and code actions, and can easily and conveniently implement complex and multi-step execution steps. business interface. This can reduce the difficulty of generating business interfaces for low-code platforms and improve the efficiency of generating business interfaces for low-code platforms.

根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

图6示出了可以用来实施本公开的实施例的示例电子设备600的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。Figure 6 shows a schematic block diagram of an example electronic device 600 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to refer to various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are examples only and are not intended to limit implementations of the disclosure described and/or claimed herein.

如图6所示,设备600包括计算单元601,其可以根据存储在只读存储器(ROM)602中的计算机程序或者从存储单元608加载到随机访问存储器(RAM)603中的计算机程序,来执行各种适当的动作和处理。在RAM 603中,还可存储设备600操作所需的各种程序和数据。计算单元601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in Figure 6, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to the bus 604.

设备600中的多个部件连接至I/O接口605,包括:输入单元606,例如键盘、鼠标等;输出单元607,例如各种类型的显示器、扬声器等;存储单元608,例如磁盘、光盘等;以及通信单元609,例如网卡、调制解调器、无线通信收发机等。通信单元609允许设备600通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in device 600 are connected to I/O interface 605, including: input unit 606, such as keyboard, mouse, etc.; output unit 607, such as various types of displays, speakers, etc.; storage unit 608, such as magnetic disk, optical disk, etc. ; and communication unit 609, such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices through computer networks such as the Internet and/or various telecommunications networks.

计算单元601可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元601的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元601执行上文所描述的各个方法和处理,例如面向低代码平台的生成业务接口的方法。例如,在一些实施例中,面向低代码平台的生成业务接口的方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元608。在一些实施例中,计算机程序的部分或者全部可以经由ROM 602和/或通信单元609而被载入和/或安装到设备600上。当计算机程序加载到RAM 603并由计算单元601执行时,可以执行上文描述的面向低代码平台的生成业务接口的方法的一个或多个步骤。备选地,在其他实施例中,计算单元601可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行面向低代码平台的生成业务接口的方法。The computing unit 601 may be a variety of general and/or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as a method for generating a business interface for a low-code platform. For example, in some embodiments, the method for generating a business interface for a low-code platform may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed on the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method for generating a business interface for a low-code platform described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured in any other appropriate manner (eg, by means of firmware) to execute the method of generating a business interface for a low-code platform.

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above may be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip implemented in a system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or a combination thereof. These various embodiments may include implementation in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor The processor, which may be a special purpose or general purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device. An output device.

用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions/operations specified in the flow chart and/or block diagram. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of this disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, laptop disks, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and may be provided in any form, including Acoustic input, voice input or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., A user's computer having a graphical user interface or web browser through which the user can interact with implementations of the systems and technologies described herein), or including such backend components, middleware components, or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communications network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决传统物理主机与虚拟专用服务器(VPS,Virtual Private Server)服务中存在的管理难度大,业务扩展性弱的缺陷。服务器也可以分为分布式系统的服务器,或者是结合了区块链的服务器。Computer systems may include clients and servers. Clients and servers are generally remote from each other and typically interact over a communications network. The relationship of client and server is created by computer programs running on corresponding computers and having a client-server relationship with each other. The server can be a cloud server, also known as cloud computing server or cloud host. It is a host product in the cloud computing service system to solve the management difficulties existing in traditional physical host and virtual private server (VPS) services. Large, weak business scalability. Servers can also be divided into distributed system servers or servers combined with blockchain.

根据本公开实施例的技术方案,用户可以基于选择节点、为节点配置表操作的方式搭建操作序列,并基于操作序列的封装结果得到业务接口。这样的方式,使得用户在编辑业务接口时,可以基于串接代码模块、代码动作的方式来指示联动、连续地实现一系列的表操作,能够简单、便利地实现包括复杂、多步骤的执行步骤的业务接口。由此,能够降低面向低代码平台的生成业务接口难度,并提高面向低代码平台的生成业务接口效率。According to the technical solutions of the embodiments of the present disclosure, users can build an operation sequence by selecting nodes, configuring table operations for nodes, and obtain a business interface based on the encapsulation results of the operation sequence. In this way, when editing the business interface, users can instruct linkage and continuously implement a series of table operations based on concatenating code modules and code actions, and can easily and conveniently implement complex and multi-step execution steps. business interface. This can reduce the difficulty of generating business interfaces for low-code platforms and improve the efficiency of generating business interfaces for low-code platforms.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开提供的技术方案所期望的结果,本文在此不进行限制。It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions provided by this disclosure can be achieved, and this document does not limit this.

上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the scope of the present disclosure. It will be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions are possible depending on design requirements and other factors. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this disclosure shall be included in the protection scope of this disclosure.

Claims (21)

CN202311744575.XA2023-12-182023-12-18 Methods and related devices for generating business interfaces for low-code platformsPendingCN117785164A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202311744575.XACN117785164A (en)2023-12-182023-12-18 Methods and related devices for generating business interfaces for low-code platforms

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202311744575.XACN117785164A (en)2023-12-182023-12-18 Methods and related devices for generating business interfaces for low-code platforms

Publications (1)

Publication NumberPublication Date
CN117785164Atrue CN117785164A (en)2024-03-29

Family

ID=90393751

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202311744575.XAPendingCN117785164A (en)2023-12-182023-12-18 Methods and related devices for generating business interfaces for low-code platforms

Country Status (1)

CountryLink
CN (1)CN117785164A (en)

Similar Documents

PublicationPublication DateTitle
US10831453B2 (en)Connectors framework
US11036754B2 (en)Database table conversion
US20210208854A1 (en)System and method for enhancing component based development models with auto-wiring
EP3907631B1 (en)Applet processing method and apparatus, device and storage medium
CN112015468B (en)Interface document processing method and device, electronic equipment and storage medium
US20220092116A1 (en)Automatic graph database query construction and execution
WO2019153514A1 (en)Service system dynamic generation method and apparatus, computer device, and storage medium
CN114742981A (en)Post-processing special effect manufacturing system and method, AR special effect rendering method and device
CN114721643A (en)Construction method of application program, display method, device and equipment of application page
US20190171989A1 (en)Dynamic Workflow Control Based on Database Logic
CN115033233A (en)Interface calling method and device, electronic equipment and storage medium
CN112947916B (en)Method, apparatus, device and storage medium for implementing online canvas
CN114692055A (en) Form processing method, device, storage medium and electronic device
CN111177558B (en)Channel service construction method and device
CN113312052A (en)Component calling method and device, electronic equipment and storage medium
CN113190451A (en)Test method, test device, electronic equipment and storage medium
CN111708536A (en) Method, device and readable storage medium for page building based on component configuration
CN117785164A (en) Methods and related devices for generating business interfaces for low-code platforms
CN115033634B (en) Data collection method, device, electronic device and medium
CN112287021B (en)Method and device for generating and synchronizing real-time data synchronization parameters, storage medium and terminal
CN115422298A (en) Interface information synchronization method, device, computer equipment and storage medium
CN114281332A (en) Visual page development method, device, equipment and medium
CN113806596A (en)Operation data management method and related device
US20250156783A1 (en)Techniques for generating workflows using an llm-based system
US20240220708A1 (en)Method for data display, storage medium, and electronic device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp