mirror of
https://gitee.com/coder-xiaomo/flashsale
synced 2025-09-12 06:51:38 +08:00
异常处理2
This commit is contained in:
@@ -14,12 +14,12 @@
|
||||
|
||||
### 本次修改通过以下方式查看👇
|
||||
|
||||
> http://localhost:8090/user/get?id=1
|
||||
> http://localhost:8090/user/get?id=2
|
||||
|
||||
预期效果:
|
||||
|
||||
```json
|
||||
{"data":{"id":1,"name":"admin","gender":2,"age":18,"telephone":"110"},"status":"success"}
|
||||
{"data":{"errCode":10002,"errMsg":"未知错误"},"status":"fail"}
|
||||
```
|
||||
|
||||
### 层次结构(以User为例,自上向下)
|
||||
|
Reference in New Issue
Block a user