UrlChanged
This commit is contained in:
@ -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;
|
||||||
|
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user