Files
HAOVP/backend/API_TEST_RESULTS_auth_user.json
T

246 lines
5.3 KiB
JSON

{
"generatedAt": "2026-04-18T16:00:30",
"users": [
"uabe2d2951",
"ub5af3642a"
],
"ids": {
"userA": 10,
"userB": 11
},
"results": [
{
"method": "POST",
"path": "/auth/login",
"status": "PASSED",
"http": 400,
"apiCode": null,
"note": "无验证码登录应被拦截"
},
{
"method": "POST",
"path": "/auth/register",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "用户A注册"
},
{
"method": "POST",
"path": "/auth/login",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "用户A登录"
},
{
"method": "GET",
"path": "/auth/current",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "当前用户"
},
{
"method": "POST",
"path": "/auth/refresh",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "刷新令牌"
},
{
"method": "GET",
"path": "/auth/username/{userId}",
"status": "PASSED",
"http": 200,
"apiCode": null,
"note": "根据ID获取用户名(公开放行后通过)"
},
{
"method": "GET",
"path": "/user/profile/current",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "当前资料"
},
{
"method": "GET",
"path": "/user/profile/public/{userId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "公开资料(公开路由修复后通过)"
},
{
"method": "PUT",
"path": "/user/profile",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "更新资料"
},
{
"method": "GET",
"path": "/user/profile/search",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "搜索用户(公开路由修复后通过)"
},
{
"method": "GET",
"path": "/user/setting",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "获取设置"
},
{
"method": "PUT",
"path": "/user/setting",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "更新设置"
},
{
"method": "POST",
"path": "/user/follow/{followId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "B关注A"
},
{
"method": "GET",
"path": "/user/follow/check/{followId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "检查关注"
},
{
"method": "GET",
"path": "/user/follow/following/{userId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "关注列表(公开路由修复后通过)"
},
{
"method": "GET",
"path": "/user/follow/followers/{userId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "粉丝列表(公开路由修复后通过)"
},
{
"method": "GET",
"path": "/user/notification/list",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "通知列表"
},
{
"method": "GET",
"path": "/user/notification/unread/count",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "未读通知"
},
{
"method": "PUT",
"path": "/user/notification/read",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "全部通知已读"
},
{
"method": "POST",
"path": "/user/message",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "发送私信"
},
{
"method": "GET",
"path": "/user/message/list",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "会话列表"
},
{
"method": "GET",
"path": "/user/message/detail/{targetId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "会话详情"
},
{
"method": "GET",
"path": "/user/message/unread/count",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "未读私信数"
},
{
"method": "PUT",
"path": "/user/message/read/{senderId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "私信已读"
},
{
"method": "POST",
"path": "/auth/logout",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "登出"
},
{
"method": "DELETE",
"path": "/user/follow/{followId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "取消关注"
},
{
"method": "GET",
"path": "/auth/admin/login/stats",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "认证登录统计(内部接口直连通过)"
},
{
"method": "PUT",
"path": "/auth/admin/reset-password/{userId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "内部重置用户密码(恢复为原密码)"
},
{
"method": "PUT",
"path": "/auth/admin/lock/{userId}/{locked}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "内部锁定/解锁用户(双向均通过)"
}
]
}