6
6
import com .codingapi .springboot .framework .dto .request .PageRequest ;
7
7
import com .codingapi .springboot .framework .dto .response .MultiResponse ;
8
8
import com .codingapi .springboot .framework .dto .response .Response ;
9
- import com .codingapi .springboot .generator .dao .IdKeyDao ;
10
- import com .codingapi .springboot .generator .domain .IdKey ;
11
9
import lombok .AllArgsConstructor ;
12
10
import org .springframework .web .bind .annotation .GetMapping ;
13
11
import org .springframework .web .bind .annotation .RequestMapping ;
14
12
import org .springframework .web .bind .annotation .RequestParam ;
15
13
import org .springframework .web .bind .annotation .RestController ;
16
14
17
- import java .sql .SQLException ;
18
- import java .util .List ;
19
-
20
15
@ RestController
21
16
@ RequestMapping ("/open/demo" )
22
17
@ AllArgsConstructor
@@ -26,8 +21,6 @@ public class OpenController {
26
21
27
22
private final DemoEntityRepository demoEntityRepository ;
28
23
29
- private final IdKeyDao idKeyDao ;
30
-
31
24
@ GetMapping ("/save" )
32
25
public Response save (@ RequestParam ("name" ) String name ) {
33
26
executor .create (name );
@@ -38,18 +31,4 @@ public Response save(@RequestParam("name") String name) {
38
31
public MultiResponse <DemoEntity > findAll (PageRequest pageRequest ) {
39
32
return MultiResponse .of (demoEntityRepository .findAll (pageRequest ));
40
33
}
41
-
42
-
43
- @ GetMapping ("/test-list" )
44
- public List <IdKey > test1 () throws SQLException {
45
- return idKeyDao .findAll ();
46
- }
47
-
48
- @ GetMapping ("/test-save" )
49
- public Response test2 () throws SQLException {
50
- IdKey generator = new IdKey ("xxx" );
51
- idKeyDao .save (generator );
52
- return Response .buildSuccess ();
53
- }
54
-
55
34
}
0 commit comments