This commit is contained in:
“shengyudong”
2026-01-06 14:18:39 +08:00
commit 5a384b694e
10345 changed files with 2050918 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
endpoint,method,description,auth,params,response
/api/employees/list,GET,获取员工列表(分页查询),需要认证,"page, pageSize, keyword, status, isBoundXHS",返回员工列表(含姓名、手机、角色、绑定状态等)
/api/employees/stats,GET,获取员工统计(总数、激活数、绑定小红书数),需要认证,,"返回员工统计数据total_count, active_count, bound_xhs_count"
/api/employees/add,POST,添加员工,需要认证+角色(enterprise),"name, phone, password, role, department",返回新创建的员工ID
/api/employees/<employee_id>,DELETE,删除员工(软删除),需要认证+角色(enterprise),employee_id (路径参数),返回删除成功消息
1 endpoint method description auth params response
2 /api/employees/list GET 获取员工列表(分页查询) 需要认证 page, pageSize, keyword, status, isBoundXHS 返回员工列表(含姓名、手机、角色、绑定状态等)
3 /api/employees/stats GET 获取员工统计(总数、激活数、绑定小红书数) 需要认证 返回员工统计数据(total_count, active_count, bound_xhs_count)
4 /api/employees/add POST 添加员工 需要认证+角色(enterprise) name, phone, password, role, department 返回新创建的员工ID
5 /api/employees/<employee_id> DELETE 删除员工(软删除) 需要认证+角色(enterprise) employee_id (路径参数) 返回删除成功消息