设置账号用途
指定哪个账号专门用来拍单。拍单账号只能有一个,切换时原账号会自动取消。
| 请求方式 | POST |
| 接口路径 | /api/shop/kfzSnap/accountSetType |
| Content-Type | application/json |
| 鉴权 | X-Nideshop-Token |
请求体字段
| 字段 | 类型 | 必填 | 说明 |
phone | String | 是 | - |
accountType | 对象 | 是 | - |
curl 调用
curl -s 'https://www.8shu8.com/api/shop/kfzSnap/accountSetType' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"phone": "string",
"accountType": "..."
}'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"phone": "string",
"accountType": "...",
"accountTypeName": "string",
"addTime": "string",
"loggedIn": true,
"bindShopId": 1,
"bindShopName": "string",
"pwd": "string"
}
}
返回字段(data)
| 字段 | 类型 | 说明 |
phone | String | - |
accountType | 对象 | - |
accountTypeName | String | - |
addTime | LocalDateTime | - |
loggedIn | boolean | token 是否非空 |
bindShopId | Integer | 绑定的孔网店铺 |
bindShopName | String | - |
pwd | String | 已保存的孔网登录密码(用于重新登录回填) |