File tree 1 file changed +4
-12
lines changed
example-restapi/src/main/java/com/codingapi/example/query
1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,11 @@ public interface FastDemoApi {
15
15
@ PreAuthorize (value = "hasRole('ROLE_ADMIN')" )
16
16
@ FastMapping (
17
17
method = RequestMethod .GET ,
18
- mapping = "/api/demo/findByName1 " ,
19
- value = "select d from DemoEntity d where name = :name" ,
20
- countQuery = "select count(d) from DemoEntity d where name = :name" )
21
- MultiResponse <NodeEntity > findByName1 (SearchRequest request );
18
+ mapping = "/api/node/fastQuery " ,
19
+ value = "select d from NodeEntity d where name = :name" ,
20
+ countQuery = "select count(d) from NodeEntity d where name = :name" )
21
+ MultiResponse <NodeEntity > fastQuery (SearchRequest request );
22
22
23
23
24
24
25
- @ PreAuthorize (value = "hasRole('ROLE_USER')" )
26
- @ FastMapping (
27
- method = RequestMethod .GET ,
28
- mapping = "/api/demo/findByName2" ,
29
- value = "select d from DemoEntity d where name = :name" ,
30
- countQuery = "select count(d) from DemoEntity d where name = :name" )
31
- MultiResponse <NodeEntity > findByName2 (SearchRequest request );
32
-
33
25
}
You can’t perform that action at this time.
0 commit comments