Skip to content

Commit d9b192a

Browse files
committed
feat: 添加几个测试接口的调用接口
1 parent e9b01d3 commit d9b192a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

example/example_svc/src/main/java/com/github/cadecode/uniboot/example/svc/controller/RpcExampleController.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,16 @@ public String testStr(@RequestParam String str) {
3333
return exampleClient.testStr(str);
3434
}
3535

36+
@ApiOperation("返回异常结果")
37+
@PostMapping("test_result")
38+
public Object testApiResult() {
39+
return exampleClient.testApiResult();
40+
}
41+
42+
@ApiOperation("直接抛出异常")
43+
@PostMapping("test_exception")
44+
public Object testException() {
45+
return exampleClient.testException();
46+
}
47+
3648
}

0 commit comments

Comments
 (0)