Appearance
编辑客户信息 API
| Path | Method | Created At |
|---|---|---|
| /api/customers/ | PUT | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|---|---|
| name | string,max:64 | 客户名称不能为空,不能超过64个字符 |
| manager_id | integer,min:0 | 负责人不存在 |
| description | string,max:255 | 描述不能超过255个字符 |
| industry_id | integer,min:0 | 行业不存在 |
| area_code | 区域不存在 | |
| level_id | integer,min:0 | 客户等级不存在 |
| address | string,max:255 | 地址不能超过255个字符 |
| department_id | integer,min:0 | 部门不存在 |
| partner_relationship | in:intimacy,recognized,loose,breakthrough,communicating,target | 合作关系字段错误 |
| type | string,in:CLIENT,TARGET_CUSTOMER,PROSPECT | 客户类型不正确 |
| followers | array,min:0 | 关注者错误 |
| from | string,in:channel,customer | 来源字段错误 |
| advantageous_industry | string,max:32 | 优势行业不能超过255个字符 |
| credit_situation | string,max:32 | 信用情况不能超过255个字符 |
Response
| Key | Type | Example | Comment |
|---|---|---|---|
| code | int | 0 | 编号:0表示成功,非0表示错误 |
| message | string | success | 成功为 success, 失败则错误消息 |
TypeScript Result Example:
TypeScript
interface Result {
/** 编号:0表示成功,非0表示错误 */
code: number;
/** 成功为 success, 失败则错误消息 */
message: string;
}