File tree Expand file tree Collapse file tree
rentplace/src/main/java/kattsyn/dev/rentplace/services Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package kattsyn .dev .rentplace .services ;
22
3- import kattsyn .dev .rentplace .dtos .ImageDTO ;
4- import kattsyn .dev .rentplace .dtos .UserCreateEditDTO ;
5- import kattsyn .dev .rentplace .dtos .UserDTO ;
3+ import kattsyn .dev .rentplace .dtos .*;
64import kattsyn .dev .rentplace .entities .User ;
75import org .springframework .web .multipart .MultipartFile ;
86
119public interface UserService {
1210
1311 List <UserDTO > findAll ();
12+
1413 User getUserByEmail (String email );
14+
15+ boolean existsByEmail (String email );
16+
1517 UserDTO getUserDTOByEmail (String email );
18+
1619 UserDTO findById (Long id );
20+
1721 User getUserById (Long id );
22+
1823 UserDTO save (UserDTO userDTO );
24+
1925 UserDTO createWithImage (UserCreateEditDTO userCreateEditDTO );
26+
2027 void deleteById (long id );
28+
2129 ImageDTO uploadImage (MultipartFile file , long id );
30+
2231 UserDTO update (long id , UserCreateEditDTO userCreateEditDTO );
2332
2433 boolean allowedToEditUser (long id , String email );
34+
35+ User createUserWithRegisterRequest (RegisterRequest registerRequest );
2536}
You can’t perform that action at this time.
0 commit comments