UrlChanged

This commit is contained in:
2025-05-12 16:20:16 +09:00
parent e307eb06cc
commit 76102067ab
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,5 @@
package co.jp.app.common; package co.jp.app.common;
import java.util.Objects;
public class ApiResponse<T> { public class ApiResponse<T> {
private boolean success; private boolean success;
private String message; private String message;
@ -20,6 +18,7 @@ public class ApiResponse<T> {
public ApiResponse() { public ApiResponse() {
} }
public ApiResponse(boolean success, String message, T data) { public ApiResponse(boolean success, String message, T data) {
this.success = success; this.success = success;
this.message = message; this.message = message;

View File

@ -14,10 +14,10 @@ public class DownloadController {
@Autowired @Autowired
private PetService service; private PetService service;
@GetMapping("/api/dogs/pet") @GetMapping("/api/dogs/download")
public String downloadById(@RequestParam List<Integer> id) { public String downloadById(@RequestParam List<Integer> id) {
service.getPetByID(id); service.getPetByID(id);
return "pet"; return "download";
} }
} }