meta { name: 移交执行 type: http seq: 7 tags: [ generated ] } post { url: {{baseUrl}}/api/system/users/transfer body: formUrlEncoded auth: inherit } body:form-urlencoded { userId: 1001 receiverId: 1002 } docs { # 移交执行 `POST /api/system/users/transfer` 移交执行(全量替换归属+全局快照):全部业务域归属一次性换主,全局快照落 sys_user_transfer_log。 ## 请求参数 | 参数 | 类型 | 必填 | 默认 | 说明 | | --- | --- | --- | --- | --- | | userId | string | 是 | - | 移交方用户 ID | | receiverId | string | 是 | - | 接收人用户 ID | ## 请求示例 请求头:Authorization: Bearer {{token}} Content-Type: application/x-www-form-urlencoded POST /api/system/users/transfer userId=1001&receiverId=1002 ## 响应 data 结构 | 字段 | 类型 | 说明 | | --- | --- | --- | | fromUserId | string | 移交方用户 ID | | toUserId | string | 接收人用户 ID | | domainCounts | array | 各域移交计数(元素结构同移交预览行) | | domainCounts[].domain | string | 域标识 lead/customer/opportunity/project | | domainCounts[].domainName | string | 域展示名(线索/客户/商机/项目) | | domainCounts[].count | long | 该域移交资产数 | | transferTime | string | 移交时间(全局快照落库时间) | ## 响应示例 // 示例数据,字段结构以上表为准,非真实返回 ```json { "code": 0, "success": true, "message": "success", "data": { "fromUserId": "1001", "toUserId": "1002", "domainCounts": [ { "domain": "customer", "domainName": "客户", "count": 12 } ], "transferTime": "2026-09-07 10:00:00" } } ``` }