Skip to content

Commit 04ebb30

Browse files
committed
fix example
1 parent a4db305 commit 04ebb30

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

example-restapi/src/main/java/com/codingapi/example/query/FastDemoApi.java

+4-12
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,11 @@ public interface FastDemoApi {
1515
@PreAuthorize(value = "hasRole('ROLE_ADMIN')")
1616
@FastMapping(
1717
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);
2222

2323

2424

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-
3325
}

0 commit comments

Comments
 (0)