Skip to content

Commit 48df7dc

Browse files
committed
fix mapping #16
1 parent d627f8b commit 48df7dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

springboot-example/src/main/java/com/codingapi/springboot/example/infrastructure/query/FastDemoApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
public interface FastDemoApi {
1212

1313
@FastMapping(method = RequestMethod.GET,
14-
mapping = "/open/fast/demo/findAll",
14+
mapping = "/open/demo/findByName",
1515
hql = "select d from DemoEntity d where name = :name",
1616
countHql = "select count(d) from DemoEntity d where name = :name")
17-
MultiResponse<DemoEntity> findAll(DemoDTO.DemoQuery query);
17+
MultiResponse<DemoEntity> findByName(DemoDTO.DemoQuery query);
1818

1919
}

springboot-example/src/main/java/com/codingapi/springboot/example/ui/controller/OpenController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public Response save(@RequestParam("name") String name){
2727
return Response.buildSuccess();
2828
}
2929

30-
@GetMapping("/list")
31-
public MultiResponse<DemoEntity> list(PageRequest pageRequest){
30+
@GetMapping("/findAll")
31+
public MultiResponse<DemoEntity> findAll(PageRequest pageRequest){
3232
return MultiResponse.of(demoEntityRepository.findAll(pageRequest));
3333
}
3434
}

0 commit comments

Comments
 (0)