Appearance
创建部门联系人 API
| Path | Method | Created At |
|---|---|---|
| /api/customers/departments/create/{customerId}/{departmentId}/employee | POST | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|---|---|
| customerId | string,size:24 | trans:validate.CUSTOMER_NOT_FOUND |
| name | string,max:32 | 联系人姓名不能超过32个字符 |
| position | string,max:32 | 联系人职位不能超过32个字符 |
| phone | regex:/^1[3-9]\d{9}$/ | 联系人手机号码不正确 |
| relationship | string,max:32 | 客勤关系不能超过32个字符 |
| email:rfc,dns | 联系人邮箱不正确 | |
| primary_index | in:1,2,3,4,5 | 关键指数不能超过32个字符 |
| description | string,max:255 | 联系人描述不能超过255个字符 |
Response
| Key | Type | Example | Comment |
|---|