docs: document captcha and permission APIs
This commit is contained in:
@@ -21,6 +21,7 @@ src/
|
||||
│ ├─ documents.ts
|
||||
│ ├─ reports.ts
|
||||
│ ├─ users.ts
|
||||
│ ├─ permissions.ts
|
||||
│ ├─ document-permissions.ts
|
||||
│ ├─ settings.ts
|
||||
│ └─ types.ts
|
||||
|
||||
@@ -125,6 +125,7 @@ API 模块与页面按业务域对应。工作台页面使用 `api/workbench`
|
||||
- `api/management/reports.ts`
|
||||
- `api/management/users.ts`
|
||||
- `api/management/roles.ts`
|
||||
- `api/management/permissions.ts`
|
||||
- `api/management/organization.ts`
|
||||
- `api/management/document-permissions.ts`
|
||||
- `api/management/audit.ts`
|
||||
@@ -133,6 +134,7 @@ API 模块与页面按业务域对应。工作台页面使用 `api/workbench`
|
||||
所有接口统一使用 `utils/request.ts` 导出的单例请求实例。登录接口已接入 MEDISIGN 后端:
|
||||
|
||||
- `POST /api/v1/auth/login`:账号密码登录;
|
||||
- `GET /api/v1/auth/captcha`:获取按需启用的图形验证码;
|
||||
- `GET /api/v1/auth/me`:查询当前用户;
|
||||
- `POST /api/v1/auth/logout`:注销当前会话;
|
||||
- 后续请求自动携带 `X-Token` 请求头。
|
||||
@@ -155,6 +157,7 @@ API 模块与页面按业务域对应。工作台页面使用 `api/workbench`
|
||||
- `GET/POST /api/v1/templates`、`GET /api/v1/templates/{id}`:模板列表、详情;
|
||||
- `GET/POST /api/v1/templates/{id}/versions`、版本工作流接口:版本查询、创建、送审、驳回、通过、发布、停用、归档;
|
||||
- `GET /api/v1/users`、`GET /api/v1/roles`、`GET /api/v1/campuses`、`GET /api/v1/departments`:用户页真实查询及组织字典;
|
||||
- `GET/POST/PUT/DELETE /api/v1/permissions`:API 权限分页查询、详情、新增、修改和停用;
|
||||
- `GET/POST/DELETE /api/v1/templates/{id}/permissions`:按模板查询和维护文档权限;
|
||||
- `GET /api/v1/audit-logs`:全局审计日志查询 API。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user