66import com .codingapi .springboot .framework .dto .request .PageRequest ;
77import com .codingapi .springboot .framework .dto .response .MultiResponse ;
88import com .codingapi .springboot .framework .dto .response .Response ;
9- import com .codingapi .springboot .generator .dao .IdKeyDao ;
10- import com .codingapi .springboot .generator .domain .IdKey ;
119import lombok .AllArgsConstructor ;
1210import org .springframework .web .bind .annotation .GetMapping ;
1311import org .springframework .web .bind .annotation .RequestMapping ;
1412import org .springframework .web .bind .annotation .RequestParam ;
1513import org .springframework .web .bind .annotation .RestController ;
1614
17- import java .sql .SQLException ;
18- import java .util .List ;
19-
2015@ RestController
2116@ RequestMapping ("/open/demo" )
2217@ AllArgsConstructor
@@ -26,8 +21,6 @@ public class OpenController {
2621
2722 private final DemoEntityRepository demoEntityRepository ;
2823
29- private final IdKeyDao idKeyDao ;
30-
3124 @ GetMapping ("/save" )
3225 public Response save (@ RequestParam ("name" ) String name ) {
3326 executor .create (name );
@@ -38,18 +31,4 @@ public Response save(@RequestParam("name") String name) {
3831 public MultiResponse <DemoEntity > findAll (PageRequest pageRequest ) {
3932 return MultiResponse .of (demoEntityRepository .findAll (pageRequest ));
4033 }
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-
5534}
0 commit comments