2025-05-07 12:33:46 +09:00
|
|
|
package co.jp.app.controller;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
|
|
import co.jp.app.service.PetService;
|
|
|
|
|
|
|
|
@Controller
|
|
|
|
|
|
|
|
public class PetController {
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private PetService service;
|
|
|
|
|
|
|
|
@GetMapping("/api/dogs/pet")
|
|
|
|
public String getListByEntities(@RequestParam List<Integer> id) {
|
2025-05-12 11:50:08 +09:00
|
|
|
service.getPetByID(id);
|
2025-05-07 12:33:46 +09:00
|
|
|
return "pet";
|
|
|
|
}
|
|
|
|
}
|