|
@@ -12,7 +12,7 @@ import java.util.List;
|
|
|
public interface PetService {
|
|
public interface PetService {
|
|
|
List<PetVo> list(Long userId);
|
|
List<PetVo> list(Long userId);
|
|
|
PetVo add(PetDto dto, Long userId);
|
|
PetVo add(PetDto dto, Long userId);
|
|
|
- PetVo getById(Long id, Long userId);
|
|
|
|
|
|
|
+ PetVo getById(Long id, Long userId,String role);
|
|
|
Boolean update(Long id, PetDto dto, Long userId);
|
|
Boolean update(Long id, PetDto dto, Long userId);
|
|
|
Boolean delete(Long id, Long userId);
|
|
Boolean delete(Long id, Long userId);
|
|
|
List<VaccinationVo> getVaccinations(Long petId, Long userId);
|
|
List<VaccinationVo> getVaccinations(Long petId, Long userId);
|