Files
TJWaterServerBinary/.github/skills/business/identity-access/SKILL.md
T
2026-03-27 13:05:22 +08:00

52 lines
1.5 KiB
Markdown
Raw 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.
---
name: api-operations-business-identity-access
description: 认证、授权与用户管理接口集合。
version: 2.1.0
---
# 何时使用
当需求落在 **business/identity-access** 的接口范围时使用本技能。
# 输入要求
- 可选:`BASE_URL`(默认 `http://127.0.0.1:8000`
- 可选:`AUTH_TOKEN`(按环境鉴权策略)
- 覆盖方法:`DELETE`, `GET`, `POST`, `PUT`
# Action Skills
- `auth`: `auth/SKILL.md`
- `user_management`: `user_management/SKILL.md`
- `users`: `users/SKILL.md`
# 操作目录(Domain -> Scenario -> Action
## Action: `auth`
- 详情技能:`auth/SKILL.md`
- `POST /api/v1/auth/login` - login
- `POST /api/v1/auth/login/simple` - login_simple
- `GET /api/v1/auth/me` - get_current_user_info
- `POST /api/v1/auth/refresh` - refresh_token
- `POST /api/v1/auth/register` - register
## Action: `user_management`
- 详情技能:`user_management/SKILL.md`
- `GET /api/v1/users/` - 列出所有用户
- `DELETE /api/v1/users/{user_id}` - 删除用户
- `GET /api/v1/users/{user_id}` - 获取用户详情
- `PUT /api/v1/users/{user_id}` - 更新用户信息
- `POST /api/v1/users/{user_id}/activate` - 激活用户
- `POST /api/v1/users/{user_id}/deactivate` - 停用用户
## Action: `users`
- 详情技能:`users/SKILL.md`
- `GET /api/v1/getallusers/` - 获取所有用户
- `GET /api/v1/getuser/` - 获取单个用户
- `GET /api/v1/getuserschema/` - 获取用户模式
# See Also
- 关联平台治理: `../../platform/governance-observability`
- 关联项目空间: `../project-workspace`