Skip to content

添加员工 API

PathMethodCreated At
/api/accounts/employees/addPOST2025-11-29 00:39:11

Request

KeyRuleDescription
namestring,max:32员工姓名必须是字符串,且长度不能超过32个字符
emailemail:rfc,dns邮箱格式不正确
phoneregex:/^1[3-9]\d{9}$/手机号格式不正确
genderin:MALE,FEMALE性别选择错误
department_idsarray,min:1必须选择至少一个部门
department_ids.*integer,min:0部门不存在
position_idinteger,min:0岗位不存在
usernamestring,min:2,max:32用户名长度必须在 2 到 32 个字符之间
passwordApp\Rules\PasswordRule请设置更为强壮的密码

Response

KeyTypeExampleComment