source: src/main/java/com/example/medweb/service/PacientService.java@ e5fefbd

Last change on this file since e5fefbd was e5fefbd, checked in by Anita Terziska <63020646+Nit4e@…>, 22 months ago

initial commit

  • Property mode set to 100644
File size: 520 bytes
Line 
1package com.example.medweb.service;
2
3import com.example.medweb.model.Pacient;
4import org.springframework.security.core.userdetails.UserDetails;
5
6import java.util.List;
7import java.util.Optional;
8
9public interface PacientService {
10 List<Pacient> listAll();
11 Optional<Pacient> findById(Integer id);
12 Optional<Pacient> findPacientByEmailAndPass(String email, String password);
13 Optional<Pacient> findPacientByEmail(String email);
14 void save(Pacient pacient);
15 Pacient login (String email, String pass);
16}
Note: See TracBrowser for help on using the repository browser.