Skip to content

Commit 79c4581

Browse files
committed
remove id-generator test code
1 parent d0cc75d commit 79c4581

File tree

1 file changed

+0
-21
lines changed
  • springboot-example/src/main/java/com/codingapi/springboot/example/ui/controller

1 file changed

+0
-21
lines changed

springboot-example/src/main/java/com/codingapi/springboot/example/ui/controller/OpenController.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,12 @@
66
import com.codingapi.springboot.framework.dto.request.PageRequest;
77
import com.codingapi.springboot.framework.dto.response.MultiResponse;
88
import com.codingapi.springboot.framework.dto.response.Response;
9-
import com.codingapi.springboot.generator.dao.IdKeyDao;
10-
import com.codingapi.springboot.generator.domain.IdKey;
119
import lombok.AllArgsConstructor;
1210
import org.springframework.web.bind.annotation.GetMapping;
1311
import org.springframework.web.bind.annotation.RequestMapping;
1412
import org.springframework.web.bind.annotation.RequestParam;
1513
import 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

Comments
 (0)