是否启用审批
POST
/api/tms/dept/flow/config/switchFlows
是否启用审批
请求参数
Body 参数application/json
id
integer <int64>
可选
compId
integer <int64>
企业id
flowName
string
流程名称
deptId
integer <int64>
部门主键ID
isDefault
integer
可选
status
integer
可选
flowType
integer
可选
createTime
string
新建时间
creator
string
创建人
modifyTime
string
更新时间
modifier
string
修改人
travelType
string
出差类型
on
integer
可选
apprvDeptFlowNodes
array[object (TmsApprvDeptFlowNode) {9}]
节点
id
integer <int64>
可选
compId
integer <int64>
企业id
flowId
integer <int64>
可选
nodeName
string
流程节点名称
nodeSeq
integer
流程节点顺序
nodeModel
integer
可选
createTime
string
新建时间
creator
string
创建人
apprvDeptFlowNodePersons
array[object (TmsApprvDeptFlowNodePerson) {12}]
可选
apprvDeptFlowStaffs
array[object (TmsApprvDeptFlowStaff) {5}]
审批人(适用)
id
integer <int64>
可选
compId
integer <int64>
企业id
flowId
integer <int64>
可选
staffId
integer <int64>
可选
staffName
string
可选
示例
{
"flowType": "1",
"costId": "1",
"on": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/tms/dept/flow/config/switchFlows' \
--header 'Content-Type: application/json' \
--data-raw '{
"flowType": "1",
"costId": "1",
"on": 0
}'
返回响应
🟢200成功
application/json
Body
success
boolean
可选
errCode
string
可选
errMsg
string
可选
code
string
可选
message
string
可选
traceId
string
可选
data
string
可选
示例
{
"success": false,
"errCode": "",
"errMsg": "",
"traceId": "",
"data": ""
}
修改于 2025-03-27 10:20:44