Appearance
添加员工 API
| Path | Method | Created At |
|---|---|---|
| /api/accounts/employees/add | POST | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|---|---|
| name | string,max:32 | 员工姓名必须是字符串,且长度不能超过32个字符 |
| email:rfc,dns | 邮箱格式不正确 | |
| phone | regex:/^1[3-9]\d{9}$/ | 手机号格式不正确 |
| gender | in:MALE,FEMALE | 性别选择错误 |
| department_ids | array,min:1 | 必须选择至少一个部门 |
| department_ids.* | integer,min:0 | 部门不存在 |
| position_id | integer,min:0 | 岗位不存在 |
| username | string,min:2,max:32 | 用户名长度必须在 2 到 32 个字符之间 |
| password | App\Rules\PasswordRule | 请设置更为强壮的密码 |
Response
| Key | Type | Example | Comment |
|---|