Appearance
获取客户详情 API
| Path | Method | Created At |
|---|---|---|
| /api/customers/{id}/detail | GET | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|
Response
| Key | Type | Example | Comment |
|---|---|---|---|
| id | string | id | 客户ID |
| customerNo | string | 00001 | 客户编号 |
| name | string | 金职院 | 客户名称 |
| description | string | 描述 | 客户描述 |
| from | string | customer | 来源 |
| managerName | string | 张三 | 负责人 |
| managerId | int | 87 | 负责人ID |
| departmentPath | array | [”亚服“, "服务站", "浙江站"] | 所在部门 |
| industry_id | int | 67 | 行业ID |
| industryPath | array | ["政府", "司法", "监狱"] | 行业 |
| area | array | ["浙江省", "杭州市", "西湖区"] | 区域 |
| areaCode | string | ["33", "3305", "330502"] | 所在区域编码 |
| partnerRelationship | string | target | 合作关系 |
| totalTurnover | float | 2324.32 | 总成交额 |
| transactionNumber | int | 1 | 签单数 |
| rank | int | 1 | 排名 |
| levelName | string | 战略级 | 客户级别 |
| type | enum | CustomerType | 客户类型 |
| followers | array | [1, 2, 3] | 关注者 |
| followerNames | object_array | 关注者 | |
| -> id | int | 1 | 用户编号 |
| -> name | string | 张三 | 姓名 |
| createdAt | string | 2021-08-01 12:00:00 | 创建时间 |
| outstandingReceivables | string | 23.00 | 未收款额 |
| retentionMoney | string | 434.99 | 累计质保金 |
| advantageousIndustry | string | 电信 | 优势行业 |
| creditSituation | string | 优秀 | 信用状况 |
TypeScript Result Example:
TypeScript
interface FollowerNames {
/** 用户编号 */
id: number;
/** 姓名 */
name: string;
}
interface Result {
/** 客户ID */
id: string;
/** 客户编号 */
customerNo: string;
/** 客户名称 */
name: string;
/** 客户描述 */
description: string;
/** 来源 */
from: string;
/** 负责人 */
managerName: string;
/** 负责人ID */
managerId: number;
/** 所在部门 */
departmentPath: any;
/** 行业ID */
industry_id: number;
/** 行业 */
industryPath: any;
/** 区域 */
area: any;
/** 所在区域编码 */
areaCode: string;
/** 合作关系 */
partnerRelationship: string;
/** 总成交额 */
totalTurnover: any;
/** 签单数 */
transactionNumber: number;
/** 排名 */
rank: number;
/** 客户级别 */
levelName: string;
/** 客户类型 */
type: ResultType;
/** 关注者 */
followers: any;
/** 关注者 */
followerNames: FollowerNames[];
/** 创建时间 */
createdAt: string;
/** 未收款额 */
outstandingReceivables: string;
/** 累计质保金 */
retentionMoney: string;
/** 优势行业 */
advantageousIndustry: string;
/** 信用状况 */
creditSituation: string;
}
enum ResultType {
/** 正式客户 */
CLIENT = "CLIENT",
/** 目标客户 */
TARGET_CUSTOMER = "TARGET_CUSTOMER",
/** 沟通客户 */
PROSPECT = "PROSPECT"
}Enums
CustomerType
| Const | Description |
|---|---|
| CLIENT | 正式客户 |
| TARGET_CUSTOMER | 目标客户 |
| PROSPECT | 沟通客户 |