flow - BISTU-CETC/order_system GitHub Wiki
流程接口
获取角色能选择的流程
接口说明
获取角色对应的流程信息,包括流程信息以及流程对应的所有节点。该接口访问不需要任何权限,也不需要登录。
提交地址
get /flows
请求参数
变量定义:
| 字段名 | 类型 | 必输 | 默认值 | 说明 |
|---|---|---|---|---|
| roleId | int | 是 | 用户角色Id |
请求参数示例:
/flows?roleId=6
成功返回
{
"code": 200,
"message": "成功",
"data": [
{
"id": 1,
"createTime": null,
"updateTime": null,
"deleted": null,
"description": "test flow",
"name": "申请GPU",
"flowNodeList": [
{
"id": 1,
"createTime": null,
"updateTime": null,
"deleted": null,
"flowId": 1,
"approverId": 2,
"nodeOrder": 0,
"nextId": 2
},
{
"id": 2,
"createTime": null,
"updateTime": null,
"deleted": null,
"flowId": 1,
"approverId": 2,
"nodeOrder": 1,
"nextId": 3
},
{
"id": 3,
"createTime": null,
"updateTime": null,
"deleted": null,
"flowId": 1,
"approverId": 2,
"nodeOrder": 2,
"nextId": null
}
]
}
]
}