File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
springboot-example/src/main/java/com/codingapi/springboot/example Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111public 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments