# 模板
URL: /%E6%96%87%E6%A1%A3/04.%E5%BC%80%E5%8F%91%E6%96%87%E6%A1%A3/04.%20%E7%89%B9%E5%AE%9A%E5%8A%9F%E8%83%BD/02.%20%E8%90%A5%E9%94%80%E8%87%AA%E5%8A%A8%E5%8C%96/11.%20%E7%BB%84%E4%BB%B6/00.%20%E7%94%BB%E5%B8%83Flow%E6%A8%A1%E6%9D%BF


# 模板

## 功能介绍

介绍功能

> [!warning]
> 注意事项

## 前端界面

通过 MasterGo 生成的界面

## 界面字段（参数）

对界面字段进行说明，并配置到下方的字段参数示例

## 界面功能

在界面上可以完成的功能

## 接口

涉及到的接口

## 元组件

元组件的列表

## 执行流程

包括流程、元组件以及注意事项。

## 组件配置参数示例

```json
{
	// 组件名称
	"name": "短信发送",
	// 组件类型，枚举值：NodeComponent：普通组件；NodeBooleanComponent：布尔组件，以及自定义的一些组件
	"liteFlowType": "NodeComponent",
	// 组件类，对应前端的组件类型也即后端的 class
	"nodeClass": "SmsSendByCrowdId",
	// 组件入参、出参
	"parameters": {
		// 入参
		"input": [
			{
				"name": "人群ID",
				"code": "crowdId",
				"required": true,
				"defaultValue": null
			},
			{
				"name": "其他字段",
				"code": "other",
				"required": false,
				"defaultValue": "default_value"
			}
		],
		// 出参
		"output": [
			{
				"name": "content",
				"required": true
			}
		]
	},
	// 入度和出度的配置，用于前端判断能连几条线，具体可参考转转
	"dimension": {
		// 入度
		"inDegree": 1,
		// 出度
		"outDegree": 2
	},
	// 健康检查
	"healthCheck": {
		// 后端给的方法
		"method": "checkNode1Health"
	},
	// 前置任务
	"preExecution": {
		"tasks": [
			{
				"name": "createRabbitMQQueue",
				"parameters": {}
			}
		]
	},
	// 后置任务
	"postExecution": {
		"tasks": [
			{
				"name": "calculateSuccessRate",
				"parameters": {}
			}
		]
	}
}
```
