文档
测试

获取详情

POST
/business/customer/get/detail

请求头

参数名
类型
描述
必填
Content-Type
string
application/json; charset=utf-8
必填
Authorization
string
授权token,一般为 “Bearer ” + localStorage.token
必填

请求参数

{ "id": 2 }

请求参数-参数说明

参数名
类型
描述
必填
id
number
需要获取的ID
必填

响应参数-成功

{ "code": 200, "msg": "获取成功", "data": { "id": 2, "code": "DM", "name": "某某公司", "address": "米花町二丁目", "tel": "13987654321", "fax": "0755-8316-5344", "account": "VISA", "logistics": "DHL", "pay": "到付", "note": "重要客户", "charge": [ { "id": 4, "person": "张三", "note": "主要担当" }, { "id": 5, "person": "李四", "note": "次要担当" }, { "id": 6, "person": "王五", "note": "不怎么重要的担当" } ], "detail": [ { "id": 4, "department": "业务部", "position": "业务部经理", "person": "小田纯一郎", "mail": "xiaotian@yahoo.com.jp", "phone": "0755-8316-5344", "tel": "13987654321", "address": "东京铁塔附近", "note": "主要联系人" }, { "id": 5, "department": "业务部", "position": "业务员", "person": "小腾优子", "mail": "xiaoteng@yahoo.com.jp", "phone": "0755-8316-5344", "tel": "13987654321", "address": "东京铁塔附近", "note": "次要联系人" }, { "id": 6, "department": "业务部", "position": "业务员", "person": "小仓", "mail": "xiaocan@yahoo.com.jp", "phone": "0755-8316-5344", "tel": "13987654321", "address": "东京铁塔附近", "note": "不怎么重要的联系人" } ] } }

响应参数-成功-参数说明

参数名
类型
描述
必填
code
number
状态码,200表示正确,其它表示有错误,错误信息会通过msg返回
必填
msg
string
获取成功
必填
data
object
请求返回的json数据,详见下级说明
必填
id
number
ID
必填
code
string
客户代码
必填
name
string
客户名称
必填
address
string
客户地址
必填
tel
string
客户电话
必填
fax
string
客户传真
必填
account
string
结算方式
必填
logistic
string
发送方法
必填
pay
string
寄付到付
必填
note
string
备注
必填
charge
Array
每一个客户的担当者,详见下级参数
必填
id
number
ID
必填
person
string
担当者
必填
note
string
备注
必填
detail
Array
每一个客户的联系人,详见下级参数
必填
department
string
客户部门
必填
position
string
职位
必填
person
string
联系人
必填
mail
string
邮箱
必填
phone
string
电话
必填
tel
string
手机
必填
address
string
地址
必填
note
string
备注
必填

响应参数-失败

{ "code": 201, "msg": "获取失败", "data": {} }

响应参数-失败-参数说明

参数名
类型
描述
必填
code
number
状态码,200表示正确,其它表示有错误,错误信息会通过msg返回
必填
msg
string
错误信息
必填
data
object
{}
必填

响应参数-登录验证失败

{ "statusCode": 401, "error": "Unauthorized" }

响应参数-登录验证失败-参数说明

参数名
类型
描述
必填
statusCode
number
401
必填
error
string
Unauthorized
必填