source: src/main/java/com/example/moviezone/service/UserService.java@ 302b233

Last change on this file since 302b233 was e097c1c, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago

login and register in HomeController

  • Property mode set to 100644
File size: 451 bytes
Line 
1package com.example.moviezone.service;
2
3import com.example.moviezone.model.User;
4
5import java.util.List;
6
7public interface UserService {
8 List<User> findAllUsers();
9 User findById(Integer user_id);
10 User findByUsername(String username);
11
12 User register(String first_name, String last_name,String username, String email, String number, String password,String repeatedPassword, String role);
13 User login(String username,String password);
14}
Note: See TracBrowser for help on using the repository browser.