Appearance
添加厂商员工 API
| Path | Method | Created At |
|---|---|---|
| /api/customers/suppliers/employees/ | POST | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|---|---|
| name | string,min:1,max:32 | 姓名不能为空,不能超过32个字符 |
| position | string,max:32 | 职务不能为空, 不能超过32个字符 |
| industry | string,max:32 | 行业不能为空,不能超过32个字符 |
| phone | regex:/^1[3-9]\d{9}$/ | 手机号格式错误 |
| email:rfc,dns | 邮箱格式错误 | |
| relationship | string,max:255 | 客勤关系不能为空,不能超过255个字符 |
| remark | string,max:255 | 备注不能超过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;
}