This commit is contained in:
wanghu
2026-09-02 09:38:45 +08:00
commit 8774b6cc44
128 changed files with 9382 additions and 0 deletions
@@ -0,0 +1,24 @@
{
"desc": "业务失败信封样例(与 Java 端对拍):HTTP 200 + code≠0,data 原样携带;客户端必须抛 DException(code,msg,data)",
"cases": [
{
"name": "code=4 未登录/登录过期",
"httpStatus": 200,
"envelope": { "code": 4, "msg": "登录已经过期,请重新登录", "data": null }
},
{
"name": "code=5 业务校验失败(组下有子组/用户,拒绝删除)",
"httpStatus": 200,
"envelope": {
"code": 5,
"msg": "组下存在子组或用户,禁止删除",
"data": { "groupId": 9, "childGroups": 2, "users": 35 }
}
},
{
"name": "code=5 身份切换:非白名单 appKey",
"httpStatus": 200,
"envelope": { "code": 5, "msg": "当前应用无权切换身份", "data": null }
}
]
}