Files
yunhai.netcore.tool/BasePlatformDotnet/contract/fixtures/envelope-error.json
T
2026-09-02 09:38:45 +08:00

25 lines
829 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"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 }
}
]
}