Files
ai_wht_B/企业接口文档_20251229.csv
“shengyudong” 5a384b694e 2026-1-6
2026-01-06 14:18:39 +08:00

11 lines
1.6 KiB
CSV
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

endpoint,method,description,auth,params,response
/api/enterprises/list,GET,获取企业列表(平台管理员),需要认证+角色(admin/enterprise),"page, pageSize, keyword, status",返回企业列表含企业ID、名称、状态、统计数据等
/api/enterprises/stats,GET,获取企业统计(总数、激活数、禁用数、总用户数等),需要认证+角色(admin/enterprise),,返回企业统计数据
/api/enterprises/info,GET,获取企业信息(企业管理员),需要认证+角色(多种角色),,返回当前企业详细信息
/api/enterprises/create,POST,创建企业(平台管理员),需要认证+角色(admin/enterprise),"name, short_name, phone, password, email",返回新创建的企业ID和企业ID字符串
/api/enterprises/<enterprise_id>,PUT,更新企业信息(平台管理员),需要认证+角色(admin/enterprise),"name, short_name, email, password",返回更新成功消息
/api/enterprises/info,PUT,更新企业信息(企业管理员),需要认证+角色(enterprise/admin),"short_name, email",返回更新成功消息
/api/enterprises/change-password,PUT,修改企业密码(企业管理员),需要认证+角色(enterprise),"old_password, new_password",返回密码修改成功消息
/api/enterprises/<enterprise_id>/status,PUT,切换企业状态(平台管理员),需要认证+角色(admin/enterprise),status (active/disabled),返回操作成功消息
/api/enterprises/<enterprise_id>,DELETE,删除企业(平台管理员,物理删除),需要认证+角色(admin/enterprise),enterprise_id (路径参数),返回删除成功消息