Appearance
修改活动记录 API
| Path | Method | Created At |
|---|---|---|
| /api/customers/visits/{customerId}/ | PUT | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|---|---|
| id | string,size:24 | 活动记录不存在 |
| customerId | string,size:24 | 客户不存在 |
| title | string,max:255 | 标题不能为空,必须再255个字符以内 |
| participants | array,min:1 | 至少有一个参与人 |
| source | in:CUSTOMER,BO | 来源字段错误 |
| contents | required_if:source,CUSTOMER,string,max:2000 | 内容不能为空,必须再2000个字符以内 |
| expenses | required_if:source,CUSTOMER,decimal:0,2,min:0.0000 | 费用不能为空, 小数点保留两位 |
| feedback | required_if:source,CUSTOMER,string,max:255 | 客户反馈不能为空,必须再255个字符以内 |
| type | required_if:source,CUSTOMER,in:SALES,PRE_SALES,AFTER_SALES,JOINT,BUSINESS_VISIT,OTHER | 活动类型不能为空 |
| bo_id | string,size:24 | 商机不存在 |
| outcome | required_if:source,BO,string,max:2000 | 成果不能为空, 不能超过 2000 个字符 |
| problem | required_if:source,BO,string,max:2000 | 问题不能为空, 不能超过 2000 个字符 |
| action_items | required_if:source,BO,string,max:2000 | 下一步共奏不能为空, 不能超过 2000 个字符 |
| project_stage | required_if:source,BO,string | 项目阶段不存在 |
Response
| Key | Type | Example | Comment |
|---|