docs(test): Add API acceptance results and batch scripts

This commit is contained in:
2026-04-18 18:23:20 +08:00
parent 6dfd828fe5
commit 9ac4c40d1d
8 changed files with 2371 additions and 0 deletions
+193
View File
@@ -0,0 +1,193 @@
{
"generatedAt": "2026-04-18T16:00:30",
"ids": {
"userA": 10,
"userB": 11
},
"results": [
{
"method": "POST",
"path": "/admin/auth/login",
"status": "PASSED",
"http": 403,
"apiCode": null,
"note": "后台无验证码登录应被拦截"
},
{
"method": "POST",
"path": "/admin/auth/login",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台登录"
},
{
"method": "GET",
"path": "/admin/auth/info",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "管理员信息"
},
{
"method": "GET",
"path": "/admin/platform/user/list",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台用户列表"
},
{
"method": "GET",
"path": "/admin/platform/user/{userId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台用户详情"
},
{
"method": "PUT",
"path": "/admin/platform/user/{userId}/status/{status}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台禁用用户"
},
{
"method": "POST",
"path": "/auth/login",
"status": "PASSED",
"http": 200,
"apiCode": 403,
"note": "禁用用户登录被拦截"
},
{
"method": "PUT",
"path": "/admin/platform/user/{userId}/status/{status}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台启用用户"
},
{
"method": "PUT",
"path": "/admin/platform/user/{userId}/reset-password",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台重置密码"
},
{
"method": "POST",
"path": "/auth/login",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "重置密码后登录"
},
{
"method": "GET",
"path": "/admin/platform/content/category/list",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台分类列表"
},
{
"method": "POST",
"path": "/admin/platform/content/category",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台添加分类"
},
{
"method": "PUT",
"path": "/admin/platform/content/category",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台更新分类"
},
{
"method": "DELETE",
"path": "/admin/platform/content/category/{categoryId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台删除分类"
},
{
"method": "GET",
"path": "/admin/platform/comment/list",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台评论列表"
},
{
"method": "GET",
"path": "/admin/platform/comment/stats",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台评论统计"
},
{
"method": "GET",
"path": "/admin/platform/comment/{commentId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台评论详情(commentId=10)"
},
{
"method": "GET",
"path": "/admin/platform/content/video/list",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台视频列表"
},
{
"method": "GET",
"path": "/admin/platform/content/video/{videoId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台视频详情(videoId=17)"
},
{
"method": "PUT",
"path": "/admin/platform/content/video/disable/{videoId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台下架视频(videoId=17,已复原)"
},
{
"method": "GET",
"path": "/admin/dashboard/stats",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台仪表盘"
},
{
"method": "POST",
"path": "/admin/platform/content/video/review/{videoId}",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台审核视频(videoId=17)"
},
{
"method": "POST",
"path": "/admin/auth/logout",
"status": "PASSED",
"http": 200,
"apiCode": 200,
"note": "后台退出登录"
}
]
}