Skip to content

接口描述

切换业务

请求路径

POST /v1/platform/migrate/Customer

请求参数

名称类型位置必须描述
Authorizationstringheader鉴权 token
nodeIDstringbody节点 ID
customerIDs[]MigrateCustomerbody业务方部署信息
createAtint64body业务切换时间(毫秒)

返回值

名称类型描述
nodeIDstring节点id
IsReDeploybool业务部署是否重复

MigrateCustomer

名称类型描述
customerIDuint32业务方ID
businessIDstring节点业务ID

请求示例

json
{
    "nodeID": "ggfasfasf5da6a804f409a7bdca8484654",
    "createAt": 4556456,
    "customerIDs": [
        {
            "customerID": 16504,
            "businessID": "gdfgdgdsgdsg"
        }
    ]
}

## 返回值示例
``` json
正常请求:
  http code 200
{
  "nodeID": "fdsfhfdsf8yt89ewhireg",
  "IsReDeploy": true
}

异常请求:
  http code 4xx/5xx
{
  "code": 4000001,
  "desc": ""
}

错误码列表

错误码描述
401鉴权失败

如接口返回错误码未列举,可在错误码总览中查找