package com.example.springdemo.service; import com.example.springdemo.entities.Users; import com.example.springdemo.entities.password.UsersPassword; import java.util.List; import java.util.Optional; public interface UsersService { Users addUser(Users user, UsersPassword userPassword); void deleteUserById(Long userId); void deleteUserByName(String name); Users updateUser(Users user); List findAllUsers(); Optional findById(Long userId); Optional findByName(String name); int updateUserPasswordById(String password, Long userId); }