0e42e96ddb
新增 admin 模块接口文档(auth login/me、admins CRUD、audit-logs、feedback 处理、stats 概览、user coins/detail/status、wallet 流水、withdraw 对账/刷新/列表) + admin_user/admin_audit_log 两张表文档,更新 api/database README 索引。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: OuYingJun1024 <1034284404@qq.com> Reviewed-on: #12 Co-authored-by: ouzhou <ouzhou@wonderable.ai> Co-committed-by: ouzhou <ouzhou@wonderable.ai>
812 B
812 B
GET /admin/api/auth/me — 当前管理员
所属:Admin·Auth 组(前缀
/admin/api/auth) | 鉴权:Bearer admin_token(角色:任意已登录 admin) | ← 返回 API 索引
入参
无(身份取自 Header token)
出参
响应 200:AdminOut
| 字段 | 类型 | 说明 |
|---|---|---|
id |
int | 管理员 id |
username |
string | 账号 |
role |
string | 角色:super_admin / finance / operator |
status |
string | 状态:active / disabled |
created_at |
datetime | 创建时间(UTC) |
last_login_at |
datetime | null | 上次登录时间,从未登录为 null |
错误码
401未带 admin token / token 无效或过期 /typ非 admin / 管理员不存在或被禁用(响应头带WWW-Authenticate: Bearer)
说明
无